From c40fe153e13be534544b066a2f753c22985f7de6 Mon Sep 17 00:00:00 2001 From: chenshuichuan <1154693969@qq.com> Date: Tue, 16 Jul 2024 10:40:19 +0800 Subject: [PATCH] add record detail --- src/api/mes/record.js | 2 +- src/api/system/dict/data.js | 7 ++- src/config.js | 2 +- src/pages.json | 9 ++- src/pages/index.vue | 8 +-- src/pages/work.vue | 117 +++++++++++++++++++++++------------- src/utils/dateUtil.ts | 11 ++++ 7 files changed, 103 insertions(+), 53 deletions(-) diff --git a/src/api/mes/record.js b/src/api/mes/record.js index 803346d..c81f4b1 100644 --- a/src/api/mes/record.js +++ b/src/api/mes/record.js @@ -48,7 +48,7 @@ export function deleteById(id) { // 查询明细列表 export function getDetailByRecordId(id) { return request({ - url: '/admin-api/mes/feeding-record/feeding-record-detail/list-by-record-id?id='+id, + url: '/admin-api/mes/feeding-record/feeding-record-detail/list-by-record-id?recordId='+id, method: 'get' }) } diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index 454b669..ca0c999 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -63,7 +63,12 @@ export const groupTypes = [ {text: '白班', value: 1}, {text: '夜班', value: 2}, {text: '长白班', value: 3} ] - +export const pipelineTypes = [ + {text: '2立方制浆', value: 'zhijiang2'}, {text: '5立方制浆', value: 'zhijiang5'} +] +export const feedingTypes = [ + {text: '领料', value: 'org'}, {text: '干废品', value: 'dry'}, {text: '湿废品', value: 'wet'} +] export function findTextByValue(enums,value){ const foundItem = enums.find(item => item.value === value); return foundItem ? foundItem.text : null; diff --git a/src/config.js b/src/config.js index e3d4cf7..01f1100 100644 --- a/src/config.js +++ b/src/config.js @@ -1,7 +1,7 @@ // 应用全局配置 const config = { // baseUrl: 'http://47.106.185.127:48080',127.0.0.1 - baseUrl: 'http://47.106.185.127:48080', + baseUrl: 'http://127.0.0.1:48080', // 应用信息 appInfo: { // 应用名称 diff --git a/src/pages.json b/src/pages.json index 3156899..3ab28ee 100644 --- a/src/pages.json +++ b/src/pages.json @@ -15,7 +15,8 @@ { "path": "pages/index", "style": { - "navigationBarTitleText": "生产计划" + "navigationBarTitleText": "生产计划", + "enablePullDownRefresh": true } }, { @@ -27,7 +28,8 @@ { "path": "pages/work", "style": { - "navigationBarTitleText": "工作台" + "navigationBarTitleText": "近三天投料记录", + "enablePullDownRefresh": true } }, @@ -52,7 +54,8 @@ { "path": "pages/report", "style": { - "navigationBarTitleText": "生产报工" + "navigationBarTitleText": "生产报工", + "enablePullDownRefresh": true } } ], diff --git a/src/pages/index.vue b/src/pages/index.vue index e0dbcbb..6c743f9 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,9 +1,8 @@