Explorar o código

chore(报备单):去除创建表单默认值、添加供应商端字段展示

snow hai 1 ano
pai
achega
b160ef0b44

+ 21 - 15
src/views/sellOut/filing/config/columns.js

@@ -15,6 +15,12 @@ const columns = [
     width: "125px",
     _slot_: "status",
   },
+  {
+    prop:"wsm_has_account",
+    label:'供应商端',
+    width:'100px',
+    _slot_:'wsm_has_account'
+  },
   {
     prop: "catinfo",
     label: "商品分类",
@@ -1113,16 +1119,16 @@ const other_ruleForm = {
 const ruleForm1 = {
   customerName:"",
   fill_url:"",
-  companyName: "泰康",
+  companyName: "",
   supplierNo: [],
   customerCode: [],
   is_determine_price: "0",
-  num: "300",
-  cgd_charge: "100",
+  num: "",
+  cgd_charge: "0",
   price: "0",
-  expect_service_proportion: "10",
+  expect_service_proportion: "0",
   expect_service: "0",
-  good_name: "1",
+  good_name: "",
   originPlace: [],
   origin_place: [],
   delivery_place: [],
@@ -1130,21 +1136,21 @@ const ruleForm1 = {
   cat_id: [],
   brand_id: [],
   unit_id: [],
-  weight: "9990.000",
-  tax: "1",
-  supply_area: "1",
-  pay_way: "1",
+  weight: "0",
+  tax: "",
+  supply_area: "",
+  pay_way: "",
   send_way: "0",
-  preservation_day: "1", //有效期
+  preservation_day: "", //有效期
   delivery_day: "0", //物流时间
   make_day: "0", //生产工期
   gold_weight: "0.000",
-  noble_metal: "1",
+  noble_metal: "",
   config: [],
-  other_config: "1",
-  remark: "1",
-  cost_desc: "1",
-  good_img: ["0"],
+  other_config: "",
+  remark: "",
+  cost_desc: "",
+  good_img: [],
   total: 0,
   type: "0",
 };

+ 4 - 0
src/views/sellOut/filing/index.vue

@@ -147,6 +147,10 @@
         </div>
       </template>
 
+      <template #wsm_has_account="{ scope }">
+        <el-tag size="mini">{{Number(scope.row.wsm_has_account) === 0 ? '开通' :'未开通'}}</el-tag>
+      </template>
+
       <template #company="{scope}">
         <div style="display:flex;align-items:center">
           <el-tooltip :content="'企业客户编码 : ' + (scope.row.companyCode || '--')" placement="top">

+ 22 - 15
src/views/supplierSellOut/supplierFiling/config/columns.js

@@ -15,6 +15,12 @@ const columns = [
     width: "125px",
     _slot_: "status",
   },
+  {
+    prop:"wsm_has_account",
+    label:'供应商端',
+    width:'80px',
+    _slot_:'wsm_has_account'
+  },
   {
     prop: "catinfo",
     label: "商品分类",
@@ -1110,19 +1116,20 @@ const other_ruleForm = {
   is_gold_price: "0",
   is_diff: "0",
 };
+
 const ruleForm1 = {
   customerName:"",
   fill_url:"",
-  companyName: "泰康",
+  companyName: "",
   supplierNo: [],
   customerCode: [],
   is_determine_price: "0",
-  num: "300",
-  cgd_charge: "100",
+  num: "",
+  cgd_charge: "0",
   price: "0",
-  expect_service_proportion: "10",
+  expect_service_proportion: "0",
   expect_service: "0",
-  good_name: "1",
+  good_name: "",
   originPlace: [],
   origin_place: [],
   delivery_place: [],
@@ -1130,21 +1137,21 @@ const ruleForm1 = {
   cat_id: [],
   brand_id: [],
   unit_id: [],
-  weight: "9990.000",
-  tax: "1",
-  supply_area: "1",
-  pay_way: "1",
+  weight: "0",
+  tax: "",
+  supply_area: "",
+  pay_way: "",
   send_way: "0",
-  preservation_day: "1", //有效期
+  preservation_day: "", //有效期
   delivery_day: "0", //物流时间
   make_day: "0", //生产工期
   gold_weight: "0.000",
-  noble_metal: "1",
+  noble_metal: "",
   config: [],
-  other_config: "1",
-  remark: "1",
-  cost_desc: "1",
-  good_img: ["0"],
+  other_config: "",
+  remark: "",
+  cost_desc: "",
+  good_img: [],
   total: 0,
   type: "0",
 };

+ 1 - 1
src/views/supplierSellOut/supplierFiling/detail.vue

@@ -14,7 +14,7 @@
               @change-status="handleChangeStatus"
               @change-num="handleChangeNum"
               @change-order-code="handleChangeOrderCode"
-              @change-detail="(det) => (sitem = det)"
+              @change-detail="(detail) => (sitem = detail)"
             />
           </template>
           <tempalte v-if="(status == '2' || status == '3') && !isSupertube">

+ 7 - 4
src/views/supplierSellOut/supplierFiling/index.vue

@@ -100,7 +100,7 @@
               />
             </el-col>
 
-            <el-col :span="4" style="margin-top: 15px;margin-left:10px">
+            <el-col :span="4" style="margin-top: 15px; margin-left:10px">
               <search-work-company
                 :value="parmValue.customerCode"
                 :placeholder="'业务公司'"
@@ -143,6 +143,10 @@
         </div>
       </template>
 
+      <template #wsm_has_account="{ scope }">
+        <el-tag size="mini">{{Number(scope.row.wsm_has_account) === 0 ? '开通' :'未开通'}}</el-tag>
+      </template>
+
       <template #company="{scope}">
         <div style="display:flex;align-items:center">
           <el-tooltip :content="'企业客户编码 : ' + (scope.row.companyCode || '--')" placement="top">
@@ -236,10 +240,9 @@ export default {
       return this.business_companyNo;
     },
     powers() {
+      const { btnList } = this.$store.getters;
       const tran =
-        this.$store.getters.btnList.find(
-          item => item.menu_route == "supplierFiling"
-        ) || {};
+        btnList.find(item => item.menu_route == "supplierFiling") || {};
       const { action } = tran ?? {};
       return action ?? [];
     }