소스 검색

priceDefault

storeBelieveInLight 1 년 전
부모
커밋
b259b5c988
1개의 변경된 파일과 7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      shop/productManagementModule/addProduct.vue

+ 7 - 3
shop/productManagementModule/addProduct.vue

@@ -594,14 +594,18 @@ export default {
594
       this.formData.extension_type = val;
594
       this.formData.extension_type = val;
595
       const _this = this;
595
       const _this = this;
596
       this.attrValue[0].modules.forEach((item) => {
596
       this.attrValue[0].modules.forEach((item) => {
597
-        if(item.props === "extension_one"){
597
+        if (item.props === "extension_one") {
598
           _this.$set(item, "value", _this.base_commission);
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
     changeInputHandle(ev, its, item, idx) {
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
         let extension_one =
609
         let extension_one =
606
           modulesData.props == "extension_one"
610
           modulesData.props == "extension_one"
607
             ? modulesData.value
611
             ? modulesData.value