Browse Source

装箱单成衣附件上传

jbb 2 years ago
parent
commit
8df14cf8a3
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/packing-list/clothes-list.vue

+ 9 - 2
src/views/packing-list/clothes-list.vue

@@ -170,7 +170,9 @@
 
         <!-- 操作 -->
         <span slot="operationSlot" slot-scope="text, record">
-          <a @click="accessoryUpload(record)" style="color:green;">附件上传</a>
+          <a-upload  name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="enclosureUrl"  @change="handleImportExcel" :data="{id:record.id}" >
+            <a  style="color:green;" >附件上传</a>
+        </a-upload>
           <a-divider type="vertical" />
           <!-- 未提交 -->
           <a-dropdown>
@@ -496,7 +498,8 @@ export default {
         // delete: '/sys/user/delete',
         // deleteBatch: '/sys/user/deleteBatch',
         exportXlsUrl: '/sys/user/exportXls', // 导出
-        importExcelUrl: '/splt/syPackingListTailoring/importExcel3' // 导入
+        importExcelUrl: '/splt/syPackingListTailoring/importExcel3' ,// 导入
+        enclosureUrl:'splt/syPackingListTailoring/upload' //附件上传
       }
     }
   },
@@ -796,6 +799,10 @@ export default {
     importExcelUrl: function() {
       return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
     },
+    // 导入
+    enclosureUrl: function() {
+      return `${window._CONFIG['domianURL']}/${this.url.enclosureUrl}`
+    },
     // 选中项
     rowSelection() {
       return {