diff --git a/src/api/project/toolingInfo.js b/src/api/project/toolingInfo.js
index 582ef93..de347ac 100644
--- a/src/api/project/toolingInfo.js
+++ b/src/api/project/toolingInfo.js
@@ -11,3 +11,4 @@ export const searchToolApplyHeader= data => createAPI('plm/toolingApplication/se
export const searchToolApplyDetail= data => createAPI('plm/toolingApplication/searchToolApplyDetail','post',data)
export const comfirmToolApply= data => createAPI('plm/toolingApplication/comfirmToolApply','post',data)
export const cancelToolApply= data => createAPI('plm/toolingApplication/cancelToolApply','post',data)
+export const saveHeaderMessage= data => createAPI('plm/toolingApplication/saveHeaderMessage','post',data)
diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue
index c83917e..50f5cde 100644
--- a/src/views/modules/tooling/searchToolApply.vue
+++ b/src/views/modules/tooling/searchToolApply.vue
@@ -171,9 +171,98 @@
-
+
+
+ 申请信息录入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -191,6 +280,7 @@
searchToolApplyDetail,
comfirmToolApply,
cancelToolApply,
+ saveHeaderMessage,
} from "@/api/project/toolingInfo.js"
import {
deleteProjectFile,
@@ -220,7 +310,18 @@
startDate:'',
endDate:'',
},
- currentRow:'',
+ modelData:{
+ site:'',
+ applyNo:'',
+ prNo:'',
+ remark1:'',
+ poNo:'',
+ supplierName:'',
+ allCost:'',
+ remark2:'',
+ },
+ modelFlag:false,
+ currentRow:{},
height: 200,
dataList1:[],
detailList:[],
@@ -895,8 +996,55 @@
this.search()
},
-
-
+ openMassageModel(){
+ if(Object.keys(this.currentRow).length === 0){
+ this.$alert('未选择记录!', '错误', {
+ confirmButtonText: '确定'
+ })
+ return false;
+ }
+ this.modalData={
+ 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,
+ }
+ this.modelFlag=true
+ },
+ saveHeaderMessage(){
+ this.$confirm('确定是否保存','提示',{
+ confirmButtonText:'确定',
+ cancelButtonText:'取消',
+ type:'warning'
+ }).then(()=>{
+ saveHeaderMessage(this.modalData).then(({data}) => {
+ if (data && data.code == 0) {
+ this.modelFlag=false;
+ this.currentRow.prNo=this.modalData.prNo
+ this.currentRow.remark1=this.modalData.remark1
+ this.currentRow.poNo=this.modalData.poNo
+ this.currentRow.supplierName=this.modalData.supplierName
+ this.currentRow.allCost=this.modalData.allCost
+ this.currentRow.remark2=this.modalData.remark2
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {
+ }
+ })
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ })
+ },
},
activated() {