From aee0cc33754f91e51bde6c05ce386e07d6060c92 Mon Sep 17 00:00:00 2001 From: 1178634255 <1178634255@qq.com> Date: Mon, 22 May 2023 16:35:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=94=B3=E8=B4=AD=E5=8D=95=E4=B8=8E=E7=94=B3=E8=B4=AD=E5=8D=95?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purApply/purApplyEditDiaolog.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/purchase/purApply/purApplyEditDiaolog.vue b/src/views/purchase/purApply/purApplyEditDiaolog.vue index c07f81b0..4d20ff2f 100644 --- a/src/views/purchase/purApply/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApply/purApplyEditDiaolog.vue @@ -51,6 +51,7 @@ style="width: 90%" :clearable="false" value-format="yyyy-MM-dd HH:mm:ss" + :disabled-date="disabledArrivalDate" > @@ -220,6 +221,7 @@ export default { id: null, billNo: null, createTime: "", + arrivalTime: '', remark: "", deptCode: null, invCode: null, @@ -294,7 +296,9 @@ export default { if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) { return this.$message.error("到货时间不能为空!"); } - + if (this.formData.arrivalTime Date: Mon, 22 May 2023 17:48:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/itextpdf/orderPrint.js | 20 +++++++++++ src/views/inout/IoAuditedOrder.vue | 54 ++++++++++++++++++++++++++++-- 2 files changed, 71 insertions(+), 3 deletions(-) diff --git a/src/api/itextpdf/orderPrint.js b/src/api/itextpdf/orderPrint.js index c7b4ed60..b478ac57 100644 --- a/src/api/itextpdf/orderPrint.js +++ b/src/api/itextpdf/orderPrint.js @@ -20,3 +20,23 @@ export function orderPDFFromTemplateFile(query) { responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf }); } + +//---------报表打印订单 +export function inspectionOrderPDFFromStatemenTemplateFile(query) { + return axios({ + url: "/udiwms/pdf/template/inspection/order/code/file", + method: "post", + data: query, + }); +} + +export function orderPDFFromStatemenTemplateFile(query) { + return axios({ + url: "/udiwms/pdf/template/text/inspection/order/code/file", + method: "post", + data: query, + headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf + }); +} + diff --git a/src/views/inout/IoAuditedOrder.vue b/src/views/inout/IoAuditedOrder.vue index 48dad128..f23d6fa5 100644 --- a/src/views/inout/IoAuditedOrder.vue +++ b/src/views/inout/IoAuditedOrder.vue @@ -147,7 +147,7 @@ - +