From 72e7885f43556ee500cec591b027784f374819ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Sun, 1 Dec 2024 16:44:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=B0=83=E6=95=B4=E6=8A=9B=E4=B8=B8=E6=B4=BE?= =?UTF-8?q?=E5=B7=A5=E9=80=BB=E8=BE=91,=E6=A0=B9=E6=8D=AE=E5=9E=9B?= =?UTF-8?q?=E4=BD=8D=E7=82=B9=E5=87=BB=E5=90=8E=E5=8B=BE=E9=80=89=E6=B4=BE?= =?UTF-8?q?=E5=B7=A5,=E6=B4=BE=E5=B7=A5=E5=AE=8C=E6=88=90=E5=AF=BC?= =?UTF-8?q?=E5=87=BAexcel=E4=BE=9B=E6=8A=9B=E4=B8=B8=E4=BD=BF=E7=94=A8=202?= =?UTF-8?q?.=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3ws=E6=9C=8D=E5=8A=A1=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/zyjh.js | 7 + src/event-bus.js | 2 + src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue | 1 + src/views/zyjhzx/pwanfkui/comps/PwanPgd.vue | 1 + src/views/zyjhzx/pwanpgong/comps/PwanPgd.vue | 114 ++++++++------ src/views/zyjhzx/pwanpgong/comps/PwanSgd.vue | 141 ++++++++++++++++++ src/views/zyjhzx/pwanpgong/comps/pgdTable.js | 32 ++-- src/views/zyjhzx/pwanpgong/index.vue | 53 ++++--- src/views/zyjhzx/qgefkui/comps/QgePgd.vue | 1 + 9 files changed, 272 insertions(+), 80 deletions(-) create mode 100644 src/event-bus.js create mode 100644 src/views/zyjhzx/pwanpgong/comps/PwanSgd.vue 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 @@