Quellcode durchsuchen

面损表-附件上传

jbb vor 2 Jahren
Ursprung
Commit
49239ee578
1 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. 5 2
      src/views/reportForms/fabric-loss-table.vue

+ 5 - 2
src/views/reportForms/fabric-loss-table.vue

@@ -103,7 +103,10 @@
               <a-button type="primary" @click="openEnclosure">附件</a-button>
             </a-col>
             <a-col :md="6" :sm="8" class="noprint">
-              <j-upload   v-model="fabricLoss.attachs"  ></j-upload>
+              <a-upload  name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader"  :action="importExcelUrl"  @change="handleImportExcel" :data="{code:this.planNO}" >
+                <a-button type="primary" >附件上传</a-button>
+              </a-upload>
+              <!-- <j-upload   v-model="fabricLoss.attachs"  ></j-upload> -->
               <!-- <a-upload  name="file" action="https://www.mocky.io/v2/5cc8019d300000980a055e76"    :multiple="true"    :default-file-list="fileList">
                 <a-button type="primary" >附件上传</a-button>
               </a-upload> -->
@@ -811,7 +814,7 @@ export default {
         { title: '金额', dataIndex: 'ioriSum', width: 120, className: 'replacecolor' }
       ],
       accidentListData: [{ accidentNum: '1100011' }, { accidentNum: '3540011' }],
-
+      importExcelUrl: '/report/FabricLoss/addFile' ,// 导入
       noteOne: '', // 备注 1
       noteTwo: '' // 备注 2
     }