Browse Source

feature_20250903_金牌店联络簿增加工地资源信息

zhujindu 3 months ago
parent
commit
5bdd417894
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/storeManagement/JPattributeEditor.vue

+ 9 - 1
src/views/storeManagement/JPattributeEditor.vue

@@ -77,7 +77,10 @@
           label="紧急联系人电话" />
         <van-field label="是否有工地资源(支持工地配送,承接工地双包等)">
           <template #input>
-            <van-radio-group v-model="detail.constructionResource" direction="horizontal">
+            <van-radio-group
+              v-model="detail.constructionResource"
+              direction="horizontal"
+              @change="changeResource">
               <van-radio name="是">是</van-radio>
               <van-radio name="否">否</van-radio>
             </van-radio-group>
@@ -298,6 +301,11 @@ export default {
         this.$toast('紧急联系人电话格式错误');
       }
     },
+    changeResource(val) {
+      if (val == '否') {
+        this.detail.constructionYearNum = '';
+      }
+    },
     onClickLeft() {
       this.$router.go(-1);
     },