From 0ab8569fa013cf0dbc130db5897dbf03b51265c7 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Tue, 8 Aug 2023 16:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86(=E6=96=B0?= =?UTF-8?q?=E5=A2=9E-=E8=AE=A2=E5=8D=95=E6=95=B0=E9=87=8F=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=8F=90=E9=86=92)=E3=80=81=E6=B9=BF=E6=96=99?= =?UTF-8?q?=E8=AE=A1=E5=88=92(=E8=AE=A1=E5=88=92=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/order/index.vue | 26 ++++++++++++++++++++------ src/views/plan/plan/index.vue | 2 +- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/views/plan/order/index.vue b/src/views/plan/order/index.vue index 6f96e7f..4c9a000 100644 --- a/src/views/plan/order/index.vue +++ b/src/views/plan/order/index.vue @@ -280,7 +280,7 @@ - + @@ -569,16 +569,21 @@ export default { }) }, methods: { + // 新增-订单数量改变 + addQuantity(num){ + if (num<=0){ + this.form.quantity = 1; + this.$message({ + message:"数量不能小于1", + type:"warning" + }) + } + }, /** 导入按钮操作 */ handleImport() { this.upload.title = "订单信息导入"; this.upload.open = true; }, - /** 下载模板操作 */ - importTemplate() { - this.download('/plan/order/importTemplate', { - }, `order_example_template_${new Date().getTime()}.xlsx`) - }, // 文件上传中处理 handleFileUploadProgress(event, file, fileList) { this.upload.isUploading = true; @@ -595,6 +600,11 @@ export default { submitFileForm() { this.$refs.upload.submit(); }, + /** 下载模板操作 */ + importTemplate() { + this.download('/plan/order/importTemplate', { + }, `order_example_template_${new Date().getTime()}.xlsx`) + }, /** 导出按钮操作 */ handleExport() { this.download('/plan/order/export', { @@ -771,6 +781,10 @@ export default { if (e < now) { e = now this.splitForm.productDate = now + this.$message({ + message:"工单日期不能早于今天", + type:"warning" + }) } }, /** 拆分提交按钮 */ diff --git a/src/views/plan/plan/index.vue b/src/views/plan/plan/index.vue index 0066858..ee3d81d 100644 --- a/src/views/plan/plan/index.vue +++ b/src/views/plan/plan/index.vue @@ -893,7 +893,7 @@ export default { }, /** 导出按钮操作 */ handleExport() { - this.download('mes/plan/export', { + this.download('plan/plan/export', { ...this.queryParams }, `plan_${new Date().getTime()}.xlsx`) }