|
|
@@ -998,12 +998,29 @@
|
|
|
: this.document.enterpriseId,
|
|
|
electronicDocumentUrl: this.fileUrl,
|
|
|
})
|
|
|
- .then(() => {
|
|
|
+ .then((res) => {
|
|
|
this.loading.saveDocument = false
|
|
|
this.$message.success('保存成功!')
|
|
|
this.documentDialogVisible = false
|
|
|
- this.activeView = ''
|
|
|
+ // this.documentDialogVisible = false
|
|
|
+ // this.activeView = ''
|
|
|
this.getlist()
|
|
|
+ if (res.value) {
|
|
|
+ this.handleEditDocument({
|
|
|
+ ...this.document,
|
|
|
+ id: res.value,
|
|
|
+ projectId: this.project.projectId,
|
|
|
+ costProjectDocumentFiles:
|
|
|
+ this.costDocumentTemplateFiles || [],
|
|
|
+ enterpriseId: this.isMultipleMode
|
|
|
+ ? this.document.enterpriseId.join(',')
|
|
|
+ : this.document.enterpriseId,
|
|
|
+ electronicDocumentUrl: this.fileUrl,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.documentDialogVisible = false
|
|
|
+ this.activeView = ''
|
|
|
+ }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.loading.saveDocument = false
|