Browse Source

批量发货——表头字段增加

lucky 2 years ago
parent
commit
18860c2102

+ 3 - 0
src/views/sellOut/sellOutOrder/columns.js

@@ -410,6 +410,7 @@ const sendOutOrderColumns=[
 ]
 const head = [
   "序号",
+  
   "创建时间",
   "采购单编号",
   "采购单状态",
@@ -440,5 +441,7 @@ const head = [
   "发货申请单物流单号",
   "发货申请单物流费用",
   "发货申请单备注",
+  "申请人",
+  "商品分类",
 ];
 export { columns, showColumns, rshowColumns,sendOutOrderColumns,head }

+ 1 - 0
src/views/sellOut/sellOutOrder/index.vue

@@ -311,6 +311,7 @@ export default {
     };
   },
   mounted() {
+    // return;
     const { back } = this.$route.query;
     if (back) {
       this.parmValue = JSON.parse(back);

+ 7 - 1
src/views/sellOut/sellOutOrder/sendOutOrder.vue

@@ -60,7 +60,9 @@ export default {
       editBtnFlag: false,
     };
   },
-  mounted() {},
+  mounted() {
+    alert(this.head.length)
+  },
   methods: {
     beforeUpload(file) {
       const isLt1M = file.size / 1024 / 1024 < 1;
@@ -74,6 +76,8 @@ export default {
       return false;
     },
     handleSuccess({ results, header }) {
+      alert(this.head.length, header.length)
+      console.log(results)
       if (!this.loading) {
         this.loading = true;
         if (results.length === 0) {
@@ -89,6 +93,7 @@ export default {
         }
         let hederOk = true;
         this.head.forEach((v1, i1) => {
+          
           if (v1 !== header[i1].replace(/\s*/g, "")) {
             console.log(v1 + "----" + header[i1]);
             hederOk = false;
@@ -113,6 +118,7 @@ export default {
               });
             });
             this.tableData.push(model);
+            console.log(this.tableData)
           });
         } catch (e) {
           console.log(e);