|
@@ -1193,23 +1193,25 @@
|
|
|
// this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
// this.inputForm.cwFileInfoList = data
|
|
|
// })
|
|
|
- if (this.commonJS.isNotEmpty(this.$refs.signatureFile.getDataList())) {
|
|
|
- this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
- this.inputForm.signatureFileList = data
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (this.commonJS.isNotEmpty(this.$refs.signatureFile.getDataList())) {
|
|
|
+ // this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
+ // this.inputForm.signatureFileList = data
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ this.inputForm.signatureFileList = this.$refs.signatureFile.getDataList()
|
|
|
// 列表处理
|
|
|
this.inputForm.details = []
|
|
|
this.inputForm.detailFor1010.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1020.forEach(item => { this.inputForm.details.push(item) })
|
|
|
this.inputForm.detailFor1030.forEach(item => { this.inputForm.details.push(item) })
|
|
|
- this.reportReviewService.save(this.inputForm)
|
|
|
- this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
|
- // callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
- this.close()
|
|
|
- this.loading = false
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.reportReviewService.save(this.inputForm).then(() => {
|
|
|
+ this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
|
+ // callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
+ this.close()
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
})
|
|
|
return
|
|
|
} else if (status === 'start') {
|
|
@@ -1246,9 +1248,10 @@
|
|
|
// this.$refs.archiveFile.getDataList().then((data) => {
|
|
|
// this.inputForm.cwFileInfoList = data
|
|
|
// })
|
|
|
- this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
- this.inputForm.signatureFileList = data
|
|
|
- })
|
|
|
+ // this.$refs.signatureFile.getDataList().then((data) => {
|
|
|
+ // this.inputForm.signatureFileList = data
|
|
|
+ // })
|
|
|
+ this.inputForm.signatureFileList = this.$refs.signatureFile.getDataList()
|
|
|
this.projectReportService.saveForm(this.inputForm).then(({data}) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
this.loading = false
|