diff --git a/src/api/hard/hard-total.ts b/src/api/hard/hard-total.ts index 9e503cf..c7c328f 100644 --- a/src/api/hard/hard-total.ts +++ b/src/api/hard/hard-total.ts @@ -1,5 +1,20 @@ import request from "/@/utils/request" +/** + * 食堂统计 + */ +export function canteenProudctTotal(query: any) { + return request({ + url: "/hard/hard-canteen-total-log/proudct-total", + method: "post", + params: { + current: query.current, + size: query.size, + }, + data: query, + }) +} + export function pageListDept(query?: any) { return request({ url: "/hard/hard-total/page-list-dept", diff --git a/src/api/wallet/mch-checkout.ts b/src/api/wallet/mch-checkout.ts new file mode 100644 index 0000000..9d1167c --- /dev/null +++ b/src/api/wallet/mch-checkout.ts @@ -0,0 +1,44 @@ +import request from "/@/utils/request" + +export function pageJoin(data: any) { + return request({ + url: "/wallet/mch-checkout/page-join", + method: "post", + params: { + current: data.current, + size: data.size, + }, + data: data, + }) +} + +export function addObj(obj?: Object) { + return request({ + url: "/wallet/mch-checkout", + method: "post", + data: obj, + }) +} + +export function getObj(id?: string) { + return request({ + url: "/wallet/mch-checkout/" + id, + method: "get", + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: "/wallet/mch-checkout", + method: "delete", + data: ids, + }) +} + +export function putObj(obj?: Object) { + return request({ + url: "/wallet/mch-checkout", + method: "put", + data: obj, + }) +} diff --git a/src/views/admin/system/sys-user-transaction/index.vue b/src/views/admin/system/sys-user-transaction/index.vue index 778ad30..27e4c74 100644 --- a/src/views/admin/system/sys-user-transaction/index.vue +++ b/src/views/admin/system/sys-user-transaction/index.vue @@ -68,7 +68,7 @@ @sort-change="sortChangeHandle" > - + diff --git a/src/views/canteen/canteenCategory/index.vue b/src/views/canteen/canteenCategory/index.vue index fe4f0b5..d6883ef 100644 --- a/src/views/canteen/canteenCategory/index.vue +++ b/src/views/canteen/canteenCategory/index.vue @@ -65,6 +65,7 @@ + diff --git a/src/views/hard/canteen-product-total/index.vue b/src/views/hard/canteen-product-total/index.vue new file mode 100644 index 0000000..0982d8b --- /dev/null +++ b/src/views/hard/canteen-product-total/index.vue @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + {{ $t("common.queryBtn") }} + {{ $t("common.resetBtn") }} + + + + + + + + + + + + + + + + + + + + {{ row.payCount || 0 }}份 + + + + + 菜品详情 + + + + + + + + + + + diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue index 0093d84..189c8bd 100644 --- a/src/views/hard/hard-sh/index.vue +++ b/src/views/hard/hard-sh/index.vue @@ -101,6 +101,15 @@ + + + + + 商户结账 + + + + @@ -113,6 +122,8 @@ import { BasicTableProps, useTable } from "/@/hooks/table" import { displayPrice } from "/@/utils/formatMoney" import * as hardTotalApi from "/@/api/hard/hard-total" +const { push } = useRouter() + // 搜索变量 const queryRef = ref() const showSearch = ref(true) @@ -136,6 +147,10 @@ const exportExcel = () => { postDownBlobFile("/hard/hard-total/export-cs", Object.assign(state.queryForm), "商户交易记录.xlsx") } +const doCheckout = (row: any) => { + push({ path: "/mch/mch-checkout/index", query: { mchId: row.merchantId } }) +} + const getSummaries = (param: any) => { const { columns, data } = param const totalColumns = ["totalPayPrice", "totalPayCount", "totalRefundPrice", "totalRefundCount", "totalProfitPrice", "totalProfitCount"] diff --git a/src/views/mch/mch-checkout/form.vue b/src/views/mch/mch-checkout/form.vue new file mode 100644 index 0000000..1113943 --- /dev/null +++ b/src/views/mch/mch-checkout/form.vue @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确认 + + + + + + diff --git a/src/views/mch/mch-checkout/index.vue b/src/views/mch/mch-checkout/index.vue new file mode 100644 index 0000000..7742059 --- /dev/null +++ b/src/views/mch/mch-checkout/index.vue @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + {{ $t("common.queryBtn") }} + + {{ $t("common.resetBtn") }} + + + + + + + 新 增 + + + 删除 + + + + + + + + + + + + {{ displayPrice(row.price) }} + + + + + + + + + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + diff --git a/src/views/wallet/wallet-manage/change-balance.vue b/src/views/wallet/wallet-manage/change-balance.vue index 12fef1a..b46dad2 100644 --- a/src/views/wallet/wallet-manage/change-balance.vue +++ b/src/views/wallet/wallet-manage/change-balance.vue @@ -7,19 +7,16 @@ - - - @@ -28,13 +25,11 @@ - - @@ -79,9 +74,7 @@ const form = reactive({ }) /** 变动后的余额 */ -const balanceResult = computed(() => - displayPrice(convertToInteger(form.balance) + convertToInteger(form.changeBalance) * form.changeType), -) +const balanceResult = computed(() => displayPrice(convertToInteger(form.balance) + convertToInteger(form.changeBalance) * form.changeType)) // 定义校验规则 const dataRules = ref({ diff --git a/src/views/wallet/wallet-recharge-water/index.vue b/src/views/wallet/wallet-recharge-water/index.vue index 22df1d4..e026946 100644 --- a/src/views/wallet/wallet-recharge-water/index.vue +++ b/src/views/wallet/wallet-recharge-water/index.vue @@ -112,8 +112,9 @@ text type="primary" @click="handleRecover(row.id)" - >恢复 + 恢复 +