diff --git a/src/api/work/index.js b/src/api/work/index.js
new file mode 100644
index 0000000..c0c2e42
--- /dev/null
+++ b/src/api/work/index.js
@@ -0,0 +1,27 @@
+import request from "@/utils/request.js"
+
+/**
+ * 当前用户交班详情
+ * @param {*} params
+ * @returns
+ */
+export function shopInfoqueryDuty(params) {
+ return request({
+ method: "get",
+ url: "shopInfo/queryDuty",
+ params
+ });
+}
+
+/**
+ * 交班记录
+ * @param {*} params
+ * @returns
+ */
+export function shopinfoqueryDutyFlow(params) {
+ return request({
+ method: "get",
+ url: "shopInfo/queryDutyFlow",
+ params
+ });
+}
diff --git a/src/router/index.js b/src/router/index.js
index 08a3128..d807a13 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -47,6 +47,22 @@ const routes = [
index: 1,
},
component: () => import("@/views/member/index.vue"),
+ },
+ {
+ path: "/work",
+ name: "work",
+ meta: {
+ index: 1,
+ },
+ component: () => import("@/views/work/index.vue"),
+ },
+ {
+ path: "/workrecord",
+ name: "workrecord",
+ meta: {
+ index: 1,
+ },
+ component: () => import("@/views/work/record.vue"),
}
];
diff --git a/src/views/order/components/add.vue b/src/views/order/components/add.vue
index eb2b1b1..60dee38 100644
--- a/src/views/order/components/add.vue
+++ b/src/views/order/components/add.vue
@@ -6,7 +6,7 @@
- {{ dayjs(item.createAt).format(" hh:mm:ss") }}
+ {{ dayjs(item.createAt).format(" HH:mm:ss") }}
{{ dayjs(item.createAt).format("YYYY-MM-DD") }}
@@ -22,7 +22,7 @@
- ¥{{ item.productNum }}
+ ¥{{ item.orderAmount }}
挂单
diff --git a/src/views/order/index.vue b/src/views/order/index.vue
index 80a141d..954b830 100644
--- a/src/views/order/index.vue
+++ b/src/views/order/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -14,14 +14,14 @@
style="margin-top: 20px;" :total="Number(ordereData.total)"
@current-change="handleCurrentChange" />
-
+
暂无数据
-
+
暂无数据
-
+
+
+
+
+
+
+
+
+ {{ infoData.orderNum }}
+
+
+ 总订单
+
+
+
+
+ {{ infoData.amount }}
+
+
+ 营业额
+
+
+
+
+
+
+ {{ infoData.cashAmount }}
+
+
+ 现金支付
+
+
+ 查看详情
+
+
+
+
+ {{ infoData.returnAmount }}
+
+
+ 退款金额
+
+
+ 查看详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上岗时间:
+
+
+ {{ dayjs(infoData.loginTime).format("YYYY-MM-DD HH:mm:ss") }}
+
+
+
+
+ 交班时间:
+
+
+ {{ dayjs(infoData.loginOutTime).format("YYYY-MM-DD") }}
+
+
+
+
+ 终端名称:
+
+
+ {{ infoData.equipment }}
+
+
+
+
+ 备用金:
+
+
+ {{ infoData.pettyCash }}
+
+
+
+
+ 收营员:
+
+
+ {{ infoData.userName }}
+
+
+
+ 关班/退出
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/work/record.vue b/src/views/work/record.vue
new file mode 100644
index 0000000..4641133
--- /dev/null
+++ b/src/views/work/record.vue
@@ -0,0 +1,313 @@
+
+
+
+
+
+
+
+
+
+
+ {{ infoData.total }}
+
+
+ 交班数
+
+
+
+
+ {{ infoData.amount }}
+
+
+ 总收款
+
+
+
+
+
+
+
+
+
+ {{ dayjs(item.loginTime).format("YYYY-MM-DD HH:mm:ss") }}
+
+
+ ¥{{ item.amount }}
+
+
+
+
+ 收营员:
+ {{ item.userName }}
+
+
+ 总订单数:
+ {{ item.orderNum }}
+
+
+
+
+ 起止时间:
+ {{ dayjs(item.loginTime).format("YYYY-MM-DD HH:mm:ss") }}
+
+
+ 备用金:
+ {{ item.pettyCash }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file