diff --git a/src/api/canteen/timeSlotConfig.ts b/src/api/canteen/timeSlotConfig.ts new file mode 100644 index 0000000..3a74199 --- /dev/null +++ b/src/api/canteen/timeSlotConfig.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/canteen/timeSlotConfig/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/canteen/timeSlotConfig', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/canteen/timeSlotConfig/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/canteen/timeSlotConfig', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/canteen/timeSlotConfig', + method: 'put', + data: obj + }) +} + diff --git a/src/components/Wechat/wx-msg/index.vue b/src/components/Wechat/wx-msg/index.vue index 61be10b..05e66ff 100644 --- a/src/components/Wechat/wx-msg/index.vue +++ b/src/components/Wechat/wx-msg/index.vue @@ -3,7 +3,9 @@
-
点击加载更多
+
+ 点击加载更多 +
没有更多了
@@ -109,125 +111,125 @@ diff --git a/src/views/canteen/boxesBooking/index.vue b/src/views/canteen/boxesBooking/index.vue index 94bda80..cf7d06d 100644 --- a/src/views/canteen/boxesBooking/index.vue +++ b/src/views/canteen/boxesBooking/index.vue @@ -3,11 +3,31 @@
- - + + - - + + + + + + + + + + + + + + + + 查询 @@ -52,32 +72,48 @@ - - - + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + +
diff --git a/src/views/canteen/boxesInfo/form.vue b/src/views/canteen/boxesInfo/form.vue index 6a76685..9436af4 100644 --- a/src/views/canteen/boxesInfo/form.vue +++ b/src/views/canteen/boxesInfo/form.vue @@ -1,45 +1,59 @@ + + + @@ -151,13 +157,17 @@ const state: BasicTableProps = reactive({ }) onMounted(async () => { + await getCanteenOnlineCategoryAll() +}) + +const getCanteenOnlineCategoryAll = async () => { try { const res = await getCanteenOnlineCategory() categoryOptions.value = res.data.records } catch (error) { categoryOptions.value = [] } -}) +} const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) @@ -197,4 +207,10 @@ const handleDelete = async (ids: string[]) => { useMessage().error(err.msg) } } + +// 导入每日菜品成功刷新 +const exportRefresh = () => { + getDataList(false) + getCanteenOnlineCategoryAll() +} diff --git a/src/views/canteen/timeSlotConfig/form.vue b/src/views/canteen/timeSlotConfig/form.vue new file mode 100644 index 0000000..5ac9bac --- /dev/null +++ b/src/views/canteen/timeSlotConfig/form.vue @@ -0,0 +1,213 @@ + + + diff --git a/src/views/canteen/timeSlotConfig/index.vue b/src/views/canteen/timeSlotConfig/index.vue new file mode 100644 index 0000000..7b139a7 --- /dev/null +++ b/src/views/canteen/timeSlotConfig/index.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue index fc543eb..8c13c3f 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue @@ -69,8 +69,16 @@ :data="vxeTableData" :edit-rules="validRules" show-footer - :footer-data="[{ seq: '合计', totalAmount }]" - :merge-footer-items="[{ row: 0, col: 2, rowspan: 1, colspan: 7 }]" + :footer-data="[ + { + seq: '合计', + quantity: total.quantity, + purchasePrice: total.purchasePrice, + realPrice: `${total.realPrice}元`, + totalAmount: total.totalAmount, + }, + ]" + :merge-footer-items="[{ row: 0, col: 2, rowspan: 1, colspan: 4 }]" @checkbox-all="" @checkbox-change="" size="mini" @@ -148,7 +156,7 @@ @@ -235,9 +243,15 @@ const validRules = ref>({ }) // 合计总金额 -const totalAmount = computed(() => - vxeTableData.value.reduce((sum: any, row: any) => sum + Number(row.selectedUnitObj?.totalAmount || 0), 0).toFixed(2), -) +const total = computed(() => { + const quantity = vxeTableData.value.reduce((sum: any, row: any) => sum + Number(row.quantity || 0), 0).toFixed(2) + const purchasePrice = displayPrice( + vxeTableData.value.reduce((sum: any, row: any) => sum + Number(row.selectedUnitObj?.purchasePrice || 0), 0), + ) + const realPrice = vxeTableData.value.reduce((sum: any, row: any) => sum + Number(row.selectedUnitObj?.realPrice || 0), 0) + const totalAmount = vxeTableData.value.reduce((sum: any, row: any) => sum + Number(row.selectedUnitObj?.totalAmount || 0), 0).toFixed(2) + return { quantity, purchasePrice, realPrice, totalAmount } +}) onMounted(async () => { await getInitData() diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue index 513c756..2d5357d 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue @@ -97,8 +97,16 @@ :data="vxeTableData" :edit-rules="validRules" show-footer - :footer-data="[{ seq: '合计', totalAmount }]" - :merge-footer-items="[{ row: 0, col: 2, rowspan: 1, colspan: 7 }]" + :footer-data="[ + { + seq: '合计', + quantity: total.quantity, + purchasePrice: total.purchasePrice, + realPrice: `${total.realPrice}元`, + totalAmount: total.totalAmount, + }, + ]" + :merge-footer-items="[{ row: 0, col: 2, rowspan: 1, colspan: 4 }]" @checkbox-all="" @checkbox-change="" size="mini" @@ -144,9 +152,9 @@ v-model="row.quantity" :min="0" :precision="0" - @change="onRowValueChange(row, $rowIndex)" + @change="onQuantityChange(row, $rowIndex)" /> - + @@ -154,11 +162,11 @@ {{ displayPrice(row.selectedUnitObj?.purchasePrice || 0) }} - + -