This commit is contained in:
xd 2024-07-14 17:21:26 +08:00
parent 34f226fd76
commit 4e9d72f353
5 changed files with 127 additions and 82 deletions

View File

@ -14,6 +14,7 @@ import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.file.FileUploadUtils; import com.ruoyi.common.utils.file.FileUploadUtils;
import com.ruoyi.common.utils.file.MinioUtil; import com.ruoyi.common.utils.file.MinioUtil;
import com.ruoyi.common.utils.uuid.UUID; import com.ruoyi.common.utils.uuid.UUID;
import com.ruoyi.quot.domain.Quot;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -43,6 +44,27 @@ public class BidController extends BaseController
@Autowired @Autowired
private IBidFileService bidFileService; private IBidFileService bidFileService;
/**
* 分派
*/
@PreAuthorize("@ss.hasPermi('bid:bid:assign')")
@Log(title = "分派投标信息", businessType = BusinessType.EXPORT)
@PostMapping("/bidAssign")
public AjaxResult bidAssign(@RequestBody Bid bid)
{
String[] bidIds = bid.getBidIds();
String receiveUserName = bid.getReceiveUserName();
for(String bidId:bidIds){
Bid entity = bidService.selectBidByBidId(bidId);
if(StringUtils.isNotEmpty(entity.getReceiveUserName())){
return error("投标信息:"+entity.getBidCode()+" 已分派");
}
entity.setReceiveUserName(receiveUserName);
bidService.updateBid(entity);
}
return success();
}
/** /**
* 查询投标信息列表 * 查询投标信息列表
*/ */
@ -51,6 +73,20 @@ public class BidController extends BaseController
public TableDataInfo list(Bid bid) public TableDataInfo list(Bid bid)
{ {
startPage(); startPage();
// 获取用户角色 --判断是否是投标小组经理角色
Boolean tbbRoleFlag = false;
List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
for(SysRole sysRole:roles){
String roleKey = sysRole.getRoleKey();
if("BID".equals(roleKey)){
tbbRoleFlag = true;
break;
}
}
if(!tbbRoleFlag){
bid.setReceiveUserName(getUsername());
}
List<Bid> list = bidService.selectBidList(bid); List<Bid> list = bidService.selectBidList(bid);
return getDataTable(list); return getDataTable(list);
} }
@ -188,7 +224,7 @@ public class BidController extends BaseController
public AjaxResult commitTbxx(@RequestBody Bid bid) public AjaxResult commitTbxx(@RequestBody Bid bid)
{ {
try{ try{
// 获取用户角色 --判断是否是核价组角色 // 获取用户角色 --判断是否是投标小组经理角色
Boolean tbbRoleFlag = false; Boolean tbbRoleFlag = false;
List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles(); List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
for(SysRole sysRole:roles){ for(SysRole sysRole:roles){

View File

@ -17,6 +17,7 @@ public class Bid extends BaseEntity
/** */ /** */
private String bidId; private String bidId;
private String[] bidIds;
/** 标书编号 */ /** 标书编号 */
@Excel(name = "标书编号") @Excel(name = "标书编号")
@ -180,6 +181,9 @@ public class Bid extends BaseEntity
/** 创建人 */ /** 创建人 */
private String createName; private String createName;
/** 分派接收人 */
private String receiveUserName;
public void setBidId(String bidId) public void setBidId(String bidId)
{ {
this.bidId = bidId; this.bidId = bidId;
@ -189,6 +193,9 @@ public class Bid extends BaseEntity
{ {
return bidId; return bidId;
} }
public String[] getBidIds() { return bidIds; }
public void setBidIds(String[] bidIds) { this.bidIds = bidIds; }
public void setBidCode(String bidCode) public void setBidCode(String bidCode)
{ {
this.bidCode = bidCode; this.bidCode = bidCode;
@ -243,10 +250,7 @@ public class Bid extends BaseEntity
public String getBidTenderingUnitBm() { return bidTenderingUnitBm; } public String getBidTenderingUnitBm() { return bidTenderingUnitBm; }
public void setBidTenderingUnitBm(String bidTenderingUnitBm) { this.bidTenderingUnitBm = bidTenderingUnitBm; } public void setBidTenderingUnitBm(String bidTenderingUnitBm) { this.bidTenderingUnitBm = bidTenderingUnitBm; }
public void setBidTenderingUnit(String bidTenderingUnit) public void setBidTenderingUnit(String bidTenderingUnit) { this.bidTenderingUnit = bidTenderingUnit; }
{
this.bidTenderingUnit = bidTenderingUnit;
}
public String getBidTenderingUnit() public String getBidTenderingUnit()
{ {
@ -270,10 +274,7 @@ public class Bid extends BaseEntity
{ {
return bidProject; return bidProject;
} }
public void setBidAuthorizedRepresentative(String bidAuthorizedRepresentative) public void setBidAuthorizedRepresentative(String bidAuthorizedRepresentative) { this.bidAuthorizedRepresentative = bidAuthorizedRepresentative; }
{
this.bidAuthorizedRepresentative = bidAuthorizedRepresentative;
}
public String getBidAuthorizedRepresentative() public String getBidAuthorizedRepresentative()
{ {
@ -288,10 +289,7 @@ public class Bid extends BaseEntity
{ {
return bidAuthorizedPhone; return bidAuthorizedPhone;
} }
public void setBidFilePaymentMethod(String bidFilePaymentMethod) public void setBidFilePaymentMethod(String bidFilePaymentMethod) { this.bidFilePaymentMethod = bidFilePaymentMethod; }
{
this.bidFilePaymentMethod = bidFilePaymentMethod;
}
public String getBidFilePaymentMethod() public String getBidFilePaymentMethod()
{ {
@ -306,19 +304,13 @@ public class Bid extends BaseEntity
{ {
return bidPaymentDeviation; return bidPaymentDeviation;
} }
public void setBidCopperPriceLinkage(String bidCopperPriceLinkage) public void setBidCopperPriceLinkage(String bidCopperPriceLinkage) { this.bidCopperPriceLinkage = bidCopperPriceLinkage; }
{
this.bidCopperPriceLinkage = bidCopperPriceLinkage;
}
public String getBidCopperPriceLinkage() public String getBidCopperPriceLinkage()
{ {
return bidCopperPriceLinkage; return bidCopperPriceLinkage;
} }
public void setBidPriceLinkageMethod(String bidPriceLinkageMethod) public void setBidPriceLinkageMethod(String bidPriceLinkageMethod) { this.bidPriceLinkageMethod = bidPriceLinkageMethod; }
{
this.bidPriceLinkageMethod = bidPriceLinkageMethod;
}
public String getBidPriceLinkageMethod() public String getBidPriceLinkageMethod()
{ {
@ -333,28 +325,19 @@ public class Bid extends BaseEntity
{ {
return bidOtherRequire; return bidOtherRequire;
} }
public void setBidWinningAmount(String bidWinningAmount) public void setBidWinningAmount(String bidWinningAmount) { this.bidWinningAmount = bidWinningAmount; }
{
this.bidWinningAmount = bidWinningAmount;
}
public String getBidWinningAmount() public String getBidWinningAmount()
{ {
return bidWinningAmount; return bidWinningAmount;
} }
public void setBidCopperCableAmount(String bidCopperCableAmount) public void setBidCopperCableAmount(String bidCopperCableAmount) { this.bidCopperCableAmount = bidCopperCableAmount; }
{
this.bidCopperCableAmount = bidCopperCableAmount;
}
public String getBidCopperCableAmount() public String getBidCopperCableAmount()
{ {
return bidCopperCableAmount; return bidCopperCableAmount;
} }
public void setBidAluminumCableAmount(String bidAluminumCableAmount) public void setBidAluminumCableAmount(String bidAluminumCableAmount) { this.bidAluminumCableAmount = bidAluminumCableAmount; }
{
this.bidAluminumCableAmount = bidAluminumCableAmount;
}
public String getBidAluminumCableAmount() public String getBidAluminumCableAmount()
{ {
@ -369,15 +352,9 @@ public class Bid extends BaseEntity
{ {
return bidOpenClose; return bidOpenClose;
} }
public void setBidPriceAdjustmentNotice(String bidPriceAdjustmentNotice) public void setBidPriceAdjustmentNotice(String bidPriceAdjustmentNotice) { this.bidPriceAdjustmentNotice = bidPriceAdjustmentNotice; }
{
this.bidPriceAdjustmentNotice = bidPriceAdjustmentNotice;
}
public String getBidPriceAdjustmentNotice() public String getBidPriceAdjustmentNotice() { return bidPriceAdjustmentNotice; }
{
return bidPriceAdjustmentNotice;
}
public void setBidValidityPeriod(String bidValidityPeriod) public void setBidValidityPeriod(String bidValidityPeriod)
{ {
this.bidValidityPeriod = bidValidityPeriod; this.bidValidityPeriod = bidValidityPeriod;
@ -432,10 +409,7 @@ public class Bid extends BaseEntity
{ {
return bidPrice; return bidPrice;
} }
public void setBidBusinessSettlement(String bidBusinessSettlement) public void setBidBusinessSettlement(String bidBusinessSettlement) { this.bidBusinessSettlement = bidBusinessSettlement; }
{
this.bidBusinessSettlement = bidBusinessSettlement;
}
public String getBidBusinessSettlement() public String getBidBusinessSettlement()
{ {
@ -450,10 +424,7 @@ public class Bid extends BaseEntity
{ {
return bidBond; return bidBond;
} }
public void setBidWinningServiceFee(String bidWinningServiceFee) public void setBidWinningServiceFee(String bidWinningServiceFee) { this.bidWinningServiceFee = bidWinningServiceFee; }
{
this.bidWinningServiceFee = bidWinningServiceFee;
}
public String getBidWinningServiceFee() public String getBidWinningServiceFee()
{ {
@ -522,10 +493,7 @@ public class Bid extends BaseEntity
{ {
return bidPriceLinkage; return bidPriceLinkage;
} }
public void setBidPaymentMethod(String bidPaymentMethod) public void setBidPaymentMethod(String bidPaymentMethod) { this.bidPaymentMethod = bidPaymentMethod; }
{
this.bidPaymentMethod = bidPaymentMethod;
}
public String getBidPaymentMethod() public String getBidPaymentMethod()
{ {
@ -536,28 +504,19 @@ public class Bid extends BaseEntity
this.bidOtherMatters = bidOtherMatters; this.bidOtherMatters = bidOtherMatters;
} }
public String getBidOtherMatters() public String getBidOtherMatters() { return bidOtherMatters; }
{
return bidOtherMatters;
}
public void setBidZbr(String bidZbr) public void setBidZbr(String bidZbr)
{ {
this.bidZbr = bidZbr; this.bidZbr = bidZbr;
} }
public String getBidZbr() public String getBidZbr() { return bidZbr; }
{
return bidZbr;
}
public void setBidJdr(String bidJdr) public void setBidJdr(String bidJdr)
{ {
this.bidJdr = bidJdr; this.bidJdr = bidJdr;
} }
public String getBidJdr() public String getBidJdr() { return bidJdr; }
{
return bidJdr;
}
public void setBidShr(String bidShr) public void setBidShr(String bidShr)
{ {
this.bidShr = bidShr; this.bidShr = bidShr;
@ -576,16 +535,12 @@ public class Bid extends BaseEntity
{ {
return bidApprovalStatus; return bidApprovalStatus;
} }
public void setBidNotificationAward(String bidNotificationAward) public void setBidNotificationAward(String bidNotificationAward) { this.bidNotificationAward = bidNotificationAward; }
{
this.bidNotificationAward = bidNotificationAward;
}
public String getBidNotificationAward() public String getBidNotificationAward()
{ {
return bidNotificationAward; return bidNotificationAward;
} }
public String getBidRemark() { public String getBidRemark() {
return bidRemark; return bidRemark;
} }
@ -593,7 +548,6 @@ public class Bid extends BaseEntity
public void setBidRemark(String bidRemark) { public void setBidRemark(String bidRemark) {
this.bidRemark = bidRemark; this.bidRemark = bidRemark;
} }
public String getBidReturnRemark() { public String getBidReturnRemark() {
return bidReturnRemark; return bidReturnRemark;
} }
@ -601,12 +555,10 @@ public class Bid extends BaseEntity
public void setBidReturnRemark(String bidReturnRemark) { public void setBidReturnRemark(String bidReturnRemark) {
this.bidReturnRemark = bidReturnRemark; this.bidReturnRemark = bidReturnRemark;
} }
public String getCreateName() { return createName; }
public String getCreateName() { public void setCreateName(String createName) { this.createName = createName; }
return createName; public String getReceiveUserName() { return receiveUserName; }
}
public void setCreateName(String createName) { public void setReceiveUserName(String receiveUserName) { this.receiveUserName = receiveUserName; }
this.createName = createName;
}
} }

View File

@ -55,6 +55,7 @@
<result property="bidNotificationAward" column="bid_notification_award" /> <result property="bidNotificationAward" column="bid_notification_award" />
<result property="bidRemark" column="bid_remark" /> <result property="bidRemark" column="bid_remark" />
<result property="bidReturnRemark" column="bid_returnRemark" /> <result property="bidReturnRemark" column="bid_returnRemark" />
<result property="receiveUserName" column="receive_user_name" />
<result property="createBy" column="create_by" /> <result property="createBy" column="create_by" />
<result property="createName" column="create_name" /> <result property="createName" column="create_name" />
@ -82,7 +83,7 @@
a.bid_warranty_period, a.bid_bidding, a.bid_evaluation_method, a.bid_technical_require, a.bid_warranty_period, a.bid_bidding, a.bid_evaluation_method, a.bid_technical_require,
a.bid_price_linkage, a.bid_payment_method, a.bid_other_matters, a.bid_zbr, a.bid_jdr, a.bid_price_linkage, a.bid_payment_method, a.bid_other_matters, a.bid_zbr, a.bid_jdr,
a.bid_shr, a.bid_approval_status, a.bid_notification_award, a.bid_remark,a.bid_returnRemark, a.bid_shr, a.bid_approval_status, a.bid_notification_award, a.bid_remark,a.bid_returnRemark,
a.create_by,u.nick_name create_name, a.create_time, a.receive_user_name,a.create_by,u.nick_name create_name, a.create_time,
a.update_by, a.update_time a.update_by, a.update_time
from bid a from bid a
<include refid="quotJoins"/> <include refid="quotJoins"/>
@ -97,6 +98,8 @@
<if test="bidProject != null and bidProject != ''"> and bid_project like concat('%', #{bidProject}, '%')</if> <if test="bidProject != null and bidProject != ''"> and bid_project like concat('%', #{bidProject}, '%')</if>
<if test="bidAuthorizedRepresentative != null and bidAuthorizedRepresentative != ''"> and bid_authorized_representative like concat('%', #{bidAuthorizedRepresentative}, '%')</if> <if test="bidAuthorizedRepresentative != null and bidAuthorizedRepresentative != ''"> and bid_authorized_representative like concat('%', #{bidAuthorizedRepresentative}, '%')</if>
<if test="bidApprovalStatus != null and bidApprovalStatus != ''"> and bid_approval_status = #{bidApprovalStatus}</if> <if test="bidApprovalStatus != null and bidApprovalStatus != ''"> and bid_approval_status = #{bidApprovalStatus}</if>
<if test="receiveUserName != null and receiveUserName != ''"> and receive_user_name = #{receiveUserName}</if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
</where> </where>
@ -160,6 +163,7 @@
<if test="bidNotificationAward != null and bidNotificationAward != ''">bid_notification_award,</if> <if test="bidNotificationAward != null and bidNotificationAward != ''">bid_notification_award,</if>
<if test="bidRemark != null and bidRemark != ''">bid_remark,</if> <if test="bidRemark != null and bidRemark != ''">bid_remark,</if>
<if test="bidReturnRemark != null and bidReturnRemark != ''">bid_returnRemark,</if> <if test="bidReturnRemark != null and bidReturnRemark != ''">bid_returnRemark,</if>
<if test="receiveUserName != null and receiveUserName != ''">receive_user_name,</if>
<if test="createBy != null">create_by,</if> <if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
@ -217,6 +221,7 @@
<if test="bidNotificationAward != null and bidNotificationAward != ''">#{bidNotificationAward},</if> <if test="bidNotificationAward != null and bidNotificationAward != ''">#{bidNotificationAward},</if>
<if test="bidRemark != null and bidRemark != ''">#{bidRemark},</if> <if test="bidRemark != null and bidRemark != ''">#{bidRemark},</if>
<if test="bidReturnRemark != null and bidReturnRemark != ''">#{bidReturnRemark},</if> <if test="bidReturnRemark != null and bidReturnRemark != ''">#{bidReturnRemark},</if>
<if test="receiveUserName != null and receiveUserName != ''">#{receiveUserName},</if>
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
@ -277,6 +282,7 @@
<if test="bidNotificationAward != null and bidNotificationAward != ''">bid_notification_award = #{bidNotificationAward},</if> <if test="bidNotificationAward != null and bidNotificationAward != ''">bid_notification_award = #{bidNotificationAward},</if>
<if test="bidRemark != null and bidRemark != ''">bid_remark = #{bidRemark},</if> <if test="bidRemark != null and bidRemark != ''">bid_remark = #{bidRemark},</if>
<if test="bidReturnRemark != null and bidReturnRemark != ''">bid_returnRemark = #{bidReturnRemark},</if> <if test="bidReturnRemark != null and bidReturnRemark != ''">bid_returnRemark = #{bidReturnRemark},</if>
<if test="receiveUserName != null and receiveUserName != ''">receive_user_name = #{receiveUserName},</if>
<if test="createBy != null">create_by = #{createBy},</if> <if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>

View File

@ -1,5 +1,13 @@
import request from '@/utils/request' import request from '@/utils/request'
// 分派
export function bidAssign(query) {
return request({
url: '/bid/bid/bidAssign',
method: 'post',
data: query
})
}
// 查询投标信息列表 // 查询投标信息列表
export function listBid(query) { export function listBid(query) {
return request({ return request({

View File

@ -103,6 +103,17 @@
v-hasPermi="['bid:bid:export']" v-hasPermi="['bid:bid:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-user-solid"
size="mini"
:disabled="multiple"
@click="handleAssign"
v-hasPermi="['bid:bid:assign']"
>分派</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<div v-tableHeight="{customHeight: 76}"> <div v-tableHeight="{customHeight: 76}">
@ -331,7 +342,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div v-if="checkRole(['BID']) "> <div v-if="checkRole(['BID']) ">
<el-divider content-position="left" class="customer_divider_text">投标信息</el-divider> <el-divider content-position="left" class="customer_divider_text">投标信息</el-divider>
<el-row :gutter="8"> <el-row :gutter="8">
@ -528,6 +538,7 @@
<!-- 客户选择对话框--> <!-- 客户选择对话框-->
<CustomerSelect ref="customerSelect" :open="customerOpen" @submit="submitCustomer" @cancel="customerOpen=false"></CustomerSelect> <CustomerSelect ref="customerSelect" :open="customerOpen" @submit="submitCustomer" @cancel="customerOpen=false"></CustomerSelect>
</el-dialog> </el-dialog>
<PeopleSelect v-if="checkRole(['BID'])" ref="peopleSelect" :type="'single'" :isCheck="true" :open="peopleOpen" @cancel="peopleOpen=false" @submit="submitPeople"></PeopleSelect>
</div> </div>
</template> </template>
<style> <style>
@ -550,11 +561,13 @@
<script> <script>
import { checkPermi,checkRole } from '@/utils/permission';// import { checkPermi,checkRole } from '@/utils/permission';//
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { listBid, getBid, delBid, addBid, updateBid, bidFileList,bidFileDelete, commitTbxx } from "@/api/bid/bid"; import { bidAssign,listBid, getBid, delBid, addBid, updateBid, bidFileList,bidFileDelete, commitTbxx } from "@/api/bid/bid";
/** 弹窗放大、拖拽 */ /** 弹窗放大、拖拽 */
import elDragDialog from "@/directive/dialog/dragDialog"; import elDragDialog from "@/directive/dialog/dragDialog";
/** 导入客户选择组件 */ /** 导入客户选择组件 */
import CustomerSelect from "@/views/components/Tools/CustomerSelect/index.vue"; import CustomerSelect from "@/views/components/Tools/CustomerSelect/index.vue";
/** 导入选人组件 */
import PeopleSelect from "@/views/components/Tools/PeopleSelect/index.vue";
export default { export default {
name: "Bid", name: "Bid",
@ -563,7 +576,8 @@ export default {
}, },
components: { components: {
// //
'CustomerSelect': CustomerSelect 'CustomerSelect': CustomerSelect,
'PeopleSelect': PeopleSelect
}, },
dicts: ['bid_approval_status','bid_online_quotation','bid_copper_price_linkage','bid_open_close','bid_bidding','bid_notification_award'], dicts: ['bid_approval_status','bid_online_quotation','bid_copper_price_linkage','bid_open_close','bid_bidding','bid_notification_award'],
data() { data() {
@ -643,7 +657,12 @@ export default {
bidPaymentDeviation: [ bidPaymentDeviation: [
{ required: true, message: "投标付款偏差不能为空", trigger: "blur" } { required: true, message: "投标付款偏差不能为空", trigger: "blur" }
], ],
} },
//
peopleOpen:false,
selectedPeoples:[]
}; };
}, },
created() { created() {
@ -778,6 +797,10 @@ export default {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "投标信息"; this.title = "投标信息";
//-
this.getBidYwyFileList();
this.getBidTbbFileList();
}); });
}, },
/** 保存按钮 */ /** 保存按钮 */
@ -831,6 +854,10 @@ export default {
}, `bid_${new Date().getTime()}.xlsx`) }, `bid_${new Date().getTime()}.xlsx`)
}, },
handleAssign() {
this.openPeopleSelect();
},
/*********************************附件列表数据展示、上传*****************************************/ /*********************************附件列表数据展示、上传*****************************************/
// //
@ -911,6 +938,22 @@ export default {
} }
}, },
/*********************************附件列表数据展示、上传*****************************************/ /*********************************附件列表数据展示、上传*****************************************/
//-
openPeopleSelect(){
this.peopleOpen=true;
},
//- submitPeople(nikeNamelist) submitPeople(peopleList,nikeNamelist)
submitPeople(peopleList,nickNameList){
const receiveUserName = peopleList[0];
const bidIds = this.ids;
const param = {'receiveUserName':receiveUserName,'bidIds':bidIds}
bidAssign(param).then(response => {
this.$modal.msgSuccess("分派成功");
this.peopleOpen=false;
})
},
} }
}; };
</script> </script>