From 283bcd639b988b11ec9c86c1ab82bfdc5176c822 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Mon, 21 Oct 2024 18:06:16 +0800 Subject: [PATCH] plm BMM --- src/views/modules/tooling/searchToolApply.vue | 294 +++++++++++++----- 1 file changed, 215 insertions(+), 79 deletions(-) diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue index d484e4b..1eedbeb 100644 --- a/src/views/modules/tooling/searchToolApply.vue +++ b/src/views/modules/tooling/searchToolApply.vue @@ -142,7 +142,7 @@ - 申请信息录入 + @@ -248,42 +248,90 @@ v-model="dataForm.remark"/> -
- - - - - -
+ + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{'保存'}} {{'取消'}} @@ -346,42 +394,90 @@ v-model="dataForm.remark"/> -
- - - - - -
+ + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{'取消'}} @@ -502,6 +598,7 @@ visible:false, fileContentList: [], activeName: 'detail', + activeModelName: 'detail', searchData:{ page: 1, limit: 100, @@ -1498,6 +1595,7 @@ userName: this.$store.state.user.name, nodeId: row.nodeId } + this.openModelMessage() searchProjectToolApplyDetail({ site: row.site, applyNo: row.applyNo,}).then(({data}) => { if (data.code == 0) { @@ -1533,6 +1631,7 @@ userName: this.$store.state.user.name, nodeId: row.nodeId } + this.openModelMessage() searchProjectToolApplyDetail({ site: row.site, applyNo: row.applyNo,}).then(({data}) => { if (data.code == 0) { @@ -1657,6 +1756,20 @@ this.pageIndex = val this.search() }, + openModelMessage(){ + + this.modelData={ + site:this.currentRow.site, + applyNo:this.currentRow.applyNo, + prNo:this.currentRow.prNo, + remark1:this.currentRow.remark1, + poNo:this.currentRow.poNo, + supplierName:this.currentRow.supplierName, + allCost:this.currentRow.allCost, + remark2:this.currentRow.remark2, + } + + }, openMassageModel(){ if(Object.keys(this.currentRow).length === 0){ @@ -1709,12 +1822,6 @@ this.currentRow.totalCost=this.modelData.totalCost this.currentRow.remark2=this.modelData.remark2 - this.currentRow2.prNo=this.modelData.prNo - this.currentRow2.remark1=this.modelData.remark1 - this.currentRow2.poNo=this.modelData.poNo - this.currentRow2.supplierName=this.modelData.supplierName - this.currentRow2.allCost=this.modelData.allCost - this.currentRow2.remark2=this.modelData.remark2 this.$message({ message: '操作成功', type: 'success', @@ -1730,7 +1837,34 @@ }) }) }, + saveHeaderMessage2(){ + saveProjectHeaderMessage(this.modelData).then(({data}) => { + if (data && data.code == 0) { + this.modelFlag=false; + this.currentRow.prNo=this.modelData.prNo + this.currentRow.remark1=this.modelData.remark1 + this.currentRow.poNo=this.modelData.poNo + this.currentRow.supplierName=this.modelData.supplierName + this.currentRow.allCost=this.modelData.allCost + this.currentRow.totalCost=this.modelData.totalCost + this.currentRow.remark2=this.modelData.remark2 + + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + } + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + + }, // 同意提交 agreeSubmit () { this.$confirm(`是否确认提交?`, '提示', { @@ -1769,6 +1903,7 @@ this.dataForm.detailList = this.toolData submitChange(this.dataForm).then(({data}) => { if (data && data.code === 0) { + this.saveHeaderMessage2() for (let i = 0; i { if (data && data.code === 0) { + this.saveHeaderMessage2() for (let i = 0; i