snow 2 年 前
コミット
3771d06b91

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/0.js


+ 1 - 1
src/App.vue

@@ -73,7 +73,7 @@ export default {
 </script>
 <style lang="scss">
 @import "./assets/css/index.scss";
-//因为element-ui的confim组件并不是vue生成的不具有[data-v....],所以全局注入一个class
+//  因为element-ui的confim组件并不是vue生成的不具有[data-v....],所以全局注入一个class
 // .lzx_BtnErr{
 //   background: #f56c6c !important;
 //   color: #fff !important;

+ 25 - 25
src/views/sellOut/deliveryWorkOrder/columns.js

@@ -214,32 +214,32 @@ export const sendOutOrderColumns = [
     prop: 'value24',
     label: '物流费用',
     'min-width': '140px'
-  },
-  {
-    prop: 'value25',
-    label: '收货地址',
-    'min-width': '140px'
-  },
-  {
-    prop: 'value26',
-    label: '收货人',
-    'min-width': '140px'
-  },
-  {
-    prop: 'value27',
-    label: '收货联系人',
-    'min-width': '140px'
-  },
-  {
-    prop: 'value28',
-    label: '联系方式',
-    'min-width': '140px'
-  },
-  {
-    prop: 'value29',
-    label: '采购单号',
-    'min-width': '140px'
   }
+  // {
+  //   prop: 'value25',
+  //   label: '收货地址',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value26',
+  //   label: '收货人',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value27',
+  //   label: '收货联系人',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value28',
+  //   label: '联系方式',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value29',
+  //   label: '采购单号',
+  //   'min-width': '140px'
+  // }
 ]
 export const head = [
   '发货工单号',

+ 1 - 2
src/views/sellOut/deliveryWorkOrder/sendOutOrder.vue

@@ -93,7 +93,6 @@ export default {
         let hederOk = true;
         this.head.forEach((v1, i1) => {
           if (v1.replace(/\s*/g, "") !== header[i1].replace(/\s*/g, "")) {
-            console.log(v1,header[i1])
             hederOk = false;
           }
         });
@@ -213,7 +212,7 @@ export default {
           this.$notify.warning({
             title: "以下字段不能为空!",
             message:
-              "发货工单号/发货工单物流公司/发货工单物流单号/发货工单物流费用" + "/采购单编号/收货人/联系方式/联系地址/发货数量",
+              "发货工单号/发货工单物流公司/发货工单物流单号/发货工单物流费用"
           });
           this.loading = false;
           return;

+ 122 - 45
src/views/supplierSellOut/supplierDeliveryWorkOrder/columns.js

@@ -15,11 +15,22 @@ export default [
     label: '销售订单编号',
     width: '160'
   },
+  {
+    prop: 'good_name',
+    label: '产品名称',
+    width: '160'
+  },
+  {
+    prop: 'has_account',
+    label: '供应商端',
+    width: '80',
+    _slot_: 'has_account'
+  },
   {
     prop: 'use_type',
     label: '平台类型',
     _slot_: 'use_type',
-    width: '80px'
+    width: '70'
   },
   {
     prop: 'status',
@@ -47,7 +58,7 @@ export default [
   {
     prop: 'wsm_code',
     label: '仓库编号',
-    width: '160'
+    width: '155'
   },
   {
     prop: 'wsm_name',
@@ -100,16 +111,17 @@ export default [
   //   _slot_: 'send_status',
   //   width: '120px'
   // },
-  {
-    prop: 'addtime',
-    label: '下单时间',
-    width: 150
-  },
   {
     prop: 'apply_name',
     label: '申请人',
     width: '80'
   },
+  {
+    prop: 'addtime',
+    label: '下单时间',
+    width: 150
+  },
+
   {
     prop: '',
     width: 50,
@@ -127,7 +139,6 @@ export default [
 // good_type_code	是	string	商品属性
 // good_name	是	string	商品名称
 // status	是	string	状态
-
 export const sendOutOrderColumns = [
   {
     type: 'index',
@@ -137,61 +148,127 @@ export const sendOutOrderColumns = [
   {
     prop: 'value0',
     label: '发货工单号',
-    width: '156px'
+    'min-width': '156px'
   },
-
   {
     prop: 'value1',
-    label: '单编号',
-    width: '156px'
+    label: '发货单编号',
+    'min-width': '156px'
   },
   {
-    prop: 'value11',
-    label: '商品名称',
-    'min-width': '180px'
+    prop: 'value2',
+    label: '销售订单编号',
+    'min-width': '156px'
   },
+  // {
+  //   prop: 'value3',
+  //   label: '订单编号',
+  //   'min-width': '156px'
+  // },
+  // {
+  //   prop: 'value11',
+  //   label: '',
+  //   'min-width': '180px'
+  // },
   {
-    prop: 'value14',
-    label: '发货数量',
-    width: '100px'
+    prop: 'value7',
+    label: '数量',
+    'min-width': '100px'
   },
+  // {
+  //   prop: 'value8',
+  //   label: '仓库编号',
+  //   'min-width': '100px'
+  // },
+  // {
+  //   prop: 'value9',
+  //   label: '仓库名称',
+  //   'min-width': '100px'
+  // },
+  // {
+  //   prop: 'value10',
+  //   label: '商品成本编码',
+  //   'min-width': '100px'
+  // },
+  // {
+  //   prop: 'value11',
+  //   label: '商品上线编码',
+  //   'min-width': '100px'
+  // },
+  // {
+  //   prop: 'value12',
+  //   label: '商品名称',
+  //   'min-width': '100px'
+  // },
   {
-    prop: 'value18',
+    prop: 'value22',
     label: '物流公司',
-    width: '150px'
+    'min-width': '150px'
   },
   {
-    prop: 'value19',
+    prop: 'value23',
     label: '物流单号',
-    width: '150px'
+    'min-width': '150px'
   },
   {
-    prop: 'value20',
+    prop: 'value24',
     label: '物流费用',
-    width: '140px'
+    'min-width': '140px'
   }
+  // {
+  //   prop: 'value25',
+  //   label: '收货地址',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value26',
+  //   label: '收货人',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value27',
+  //   label: '收货联系人',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value28',
+  //   label: '联系方式',
+  //   'min-width': '140px'
+  // },
+  // {
+  //   prop: 'value29',
+  //   label: '采购单号',
+  //   'min-width': '140px'
+  // }
 ]
-
 export const head = [
   '发货工单号',
-  '销售订单编号',
-  '发货申请单号',
-  '业务公司编号',
-  '业务公司名称',
-  '客户编号',
-  '客户名称',
-  '供应商编号',
-  '供应商名称',
-  '商品成本编号',
-  '商品上线编号',
-  '商品名称',
-  '订单来源',
-  '商品类型',
-  '数量',
-  '分单状态',
-  '下单时间',
-  '申请人名称',
-  '物流公司',
-  '物流单号',
-  '物流费用'
+  '发货单编号	',
+  '销售订单编号	',
+  '供应商端	',
+  '状态	',
+  '商品类型	',
+  '订单来源	',
+  '总数量	',
+  '仓库编号	',
+  '仓库名称	',
+  '商品成本编码	',
+  '商品上线编码	',
+  '商品名称	',
+  '业务公司编号	',
+  '业务公司名称	',
+  '客户编号	',
+  '客户名称	',
+  '供应商编号	',
+  '供应商名称	',
+  '下单时间	',
+  '申请人	',
+  '对接类型	',
+  '物流公司	',
+  '物流单号	',
+  '物流费用',
+  '收货地址',
+  '收货联系人',
+  '联系方式',
+  '采购单号'
 ]

+ 25 - 19
src/views/supplierSellOut/supplierDeliveryWorkOrder/sendOutOrder.vue

@@ -8,22 +8,24 @@
       <upload-excel :on-success="handleSuccess" :before-upload="beforeUpload" />
     </div>
     <div>
-      <el-alert title="多物流单号请用逗号','隔开" type="warning" :closable="false" />
+      <el-alert title="多物流单号请用逗号','隔开" type="warning" :closable="false">
+      </el-alert>
     </div>
     <ex-table
       :columns="columns"
       :table="table"
       :data="tableData"
       style="margin: 15px 0 0 0"
-   />
+    >
+    </ex-table>
   </div>
 </template>
 
 <script>
 import asyncRequest from "@/apis/service/sellOut/deliveryWorkOrder";
-import resToken from "@/mixins/resToken";
 import { sendOutOrderColumns, head } from "./columns";
 import { isnumber, isNumeric } from "@/utils/validate";
+import resToken from "@/mixins/resToken";
 export default {
   mixins: [resToken],
   name: "orderImport",
@@ -59,9 +61,6 @@ export default {
       editBtnFlag: false,
     };
   },
-  mounted() {
-    // alert(this.head.length)
-  },
   methods: {
     beforeUpload(file) {
       const isLt1M = file.size / 1024 < 500;
@@ -93,8 +92,7 @@ export default {
         }
         let hederOk = true;
         this.head.forEach((v1, i1) => {
-          if (v1 !== header[i1].replace(/\s*/g, "")) {
-            console.log(v1 + "----" + header[i1]);
+          if (v1.replace(/\s*/g, "") !== header[i1].replace(/\s*/g, "")) {
             hederOk = false;
           }
         });
@@ -184,30 +182,37 @@ export default {
         this.tableData.forEach((key, index) => {
           if (
             key["value0"] === "" ||
-            key["value18"] === "" ||
-            key["value19"] === "" ||
-            key["value20"] === ""
+            key["value22"] === "" ||
+            key["value23"] === "" ||
+            key["value24"] === ""
+
+            // key['value25'] === "" ||
+            // key['value26'] === "" ||
+            // key['valye27'] === "" ||
+            // key['value28'] === "" ||
+            // key['value29'] === ""
           ) {
             isok = false;
           }
+
           let ketitem = {
             outChildCode: key["value0"],
-            post_name: key["value18"],
-            post_code: key["value19"],
-            post_fee: key["value20"]
+            post_name: key["value22"],
+            post_code: key["value23"],
+            post_fee: key["value24"],
           };
 
-          if (!this.validateCode(key["value19"])) {
+          if (!this.validateCode(key["value23"])) {
             is_codeok = false;
           }
-
           list.push(ketitem);
         });
+
         if (!isok) {
           this.$notify.warning({
-            title: "以下单号不能为空!",
+            title: "以下字段不能为空!",
             message:
-              "发货工单号/发货工单物流公司/发货工单物流单号/发货工单物流费用",
+              "发货工单号/发货工单物流公司/发货工单物流单号/发货工单物流费用"
           });
           this.loading = false;
           return;
@@ -223,7 +228,8 @@ export default {
         let model = {
           list: JSON.parse(JSON.stringify(list)),
         };
-
+      
+        
         const { code, data, message } = await asyncRequest.express(model);
         this.loading = false;
         if (code === 0) {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません