From 91b1865c1133b1a1234c0ae3af398aa578aa2dfc Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Tue, 28 Jun 2022 20:02:22 +0800 Subject: [PATCH] no message --- apis/deviceApi.js | 10 + apis/orderApi.js | 8 + pages/device-production-info/OrderItem.vue | 276 +++++++++++++++++++++ pages/device-production-info/index.vue | 36 ++- pages/digital-workshops/index.vue | 2 +- pages/order-info/index.vue | 4 +- utils/http/index.js | 5 +- 7 files changed, 331 insertions(+), 10 deletions(-) create mode 100644 pages/device-production-info/OrderItem.vue diff --git a/apis/deviceApi.js b/apis/deviceApi.js index cda7741..81dcedd 100644 --- a/apis/deviceApi.js +++ b/apis/deviceApi.js @@ -113,3 +113,13 @@ export function getDeviceListV2(data = {}) { data }) } + +/** + * 获取监控设备的token + */ +export function getMachineInfo(machineId, data = {}) { + return http.get({ + url: `/printing-packaging-factory-service/user/get/factory/machine/${machineId}`, + data + }) +} \ No newline at end of file diff --git a/apis/orderApi.js b/apis/orderApi.js index 0c8c83a..c434676 100644 --- a/apis/orderApi.js +++ b/apis/orderApi.js @@ -185,3 +185,11 @@ export const getProdOrderInfo = (id) => { url: `/cloud-print-cloud-factory/get/my-enterprise/purchasing-order/${id}` }) } + +export const getOrderListByMachine = (machineId, data) => { + return http.get({ + url: `/printing-packaging-factory-service/user/get/production-task/list/by/${machineId}`, + data + }) +} + diff --git a/pages/device-production-info/OrderItem.vue b/pages/device-production-info/OrderItem.vue new file mode 100644 index 0000000..170009b --- /dev/null +++ b/pages/device-production-info/OrderItem.vue @@ -0,0 +1,276 @@ + + #f3f3f3 + + + diff --git a/pages/device-production-info/index.vue b/pages/device-production-info/index.vue index 42f94df..b9e17a5 100644 --- a/pages/device-production-info/index.vue +++ b/pages/device-production-info/index.vue @@ -3,9 +3,9 @@ 分享 - - - + + + @@ -74,6 +74,13 @@ 暂无购置信息 + + + + + + 暂无生产中的订单 + @@ -124,8 +131,10 @@