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 @@
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
+
{{ item.label }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -52,6 +66,7 @@
diff --git a/src/views/canteen/canteenDailyMenu/form.vue b/src/views/canteen/canteenDailyMenu/form.vue
index 84084d1..5320845 100644
--- a/src/views/canteen/canteenDailyMenu/form.vue
+++ b/src/views/canteen/canteenDailyMenu/form.vue
@@ -62,6 +62,7 @@
查询
重置
+ 取消所有勾选
diff --git a/src/views/canteen/canteenOnlineSpu/form.vue b/src/views/canteen/canteenOnlineSpu/form.vue
index 3ac6bb8..e99e72b 100644
--- a/src/views/canteen/canteenOnlineSpu/form.vue
+++ b/src/views/canteen/canteenOnlineSpu/form.vue
@@ -22,11 +22,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -164,6 +164,7 @@ const getcanteenOnlineSpuData = (id: string) => {
price: Number(displayPrice(res.data.price, "")),
marketPrice: Number(displayPrice(res.data.marketPrice, "")),
status: "" + res.data.status,
+ description: res.data.description ?? "",
})
})
.finally(() => {
diff --git a/src/views/canteen/canteenOnlineSpu/index.vue b/src/views/canteen/canteenOnlineSpu/index.vue
index c6e673b..b215f67 100644
--- a/src/views/canteen/canteenOnlineSpu/index.vue
+++ b/src/views/canteen/canteenOnlineSpu/index.vue
@@ -83,6 +83,12 @@
+
+
+ {{ scope.row.dishTypeName}}
+ {{ scope.row.dishTypeName}}
+
+
{{ displayPrice(scope.row.price) }}
@@ -118,8 +124,8 @@
-
-
+
+
@@ -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 @@
- {{ totalAmount }} 元
+ {{ total.totalAmount }}元
@@ -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) }}
-
+
{{ row?.selectedUnitObj?.realPrice || 0 }}
-
+
{{ row?.selectedUnitObj?.totalAmount }}
-
+
- {{ totalAmount }} 元
+ {{ total.totalAmount }}元
@@ -263,9 +277,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).toFixed(2)
+ 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()
@@ -364,9 +384,15 @@ const onUnitChange = (row: any) => {
row.selectedUnitObj.totalAmount = Number((row.quantity * Number(row.selectedUnitObj.realPrice || 0)).toFixed(2))
}
-// 数量、进价变动联动
-const onRowValueChange = (row: any, $rowIndex: number) => {
- row.selectedUnitObj.totalAmount = Number((row.quantity * Number(row.selectedUnitObj.realPrice || 0)).toFixed(2))
+// 数量变动
+const onQuantityChange = (row: any, $rowIndex: number) => {
+ row.selectedUnitObj.totalAmount = Number(displayPrice(row.quantity * Number(row.selectedUnitObj.purchasePrice || 0), ""))
+ row.selectedUnitObj.realPrice = row.selectedUnitObj.totalAmount / row.quantity
+}
+
+// 累计总金额变动
+const onTotalAmountChange = (row: any, $rowIndex: number) => {
+ row.selectedUnitObj.realPrice = (row.selectedUnitObj.totalAmount / row.quantity).toFixed(2)
}
// 整理table数据
diff --git a/src/views/supermarketerp/stockTaking/index.vue b/src/views/supermarketerp/stockTaking/index.vue
index f66a503..dda9afd 100644
--- a/src/views/supermarketerp/stockTaking/index.vue
+++ b/src/views/supermarketerp/stockTaking/index.vue
@@ -15,9 +15,6 @@
value-format="YYYY-MM-DD"
/>
-
查询
重置
@@ -51,8 +48,7 @@
-
-
+