diff --git a/src/api/wms/put.js b/src/api/wms/put.js new file mode 100644 index 0000000..f78d2cb --- /dev/null +++ b/src/api/wms/put.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询成品生产入库列表 +export function listPut(query) { + return request({ + url: '/wms/put/list', + method: 'get', + params: query + }); +} + +// 查询成品生产入库详细 +export function getPut(id) { + return request({ + url: '/wms/put/' + id, + method: 'get' + }); +} + +// 新增成品生产入库 +export function addPut(data) { + return request({ + url: '/wms/put', + method: 'post', + data: data + }); +} + +// 修改成品生产入库 +export function updatePut(data) { + return request({ + url: '/wms/put', + method: 'put', + data: data + }); +} + +// 删除成品生产入库 +export function delPut(id) { + return request({ + url: '/wms/put/' + id, + method: 'delete' + }); +} diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 80c9d47..860c0f0 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -280,6 +280,17 @@ +
+ + + SAP-No:{{printData.SAPNo}} + Z-PM-F-030-A.1 + + + 制单人:{{printData.manufacture}} + 审核人:{{printData.auditor}} + + @@ -451,6 +462,9 @@ export default { printable: 'printFrom', ignore: ['no-print'], workCenter: "暂无数据", + SAPNo: null, + manufacture: null, + auditor: null, printDate: null, factory: null, productDate: null, @@ -610,6 +624,7 @@ export default { // 打开工单信息对话框 this.printDialogVisible = true; this.printData.printDate = moment(new Date()).format('YYYY.MM.DD'); + this.printData.manufacture = this.$store.state.user.name; this.newWorkerLoading = true // 设置加载状态为true,表示正在加载 this.refreshNewWorkerTable = false // 先将refreshProTable设置为false,隐藏表格 getWorkOrders(this.selectWork.workorderCode).then(response => { @@ -1108,5 +1123,8 @@ export default { } .my-print-table { +} +.my-print-foot { + margin-top: 20px; } diff --git a/src/views/wms/put/index.vue b/src/views/wms/put/index.vue new file mode 100644 index 0000000..67ae7e9 --- /dev/null +++ b/src/views/wms/put/index.vue @@ -0,0 +1,611 @@ + + +