xiaodai2022 2 years ago
parent
commit
fb8373e659
3 changed files with 47 additions and 7 deletions
  1. 0 0
      dist/static/js/0.js
  2. 5 0
      src/views/sellOut/filing/columns.js
  3. 42 7
      src/views/sellOut/filing/exam-form.vue

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


+ 5 - 0
src/views/sellOut/filing/columns.js

@@ -169,6 +169,11 @@ const editColumns = [
     label: "最终服务费比例",
     span: 6,
   },
+  {
+    prop: "platform_name",
+    label: "所属平台",
+    span: 24,
+  },
 ];
 //采返 采购商品字段
 const coveColumns = [

+ 42 - 7
src/views/sellOut/filing/exam-form.vue

@@ -17,6 +17,7 @@
             :names="ruleForm.companyName"
             :placeholder="'客户名称'"
             :size="'mini'"
+            :isDetail="ruleForm.companyName"
             @searchChange="customerChange"
         /></el-form-item>
       </el-col>
@@ -38,15 +39,19 @@
         </el-form-item>
       </el-col>
       <el-col :span="12">
-        <el-form-item label="平台商品编号" prop="plat_code">
-          <el-input
-            placeholder="平台商品编号"
-            v-model="ruleForm.plat_code"
-            :disabled="disabled"
-            maxlength="50"
+        <el-form-item label="所属平台" prop="platform_id">
+          <search-terrace
+            :value="ruleForm.platform_id"
+            :names="ruleForm.platform_name"
+            :disabled="false"
+            :size="'mini'"
+            :is_show="'1'"
+            :placeholder="'所属平台'"
+            @searchChange="platform_codesearchChange"
           />
         </el-form-item>
       </el-col>
+
       <el-col :span="12"
         ><el-form-item label="服务费比例" prop="service_proportion">
           <digital-input
@@ -64,7 +69,17 @@
           />
         </el-form-item>
       </el-col>
-      <el-col :span="24">
+      <el-col :span="12">
+        <el-form-item label="平台商品编号" prop="plat_code">
+          <el-input
+            placeholder="平台商品编号"
+            v-model="ruleForm.plat_code"
+            :disabled="false"
+            maxlength="50"
+          />
+        </el-form-item>
+      </el-col>
+      <el-col :span="12">
         <el-button
           v-if="!disabled"
           :size="'mini'"
@@ -115,6 +130,8 @@ export default {
         service_charge: "",
         service_proportion: "",
         plat_code: "",
+        platform_id: "",
+        platform_name: "",
       },
       rulesThis: this.rules,
       rules: {
@@ -131,6 +148,13 @@ export default {
         service_proportion: [
           { required: true, message: "请输入服务费比例", trigger: "blur" },
         ],
+        platform_id: [
+          {
+            required: true,
+            message: "请选择平台",
+            trigger: "change",
+          },
+        ],
       },
     };
   },
@@ -169,6 +193,8 @@ export default {
             is_determine_price,
             expect_service,
             expect_service_proportion,
+            platform_id,
+            platform_name,
           } = this.sitem;
           this.cgd_charge = cgd_charge;
           this.price = price;
@@ -184,6 +210,8 @@ export default {
             service_charge: service ? service : "0",
             service_proportion: proportion ? proportion : "0",
             plat_code,
+            platform_id: platform_id && platform_id + "" !== "0" ? platform_id : "",
+            platform_name,
           };
         }
       });
@@ -195,6 +223,13 @@ export default {
       this.ruleForm.companyName = label ? label : "";
       this.$refs.ruleForm.validateField("companyCode");
     },
+    platform_codesearchChange(e) {
+      console.log(e);
+      const { id, label } = e;
+      this.ruleForm.platform_id = id;
+      this.ruleForm.platform_name = label ? label : "";
+      this.$refs.ruleForm.validateField("platform_id");
+    },
     async number_change(e, key) {
       this.ruleForm[key] = e + "" || "0";
       this.$refs.ruleForm.validateField(key);

Some files were not shown because too many files changed in this diff