Browse Source

priceDefault

storeBelieveInLight 1 year ago
parent
commit
b259b5c988
1 changed files with 7 additions and 3 deletions
  1. 7 3
      shop/productManagementModule/addProduct.vue

+ 7 - 3
shop/productManagementModule/addProduct.vue

@@ -594,14 +594,18 @@ export default {
594 594
       this.formData.extension_type = val;
595 595
       const _this = this;
596 596
       this.attrValue[0].modules.forEach((item) => {
597
-        if(item.props === "extension_one"){
597
+        if (item.props === "extension_one") {
598 598
           _this.$set(item, "value", _this.base_commission);
599
+        } else {
600
+          _this.$set(item, "value", item.value);
599 601
         }
600 602
       });
603
+      this.priceDefault = "0.00"
601 604
     },
602 605
     changeInputHandle(ev, its, item, idx) {
603
-      if (its.props == "cost" || its.props=="extension_one") {
604
-        let modulesData = item.modules.find((item) => item.props == "extension_one") || {};
606
+      if (its.props == "cost" || its.props == "extension_one") {
607
+        let modulesData =
608
+          item.modules.find((item) => item.props == "extension_one") || {};
605 609
         let extension_one =
606 610
           modulesData.props == "extension_one"
607 611
             ? modulesData.value