1.优化后台菜单页面
This commit is contained in:
@@ -107,24 +107,24 @@ const baTable = new baTableClass(
|
||||
{
|
||||
label: t('Operate'),
|
||||
align: 'center',
|
||||
width: 220,
|
||||
render: 'buttons',
|
||||
buttons: [
|
||||
{
|
||||
render: 'confirmButton',
|
||||
name: 'retry',
|
||||
title: 'Retry',
|
||||
text: '手动重试',
|
||||
title: 'mall.playxOrder.manual_retry',
|
||||
text: '',
|
||||
type: 'warning',
|
||||
icon: '',
|
||||
icon: 'fa fa-refresh',
|
||||
class: 'table-row-edit',
|
||||
display: (row: TableRow) =>
|
||||
row.type === 'BONUS' &&
|
||||
row.status === 'PENDING' &&
|
||||
['NOT_SENT', 'SENT_PENDING', 'FAILED_RETRYABLE', 'FAILED_FINAL'].includes(String(row.grant_status)),
|
||||
popconfirm: {
|
||||
title: '确认将该订单加入重试队列?',
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
title: t('mall.playxOrder.retry_confirm'),
|
||||
confirmButtonText: t('Confirm'),
|
||||
cancelButtonText: t('Cancel'),
|
||||
confirmButtonType: 'warning',
|
||||
},
|
||||
click: async (row: TableRow) => {
|
||||
@@ -144,23 +144,28 @@ const baTable = new baTableClass(
|
||||
},
|
||||
},
|
||||
{
|
||||
render: 'basicButton',
|
||||
render: 'tipButton',
|
||||
name: 'ship',
|
||||
title: 'Ship',
|
||||
text: '发货',
|
||||
title: 'mall.playxOrder.ship',
|
||||
text: '',
|
||||
type: 'success',
|
||||
icon: '',
|
||||
icon: 'fa fa-truck',
|
||||
class: 'table-row-ship',
|
||||
display: (row: TableRow) => row.type === 'PHYSICAL' && row.status === 'PENDING',
|
||||
click: async (row: TableRow) => {
|
||||
try {
|
||||
const shippingNoRes = await ElMessageBox.prompt('请输入物流单号', '发货', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
})
|
||||
const shippingCompanyRes = await ElMessageBox.prompt('请输入物流公司', '发货', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
const shippingNoRes = await ElMessageBox.prompt(t('mall.playxOrder.ship_shipping_no_prompt'), t('mall.playxOrder.ship'), {
|
||||
confirmButtonText: t('Confirm'),
|
||||
cancelButtonText: t('Cancel'),
|
||||
})
|
||||
const shippingCompanyRes = await ElMessageBox.prompt(
|
||||
t('mall.playxOrder.ship_shipping_company_prompt'),
|
||||
t('mall.playxOrder.ship'),
|
||||
{
|
||||
confirmButtonText: t('Confirm'),
|
||||
cancelButtonText: t('Cancel'),
|
||||
}
|
||||
)
|
||||
|
||||
const shippingNo = shippingNoRes.value
|
||||
const shippingCompany = shippingCompanyRes.value
|
||||
@@ -186,18 +191,19 @@ const baTable = new baTableClass(
|
||||
},
|
||||
},
|
||||
{
|
||||
render: 'basicButton',
|
||||
render: 'tipButton',
|
||||
name: 'reject',
|
||||
title: 'Reject',
|
||||
text: '驳回',
|
||||
title: 'mall.playxOrder.reject',
|
||||
text: '',
|
||||
type: 'danger',
|
||||
icon: '',
|
||||
icon: 'fa fa-times',
|
||||
class: 'table-row-reject',
|
||||
display: (row: TableRow) => row.type === 'PHYSICAL' && row.status === 'PENDING',
|
||||
click: async (row: TableRow) => {
|
||||
try {
|
||||
const res = await ElMessageBox.prompt('请输入驳回原因', '驳回', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
const res = await ElMessageBox.prompt(t('mall.playxOrder.reject_reason_prompt'), t('mall.playxOrder.reject'), {
|
||||
confirmButtonText: t('Confirm'),
|
||||
cancelButtonText: t('Cancel'),
|
||||
})
|
||||
await createAxios(
|
||||
{
|
||||
@@ -219,6 +225,7 @@ const baTable = new baTableClass(
|
||||
},
|
||||
},
|
||||
],
|
||||
operator: false,
|
||||
},
|
||||
],
|
||||
dblClickNotEditColumn: [undefined],
|
||||
|
||||
Reference in New Issue
Block a user