|
|
@@ -33,23 +33,26 @@ const { loading, dataList, columns, total, pageIndex, pageSize, getBSFWOrderList
|
|
|
const { filterOptons } = useDataFilter<Ermcp.GZBSFWOrderRsp>()
|
|
|
|
|
|
const handleOperateButtons = (row: Ermcp.GZBSFWOrderRsp) => {
|
|
|
+ const buttons = ['customs_bonded_details', 'customs_bonded_download']
|
|
|
switch (row.gzbsstatus) {
|
|
|
case GZBSStatus.UploadBill: {
|
|
|
- return ['customs_bonded_details', 'customs_bonded_download', 'customs_bonded_upload_bill']
|
|
|
+ buttons.push('customs_bonded_upload_bill')
|
|
|
+ break
|
|
|
}
|
|
|
case GZBSStatus.UploadSeal: {
|
|
|
- return ['customs_bonded_upload_seal']
|
|
|
+ buttons.push('customs_bonded_upload_seal')
|
|
|
+ break
|
|
|
}
|
|
|
case GZBSStatus.AdvancePaymentConfirm: {
|
|
|
- return ['customs_bonded_advance_payment']
|
|
|
+ buttons.push('customs_bonded_advance_payment')
|
|
|
+ break
|
|
|
}
|
|
|
case GZBSStatus.PaymentConfirm: {
|
|
|
- return ['customs_bonded_payment']
|
|
|
- }
|
|
|
- default: {
|
|
|
- return ['customs_bonded_details', 'customs_bonded_download']
|
|
|
+ buttons.push('customs_bonded_payment')
|
|
|
+ break
|
|
|
}
|
|
|
}
|
|
|
+ return buttons
|
|
|
}
|
|
|
|
|
|
const onRefresh = () => {
|