diff --git a/src/api/plan/workorder.js b/src/api/plan/workorder.js index f3c2697..d1fa835 100644 --- a/src/api/plan/workorder.js +++ b/src/api/plan/workorder.js @@ -188,3 +188,10 @@ export function getIdCardList(data){ data:data }) } + +export function getBatchCode(workorderId){ + return request({ + url:'/plan/pro/workorder/getBatchCode/'+ workorderId, + method: 'get' + }) + } \ No newline at end of file diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 87f2c7d..833fd26 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -1987,7 +1987,6 @@ export default { /**打印标识卡弹出框**/ printIdCard() { - //var statusesArray = this.statuses; //for (var i = 0; i < statusesArray.length; i++) { // if (statusesArray[i] == 'w0') {//已经下达的不允许操作 @@ -1996,7 +1995,7 @@ export default { // } //} - this.$refs.printID.init(this.selectWork.workorderCode); + this.$refs.printID.init(this.selectWork.workorderCode,this.selectWork.workorderId); this.$refs.printID.printDialogVisible = true; }, //标识卡选择确认 diff --git a/src/views/plan/workorder/printID.vue b/src/views/plan/workorder/printID.vue index f20abb0..a3f4b6d 100644 --- a/src/views/plan/workorder/printID.vue +++ b/src/views/plan/workorder/printID.vue @@ -2,14 +2,38 @@