订单管理(新增-订单数量用户提醒)、湿料计划(计划导出功能)

yangwl
wws 1 year ago
parent d0725fc47e
commit 0ab8569fa0

@ -280,7 +280,7 @@
<!-- 第一列 --> <!-- 第一列 -->
<el-col :offset="1" :span="8"> <el-col :offset="1" :span="8">
<el-form-item label-width="100px" label="订单数量" prop="quantity"> <el-form-item label-width="100px" label="订单数量" prop="quantity">
<el-input type="number" v-model="form.quantity" placeholder="请输入订单数量"/> <el-input @change="addQuantity" type="number" v-model="form.quantity" placeholder="请输入订单数量"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 第二列 --> <!-- 第二列 -->
@ -569,16 +569,21 @@ export default {
}) })
}, },
methods: { methods: {
// -
addQuantity(num){
if (num<=0){
this.form.quantity = 1;
this.$message({
message:"数量不能小于1",
type:"warning"
})
}
},
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {
this.upload.title = "订单信息导入"; this.upload.title = "订单信息导入";
this.upload.open = true; this.upload.open = true;
}, },
/** 下载模板操作 */
importTemplate() {
this.download('/plan/order/importTemplate', {
}, `order_example_template_${new Date().getTime()}.xlsx`)
},
// //
handleFileUploadProgress(event, file, fileList) { handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true; this.upload.isUploading = true;
@ -595,6 +600,11 @@ export default {
submitFileForm() { submitFileForm() {
this.$refs.upload.submit(); this.$refs.upload.submit();
}, },
/** 下载模板操作 */
importTemplate() {
this.download('/plan/order/importTemplate', {
}, `order_example_template_${new Date().getTime()}.xlsx`)
},
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('/plan/order/export', { this.download('/plan/order/export', {
@ -771,6 +781,10 @@ export default {
if (e < now) { if (e < now) {
e = now e = now
this.splitForm.productDate = now this.splitForm.productDate = now
this.$message({
message:"工单日期不能早于今天",
type:"warning"
})
} }
}, },
/** 拆分提交按钮 */ /** 拆分提交按钮 */

@ -893,7 +893,7 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('mes/plan/export', { this.download('plan/plan/export', {
...this.queryParams ...this.queryParams
}, `plan_${new Date().getTime()}.xlsx`) }, `plan_${new Date().getTime()}.xlsx`)
} }

Loading…
Cancel
Save