snow 1 ano atrás
pai
commit
bd912bc540

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/0.js


+ 6 - 0
src/views/goodStore/goodsCost/components/baseForm.vue

@@ -1378,6 +1378,12 @@ export default {
       //   this.$message.warning("不启用阶梯成本,只能录入一条阶梯成本信息!");
       //   return;
       // }
+
+      if(this.ladder_tableData.length >= 1 && this.sitem.create_source === "1" && index === -1){
+        this.$message.warning("咨询成本商品只能录入一条阶梯成本信息!");
+        return;
+      }
+
       this.costmodelIndex = index;
       this.costsitem = sitem;
       this.costshowModel = true;

+ 8 - 7
src/views/goodStore/goodsOnline/components/fixed-price-form.vue

@@ -37,7 +37,7 @@
                 :append="''"
                 :newTime="scope.row.newTime"
                 :size="'mini'"
-                :disabled="!scope.row.edit"
+                :disabled="!scope.row.edit || sitem.create_source === '1'"
                 @reschange="num_change($event, 'min_num', scope.$index)"
               />
             </el-form-item>
@@ -98,7 +98,7 @@
                 :append="''"
                 :newTime="scope.row.newTime"
                 :size="'mini'"
-                :disabled="!scope.row.edit"
+                :disabled="!scope.row.edit || sitem.create_source === '1'"
                 @reschange="num_change($event, 'sale_price', scope.$index)"
               />
             </el-form-item>
@@ -819,7 +819,10 @@ export default {
             let { isok, price, message, new_cost_fee } = await this.get_new(
               rowIndex
             );
-            if (isok === 0) {
+
+            if(this.sitem.create_source === "1"){
+              this.addrForm.good_ladder[rowIndex].edit = false;
+            }else if (isok === 0) {
               this.addrForm.good_ladder[rowIndex].new_sale_price = price;
               this.addrForm.good_ladder[rowIndex].new_cost_fee = new_cost_fee;
               this.addrForm.good_ladder[rowIndex].edit = false;
@@ -930,14 +933,12 @@ export default {
               {
                 edit: true,
                 min_num: this.sitem.nakelist[0].min_num,
-                sale_price: "0",
-                cost_fee: "0",
                 market_price: "0",
                 market_platform: "京东",
                 status: "1",
                 ...(this.sitem.is_gold_price === "0" 
-                ? ({ new_sale_price: Number(this.sitem.nakelist[0].nake_fee), new_cost_fee: "0"}) 
-                : ({ new_cost_fee: Number(this.sitem.nakelist[0].cost_fee) , new_sale_price: "0" }))
+                ? ({ new_sale_price: Number(this.sitem.nakelist[0].nake_fee),  sale_price:Number(this.sitem.sale_price),  cost_fee: "0", new_cost_fee: "0"}) 
+                : ({ new_cost_fee: Number(this.sitem.nakelist[0].cost_fee) , new_sale_price: "0" ,sale_price: "0",  cost_fee: "0", new_cost_fee: Number(this.sitem.sale_price)}))
               }
             ]
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff