|
|
@@ -8,7 +8,8 @@
|
|
|
<app-table :data="dataList" v-model:columns="tableColumns" :loading="loading">
|
|
|
<!-- 操作 -->
|
|
|
<template #operate="{ row }">
|
|
|
- <app-auth-operation type="dropdown" :options="{ selectedRow: row }" @closed="onRefresh" />
|
|
|
+ <app-auth-operation type="dropdown" :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"
|
|
|
@@ -70,6 +71,14 @@ filterOptons.buttonList = [
|
|
|
{ lable: '查询', className: 'el-button--primary', onClick: () => onSearch() }
|
|
|
]
|
|
|
|
|
|
+// “2:待支付”的有操作”支付“
|
|
|
+const handleOperateButtons = (row: Ermcp.GzbscreckonorderRsp) => {
|
|
|
+ if (row.paystatus === 2) {
|
|
|
+ return ['wms_payment']
|
|
|
+ }
|
|
|
+ return []
|
|
|
+}
|
|
|
+
|
|
|
const onSearch = (clear = false) => {
|
|
|
getQueryParams((qs) => {
|
|
|
pageIndex.value = 1
|