From b0363e2c04f6ef825f8dffc46e318af762941dac Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期五, 09 十二月 2022 14:13:35 +0800 Subject: [PATCH] 关联商铺修改,社区街道参数修改 --- src/views/operate/disposal/casepool/pool/createUser/vio/index.vue | 38 +++++++++++++++++--------------------- 1 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/views/operate/disposal/casepool/pool/createUser/vio/index.vue b/src/views/operate/disposal/casepool/pool/createUser/vio/index.vue index 76f4ea6..46aa84e 100644 --- a/src/views/operate/disposal/casepool/pool/createUser/vio/index.vue +++ b/src/views/operate/disposal/casepool/pool/createUser/vio/index.vue @@ -83,8 +83,9 @@ </el-form-item> <!-- 鍏宠仈鍟嗛摵鍚嶇О --> <el-form-item class="optionItems" label="鍏宠仈鍟嗛摵鍚嶇О:" prop="shopName"> - <el-input placeholder="璇峰~鍐欏叧鑱斿晢閾哄悕绉�" v-model="vio.shopName" - :disabled="vio.linkShop === 1 ?false : true"></el-input> + <el-select v-model="vio.shopName" :disabled="vio.linkShop === 0" placeholder="璇峰~鍐欏叧鑱斿晢閾哄悕绉�"> + <el-option v-for="store in storeList" :key="store.id" :value="store.id" :label="store.storeName"></el-option> + </el-select> </el-form-item> </div> <!-- 濉啓杞︾墝鍙� --> @@ -141,6 +142,7 @@ import { validateName, validatePhone, validateCarNum, validateCardId } from '@/utils/validate' import { getTypeList } from '@/utils/helper' import { parseTime } from "@/utils/index" +import { getStoreInfoList } from "@/api/operate/storeManagement"; export default { components: { MyMap @@ -209,17 +211,6 @@ callback(new Error('鎶ヨ鏃堕棿涓嶈兘涓虹┖')) } } - const checkCarNumber = (rule, value, callback) => { - if (value) { - if (validateCarNum(value)) { - callback(); - } else { - callback(new Error('璇疯緭鍏ユ纭殑杞︾墝鍙�')); - } - } else { - callback(new Error("杞︾墝鍙蜂笉鑳戒负绌�")) - } - } const checkName = (rule, value, callback) => { if (value) { validateName(value) ? callback() : callback(new Error('璇疯緭鍏ユ纭殑濮撳悕')) @@ -263,7 +254,6 @@ vio: { actionCause: "",//妗堢敱 carNumber: "",//杞︾墝鍙� - // category:1,//1:杩濊2:杩濆缓 categoryId: '',//澶х被 communityId: '',//鎵�灞炵ぞ鍖� description: '',//闂鎻忚堪 @@ -286,12 +276,6 @@ required: true, trigger: 'blur', validator: checkCause, } ], - // //杞︾墝鍙� - // carNumber: [ - // { - // required: true, trigger: 'blur', validator: checkCarNumber - // } - // ], //澶х被 categoryId: [ { @@ -383,6 +367,7 @@ streetList: [], communityList: [], anYouList: [], + storeList: [] } }, created() { @@ -391,6 +376,7 @@ setBigKindList(); getStreetList(0); getEventLevel(); + this.getShopList(); }, methods: { handleStop() { @@ -541,7 +527,17 @@ if (e.target.value) { this.vio.actionCause = e.target.value; } - } + }, + + getShopList() { + getStoreInfoList({ current: 1, size: 100 }) + .then(({ list }) => { + this.storeList = list; + }) + .catch(err => { + this.$message.error(err) + }) + } }, props: ['mytype', 'changeDialog', 'refresh'] } -- Gitblit v1.8.0