diff --git a/src/api/zyjh.js b/src/api/zyjh.js index e7bd138..94a078e 100644 --- a/src/api/zyjh.js +++ b/src/api/zyjh.js @@ -1,5 +1,12 @@ import request from '@/utils/request' +export const pwpg=function(data){ + return request({ + url: '/zyjh/pwpg', + method: 'post', + data: data + }) +} export function pdfList(params) { return request({ diff --git a/src/event-bus.js b/src/event-bus.js new file mode 100644 index 0000000..d64d479 --- /dev/null +++ b/src/event-bus.js @@ -0,0 +1,2 @@ +import Vue from 'vue' +export const EventBus = new Vue() diff --git a/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue b/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue index 76516ac..c007f37 100644 --- a/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue +++ b/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue @@ -40,6 +40,7 @@ export default { const tmpList=this.list.filter(item=>item.djh===data.msg.orderNumber||item.djh.slice(-djhWhLengh)===data.msg.orderNumber) if (tmpList.length>1){ this.list=tmpList + this.gridOptions.data=tmpList this.$message.warning('短号有重复,请使用全工单号重新派工!!!') return } diff --git a/src/views/zyjhzx/pwanfkui/comps/PwanPgd.vue b/src/views/zyjhzx/pwanfkui/comps/PwanPgd.vue index aeef1c7..fc847c6 100644 --- a/src/views/zyjhzx/pwanfkui/comps/PwanPgd.vue +++ b/src/views/zyjhzx/pwanfkui/comps/PwanPgd.vue @@ -50,6 +50,7 @@ export default { const tmpList=this.list.filter(item=>item.djh===data.msg.orderNumber||item.djh.slice(-djhWhLengh)===data.msg.orderNumber) if (tmpList.length>1){ this.list=tmpList + this.gridOptions.data=tmpList this.$message.warning('短号有重复,请使用全工单号重新派工!!!') return } diff --git a/src/views/zyjhzx/pwanpgong/comps/PwanPgd.vue b/src/views/zyjhzx/pwanpgong/comps/PwanPgd.vue index b1ec8a9..e78ada3 100644 --- a/src/views/zyjhzx/pwanpgong/comps/PwanPgd.vue +++ b/src/views/zyjhzx/pwanpgong/comps/PwanPgd.vue @@ -1,11 +1,12 @@ + + diff --git a/src/views/zyjhzx/pwanpgong/comps/pgdTable.js b/src/views/zyjhzx/pwanpgong/comps/pgdTable.js index f9afbf9..66dd82c 100644 --- a/src/views/zyjhzx/pwanpgong/comps/pgdTable.js +++ b/src/views/zyjhzx/pwanpgong/comps/pgdTable.js @@ -1,10 +1,13 @@ -export default function () { +export default function (_height=0) { let height=window.innerHeight if (height > 1024) { height = window.innerHeight*0.88 }else{ height = window.innerHeight*0.78 } + if (_height>0){ + height=_height + } const options={ height:height, align:'center', @@ -48,25 +51,14 @@ export default function () { const columns = [ { type: 'checkbox', width: 40 }, { type: 'seq',title:'序号', width: 60 }, - // { field: 'djh',title:'派工单号', width: 120}, - // {field: 'slycldw', title: '垛位', width: 60,formatter: dwFormat}, - // {field: 'slyclcs', title: '层数', width: 60}, - {field: 'plxh', title: '工单号', }, - {field: 'dcCh', title: '船号'}, - {field: 'dcPl', title: '批量', }, - {field: 'total', title: '总数量', }, - {field: 'wpg', title: '待处理数量', }, - {field: 'comp', title: '已报工', }, - {field: 'wwg', title: '未报工', }, - {field: 'compOnLastGx', title: '上道序报工数量', }, - // {field: 'wpgg', title: '材质', width: 80}, - // {field: 'wpxh', title: '规格', width: 70}, - // {field: 'slwlh', title: '炉批号', width: 100}, - // {field: 'tzbh', title: '套料图号', width: 100}, - // {field: 'pwry', title: '接收人', width: 80,formatter:nameFormat}, - // {field: 'pwjssj', title: '接收时间', width: 100}, - // {field: 'pgr', title: '派工人', width: 80}, - // {field: 'pgsj', title: '派工时间', width: 100}, + {field: 'dwId', title: '垛位', width: 100,formatter: dwFormat}, + {field: 'ceng', title: '层数', width: 60}, + {field: 'czbh', title: '船号'}, + {field: 'pl', title: '批量'}, + {field: 'fd', title: '分段',visible:false}, + {field: 'tlth', title: '套料图号',visible:false}, + {field: 'wpgg', title: '物品规格', }, + {field: '', title: '抛丸',visible:false }, ] return { diff --git a/src/views/zyjhzx/pwanpgong/index.vue b/src/views/zyjhzx/pwanpgong/index.vue index 64f4a88..db14170 100644 --- a/src/views/zyjhzx/pwanpgong/index.vue +++ b/src/views/zyjhzx/pwanpgong/index.vue @@ -1,7 +1,8 @@