Browse Source

合同登记

sangwenwei 1 year ago
parent
commit
faa34e9de3
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/views/jy/workContractInfo/WorkContractForm.vue

+ 7 - 2
src/views/jy/workContractInfo/WorkContractForm.vue

@@ -553,11 +553,16 @@
 					// this.$refs.archiveFile.clearUpload()
 					if (this.commonJS.isNotEmpty(this.inputForm.id)){
 						this.contractService.findContractById(this.inputForm.id).then((data) => {
+							console.log('1',data)
 							this.inputForm = this.recover(this.inputForm, data)
 							this.inputForm.contractNo=data.no
 							this.inputForm.contractTypes=data.contractTypeList
 							if(data.contractType){
 								this.showType(data.contractType)
+							}else {
+								if (data.contractTypeFirst){
+									this.inputForm.contractTypes=data.contractTypeFirst
+								}
 							}
 							if (this.commonJS.isNotEmpty(data.primaryLinkman)){
 								this.workClientService.findListByName(data.primaryLinkman).then((da)=>{
@@ -698,8 +703,8 @@
 					}
 					wait().then(() => {
 						if (_num === 0) {
-							this.inputForm.cwWorkClientContactDTOList.push({number: list.number, name: list.name})
-							this.$refs.contactTable.insertAt({name: list.name,id: list.id,number: list.number})
+							this.inputForm.cwWorkClientContactDTOList.push({no: list.number, name: list.name})
+							this.$refs.contactTable.insertAt({name: list.name,id: list.id,no: list.number})
 							this.tableKeyClient = Math.random()
 						}
 					})