diff --git a/src/pages.json b/src/pages.json index 89e1028..4d1859c 100644 --- a/src/pages.json +++ b/src/pages.json @@ -65,6 +65,31 @@ "navigationBarTitleText": "新购入库" } }, + + //新购入库详情 + { + "path": "pages/new-purchase/entry/details", + "style": { + "navigationBarTitleText": "新购入库详情" + } + }, + + //新购入库未完成入库 + { + "path": "pages/new-purchase/entry/inEntry", + "style": { + "navigationBarTitleText": "入库" + } + }, + + //新购入库未完成编码入库 + { + "path": "pages/new-purchase/entry/code-inbound", + "style": { + "navigationBarTitleText": "编码入库" + } + }, + { "path": "pages/new-purchase/accept/acceptDetails", "style": { @@ -156,6 +181,43 @@ "style": { "navigationBarTitleText": "退料数量查看" } + }, + + /* 维修及其页面 */ + // 1. 维修列表 + { + "path": "pages/repair/index", + "style": { + "navigationBarTitleText": "维修任务" + } + }, + // 2. 维修详情 + { + "path": "pages/repair/details", + "style": { + "navigationBarTitleText": "维修任务" + } + }, + // 3. 编码维修 展示 + { + "path": "pages/repair/code-view", + "style": { + "navigationBarTitleText": "编码设备维修" + } + }, + // 4. 编码维修 操作 + { + "path": "pages/repair/code-operate", + "style": { + "navigationBarTitleText": "维修" + } + }, + // 5. 数量维修 操作 + { + "path": "pages/repair/num-operate", + "style": { + "navigationBarTitleText": "数量设备维修" + } } ], "tabBar": { diff --git a/src/pages/new-purchase/entry/code-inbound.vue b/src/pages/new-purchase/entry/code-inbound.vue new file mode 100644 index 0000000..88d386e --- /dev/null +++ b/src/pages/new-purchase/entry/code-inbound.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/src/pages/new-purchase/entry/details.vue b/src/pages/new-purchase/entry/details.vue index 8428422..fba32aa 100644 --- a/src/pages/new-purchase/entry/details.vue +++ b/src/pages/new-purchase/entry/details.vue @@ -1,5 +1,5 @@ @@ -60,6 +73,14 @@ const pickingList = ref([ iconSrc: '../../static/workbench/fetchMaterialOutStore.png', }, ]) +// 领料 +const repairList = ref([ + { + title: '维修', + url: '/pages/repair/index', + iconSrc: '../../static/workbench/fix.png', + }, +]) const onNavigateTo = (url) => { uni.navigateTo({ url }) diff --git a/src/services/purchase.js b/src/services/purchase.js index 6ff1acb..1da3978 100644 --- a/src/services/purchase.js +++ b/src/services/purchase.js @@ -18,6 +18,34 @@ export const getPurchaseInfo = (data) => { }) } +// 查询新购验收任务详细列表 +export const getPurchaseDetailsList = (data)=> { + return http({ + url: '/material/purchase_check_info/getInfo', + method: 'GET', + data: data, + }) +} + +// 查询入库编码列表 +export const getMachineById = (data)=> { + return http({ + url: '/material/purchase/storage/getMachineById', + method: 'POST', + data: data, + }) + } + +// 查询入库编码列表 || 数量入库 +export const setInboundCodeAPI = (data)=> { + return http({ + url: '/material/purchase/storage/warehouse', + method: 'POST', + data: data + }) + } + + // 验收接口 export const innerVerify = (data) => { return http({ diff --git a/src/services/repair/repair.js b/src/services/repair/repair.js new file mode 100644 index 0000000..e37e084 --- /dev/null +++ b/src/services/repair/repair.js @@ -0,0 +1,52 @@ +import { http } from '@/utils/http' + +/** + * 维修 ---- 列表查询 + */ +export const getRepairListAPI = (data) => { + return http({ + method: 'GET', + url: '/material/repair/getRepairTaskList', + data, + }) +} +/** + * 维修 ---- 列表详情 + */ +export const getRepairDetailsAPI = (data) => { + return http({ + method: 'GET', + url: '/material/repair/getAppRepairMaTypeList', + data, + }) +} +/** + * 维修 ---- 合格操作 + */ +export const setQualifiedAPI = (data) => { + return http({ + method: 'POST', + url: '/material/repair/completeRepair', + data, + }) +} +/** + * 维修 ---- 提交 + */ +export const repairSubmitAPI = (data) => { + return http({ + method: 'POST', + url: '/material/repair/endRepairTask', + data, + }) +} +/** + * 维修 ---- 驳回 + */ +export const repairRejectAPI = (id) => { + return http({ + method: 'delete', + url: '/material/repair/' + id, + data: [id], + }) +} diff --git a/src/static/workbench/fix.png b/src/static/workbench/fix.png new file mode 100644 index 0000000..e76ffcc Binary files /dev/null and b/src/static/workbench/fix.png differ diff --git a/src/utils/http.js b/src/utils/http.js index 506c90d..3f882af 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -49,6 +49,7 @@ export const http = (options) => { uni.request({ ...options, success(res) { + console.log('res', res) // 1. 判断是否请求成功 if (res.statusCode >= 200 && res.statusCode < 300) { if (res.data.code >= 200 && res.data.code < 300) {