diff --git a/src/views/order/index/config/config.ts b/src/views/order/index/config/config.ts index 858552d..fc87ef1 100644 --- a/src/views/order/index/config/config.ts +++ b/src/views/order/index/config/config.ts @@ -77,6 +77,7 @@ export const options: { [key in optionsType]: options[] } = { { label: '微信小程序', value: 'WX' }, { label: '支付宝小程序', value: 'ALI' }, { label: '收银机客户端', value: 'PC' }, + { label: '收款码', value: 'H5' }, ], sendType: [ { label: '快递', value: 'post' }, diff --git a/src/views/order/index/config/content.ts b/src/views/order/index/config/content.ts index 4d68383..1f06421 100644 --- a/src/views/order/index/config/content.ts +++ b/src/views/order/index/config/content.ts @@ -17,6 +17,8 @@ const contentConfig: IContentConfig = { indexAction: function (params) { return OrderApi.getList(params); }, + indexActionData: { + }, // deleteAction: OrderApi.delete, // modifyAction: function (data) { // // return OrderApi.edit(data); diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue index 0c90556..5b66831 100644 --- a/src/views/order/index/index.vue +++ b/src/views/order/index/index.vue @@ -152,13 +152,21 @@ function returnOriginAmount(order: OrderInfoVo) { return amount.toFixed(2); } const route = useRoute(); -onMounted(() => { - const { orderNo, tableName, tableCode } = route.query; - handleQueryClick({ orderNo, tableCode, tableName }); - searchRef.value?.setQueryValue("orderNo", orderNo); - searchRef.value?.setQueryValue("tableName", tableName); - route; -}); +const { orderNo, tableName, tableCode } = route.query; +if (orderNo || tableCode || tableName) { + // handleQueryClick({ orderNo, tableCode, tableName }); + // searchRef.value?.setQueryValue("orderNo", orderNo); + // searchRef.value?.setQueryValue("tableName", tableName); + contentConfig.indexActionData = { orderNo, tableCode, tableName }; +} +// onMounted(() => { +// const { orderNo, tableName, tableCode } = route.query; +// if (orderNo || tableCode || tableName) { +// handleQueryClick({ orderNo, tableCode, tableName }); +// searchRef.value?.setQueryValue("orderNo", orderNo); +// searchRef.value?.setQueryValue("tableName", tableName); +// } +// }); // 新增 async function handleAddClick() {