Browse Source

需求更新

zt 2 days ago
parent
commit
462615acd1

+ 7 - 1
src/views/workflow/components/myProcess/applyAgainBuyingMore.vue

@@ -225,7 +225,13 @@ export default {
     methods: {
         handlePictureRemove(file, fileUrlList) {
             var index = fileUrlList.indexOf(file)
-            fileUrlList.splice(index, 1)
+            this.$nextTick((e) => {
+                this.formData.fileUrlList.splice(index, 1)
+            })
+            const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
+            this.formData.fileUrlList = []
+            this.formData.fileUrlList = formDataFileUrlList
+            this.$forceUpdate()
         },
         uploadFile: function(param) {
             const _this = this

+ 9 - 1
src/views/workflow/components/myProcess/applyAgainCheckIn.vue

@@ -224,8 +224,16 @@ export default {
     },
     methods: {
         handlePictureRemove(file, fileUrlList) {
+            // var index = fileUrlList.indexOf(file)
+            // fileUrlList.splice(index, 1)
             var index = fileUrlList.indexOf(file)
-            fileUrlList.splice(index, 1)
+            this.$nextTick((e) => {
+                this.formData.fileUrlList.splice(index, 1)
+            })
+            const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
+            this.formData.fileUrlList = []
+            this.formData.fileUrlList = formDataFileUrlList
+            this.$forceUpdate()
         },
         uploadFile: function(param) {
             const _this = this

+ 7 - 1
src/views/workflow/components/myProcess/applyAgainContract.vue

@@ -225,7 +225,13 @@ export default {
     methods: {
         handlePictureRemove(file, fileUrlList) {
             var index = fileUrlList.indexOf(file)
-            fileUrlList.splice(index, 1)
+            this.$nextTick((e) => {
+                this.formData.fileUrlList.splice(index, 1)
+            })
+            const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
+            this.formData.fileUrlList = []
+            this.formData.fileUrlList = formDataFileUrlList
+            this.$forceUpdate()
         },
         uploadFile: function(param) {
             const _this = this

+ 7 - 1
src/views/workflow/components/myProcess/applyAgainFinance.vue

@@ -225,7 +225,13 @@ export default {
     methods: {
         handlePictureRemove(file, fileUrlList) {
             var index = fileUrlList.indexOf(file)
-            fileUrlList.splice(index, 1)
+            this.$nextTick((e) => {
+                this.formData.fileUrlList.splice(index, 1)
+            })
+            const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
+            this.formData.fileUrlList = []
+            this.formData.fileUrlList = formDataFileUrlList
+            this.$forceUpdate()
         },
         uploadFile: function(param) {
             const _this = this

+ 9 - 1
src/views/workflow/components/myProcess/applyAgainInvoiceRed.vue

@@ -224,8 +224,16 @@ export default {
     },
     methods: {
         handlePictureRemove(file, fileUrlList) {
+            // var index = fileUrlList.indexOf(file)
+            // fileUrlList.splice(index, 1)
             var index = fileUrlList.indexOf(file)
-            fileUrlList.splice(index, 1)
+            this.$nextTick((e) => {
+                this.formData.fileUrlList.splice(index, 1)
+            })
+            const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
+            this.formData.fileUrlList = []
+            this.formData.fileUrlList = formDataFileUrlList
+            this.$forceUpdate()
         },
         uploadFile: function(param) {
             const _this = this

+ 7 - 1
src/views/workflow/components/myProcess/applyAgainReceivablesAdjust.vue

@@ -225,7 +225,13 @@ export default {
     methods: {
         handlePictureRemove(file, fileUrlList) {
             var index = fileUrlList.indexOf(file)
-            fileUrlList.splice(index, 1)
+            this.$nextTick((e) => {
+                this.formData.fileUrlList.splice(index, 1)
+            })
+            const formDataFileUrlList = JSON.parse(JSON.stringify(this.formData.fileUrlList))
+            this.formData.fileUrlList = []
+            this.formData.fileUrlList = formDataFileUrlList
+            this.$forceUpdate()
         },
         uploadFile: function(param) {
             const _this = this