| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!-- 交易服务-保税服务 -->
- <template>
- <app-view>
- <template #header>
- <app-filter :options="filterOptons" />
- </template>
- <!-- 表格数据 -->
- <app-table :data="dataList" v-model:columns="columns" :loading="loading">
- <!-- 操作 -->
- <template #operate="{ row }">
- <app-auth-operation :menus="handleOperateButtons(row)" :options="{ selectedRow: row }"
- @closed="onRefresh" />
- </template>
- <template #footer>
- <app-pagination :total="total" v-model:page-size="pageSize" v-model:page-index="pageIndex"
- @change="onRefresh" />
- </template>
- </app-table>
- </app-view>
- </template>
- <script lang="ts" setup>
- import { ElMessage } from 'element-plus'
- import { useDataFilter } from '@/hooks/datatable'
- import { GZBSStatus } from '@/constants/customs'
- import { useBSFWOrderList } from '@/business/customs/bonded'
- import AppAuthOperation from '@pc/components/modules/auth-operation/index.vue'
- import AppTable from '@pc/components/base/table/index.vue'
- import AppFilter from '@pc/components/base/table-filter/index.vue'
- import AppPagination from '@pc/components/base/pagination/index.vue'
- const { loading, dataList, columns, total, pageIndex, pageSize, getBSFWOrderList } = useBSFWOrderList()
- const { filterOptons } = useDataFilter<Ermcp.GZBSFWOrderRsp>()
- const handleOperateButtons = (row: Ermcp.GZBSFWOrderRsp) => {
- const buttons = ['customs_bonded_details', 'customs_bonded_download']
- switch (row.gzbsstatus) {
- case GZBSStatus.UploadBill: {
- buttons.push('customs_bonded_upload_bill')
- break
- }
- case GZBSStatus.UploadSeal: {
- buttons.push('customs_bonded_upload_seal')
- break
- }
- case GZBSStatus.AdvancePaymentConfirm: {
- buttons.push('customs_bonded_advance_payment')
- break
- }
- case GZBSStatus.PaymentConfirm: {
- buttons.push('customs_bonded_payment')
- break
- }
- }
- return buttons
- }
- const onRefresh = () => {
- getBSFWOrderList().catch((err) => ElMessage.error(err))
- }
- filterOptons.selectList = [
- {
- label: '单据状态',
- key: 'executestatus',
- options: [
- { label: '待处理', value: 1 },
- { label: '进行中', value: 2 },
- { label: '已结束', value: 3 },
- ],
- locked: true,
- },
- ]
- filterOptons.buttonList = [
- { lable: '查询', className: 'el-button--primary', onClick: () => onRefresh() }
- ]
- onRefresh()
- </script>
|