戴艳蓉 пре 3 година
родитељ
комит
e79ef36b75

+ 7 - 0
src/views/goodStore/goodsCost/columns.js

@@ -311,6 +311,13 @@ const rules= {
       trigger: "blur",
     },
   ],
+  packing_size: [
+    {
+      required: true,
+      message: "请输入装箱尺寸",
+      trigger: "blur",
+    },
+  ],
   good_thumb_img: [
     {
       required: true,

+ 5 - 5
src/views/goodStore/goodsCost/components/baseForm.vue

@@ -1018,7 +1018,6 @@ export default {
         sample_fee: "",
         market_price: "",
         nake_price: "",
-        // b1: [],
       };
     },
 
@@ -1056,9 +1055,9 @@ export default {
           console.log(res);
           this.loading = false;
           if (res && res.code === 0) {
-            const title = this.id === "add" ? "添加成功!" : "修改成功!";
+            // const title = this.id === "add" ? "!" : "修改成功!";
             this.$notify.success({
-              title,
+              title:"添加成功",
               message: "",
             });
             this.showModelThis = false;
@@ -1129,6 +1128,7 @@ export default {
     },
     //商品分类选择
     goods_class_change(e) {
+      console.log(e);
       const { value, item } = e;
       const { cat_desc } = item;
       this.ruleForm.cat_id = value || [];
@@ -1136,8 +1136,8 @@ export default {
       this.ruleForm.after_sales = cat_desc || "";
       this.$refs.ruleForm.validateField("after_sales");
       let isok = false;
-      if (e.length > 0) {
-        e.forEach((i) => {
+      if (value.length > 0) {
+        value.forEach((i) => {
           if (i === "8") {
             isok = true;
           }