xiaodai2022 2 år sedan
förälder
incheckning
0cef8db3d3
2 ändrade filer med 25 tillägg och 0 borttagningar
  1. 12 0
      dist/static/js/0.js
  2. 13 0
      src/views/youzan/othgoodsOnline/components/online-exam-form.vue

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 12 - 0
dist/static/js/0.js


+ 13 - 0
src/views/youzan/othgoodsOnline/components/online-exam-form.vue

@@ -399,6 +399,7 @@ export default {
         if (valid) {
           let model = JSON.parse(JSON.stringify(this.ruleForm));
           const { yz_cat_id } = this.ruleForm;
+
           // console.log(yz_cat_id);
           model.platform_youzan_id = this.sitem.platform_youzan_id;
           model.yz_cat_id = "";
@@ -413,6 +414,18 @@ export default {
               this.$message.warning("请选择一个系统阶梯!");
               return;
             }
+            const isok = true;
+            this.nakelist.forEach((e) => {
+              if (e.sale_good_price + "" === "0" && e.sale_cost_fee + "" === "0") {
+                isok = false;
+              }
+            });
+            if (!isok) {
+              this.$message.warning("暂无系统售价,请设置毛利率!");
+              return;
+            }
+
+            this.nakelist[sii].sale_cost_fee = sale_cost_fee;
             let index = this.nakelist.findIndex((si) => si.id === id);
             const {
               min_num,

Vissa filer visades inte eftersom för många filer har ändrats