|
@@ -497,7 +497,7 @@
|
|
if (this.commonJS.isEmpty(this.inputForm.officeId)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.officeId)) {
|
|
this.inputForm.officeId = JSON.parse(localStorage.getItem('user')).officeDTO.id
|
|
this.inputForm.officeId = JSON.parse(localStorage.getItem('user')).officeDTO.id
|
|
}
|
|
}
|
|
- if (this.formReadOnly) {
|
|
|
|
|
|
+ if (this.status === 'audit' || this.status === 'taskFormDetail') {
|
|
this.method = 'view'
|
|
this.method = 'view'
|
|
}
|
|
}
|
|
this.$refs.uploadComponent.newUpload(this.method, this.inputForm.workAttachmentDtoList, 'cw_project_records', null, null, null, null, false)
|
|
this.$refs.uploadComponent.newUpload(this.method, this.inputForm.workAttachmentDtoList, 'cw_project_records', null, null, null, null, false)
|
|
@@ -758,10 +758,11 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getContract (row) {
|
|
getContract (row) {
|
|
|
|
+ console.log('111')
|
|
// 首先删除之前合同与被服务单位的关联(委托方联系人)
|
|
// 首先删除之前合同与被服务单位的关联(委托方联系人)
|
|
let _this = this
|
|
let _this = this
|
|
const waitDelClient = function () {
|
|
const waitDelClient = function () {
|
|
- return new Promise((resolve, reject) => {
|
|
|
|
|
|
+ return new Promise(async (resolve, reject) => {
|
|
if (_this.commonJS.isNotEmpty(_this.inputForm.contractId)) {
|
|
if (_this.commonJS.isNotEmpty(_this.inputForm.contractId)) {
|
|
// 根据合同id查询合同信息
|
|
// 根据合同id查询合同信息
|
|
_this.contractInfoService.findById(_this.inputForm.contractId).then(({data}) => {
|
|
_this.contractInfoService.findById(_this.inputForm.contractId).then(({data}) => {
|
|
@@ -774,14 +775,22 @@
|
|
if (item.no === client.data.no) {
|
|
if (item.no === client.data.no) {
|
|
_this.$refs.clientTable.remove(item)
|
|
_this.$refs.clientTable.remove(item)
|
|
_this.inputForm.cwProjectClientInfoDTOList.splice(index, 1)
|
|
_this.inputForm.cwProjectClientInfoDTOList.splice(index, 1)
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ resolve()
|
|
|
|
+ }, 100)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ resolve()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ resolve()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ } else {
|
|
|
|
+ resolve()
|
|
}
|
|
}
|
|
- resolve()
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
waitDelClient().then(() => {
|
|
waitDelClient().then(() => {
|