|
@@ -297,6 +297,7 @@
|
|
|
customerName: ''
|
|
|
},
|
|
|
inputForm: {
|
|
|
+ filedType: '',
|
|
|
contractNo: '',
|
|
|
contractName: '',
|
|
|
payerSubject: '',
|
|
@@ -482,7 +483,9 @@
|
|
|
// console.log('data1.22222')
|
|
|
// console.log('data1.data.contractProperList', data1.data.contractProperList)
|
|
|
this.$refs.uploadFile.clearUpload()
|
|
|
+ this.$refs.archiveFile.clearUpload()
|
|
|
this.$refs.uploadFile.newUpload(method, data1.data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
|
+ this.$refs.archiveFile.newUpload(method, data1.data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
|
this.contractFileService.findById(this.inputForm.id).then(data2 => {
|
|
|
this.inputForm.contractProperList = data2.data.contractProperList
|
|
|
this.inputForm.contractInfoList = data2.data.contractInfoList
|
|
@@ -491,10 +494,12 @@
|
|
|
data3.data.contractProperList = this.inputForm.contractProperList
|
|
|
data3.data.contractInfoList = this.inputForm.contractInfoList
|
|
|
if (data3.data.filedType === '2' || data3.data.filedType === '5') {
|
|
|
+ this.$refs.archiveFile.clearUpload()
|
|
|
// this.$refs.uploadFile.clearUpload()
|
|
|
// this.$refs.uploadFile.newUpload(method, data3.data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
|
this.$refs.archiveFile.newUpload(method, data3.data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
|
} else {
|
|
|
+ this.$refs.archiveFile.clearUpload()
|
|
|
// this.$refs.uploadFile.clearUpload()
|
|
|
// this.$refs.uploadFile.newUpload(method, data3.data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
|
this.$refs.archiveFile.newUpload(method, data3.data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
@@ -507,9 +512,16 @@
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
|
- // console.log('进来了22')
|
|
|
+ console.log('进来了22')
|
|
|
+ console.log('this.inputForm.filedType', this.inputForm.filedType)
|
|
|
this.$refs.uploadFile.clearUpload()
|
|
|
- this.$refs.uploadFile.newUpload('view', data1.data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
|
+ this.$refs.archiveFile.clearUpload()
|
|
|
+ if (this.inputForm.filedType === undefined) {
|
|
|
+ this.$refs.archiveFile.newUpload('view', data1.data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
|
+ } else {
|
|
|
+ this.$refs.archiveFile.newUpload(method, data1.data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
|
+ }
|
|
|
+ this.$refs.uploadFile.newUpload(method, data1.data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
|
this.saveData(data1.data, method)
|
|
|
if (this.formReadOnly) {
|
|
|
method = 'view'
|
|
@@ -607,14 +619,14 @@
|
|
|
// 合同登记归档暂存
|
|
|
if (this.status === 'startAndHoldFiled') {
|
|
|
this.inputForm.filedType = '1'
|
|
|
- this.inputForm.contractInfoId = this.businessId
|
|
|
+ // this.inputForm.contractInfoId = this.businessId
|
|
|
this.inputForm.contractInfoList = this.$refs.archiveFile.getDataList()
|
|
|
// this.inputForm.contractInfoList = this.$refs.uploadFile.getDataList()
|
|
|
this.contractFileService.save(this.inputForm)
|
|
|
}
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.loading = false
|
|
|
- this.businessId = ''
|
|
|
+ // this.businessId = ''
|
|
|
callback()
|
|
|
},
|
|
|
// 送审
|