diff --git a/src/api/mes/prepareDetail.js b/src/api/mes/prepareDetail.js index d94d88b..4cf7215 100644 --- a/src/api/mes/prepareDetail.js +++ b/src/api/mes/prepareDetail.js @@ -1,5 +1,13 @@ import request from '@/utils/request' +// 打印 +export function printPrepareByCode(workorderCode) { + return request({ + url: '/mes/prepareDetail/printPrepareByCode/' + workorderCode, + method: 'get' + }); +} + // 查询mes备料单明细列表 export function listPrepareDetail(query) { return request({ diff --git a/src/views/mes/prepare/index.vue b/src/views/mes/prepare/index.vue index 30ca9c6..caf8e4d 100644 --- a/src/views/mes/prepare/index.vue +++ b/src/views/mes/prepare/index.vue @@ -106,6 +106,17 @@ v-hasPermi="['mes:prepare:export']" >导出 + + 打印预览 + @@ -205,11 +216,104 @@ 取 消 + + + +
+ + + + + + 生产订单备料单(订单物料) + + + + 工厂:{{printData.factory}} + 工作中心:{{printData.workCenter}} + 生产日期:{{printData.productDate}} + 打印日期:{{printData.printDate}} + 页次: 1/ 1 + + + + + + + + + + + + + + + + + + + + + +
+ + + 发料人: + 收料人: + 白色:车间联 + 蓝色:仓库联 + 红色:财务联 + + + SAP-No:{{printData.SAPNo}} + Z-PM-F-030-A.2 + + +
+ + +
+ + 打 印 + +
+ +