Pārlūkot izejas kodu

多条凭证上传-领样页面

朱鑫波 2 gadi atpakaļ
vecāks
revīzija
1286729966

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 946 - 901
src/views/goodsManagement/samplingList.vue


+ 6 - 2
src/views/goodsManagement/setSampleCollection.vue

@@ -432,7 +432,7 @@
         v-if="workVisible"
       /> -->
 
-      <uploadCvImageVue ref="fileUpload" :multiple="false" />
+      <uploadCvImageVue ref="fileUpload" :multiple="true" />
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="workUpload" :loading="workLoading"
           >确 定</el-button
@@ -442,6 +442,7 @@
             workLoading = false;
             workVisible = false;
             noticeContent = '';
+            $refs.fileUpload.fileList = []
           "
           >取 消</el-button
         >
@@ -660,11 +661,14 @@ export default {
       var index = this.typeList.findIndex((item) => {
         return this.ids == item.itemId + "-" + item.promoterId;
       });
-      this.typeList[index].sampleVoucher = this.$refs.fileUpload.fileList[0].url
+      this.typeList[index].sampleVoucher = this.$refs.fileUpload.fileList.map(item=>{
+        return item.url
+      }).join()
       // console.log(index);
       // console.log(this.$refs.fileUpload.fileList)
       // console.log(this.typeList)
       this.workVisible = false
+      this.$refs.fileUpload.fileList = []
     },
     handleSelectionChange(selection) {
       this.okIds = selection.map((item) => item.itemId + "-" + item.promoterId);