feat:店铺折扣
This commit is contained in:
1 parent
c8ff18d190
commit
cb2e95562a
1 file changed
+19
-1
@@ -81,11 +81,24 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-if="form.types == '2' && form.supType == '20'" :span="24" class="mb20">
|
||||
<el-col v-if="form.types == '2'" :span="12" class="mb20">
|
||||
<el-form-item label="优惠价格:" prop="discountsPrice">
|
||||
<el-input v-model="form.discountsPrice" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-if="form.types == '2'" :span="12" class="mb20">
|
||||
<el-form-item prop="discountsRate">
|
||||
<template #label>
|
||||
<span>优惠折扣:</span>
|
||||
<tip content="范围1-99,填10表示1折;折扣越大(数值越小)的手机端排在越前面,留空表示无折扣" />
|
||||
</template>
|
||||
<div class="flex w-full items-center">
|
||||
<el-input-number class="flex-1" v-model="form.discountsRate" :min="1" :max="99"
|
||||
:value-on-clear="null" placeholder="如10表示1折" />
|
||||
<span class="ml5">%</span>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item prop="phone">
|
||||
<template #label>
|
||||
@@ -174,6 +187,7 @@ const defaultForm = {
|
||||
parentId: "",
|
||||
catgoryId: "",
|
||||
discountsPrice: "",
|
||||
discountsRate: null as number | null,
|
||||
platformRanke: '0',
|
||||
}
|
||||
|
||||
@@ -225,6 +239,7 @@ watch(
|
||||
form.cooperationStatus = "1"
|
||||
form.parentId = ""
|
||||
form.discountsPrice = ""
|
||||
form.discountsRate = null
|
||||
}
|
||||
},
|
||||
)
|
||||
@@ -273,6 +288,9 @@ const getmerchantInfoData = async (id: string) => {
|
||||
if (form.platformRanke == undefined) {
|
||||
form.platformRanke = defaultForm.platformRanke
|
||||
}
|
||||
if (form.discountsRate == undefined) {
|
||||
form.discountsRate = null
|
||||
}
|
||||
jobTime.morning = resJobTime[0]?.split("-") ?? []
|
||||
jobTime.noon = resJobTime[1]?.split("-") ?? []
|
||||
jobTime.evening = resJobTime[2]?.split("-") ?? []
|
||||
|
||||
Reference in new issue
Block a user