From 34f226fd76cb4c8ea296ea1a33b08815b6f9af75 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Sun, 14 Jul 2024 14:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E6=A0=87=E5=8A=9F=E8=83=BD=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ABAP_AS_WITH_POOL.jcoDestination | 11 + .../web/controller/bid/BidController.java | 243 +++++ .../web/controller/quot/QuotController.java | 2 +- .../main/java/com/ruoyi/bid/domain/Bid.java | 612 ++++++++++++ .../java/com/ruoyi/bid/domain/BidFile.java | 113 +++ .../com/ruoyi/bid/mapper/BidFileMapper.java | 46 + .../java/com/ruoyi/bid/mapper/BidMapper.java | 68 ++ .../ruoyi/bid/service/IBidFileService.java | 46 + .../com/ruoyi/bid/service/IBidService.java | 68 ++ .../bid/service/impl/BidFileServiceImpl.java | 75 ++ .../bid/service/impl/BidServiceImpl.java | 110 +++ .../resources/mapper/bid/BidFileMapper.xml | 63 ++ .../main/resources/mapper/bid/BidMapper.xml | 303 ++++++ ruoyi-ui/src/api/bid/bid.js | 71 ++ ruoyi-ui/src/views/bid/bid/index.vue | 916 ++++++++++++++++++ ruoyi-ui/src/views/quot/quot/index.vue | 2 +- ruoyi-ui/src/views/redBook/quots.vue | 2 +- 17 files changed, 2748 insertions(+), 3 deletions(-) create mode 100644 ABAP_AS_WITH_POOL.jcoDestination create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/domain/Bid.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/domain/BidFile.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidFileMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidFileService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidFileServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/bid/BidFileMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml create mode 100644 ruoyi-ui/src/api/bid/bid.js create mode 100644 ruoyi-ui/src/views/bid/bid/index.vue diff --git a/ABAP_AS_WITH_POOL.jcoDestination b/ABAP_AS_WITH_POOL.jcoDestination new file mode 100644 index 0000000..b54c69e --- /dev/null +++ b/ABAP_AS_WITH_POOL.jcoDestination @@ -0,0 +1,11 @@ +#for tests only ! +#Sun Jul 14 09:24:48 CST 2024 +jco.destination.pool_capacity=10 +jco.client.lang=ZH +jco.client.ashost=172.19.0.125 +jco.client.saprouter= +jco.client.user=RFC +jco.client.sysnr=00 +jco.destination.peak_limit=10 +jco.client.passwd=wl1ohKB{(qG12134rfI2_aP1$-R2Li3KI(-4`GAN*gJkQ1]B +jco.client.client=800 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java new file mode 100644 index 0000000..f60e0fe --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java @@ -0,0 +1,243 @@ +package com.ruoyi.web.controller.bid; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.bid.domain.BidFile; +import com.ruoyi.bid.service.IBidFileService; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.ruoyi.common.utils.file.MinioUtil; +import com.ruoyi.common.utils.uuid.UUID; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.bid.domain.Bid; +import com.ruoyi.bid.service.IBidService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; +import org.springframework.web.multipart.MultipartFile; + +/** + * 投标信息Controller + * + * @author ruoyi + * @date 2024-07-11 + */ +@RestController +@RequestMapping("/bid/bid") +public class BidController extends BaseController +{ + @Autowired + private IBidService bidService; + + @Autowired + private IBidFileService bidFileService; + + /** + * 查询投标信息列表 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:list')") + @GetMapping("/list") + public TableDataInfo list(Bid bid) + { + startPage(); + List list = bidService.selectBidList(bid); + return getDataTable(list); + } + + /** + * 导出投标信息列表 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:export')") + @Log(title = "投标信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Bid bid) + { + List list = bidService.selectBidList(bid); + ExcelUtil util = new ExcelUtil(Bid.class); + util.exportExcel(response, list, "投标信息数据"); + } + + /** + * 获取投标信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:query')") + @GetMapping(value = "/{bidId}") + public AjaxResult getInfo(@PathVariable("bidId") String bidId) + { + return success(bidService.selectBidByBidId(bidId)); + } + + /** + * 新增投标信息 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:add')") + @Log(title = "投标信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody Bid bid) + { + bid.setBidId(UUID.fastUUID().toString()); + String bidCode = bidService.getCode("TBXX"); + bid.setBidCode(bidCode); + bid.setCreateBy(getUsername()); + bid.setUpdateBy(getUsername()); + bidService.insertBid(bid); + return success(bid); + } + + /** + * 修改投标信息 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:edit')") + @Log(title = "投标信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody Bid bid) + { + bid.setUpdateBy(getUsername()); + return toAjax(bidService.updateBid(bid)); + } + + /** + * 上传投标附件 + * @param file 文件对象 + * @param relation_id 关联业务表Id + * @param file_type 文件类别 + * @return + * @throws Exception + */ + @PreAuthorize("@ss.hasAnyPermi('bid:bid:bidYwyFile,bid:bid:bidTbbFile')") + @Log(title = "上传报价附件", businessType = BusinessType.INSERT) + @PostMapping("/bidFile") + public AjaxResult bidFile(@RequestParam("bidFile") MultipartFile file, @RequestParam("relation_id") String relation_id, @RequestParam("file_type") String file_type) throws Exception + { + if(!StringUtils.isEmpty(relation_id)){ + if (!file.isEmpty()) + { + BidFile bidFile= new BidFile(); + bidFile.setFileId(UUID.fastUUID().toString()); + + String url = FileUploadUtils.uploadMinio(file,"bid-manage", "bid/"+relation_id); + int index = url.lastIndexOf("/")+1; + String fileName = url.substring(index);//获取文件名 + + int index2 = url.indexOf("/bid/"); + String fileBucketName = url.substring(index2);//获取文件对应文件服务器中地址-供后面删除功能用 + + bidFile.setFileName(fileName); + bidFile.setFileBucketName(fileBucketName); + bidFile.setFileUrl(url); + bidFile.setFileSize(file.getSize()); + bidFile.setFileTime(DateUtils.getTime()); + bidFile.setFileType(file_type); + bidFile.setRelationId(relation_id); + bidFileService.insertBidFile(bidFile); + } + }else{ + return error("系统异常,报价单号为空!"); + } + return success("上传成功!"); + } + + /** + * 查询附件列表 + */ + @PreAuthorize("@ss.hasAnyPermi('bid:bid:list')") + @GetMapping("/bidFileList") + public TableDataInfo bidFileList(BidFile bidFile) + { + startPage(); + List list = bidFileService.selectBidFileList(bidFile); + return getDataTable(list); + } + + /** + * 删除附件列表 + */ + @PreAuthorize("@ss.hasAnyPermi('bid:bid:bidYwyFile,bid:bid:bidTbbFile')") + @Log(title = "删除投标信息附件列表", businessType = BusinessType.DELETE) + @PostMapping("/bidFileDelete") + public AjaxResult bidFileDelete(BidFile bidFile) { + String fileId = bidFile.getFileId(); + try { + BidFile bidfile = bidFileService.selectBidFileByFileId(fileId); + bidFileService.deleteBidFileByFileId(fileId);//删除文件记录 + MinioUtil.removeObject("bid-manage", bidfile.getFileBucketName());//删除文件服务器对应文件 + }catch(Exception e){ + return error("系统异常!"); + } + return success(); + } + + + /** + * 提交OA事业部经理、店长/投标办按钮 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:commit')") + @Log(title = "提交OA事业部经理、店长/投标办按钮", businessType = BusinessType.OTHER) + @PostMapping("/commitTbxx") + public AjaxResult commitTbxx(@RequestBody Bid bid) + { + try{ + // 获取用户角色 --判断是否是核价组角色 + Boolean tbbRoleFlag = false; + List roles = SecurityUtils.getLoginUser().getUser().getRoles(); + for(SysRole sysRole:roles){ + String roleKey = sysRole.getRoleKey(); + if("BID".equals(roleKey)){ + tbbRoleFlag = true; + break; + } + } + String bid_id = bid.getBidId(); + bid.setUpdateBy(getUsername()); + + // TODO 如果是事业部、直营店 则提交OA审核, 如果是业务员则提交投标办审批 + bid.setBidApprovalStatus("1"); + + if(StringUtils.isEmpty(bid_id)){ + bid.setBidId(UUID.fastUUID().toString()); + String bidCode = bidService.getCode("TBXX"); + bid.setBidCode(bidCode); + + if(tbbRoleFlag){ + bid.setCreateBy(bid.getBidSalesmanCode()); + }else{ + bid.setCreateBy(getUsername()); + } + bidService.insertBid(bid); + return success(); + }else{ + if(tbbRoleFlag){ + bid.setUpdateBy(bid.getBidSalesmanCode()); + }else{ + bid.setUpdateBy(getUsername()); + } + bidService.updateBid(bid); + return success(); + } + }catch (Exception e){ + return error("系统异常"); + } + } + + /** + * 删除投标信息 + */ + @PreAuthorize("@ss.hasPermi('bid:bid:remove')") + @Log(title = "投标信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{bidIds}") + public AjaxResult remove(@PathVariable String[] bidIds) + { + return toAjax(bidService.deleteBidByBidIds(bidIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index b6e6322..30d48e7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -365,7 +365,7 @@ public class QuotController extends BaseController * 删除附件列表 */ @PreAuthorize("@ss.hasAnyPermi('quot:quot:quotXjFile,quot:quot:quotFkFile,quot:quot:quotJsgfFile,jsqr:jsqr:operateTlUploadFile,jsqr:jsqr:operateDyUploadFile,jsqr:jsqr:operateZyUploadFile,jsqr:jsqr:operateQtUploadFile,priceVerification:priceVerification:uploadFile')") - @Log(title = "删除附件列表", businessType = BusinessType.DELETE) + @Log(title = "删除报价单附件列表", businessType = BusinessType.DELETE) @PostMapping("/quotFileDelete") public AjaxResult quotFileDelete(QuotFile quotFile) { String fileId = quotFile.getFileId(); diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/domain/Bid.java b/ruoyi-system/src/main/java/com/ruoyi/bid/domain/Bid.java new file mode 100644 index 0000000..73f2206 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/domain/Bid.java @@ -0,0 +1,612 @@ +package com.ruoyi.bid.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 投标信息对象 bid + * + * @author ruoyi + * @date 2024-07-11 + */ +public class Bid extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private String bidId; + + /** 标书编号 */ + @Excel(name = "标书编号") + private String bidCode; + + /** 业务员账号 */ + private String bidSalesmanCode; + + /** 业务员编码 */ + private String bidSalesmanBm; + + /** 业务员 */ + @Excel(name = "业务员") + private String bidSalesmanName; + + /** 原报名编号 */ + @Excel(name = "原报名编号") + private String bidRegistrationNumber; + + /** 开标日期 */ + @Excel(name = "开标日期") + private String bidOpeningDate; + + /** 是否网上报价(0-是/1-否) */ + private String bidOnlineQuotation; + + /** 报价平台网址 */ + private String bidWebsite; + + /** 招标单位编码 */ + private String bidTenderingUnitBm; + + /** 招标单位 */ + @Excel(name = "招标单位") + private String bidTenderingUnit; + + /** 招标代理 */ + @Excel(name = "招标代理") + private String bidAgency; + + /** 项目名称 */ + @Excel(name = "项目名称") + private String bidProject; + + /** 授权代表 */ + @Excel(name = "授权代表") + private String bidAuthorizedRepresentative; + + /** 授权人联系方式 */ + private String bidAuthorizedPhone; + + /** 招标文件付款方式 */ + private String bidFilePaymentMethod; + + /** 投标付款偏差 */ + private String bidPaymentDeviation; + + /** 是否铜价联动(0-是/1-否) */ + private String bidCopperPriceLinkage; + + /** 价格联动方式 */ + private String bidPriceLinkageMethod; + + /** 其他投标要求 */ + private String bidOtherRequire; + + /** 中标金额 */ + private String bidWinningAmount; + + /** 铜电缆金额 */ + private String bidCopperCableAmount; + + /** 铝电缆金额 */ + private String bidAluminumCableAmount; + + /** 开闭口(1-开口价/2-闭口价) */ + private String bidOpenClose; + + /** 调价通知 */ + private String bidPriceAdjustmentNotice; + + /** 投标有效期 */ + private String bidValidityPeriod; + + /** 铜价 */ + private String bidTongPrice; + + /** 铝价 */ + private String bidLvPrice; + + /** 点数 */ + private String bidDs; + + /** 厂价 */ + private String bidFactoryPrice; + + /** 投标价 */ + private String bidPrice; + + /** 业务费结算 */ + private String bidBusinessSettlement; + + /** 保证金 */ + private String bidBond; + + /** 中标服务费 */ + private String bidWinningServiceFee; + + /** 履约保证金 */ + private String bidPerformanceBond; + + /** 交货期(工期) */ + private String bidDeliveryDate; + + /** 质保期 */ + private String bidWarrantyPeriod; + + /** 是否竞价(0-是/1-否) */ + private String bidBidding; + + /** 评标办法 */ + private String bidEvaluationMethod; + + /** 技术要求 */ + private String bidTechnicalRequire; + + /** 价格联动 */ + private String bidPriceLinkage; + + /** 付款方式 */ + private String bidPaymentMethod; + + /** 其余事项 */ + private String bidOtherMatters; + + /** 制标人 */ + @Excel(name = "制标人") + private String bidZbr; + + /** 校对人 */ + @Excel(name = "校对人") + private String bidJdr; + + /** 审核人 */ + @Excel(name = "审核人") + private String bidShr; + + /** 提交状态 */ + @Excel(name = "提交状态") + private String bidApprovalStatus; + + /** 有无中标通知书(0-是/1-否) */ + private String bidNotificationAward; + + /** 备注 */ + private String bidRemark; + + /** 驳回原因 */ + private String bidReturnRemark; + + /** 创建人 */ + private String createName; + + public void setBidId(String bidId) + { + this.bidId = bidId; + } + + public String getBidId() + { + return bidId; + } + public void setBidCode(String bidCode) + { + this.bidCode = bidCode; + } + + public String getBidCode() + { + return bidCode; + } + public String getBidSalesmanCode() { return bidSalesmanCode; } + + public void setBidSalesmanCode(String bidSalesmanCode) { this.bidSalesmanCode = bidSalesmanCode; } + public String getBidSalesmanBm() { return bidSalesmanBm; } + + public void setBidSalesmanBm(String bidSalesmanBm) { this.bidSalesmanBm = bidSalesmanBm; } + public String getBidSalesmanName() { return bidSalesmanName; } + + public void setBidSalesmanName(String bidSalesmanName) { this.bidSalesmanName = bidSalesmanName; } + public void setBidRegistrationNumber(String bidRegistrationNumber) { this.bidRegistrationNumber = bidRegistrationNumber; } + + public String getBidRegistrationNumber() + { + return bidRegistrationNumber; + } + public void setBidOpeningDate(String bidOpeningDate) + { + this.bidOpeningDate = bidOpeningDate; + } + + public String getBidOpeningDate() + { + return bidOpeningDate; + } + public void setBidOnlineQuotation(String bidOnlineQuotation) + { + this.bidOnlineQuotation = bidOnlineQuotation; + } + + public String getBidOnlineQuotation() + { + return bidOnlineQuotation; + } + public void setBidWebsite(String bidWebsite) + { + this.bidWebsite = bidWebsite; + } + + public String getBidWebsite() + { + return bidWebsite; + } + public String getBidTenderingUnitBm() { return bidTenderingUnitBm; } + + public void setBidTenderingUnitBm(String bidTenderingUnitBm) { this.bidTenderingUnitBm = bidTenderingUnitBm; } + public void setBidTenderingUnit(String bidTenderingUnit) + { + this.bidTenderingUnit = bidTenderingUnit; + } + + public String getBidTenderingUnit() + { + return bidTenderingUnit; + } + public void setBidAgency(String bidAgency) + { + this.bidAgency = bidAgency; + } + + public String getBidAgency() + { + return bidAgency; + } + public void setBidProject(String bidProject) + { + this.bidProject = bidProject; + } + + public String getBidProject() + { + return bidProject; + } + public void setBidAuthorizedRepresentative(String bidAuthorizedRepresentative) + { + this.bidAuthorizedRepresentative = bidAuthorizedRepresentative; + } + + public String getBidAuthorizedRepresentative() + { + return bidAuthorizedRepresentative; + } + public void setBidAuthorizedPhone(String bidAuthorizedPhone) + { + this.bidAuthorizedPhone = bidAuthorizedPhone; + } + + public String getBidAuthorizedPhone() + { + return bidAuthorizedPhone; + } + public void setBidFilePaymentMethod(String bidFilePaymentMethod) + { + this.bidFilePaymentMethod = bidFilePaymentMethod; + } + + public String getBidFilePaymentMethod() + { + return bidFilePaymentMethod; + } + public void setBidPaymentDeviation(String bidPaymentDeviation) + { + this.bidPaymentDeviation = bidPaymentDeviation; + } + + public String getBidPaymentDeviation() + { + return bidPaymentDeviation; + } + public void setBidCopperPriceLinkage(String bidCopperPriceLinkage) + { + this.bidCopperPriceLinkage = bidCopperPriceLinkage; + } + + public String getBidCopperPriceLinkage() + { + return bidCopperPriceLinkage; + } + public void setBidPriceLinkageMethod(String bidPriceLinkageMethod) + { + this.bidPriceLinkageMethod = bidPriceLinkageMethod; + } + + public String getBidPriceLinkageMethod() + { + return bidPriceLinkageMethod; + } + public void setBidOtherRequire(String bidOtherRequire) + { + this.bidOtherRequire = bidOtherRequire; + } + + public String getBidOtherRequire() + { + return bidOtherRequire; + } + public void setBidWinningAmount(String bidWinningAmount) + { + this.bidWinningAmount = bidWinningAmount; + } + + public String getBidWinningAmount() + { + return bidWinningAmount; + } + public void setBidCopperCableAmount(String bidCopperCableAmount) + { + this.bidCopperCableAmount = bidCopperCableAmount; + } + + public String getBidCopperCableAmount() + { + return bidCopperCableAmount; + } + public void setBidAluminumCableAmount(String bidAluminumCableAmount) + { + this.bidAluminumCableAmount = bidAluminumCableAmount; + } + + public String getBidAluminumCableAmount() + { + return bidAluminumCableAmount; + } + public void setBidOpenClose(String bidOpenClose) + { + this.bidOpenClose = bidOpenClose; + } + + public String getBidOpenClose() + { + return bidOpenClose; + } + public void setBidPriceAdjustmentNotice(String bidPriceAdjustmentNotice) + { + this.bidPriceAdjustmentNotice = bidPriceAdjustmentNotice; + } + + public String getBidPriceAdjustmentNotice() + { + return bidPriceAdjustmentNotice; + } + public void setBidValidityPeriod(String bidValidityPeriod) + { + this.bidValidityPeriod = bidValidityPeriod; + } + + public String getBidValidityPeriod() + { + return bidValidityPeriod; + } + public void setBidTongPrice(String bidTongPrice) + { + this.bidTongPrice = bidTongPrice; + } + + public String getBidTongPrice() + { + return bidTongPrice; + } + public void setBidLvPrice(String bidLvPrice) + { + this.bidLvPrice = bidLvPrice; + } + + public String getBidLvPrice() + { + return bidLvPrice; + } + public void setBidDs(String bidDs) + { + this.bidDs = bidDs; + } + + public String getBidDs() + { + return bidDs; + } + public void setBidFactoryPrice(String bidFactoryPrice) + { + this.bidFactoryPrice = bidFactoryPrice; + } + + public String getBidFactoryPrice() + { + return bidFactoryPrice; + } + public void setBidPrice(String bidPrice) + { + this.bidPrice = bidPrice; + } + + public String getBidPrice() + { + return bidPrice; + } + public void setBidBusinessSettlement(String bidBusinessSettlement) + { + this.bidBusinessSettlement = bidBusinessSettlement; + } + + public String getBidBusinessSettlement() + { + return bidBusinessSettlement; + } + public void setBidBond(String bidBond) + { + this.bidBond = bidBond; + } + + public String getBidBond() + { + return bidBond; + } + public void setBidWinningServiceFee(String bidWinningServiceFee) + { + this.bidWinningServiceFee = bidWinningServiceFee; + } + + public String getBidWinningServiceFee() + { + return bidWinningServiceFee; + } + public void setBidPerformanceBond(String bidPerformanceBond) + { + this.bidPerformanceBond = bidPerformanceBond; + } + + public String getBidPerformanceBond() + { + return bidPerformanceBond; + } + public void setBidDeliveryDate(String bidDeliveryDate) + { + this.bidDeliveryDate = bidDeliveryDate; + } + + public String getBidDeliveryDate() + { + return bidDeliveryDate; + } + public void setBidWarrantyPeriod(String bidWarrantyPeriod) + { + this.bidWarrantyPeriod = bidWarrantyPeriod; + } + + public String getBidWarrantyPeriod() + { + return bidWarrantyPeriod; + } + public void setBidBidding(String bidBidding) + { + this.bidBidding = bidBidding; + } + + public String getBidBidding() + { + return bidBidding; + } + public void setBidEvaluationMethod(String bidEvaluationMethod) + { + this.bidEvaluationMethod = bidEvaluationMethod; + } + + public String getBidEvaluationMethod() + { + return bidEvaluationMethod; + } + public void setBidTechnicalRequire(String bidTechnicalRequire) + { + this.bidTechnicalRequire = bidTechnicalRequire; + } + + public String getBidTechnicalRequire() + { + return bidTechnicalRequire; + } + public void setBidPriceLinkage(String bidPriceLinkage) + { + this.bidPriceLinkage = bidPriceLinkage; + } + + public String getBidPriceLinkage() + { + return bidPriceLinkage; + } + public void setBidPaymentMethod(String bidPaymentMethod) + { + this.bidPaymentMethod = bidPaymentMethod; + } + + public String getBidPaymentMethod() + { + return bidPaymentMethod; + } + public void setBidOtherMatters(String bidOtherMatters) + { + this.bidOtherMatters = bidOtherMatters; + } + + public String getBidOtherMatters() + { + return bidOtherMatters; + } + public void setBidZbr(String bidZbr) + { + this.bidZbr = bidZbr; + } + + public String getBidZbr() + { + return bidZbr; + } + public void setBidJdr(String bidJdr) + { + this.bidJdr = bidJdr; + } + + public String getBidJdr() + { + return bidJdr; + } + public void setBidShr(String bidShr) + { + this.bidShr = bidShr; + } + + public String getBidShr() + { + return bidShr; + } + public void setBidApprovalStatus(String bidApprovalStatus) + { + this.bidApprovalStatus = bidApprovalStatus; + } + + public String getBidApprovalStatus() + { + return bidApprovalStatus; + } + public void setBidNotificationAward(String bidNotificationAward) + { + this.bidNotificationAward = bidNotificationAward; + } + + public String getBidNotificationAward() + { + return bidNotificationAward; + } + + public String getBidRemark() { + return bidRemark; + } + + public void setBidRemark(String bidRemark) { + this.bidRemark = bidRemark; + } + + public String getBidReturnRemark() { + return bidReturnRemark; + } + + public void setBidReturnRemark(String bidReturnRemark) { + this.bidReturnRemark = bidReturnRemark; + } + + public String getCreateName() { + return createName; + } + + public void setCreateName(String createName) { + this.createName = createName; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/domain/BidFile.java b/ruoyi-system/src/main/java/com/ruoyi/bid/domain/BidFile.java new file mode 100644 index 0000000..1a9792e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/domain/BidFile.java @@ -0,0 +1,113 @@ +package com.ruoyi.bid.domain; + +import com.ruoyi.common.core.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 投标信息-文件对象 bid_file + * + * @author ruoyi + * @date 2024-04-01 + */ +public class BidFile extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private String fileId; + + /** 文件名称 */ + private String fileName; + + /** MINIO文件名称 */ + private String fileBucketName; + + /** 文件地址 */ + private String fileUrl; + + /** 文件大小 */ + private Long fileSize; + + /** 上传时间 */ + private String fileTime; + + /** 类别 */ + private String fileType; + + /** */ + private String relationId; + + public void setFileId(String fileId) + { + this.fileId = fileId; + } + + public String getFileId() + { + return fileId; + } + public void setFileName(String fileName) + { + this.fileName = fileName; + } + + public String getFileName() + { + return fileName; + } + public String getFileBucketName() {return fileBucketName;} + + public void setFileBucketName(String fileBucketName) {this.fileBucketName = fileBucketName;} + public void setFileUrl(String fileUrl) + { + this.fileUrl = fileUrl; + } + + public String getFileUrl() + { + return fileUrl; + } + public void setFileSize(Long fileSize) + { + this.fileSize = fileSize; + } + + public Long getFileSize() + { + return fileSize; + } + public void setFileTime(String fileTime) + { + this.fileTime = fileTime; + } + + public String getFileTime() + { + return fileTime; + } + public String getFileType() {return fileType;} + + public void setFileType(String fileType) {this.fileType = fileType;} + public void setRelationId(String relationId) + { + this.relationId = relationId; + } + + public String getRelationId() + { + return relationId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("fileId", getFileId()) + .append("fileName", getFileName()) + .append("fileUrl", getFileUrl()) + .append("fileSize", getFileSize()) + .append("fileTime", getFileTime()) + .append("relationId", getRelationId()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidFileMapper.java b/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidFileMapper.java new file mode 100644 index 0000000..841aa29 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidFileMapper.java @@ -0,0 +1,46 @@ +package com.ruoyi.bid.mapper; + +import com.ruoyi.bid.domain.BidFile; + +import java.util.List; + +/** + * 投标信息-文件Mapper接口 + * + * @author ruoyi + * @date 2024-04-01 + */ +public interface BidFileMapper +{ + /** + * 查询投标信息-文件 + * + * @param fileId 投标信息-文件主键 + * @return 投标信息-文件 + */ + public BidFile selectBidFileByFileId(String fileId); + + /** + * 查询投标信息-文件列表 + * + * @param bidFile 投标信息-文件 + * @return 投标信息-文件集合 + */ + public List selectBidFileList(BidFile bidFile); + + /** + * 新增投标信息-文件 + * + * @param bidFile 投标信息-文件 + * @return 结果 + */ + public int insertBidFile(BidFile bidFile); + + /** + * 删除投标信息-文件 + * + * @param fileId 投标信息-文件主键 + * @return 结果 + */ + public int deleteBidFileByFileId(String fileId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java b/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java new file mode 100644 index 0000000..76eefa7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java @@ -0,0 +1,68 @@ +package com.ruoyi.bid.mapper; + +import java.util.List; +import com.ruoyi.bid.domain.Bid; + +/** + * 投标信息Mapper接口 + * + * @author ruoyi + * @date 2024-07-11 + */ +public interface BidMapper +{ + /** + * 查询投标信息 + * + * @param bidId 投标信息主键 + * @return 投标信息 + */ + public Bid selectBidByBidId(String bidId); + + /** + * 查询投标信息列表 + * + * @param bid 投标信息 + * @return 投标信息集合 + */ + public List selectBidList(Bid bid); + + /** + * 新增投标信息 + * + * @param bid 投标信息 + * @return 结果 + */ + public int insertBid(Bid bid); + + /** + * 修改投标信息 + * + * @param bid 投标信息 + * @return 结果 + */ + public int updateBid(Bid bid); + + /** + * 删除投标信息 + * + * @param bidId 投标信息主键 + * @return 结果 + */ + public int deleteBidByBidId(String bidId); + + /** + * 批量删除投标信息 + * + * @param bidIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBidByBidIds(String[] bidIds); + + /** + * 获取单据编号 + * @param type + * @return + */ + String getCode(String type); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidFileService.java b/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidFileService.java new file mode 100644 index 0000000..8f90ba0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidFileService.java @@ -0,0 +1,46 @@ +package com.ruoyi.bid.service; + +import com.ruoyi.bid.domain.BidFile; +import java.util.List; + +/** + * 投标信息-文件Service接口 + * + * @author ruoyi + * @date 2024-04-01 + */ +public interface IBidFileService +{ + + /** + * 查询报价单-文件 + * + * @param fileId 报价单-文件主键 + * @return 报价单-文件 + */ + public BidFile selectBidFileByFileId(String fileId); + + /** + * 查询报价单-文件列表 + * + * @param bidFile 报价单-文件 + * @return 报价单-文件集合 + */ + public List selectBidFileList(BidFile bidFile); + + /** + * 新增报价单-文件 + * + * @param bidFile 报价单-文件 + * @return 结果 + */ + public int insertBidFile(BidFile bidFile); + + /** + * 删除报价单-文件信息 + * + * @param fileId 报价单-文件主键 + * @return 结果 + */ + public int deleteBidFileByFileId(String fileId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java b/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java new file mode 100644 index 0000000..ec9f4e0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java @@ -0,0 +1,68 @@ +package com.ruoyi.bid.service; + +import java.util.List; +import com.ruoyi.bid.domain.Bid; + +/** + * 投标信息Service接口 + * + * @author ruoyi + * @date 2024-07-11 + */ +public interface IBidService +{ + /** + * 查询投标信息 + * + * @param bidId 投标信息主键 + * @return 投标信息 + */ + public Bid selectBidByBidId(String bidId); + + /** + * 查询投标信息列表 + * + * @param bid 投标信息 + * @return 投标信息集合 + */ + public List selectBidList(Bid bid); + + /** + * 新增投标信息 + * + * @param bid 投标信息 + * @return 结果 + */ + public int insertBid(Bid bid); + + /** + * 修改投标信息 + * + * @param bid 投标信息 + * @return 结果 + */ + public int updateBid(Bid bid); + + /** + * 批量删除投标信息 + * + * @param bidIds 需要删除的投标信息主键集合 + * @return 结果 + */ + public int deleteBidByBidIds(String[] bidIds); + + /** + * 删除投标信息信息 + * + * @param bidId 投标信息主键 + * @return 结果 + */ + public int deleteBidByBidId(String bidId); + + /** + * 获取单据编号 + * @param bjd + * @return + */ + String getCode(String type); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidFileServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidFileServiceImpl.java new file mode 100644 index 0000000..03c9081 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidFileServiceImpl.java @@ -0,0 +1,75 @@ +package com.ruoyi.bid.service.impl; + +import com.ruoyi.bid.domain.BidFile; +import com.ruoyi.bid.mapper.BidFileMapper; +import com.ruoyi.bid.service.IBidFileService; +import com.ruoyi.quot.domain.QuotFile; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 投标信息-文件Service业务层处理 + * + * @author ruoyi + * @date 2024-04-01 + */ +@Service +public class BidFileServiceImpl implements IBidFileService +{ + @Autowired + private BidFileMapper bidFileMapper; + + /** + * 查询报价单-文件 + * + * @param fileId 报价单-文件主键 + * @return 报价单-文件 + */ + @Override + public BidFile selectBidFileByFileId(String fileId) + { + return bidFileMapper.selectBidFileByFileId(fileId); + } + + + /** + * 查询报价单-文件列表 + * + * @param bidFile 报价单-文件 + * @return 报价单-文件 + */ + @Override + public List selectBidFileList(BidFile bidFile) + { + return bidFileMapper.selectBidFileList(bidFile); + } + + /** + * 新增报价单-文件 + * + * @param bidFile 报价单-文件 + * @return 结果 + */ + @Override + @Transactional + public int insertBidFile(BidFile bidFile) + { + return bidFileMapper.insertBidFile(bidFile); + } + + /** + * 删除报价单-文件信息 + * + * @param fileId 报价单-文件主键 + * @return 结果 + */ + @Override + @Transactional + public int deleteBidFileByFileId(String fileId) + { + return bidFileMapper.deleteBidFileByFileId(fileId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java new file mode 100644 index 0000000..20442e7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java @@ -0,0 +1,110 @@ +package com.ruoyi.bid.service.impl; + +import java.util.List; + +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.bid.mapper.BidMapper; +import com.ruoyi.bid.domain.Bid; +import com.ruoyi.bid.service.IBidService; + +/** + * 投标信息Service业务层处理 + * + * @author ruoyi + * @date 2024-07-11 + */ +@Service +public class BidServiceImpl implements IBidService +{ + @Autowired + private BidMapper bidMapper; + + /** + * 查询投标信息 + * + * @param bidId 投标信息主键 + * @return 投标信息 + */ + @Override + public Bid selectBidByBidId(String bidId) + { + return bidMapper.selectBidByBidId(bidId); + } + + /** + * 查询投标信息列表 + * + * @param bid 投标信息 + * @return 投标信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectBidList(Bid bid) + { + return bidMapper.selectBidList(bid); + } + + /** + * 新增投标信息 + * + * @param bid 投标信息 + * @return 结果 + */ + @Override + public int insertBid(Bid bid) + { + bid.setCreateTime(DateUtils.getNowDate()); + bid.setUpdateTime(DateUtils.getNowDate()); + return bidMapper.insertBid(bid); + } + + /** + * 修改投标信息 + * + * @param bid 投标信息 + * @return 结果 + */ + @Override + public int updateBid(Bid bid) + { + bid.setUpdateTime(DateUtils.getNowDate()); + return bidMapper.updateBid(bid); + } + + /** + * 批量删除投标信息 + * + * @param bidIds 需要删除的投标信息主键 + * @return 结果 + */ + @Override + public int deleteBidByBidIds(String[] bidIds) + { + return bidMapper.deleteBidByBidIds(bidIds); + } + + /** + * 删除投标信息信息 + * + * @param bidId 投标信息主键 + * @return 结果 + */ + @Override + public int deleteBidByBidId(String bidId) + { + return bidMapper.deleteBidByBidId(bidId); + } + + /** + * 获取单据编号 + * @param type + * @return + */ + @Override + public String getCode(String type) { + return bidMapper.getCode(type); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/bid/BidFileMapper.xml b/ruoyi-system/src/main/resources/mapper/bid/BidFileMapper.xml new file mode 100644 index 0000000..62e3a3a --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/bid/BidFileMapper.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + select file_id, file_name, file_bucket_name, file_url, file_size, file_time, file_type, relation_id from bid_file + + + + + + + + insert into bid_file + + file_id, + file_name, + file_bucket_name, + file_url, + file_size, + file_time, + file_type, + relation_id, + + + #{fileId}, + #{fileName}, + #{fileBucketName}, + #{fileUrl}, + #{fileSize}, + #{fileTime}, + #{fileType}, + #{relationId}, + + + + + delete from bid_file where file_id = #{fileId} + + diff --git a/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml b/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml new file mode 100644 index 0000000..83a68db --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml @@ -0,0 +1,303 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + left join sys_user u on u.user_name=a.create_by + left join sys_dept d on u.dept_id = d.dept_id + + + + select a.bid_id, a.bid_code,a.bid_salesman_code, a.bid_salesman_bm, a.bid_salesman_name, + a.bid_registration_number, a.bid_opening_date, + a.bid_online_quotation, a.bid_website, a.bid_tendering_unit_bm,a.bid_tendering_unit, a.bid_agency, + a.bid_project, a.bid_authorized_representative, a.bid_authorized_phone, + a.bid_file_payment_method, a.bid_payment_deviation, a.bid_copper_price_linkage, + a.bid_price_linkage_method, a.bid_other_require, a.bid_winning_amount, + a.bid_copper_cable_amount, a.bid_aluminum_cable_amount, a.bid_open_close, + a.bid_price_adjustment_notice, a.bid_validity_period, a.bid_tong_price, + a.bid_lv_price, a.bid_ds, a.bid_factory_price, a.bid_price, a.bid_business_settlement, + a.bid_bond, a.bid_winning_service_fee, a.bid_performance_bond, a.bid_delivery_date, + 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_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.update_by, a.update_time + from bid a + + + + + + + + + insert into bid + + bid_id, + bid_code, + bid_salesman_code, + bid_salesman_bm, + bid_salesman_name, + bid_registration_number, + bid_opening_date, + bid_online_quotation, + bid_website, + bid_tendering_unit_bm, + bid_tendering_unit, + bid_agency, + bid_project, + bid_authorized_representative, + bid_authorized_phone, + bid_file_payment_method, + bid_payment_deviation, + bid_copper_price_linkage, + bid_price_linkage_method, + bid_other_require, + bid_winning_amount, + bid_copper_cable_amount, + bid_aluminum_cable_amount, + bid_open_close, + bid_price_adjustment_notice, + bid_validity_period, + bid_tong_price, + bid_lv_price, + bid_ds, + bid_factory_price, + bid_price, + bid_business_settlement, + bid_bond, + bid_winning_service_fee, + bid_performance_bond, + bid_delivery_date, + bid_warranty_period, + bid_bidding, + bid_evaluation_method, + bid_technical_require, + bid_price_linkage, + bid_payment_method, + bid_other_matters, + bid_zbr, + bid_jdr, + bid_shr, + bid_approval_status, + bid_notification_award, + bid_remark, + bid_returnRemark, + + create_by, + create_time, + update_by, + update_time, + + + #{bidId}, + #{bidCode}, + #{bidSalesmanCode}, + #{bidSalesmanBm}, + #{bidSalesmanName}, + #{bidRegistrationNumber}, + #{bidOpeningDate}, + #{bidOnlineQuotation}, + #{bidWebsite}, + #{bidTenderingUnitBm}, + #{bidTenderingUnit}, + #{bidAgency}, + #{bidProject}, + #{bidAuthorizedRepresentative}, + #{bidAuthorizedPhone}, + #{bidFilePaymentMethod}, + #{bidPaymentDeviation}, + #{bidCopperPriceLinkage}, + #{bidPriceLinkageMethod}, + #{bidOtherRequire}, + #{bidWinningAmount}, + #{bidCopperCableAmount}, + #{bidAluminumCableAmount}, + #{bidOpenClose}, + #{bidPriceAdjustmentNotice}, + #{bidValidityPeriod}, + #{bidTongPrice}, + #{bidLvPrice}, + #{bidDs}, + #{bidFactoryPrice}, + #{bidPrice}, + #{bidBusinessSettlement}, + #{bidBond}, + #{bidWinningServiceFee}, + #{bidPerformanceBond}, + #{bidDeliveryDate}, + #{bidWarrantyPeriod}, + #{bidBidding}, + #{bidEvaluationMethod}, + #{bidTechnicalRequire}, + #{bidPriceLinkage}, + #{bidPaymentMethod}, + #{bidOtherMatters}, + #{bidZbr}, + #{bidJdr}, + #{bidShr}, + #{bidApprovalStatus}, + #{bidNotificationAward}, + #{bidRemark}, + #{bidReturnRemark}, + + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update bid + + bid_code = #{bidCode}, + bid_salesman_code = #{bidSalesmanCode}, + bid_salesman_bm = #{bidSalesmanBm}, + bid_salesman_name = #{bidSalesmanName}, + bid_registration_number = #{bidRegistrationNumber}, + bid_opening_date = #{bidOpeningDate}, + bid_online_quotation = #{bidOnlineQuotation}, + bid_website = #{bidWebsite}, + bid_tendering_unit_bm = #{bidTenderingUnitBm}, + bid_tendering_unit = #{bidTenderingUnit}, + bid_agency = #{bidAgency}, + bid_project = #{bidProject}, + bid_authorized_representative = #{bidAuthorizedRepresentative}, + bid_authorized_phone = #{bidAuthorizedPhone}, + bid_file_payment_method = #{bidFilePaymentMethod}, + bid_payment_deviation = #{bidPaymentDeviation}, + bid_copper_price_linkage = #{bidCopperPriceLinkage}, + bid_price_linkage_method = #{bidPriceLinkageMethod}, + bid_other_require = #{bidOtherRequire}, + bid_winning_amount = #{bidWinningAmount}, + bid_copper_cable_amount = #{bidCopperCableAmount}, + bid_aluminum_cable_amount = #{bidAluminumCableAmount}, + bid_open_close = #{bidOpenClose}, + bid_price_adjustment_notice = #{bidPriceAdjustmentNotice}, + bid_validity_period = #{bidValidityPeriod}, + bid_tong_price = #{bidTongPrice}, + bid_lv_price = #{bidLvPrice}, + bid_ds = #{bidDs}, + bid_factory_price = #{bidFactoryPrice}, + bid_price = #{bidPrice}, + bid_business_settlement = #{bidBusinessSettlement}, + bid_bond = #{bidBond}, + bid_winning_service_fee = #{bidWinningServiceFee}, + bid_performance_bond = #{bidPerformanceBond}, + bid_delivery_date = #{bidDeliveryDate}, + bid_warranty_period = #{bidWarrantyPeriod}, + bid_bidding = #{bidBidding}, + bid_evaluation_method = #{bidEvaluationMethod}, + bid_technical_require = #{bidTechnicalRequire}, + bid_price_linkage = #{bidPriceLinkage}, + bid_payment_method = #{bidPaymentMethod}, + bid_other_matters = #{bidOtherMatters}, + bid_zbr = #{bidZbr}, + bid_jdr = #{bidJdr}, + bid_shr = #{bidShr}, + bid_approval_status = #{bidApprovalStatus}, + bid_notification_award = #{bidNotificationAward}, + bid_remark = #{bidRemark}, + bid_returnRemark = #{bidReturnRemark}, + + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where bid_id = #{bidId} + + + + delete from bid where bid_id = #{bidId} + + + + delete from bid where bid_id in + + #{bidId} + + + + + diff --git a/ruoyi-ui/src/api/bid/bid.js b/ruoyi-ui/src/api/bid/bid.js new file mode 100644 index 0000000..ce9ed21 --- /dev/null +++ b/ruoyi-ui/src/api/bid/bid.js @@ -0,0 +1,71 @@ +import request from '@/utils/request' + +// 查询投标信息列表 +export function listBid(query) { + return request({ + url: '/bid/bid/list', + method: 'get', + params: query + }) +} + +// 查询投标信息详细 +export function getBid(bidId) { + return request({ + url: '/bid/bid/' + bidId, + method: 'get' + }) +} + +// 新增投标信息 +export function addBid(data) { + return request({ + url: '/bid/bid', + method: 'post', + data: data + }) +} + +// 修改投标信息 +export function updateBid(data) { + return request({ + url: '/bid/bid', + method: 'put', + data: data + }) +} + +// 查询附件列表 +export function bidFileList(query) { + return request({ + url: '/bid/bid/bidFileList', + method: 'get', + params: query + }) +} + +//删除附件 +export function bidFileDelete(fileId) { + return request({ + url: '/bid/bid/bidFileDelete', + method: 'post', + params: {fileId:fileId} + }) +} + +//提交OA事业部经理、店长/投标办按钮 +export function commitTbxx(data) { + return request({ + url: '/bid/bid/commitTbxx', + method: 'post', + data: data + }) +} + +// 删除投标信息 +export function delBid(bidId) { + return request({ + url: '/bid/bid/' + bidId, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/bid/bid/index.vue b/ruoyi-ui/src/views/bid/bid/index.vue new file mode 100644 index 0000000..25822d4 --- /dev/null +++ b/ruoyi-ui/src/views/bid/bid/index.vue @@ -0,0 +1,916 @@ + + + diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index cf1325b..72a2979 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -160,7 +160,7 @@ - + diff --git a/ruoyi-ui/src/views/redBook/quots.vue b/ruoyi-ui/src/views/redBook/quots.vue index 3bc5c06..ff77f46 100644 --- a/ruoyi-ui/src/views/redBook/quots.vue +++ b/ruoyi-ui/src/views/redBook/quots.vue @@ -37,7 +37,7 @@ - +