Pārlūkot izejas kodu

Merge branch 'feature_20250903_金牌店联络簿增加工地资源信息' into release

zhujindu 2 mēneši atpakaļ
vecāks
revīzija
f5915bddd0

+ 29 - 0
src/views/storeManagement/JPattributeEditor.vue

@@ -53,6 +53,30 @@
           label="门店24年总进货额(含所有品牌品类)" />
           label="门店24年总进货额(含所有品牌品类)" />
         <van-field v-model="detail.performanceRatio" type="number" label="门店立邦业绩占比(%)" />
         <van-field v-model="detail.performanceRatio" type="number" label="门店立邦业绩占比(%)" />
         <van-field v-model="detail.mainBrand" autosize type="textarea" label="门店主营TOP3品牌" />
         <van-field v-model="detail.mainBrand" autosize type="textarea" label="门店主营TOP3品牌" />
+        <van-field label="是否有工地资源(支持工地配送,承接工地双包等)">
+          <template #input>
+            <van-radio-group
+              v-model="detail.constructionResource"
+              direction="horizontal"
+              @change="changeResource">
+              <van-radio name="是">是</van-radio>
+              <van-radio name="否">否</van-radio>
+            </van-radio-group>
+          </template>
+        </van-field>
+        <van-field
+          v-if="detail.constructionResource == '是'"
+          v-model="detail.constructionYearNum"
+          type="number"
+          label="年工地数量" />
+        <van-field label="是否有双包能力">
+          <template #input>
+            <van-radio-group v-model="detail.doubleContracting" direction="horizontal">
+              <van-radio name="是">是</van-radio>
+              <van-radio name="否">否</van-radio>
+            </van-radio-group>
+          </template>
+        </van-field>
         <van-field label="紧急联系人身份">
         <van-field label="紧急联系人身份">
           <template #input>
           <template #input>
             <van-radio-group v-model="detail.emergencyContactRelation" direction="horizontal">
             <van-radio-group v-model="detail.emergencyContactRelation" direction="horizontal">
@@ -277,6 +301,11 @@ export default {
         this.$toast('紧急联系人电话格式错误');
         this.$toast('紧急联系人电话格式错误');
       }
       }
     },
     },
+    changeResource(val) {
+      if (val == '否') {
+        this.detail.constructionYearNum = '';
+      }
+    },
     onClickLeft() {
     onClickLeft() {
       this.$router.go(-1);
       this.$router.go(-1);
     },
     },

+ 13 - 0
src/views/storeManagement/storeDetail.vue

@@ -366,6 +366,19 @@
                 type="textarea"
                 type="textarea"
                 v-model="list.storeArchives.mainBrand"
                 v-model="list.storeArchives.mainBrand"
                 label="门店主营TOP3品牌" />
                 label="门店主营TOP3品牌" />
+              <van-field
+                readonly
+                v-model="list.storeArchives.constructionResource"
+                label="是否有工地资源(支持工地配送,承接工地双包等)" />
+              <van-field
+                v-if="list.storeArchives.constructionResource == '是'"
+                readonly
+                v-model="list.storeArchives.constructionYearNum"
+                label="年工地数量" />
+              <van-field
+                readonly
+                v-model="list.storeArchives.doubleContracting"
+                label="是否有双包能力" />
               <van-field
               <van-field
                 readonly
                 readonly
                 v-model="list.storeArchives.emergencyContactRelation"
                 v-model="list.storeArchives.emergencyContactRelation"