1
This commit is contained in:
1 parent
4f40fcae93
commit
4db91b7f62
2 files changed
+14
-14
No files matched your search
@@ -29,20 +29,21 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="form.merchantType == '2'" :span="24" class="mb20">
|
<el-col v-if="form.merchantType == '2'" :span="24" class="mb20">
|
||||||
<el-form-item label="商户分店:" prop="merchantBranch">
|
<el-form-item label="超市类型:" prop="supType">
|
||||||
<el-radio-group v-model="form.merchantBranch" @change="(value:number) => form.merchantBranch = value">
|
<el-radio-group v-model="form.supType" @change="(value:number) => form.supType = value">
|
||||||
<el-radio :label="1">总店</el-radio>
|
<el-radio border :label="item.value" v-for="(item, index) in wallet_mch_sup_type" :key="index">{{ item.label }}</el-radio>
|
||||||
<el-radio :label="2">分店</el-radio>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="form.merchantType == '2' && form.merchantBranch == 2" :span="24" class="mb20">
|
<el-col v-if="form.merchantType == '2' && form.supType == 20" :span="24" class="mb20">
|
||||||
<el-form-item label="合作状态:" prop="cooperationStatus">
|
<el-form-item label="合作状态:" prop="cooperationStatus">
|
||||||
<dict-select v-model="form.cooperationStatus" dict-code="yes_no_type" />
|
<el-radio-group v-model="form.cooperationStatus">
|
||||||
|
<el-radio border :label="item.value" v-for="(item, index) in yes_no_type" :key="index">{{ item.label }}</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="form.merchantType == '2' && form.merchantBranch == 2" :span="24" class="mb20">
|
<el-col v-if="form.merchantType == '2' && form.supType == 20" :span="24" class="mb20">
|
||||||
<el-form-item label="总店:" prop="parentId">
|
<el-form-item label="品牌:" prop="parentId">
|
||||||
<el-tree-select
|
<el-tree-select
|
||||||
v-model="form.parentId"
|
v-model="form.parentId"
|
||||||
:data="merchantTree"
|
:data="merchantTree"
|
||||||
@@ -55,9 +56,9 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-if="form.merchantType == '2' && form.merchantBranch == 2" :span="12" class="mb20">
|
<el-col v-if="form.merchantType == '2' && form.supType == 20" :span="24" class="mb20">
|
||||||
<el-form-item label="优惠价格:" prop="discountsPrice">
|
<el-form-item label="优惠价格:" prop="discountsPrice">
|
||||||
<el-input-number v-model="form.discountsPrice" :min="0" :max="1000" :precision="0" />
|
<el-input v-model="form.discountsPrice" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24" class="mb20">
|
<el-col :span="24" class="mb20">
|
||||||
@@ -149,7 +150,7 @@ const visible = ref(false)
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
// 定义字典
|
// 定义字典
|
||||||
const { merchant_type } = useDict("merchant_type")
|
const { merchant_type, wallet_mch_sup_type, yes_no_type } = useDict("merchant_type", "wallet_mch_sup_type", "yes_no_type")
|
||||||
|
|
||||||
// 提交表单数据
|
// 提交表单数据
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
@@ -166,8 +167,8 @@ const form = reactive({
|
|||||||
businessTime: "",
|
businessTime: "",
|
||||||
addressDes: "",
|
addressDes: "",
|
||||||
sort: 0,
|
sort: 0,
|
||||||
merchantBranch: 1,
|
supType: 1,
|
||||||
cooperationStatus: "0",
|
cooperationStatus: "1",
|
||||||
parentId: "",
|
parentId: "",
|
||||||
discountsPrice: null,
|
discountsPrice: null,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -56,7 +56,6 @@
|
|||||||
:header-cell-style="tableStyle.headerCellStyle"
|
:header-cell-style="tableStyle.headerCellStyle"
|
||||||
@selection-change="selectionChangHandle"
|
@selection-change="selectionChangHandle"
|
||||||
@sort-change="sortChangeHandle"
|
@sort-change="sortChangeHandle"
|
||||||
lazy
|
|
||||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||||
:indent="20"
|
:indent="20"
|
||||||
:default-expand-all="false"
|
:default-expand-all="false"
|
||||||
|
|||||||
Reference in new issue
Block a user