移除商品兑换需要流水
This commit is contained in:
@@ -19,8 +19,6 @@ export default {
|
||||
amount_apply_suggested: 'Use suggested amount',
|
||||
amount_ratio_missing: 'Mall points-to-cash reference ratio is unavailable; enter cash amount manually.',
|
||||
points_to_cash_ratio_label: 'Reference ratio',
|
||||
multiplier: 'Turnover multiplier',
|
||||
multiplier_tip: 'Turnover requirement sent with bonus/withdraw grant.',
|
||||
category: 'Category',
|
||||
category_title: 'Category title',
|
||||
admin_id: 'Created by',
|
||||
|
||||
@@ -17,7 +17,6 @@ export default {
|
||||
mallitem__title: 'Product title',
|
||||
points_cost: 'Points spent',
|
||||
amount: 'Cash amount',
|
||||
multiplier: 'Turnover multiplier',
|
||||
external_transaction_id: 'Order number',
|
||||
grant_status: 'Grant status',
|
||||
'grant_status NOT_SENT': 'Not sent',
|
||||
|
||||
@@ -14,7 +14,6 @@ export default {
|
||||
mallitem__title: 'title',
|
||||
points_cost: 'points_cost',
|
||||
amount: 'amount',
|
||||
multiplier: 'multiplier',
|
||||
external_transaction_id: 'external_transaction_id',
|
||||
grant_status: 'grant_status',
|
||||
'grant_status NOT_SENT': 'NOT_SENT',
|
||||
|
||||
@@ -19,8 +19,6 @@ export default {
|
||||
amount_apply_suggested: '填入建议金额',
|
||||
amount_ratio_missing: '暂未读取到商城「积分兑现金参考比例」,建议金额无法计算;现金面值请手工填写。',
|
||||
points_to_cash_ratio_label: '当前参考比例',
|
||||
multiplier: '流水倍数',
|
||||
multiplier_tip: '红利/提现发放时一并推送的流水倍数要求。',
|
||||
category: '红利业务类别',
|
||||
category_title: '类别展示名',
|
||||
admin_id: '创建管理员',
|
||||
|
||||
@@ -17,7 +17,6 @@ export default {
|
||||
mallitem__title: '商品标题',
|
||||
points_cost: '消耗积分',
|
||||
amount: '现金面值',
|
||||
multiplier: '流水倍数',
|
||||
external_transaction_id: '订单号',
|
||||
grant_status: '推送playX状态',
|
||||
'grant_status NOT_SENT': '未发送',
|
||||
|
||||
@@ -14,7 +14,6 @@ export default {
|
||||
mallitem__title: '商品标题',
|
||||
points_cost: '消耗积分',
|
||||
amount: '现金面值',
|
||||
multiplier: '流水倍数',
|
||||
external_transaction_id: '订单号',
|
||||
grant_status: '推送playX状态',
|
||||
'grant_status NOT_SENT': '未发送',
|
||||
|
||||
@@ -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