移除商品兑换需要流水
This commit is contained in:
@@ -127,13 +127,6 @@ const baTable = new baTableClass(
|
||||
sortable: false,
|
||||
operator: 'RANGE',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.multiplier'),
|
||||
prop: 'multiplier',
|
||||
align: 'center',
|
||||
sortable: false,
|
||||
operator: 'eq',
|
||||
},
|
||||
{
|
||||
label: t('mall.item.category'),
|
||||
prop: 'category',
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
:placeholder="t('Please input field', { field: t('mall.item.score') })"
|
||||
/>
|
||||
|
||||
<!-- BONUS / WITHDRAW:现金面值、流水倍数 -->
|
||||
<!-- BONUS / WITHDRAW:现金面值 -->
|
||||
<el-form-item v-if="isBonusOrWithdraw" :label="t('mall.item.amount')" prop="amount">
|
||||
<el-input-number
|
||||
v-model="baTable.form.items!.amount"
|
||||
@@ -123,16 +123,6 @@
|
||||
</div>
|
||||
<div class="form-tip">{{ amountBlockHelp }}</div>
|
||||
</el-form-item>
|
||||
<FormItem
|
||||
v-if="isBonusOrWithdraw"
|
||||
:label="t('mall.item.multiplier')"
|
||||
type="number"
|
||||
v-model="baTable.form.items!.multiplier"
|
||||
prop="multiplier"
|
||||
:block-help="t('mall.item.multiplier_tip')"
|
||||
:input-attr="{ step: 1 }"
|
||||
:placeholder="t('Please input field', { field: t('mall.item.multiplier') })"
|
||||
/>
|
||||
<!-- 仅 BONUS:Bonus Grant 需要 -->
|
||||
<FormItem
|
||||
v-if="isBonus"
|
||||
@@ -314,9 +304,8 @@ watch(
|
||||
// BONUS:实物库存不适用
|
||||
baTable.form.items.stock = 0
|
||||
} else if (typeNum === 2) {
|
||||
// PHYSICAL:现金/倍数/类别不适用
|
||||
// PHYSICAL:现金/类别不适用
|
||||
baTable.form.items.amount = 0
|
||||
baTable.form.items.multiplier = 0
|
||||
baTable.form.items.category = ''
|
||||
baTable.form.items.category_title = ''
|
||||
} else if (typeNum === 3) {
|
||||
@@ -379,25 +368,6 @@ const rules: Partial<Record<string, FormItemRule[]>> = reactive({
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
multiplier: [
|
||||
{
|
||||
validator: (rule: any, val: any, callback: Function) => {
|
||||
if (!isBonusOrWithdraw.value) return callback()
|
||||
if (val === '' || val === null || val === undefined) {
|
||||
return callback(new Error(t('Please input field', { field: t('mall.item.multiplier') })))
|
||||
}
|
||||
const num = Number(val)
|
||||
if (!Number.isFinite(num) || !Number.isInteger(num)) {
|
||||
return callback(new Error(t('Please enter the correct field', { field: t('mall.item.multiplier') })))
|
||||
}
|
||||
if (num < 0) {
|
||||
return callback(new Error(t('Please enter the correct field', { field: t('mall.item.multiplier') })))
|
||||
}
|
||||
return callback()
|
||||
},
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
category: [
|
||||
{
|
||||
validator: (rule: any, val: any, callback: Function) => {
|
||||
|
||||
@@ -124,7 +124,6 @@ const baTable = new baTableClass(
|
||||
},
|
||||
{ label: t('mall.order.points_cost'), prop: 'points_cost', align: 'center', minWidth: 90, operator: 'RANGE', sortable: false },
|
||||
{ label: t('mall.order.amount'), prop: 'amount', align: 'center', minWidth: 90, operator: 'RANGE', sortable: false },
|
||||
{ label: t('mall.order.multiplier'), prop: 'multiplier', align: 'center', minWidth: 90, operator: 'eq', sortable: false },
|
||||
{
|
||||
label: t('mall.order.external_transaction_id'),
|
||||
prop: 'external_transaction_id',
|
||||
|
||||
@@ -69,7 +69,6 @@ const baTable = new baTableClass(
|
||||
{ label: t('mall.playxOrder.mallitem__title'), prop: 'mallItem.title', align: 'center', operatorPlaceholder: t('Fuzzy query'), sortable: false, operator: 'LIKE' },
|
||||
{ label: t('mall.playxOrder.points_cost'), prop: 'points_cost', align: 'center', operator: 'RANGE', sortable: false },
|
||||
{ label: t('mall.playxOrder.amount'), prop: 'amount', align: 'center', operator: 'RANGE', sortable: false },
|
||||
{ label: t('mall.playxOrder.multiplier'), prop: 'multiplier', align: 'center', operator: 'eq', sortable: false },
|
||||
{ label: t('mall.playxOrder.external_transaction_id'), prop: 'external_transaction_id', align: 'center', operatorPlaceholder: t('Fuzzy query'), sortable: false, operator: 'LIKE' },
|
||||
{
|
||||
label: t('mall.playxOrder.grant_status'),
|
||||
|
||||
Reference in New Issue
Block a user