|
@@ -559,7 +559,7 @@
|
|
console.log('1',data.contractTypeList)
|
|
console.log('1',data.contractTypeList)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm.contractNo=data.no
|
|
this.inputForm.contractNo=data.no
|
|
- this.inputForm.contractTypes=data.contractTypeList
|
|
|
|
|
|
+ this.inputForm.contractTypes=data.contractTypes
|
|
this.inputForm.cwWorkClientContactDTOList=data.cwWorkClientContactDTOList
|
|
this.inputForm.cwWorkClientContactDTOList=data.cwWorkClientContactDTOList
|
|
if(data.contractType){
|
|
if(data.contractType){
|
|
this.showType(data.contractType)
|
|
this.showType(data.contractType)
|
|
@@ -959,7 +959,9 @@
|
|
// 暂存
|
|
// 暂存
|
|
saveForm (callback) {
|
|
saveForm (callback) {
|
|
this.loading = true
|
|
this.loading = true
|
|
|
|
+ console.log('tj',this.inputForm)
|
|
this.inputForm.filedType = '1'
|
|
this.inputForm.filedType = '1'
|
|
|
|
+ this.inputForm.workAttachmentList = this.$refs.uploadComponent.getDataList()
|
|
this.contractService.save(this.inputForm).then((data) => {
|
|
this.contractService.save(this.inputForm).then((data) => {
|
|
this.loading = false
|
|
this.loading = false
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
@@ -1076,7 +1078,7 @@
|
|
}else {
|
|
}else {
|
|
this.inputForm.filedType = '2'
|
|
this.inputForm.filedType = '2'
|
|
}
|
|
}
|
|
- this.inputForm.contractTypes=[]
|
|
|
|
|
|
+ // this.inputForm.contractTypes=[]
|
|
this.contractService.saveContract(this.inputForm).then((data) => {
|
|
this.contractService.saveContract(this.inputForm).then((data) => {
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|