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`) }