diff --git a/http/yskApi/pageWorkControl.js b/http/yskApi/pageWorkControl.js new file mode 100644 index 0000000..6f4d115 --- /dev/null +++ b/http/yskApi/pageWorkControl.js @@ -0,0 +1,29 @@ +import http from './http.js' +const request = http.request + +/** + * 查询交班记录 + * @returns + */ +export function tbHandover(data) { + return request({ + url: '/api/tbHandover?' + data, + method: 'get' + }) +} + + +/** + * 提交交班 + * @returns + */ +export function handoverData(data) { + return request({ + url: '/api/tbHandover/handoverData', + method: 'post', + data: { + shopId: uni.getStorageSync('shopId'), + ...data + } + }) +} \ No newline at end of file diff --git a/pageWorkControl/handover-detail/handover-detail.vue b/pageWorkControl/handover-detail/handover-detail.vue index e0a3352..dbd191f 100644 --- a/pageWorkControl/handover-detail/handover-detail.vue +++ b/pageWorkControl/handover-detail/handover-detail.vue @@ -3,7 +3,7 @@ - 交班人: + 交班人:{{form.staffName}} 暂未选择 @@ -11,12 +11,12 @@ - + 班次号 - 10001 + {{form.dutyId}} 班次 @@ -26,21 +26,21 @@ 开班时间 - 2024-05-17 14:44:50 + {{form.startTime}} 交班时间 - 2024-05-17 14:44:56 + {{form.endTime}} - + 数据统计 - - {{item.name}} - {{item.value}} + + {{item.deposit}} + {{item.amount}} @@ -53,17 +53,31 @@