From 663dbe4ddca1fa409e6acbc1f77d924c161b0c39 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 09 六月 2025 17:04:50 +0800
Subject: [PATCH] 提交一把订单

---
 company/src/components/business/OperaApplyChangeUnitCheckWindow.vue |   38 ++++++++++++++++++++++++++------------
 1 files changed, 26 insertions(+), 12 deletions(-)

diff --git a/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue b/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue
index 08a4444..bcae577 100644
--- a/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue
+++ b/company/src/components/business/OperaApplyChangeUnitCheckWindow.vue
@@ -6,7 +6,7 @@
         :confirm-working="isWorking"
         @confirm="confirm"
     >
-        <!--    閫�鍥炴姇淇�    -->
+        <!--    閫�鍥炵敵璇�    -->
             <div v-if="visible1==true"  class="form">
                 <div class="form_item">
                     <div class="form_item_label"><span>*</span>濉啓閫�鍥炶鏄庯細</div>
@@ -15,7 +15,7 @@
                     </div>
                 </div>
             </div>
-        <!--    涓婁紶淇濋櫓鍗�    -->
+        <!--    涓婁紶鎵瑰崟    -->
             <div v-if="visible3==true" class="form">
                 <div class="form_item">
                     <div class="form_item_label">瀹㈡埛鏈熸湜鎵瑰崟鐢熸晥璧锋湡锛�</div>
@@ -54,7 +54,7 @@
                 <div class="form_item">
                     <div class="form_item_label">涓婁紶鎵瑰崟锛�</div>
                     <div class="form_item_val">
-                      <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" />
+                      <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :limit="99" :fileList="form.fileList1" @remove="removePIDAN" @uploadSuccess="baoxianFileUploaded" />
                     </div>
                 </div>
             </div>
@@ -73,7 +73,7 @@
                 <div class="form_item">
                     <div class="form_item_label"><span>*</span>涓婁紶鎵瑰崟锛�</div>
                     <div class="form_item_val">
-                      <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" />
+                      <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :limit="99" @remove="removeEditPiDan" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" />
                     </div>
                 </div>
                 <div class="form_item">
@@ -135,8 +135,8 @@
           editValidCode: '',
           applyStartTime:null,
          validCode:null,
-          pidanFile:null,
-         editPidanFile:null,
+          pidanFile:[],
+         editPidanFile:[],
           fileList1: [],
           fileList2: [],
           selectRadio:0
@@ -166,8 +166,8 @@
          editValidCode: '',
          applyStartTime:null,
          validCode:null,
-         pidanFile:null,
-         editPidanFile:null,
+         pidanFile:[],
+         editPidanFile:[],
          fileList1: [],
          fileList2: [],
          selectRadio:0
@@ -219,11 +219,25 @@
        }
     },
     baoxianFileUploaded(data){
-      this.form.pidanFile=data
+      this.form.pidanFile.push(data)
     },
+      removePIDAN(e) {
+          this.form.pidanFile.forEach((item, index) => {
+              if (item.imgaddr === e) {
+                  this.form.pidanFile.splice(index, 1)
+              }
+          })
+      },
     editBaoxianFileUploaded(data){
-      this.form.editPidanFile=data
+      this.form.editPidanFile.push(data)
     },
+      removeEditPiDan(imgaddr) {
+          this.form.editPidanFile.forEach((item, index) => {
+              if (imgaddr === item.imgaddr) {
+                  this.form.editPidanFile.splice(index, 1)
+              }
+          })
+      },
     backDo(){
       this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�')
           .then(() => {
@@ -254,7 +268,7 @@
       this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�')
           .then(() => {
             this.isWorking = true
-            uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile})
+            uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFileList:this.form.pidanFile})
                 .then(response => {
                   this.visible = false
                   this.$emit('success')
@@ -268,7 +282,7 @@
       this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�')
           .then(() => {
             this.isWorking = true
-            editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile})
+            editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFileList:this.form.editPidanFile})
                 .then(response => {
                   this.visible = false
                   this.$emit('success')

--
Gitblit v1.9.3