|
|
@ -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"
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 拆分提交按钮 */
|
|
|
|
/** 拆分提交按钮 */
|
|
|
|