From a759feebc4f72a3ff3b5ba5771f9367030e4eadc Mon Sep 17 00:00:00 2001 From: rq Date: Sun, 17 Aug 2025 23:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=90=88=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/srm/srmSupplier.js | 2 + .../srmSupplier/com_srmSupplier_Contract.vue | 23 +- .../srmSupplier/supplierContractRequest.vue | 718 ++++++++++++++++++ 3 files changed, 742 insertions(+), 1 deletion(-) create mode 100644 src/views/modules/srmSupplier/supplierContractRequest.vue diff --git a/src/api/srm/srmSupplier.js b/src/api/srm/srmSupplier.js index c0a8030..3ccfa8b 100644 --- a/src/api/srm/srmSupplier.js +++ b/src/api/srm/srmSupplier.js @@ -10,3 +10,5 @@ export const confirmRequest= (data) => createAPI(`/srmSupplier/confirmRequest`,' export const createNewSupplierContract = data => createAPI('/srmSupplier/createNewSupplierContract', 'POST', data) export const getNewSupplierContract= (data) => createAPI(`/srmSupplier/getNewSupplierContract`,'post',data) export const deleteSupplierContract= (data) => createAPI(`/srmSupplier/deleteSupplierContract`,'post',data) +export const getContractRequestList= (data) => createAPI(`/srmSupplier/getContractRequestList`,'post',data) +export const closeContractRequestList= (data) => createAPI(`/srmSupplier/closeContractRequestList`,'post',data) diff --git a/src/views/modules/srmSupplier/com_srmSupplier_Contract.vue b/src/views/modules/srmSupplier/com_srmSupplier_Contract.vue index a3c2214..1e54bc8 100644 --- a/src/views/modules/srmSupplier/com_srmSupplier_Contract.vue +++ b/src/views/modules/srmSupplier/com_srmSupplier_Contract.vue @@ -34,7 +34,7 @@ fixed="right" label="操作"> @@ -224,6 +224,7 @@ export default { contractName:'', contractDetail:'', createdBy:'', + renewflag:'', }, contractModelFlag:false, visible:false, @@ -425,6 +426,7 @@ export default { contractNo:'', contractName:'', contractDetail:'', + renewflag:'N', createBy:this.$store.state.user.name, } this.fileList=[] @@ -532,8 +534,27 @@ export default { }) }, + renewModew(row){ + this.contractModelData=JSON.parse(JSON.stringify(row)); + this.contractModelData.renewflag='Y' + let params={ + orderRef1:row.site, + orderRef2:row.contractId, + orderReftype:'SrmSupplierContract', + } + queryOss(params).then(({data})=>{ + if (data && data.code === 0){ + this.fileList = data.rows; + }else { + this.$message.warning(data.msg); + } + this.queryLoading = false; + }) + this.contractModelFlag=true; + }, editModel(row){ this.contractModelData=JSON.parse(JSON.stringify(row)); + this.contractModelData.renewflag='N' let params={ orderRef1:row.site, orderRef2:row.contractId, diff --git a/src/views/modules/srmSupplier/supplierContractRequest.vue b/src/views/modules/srmSupplier/supplierContractRequest.vue new file mode 100644 index 0000000..54b4e2b --- /dev/null +++ b/src/views/modules/srmSupplier/supplierContractRequest.vue @@ -0,0 +1,718 @@ + + + + + +