Commit 3baca635 authored by renjintao's avatar renjintao

order/add/params

parent 9584543b
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
</Col> </Col>
</Row> </Row>
<Row> <Row>
<Col span="8"> <Col span="8">
<FormItem label="数量" style="width:100%" prop="quantity"> <FormItem label="数量" style="width:100%" prop="quantity">
<InputNumber :min="0" v-model="orderSearchForm.quantity" style="width:240px"></InputNumber> <InputNumber :min="0" v-model="orderSearchForm.quantity" style="width:240px"></InputNumber>
...@@ -72,7 +71,7 @@ ...@@ -72,7 +71,7 @@
<Input v-model="orderSearchForm.projectNumber" style="width:240px" /> <Input v-model="orderSearchForm.projectNumber" style="width:240px" />
</FormItem> </FormItem>
</Col> </Col>
<Col span="8"> <Col span="8">
<FormItem label="批次号" style="width:100%"> <FormItem label="批次号" style="width:100%">
<Input v-model="orderSearchForm.batchNumber" style="width:240px" /> <Input v-model="orderSearchForm.batchNumber" style="width:240px" />
</FormItem> </FormItem>
...@@ -90,7 +89,7 @@ ...@@ -90,7 +89,7 @@
<Row> <Row>
<Col span="24"> <Col span="24">
<FormItem label="任务节点要求" style="width:100%"> <FormItem label="任务节点要求" style="width:100%">
<Input v-model="orderSearchForm.taskRequire" placeholder /> <Input v-model="orderSearchForm.taskRequire" placeholder />
</FormItem> </FormItem>
</Col> </Col>
<Col span="24"> <Col span="24">
...@@ -169,20 +168,20 @@ export default { ...@@ -169,20 +168,20 @@ export default {
type: "number", type: "number",
trigger: "change" trigger: "change"
} }
], ]
}, },
disabled:false, disabled: false
}; };
}, },
mounted(){ mounted() {
this.loadTree() this.loadTree();
}, },
methods: { methods: {
handleSubmit() { handleSubmit() {
this.$refs.formValidate.validate(v => { this.$refs.formValidate.validate(v => {
if (v) { if (v) {
this.disabled = true; this.disabled = true;
this.orderSearchForm.status=1 this.orderSearchForm.status = 1;
Api.mesplancreate(this.orderSearchForm) Api.mesplancreate(this.orderSearchForm)
.then(r => { .then(r => {
this.disabled = false; this.disabled = false;
...@@ -202,7 +201,7 @@ export default { ...@@ -202,7 +201,7 @@ export default {
}); });
}, },
handleClose() { handleClose() {
this.resetFields() this.resetFields();
this.$emit("on-close"); this.$emit("on-close");
}, },
l(key) { l(key) {
...@@ -225,33 +224,20 @@ export default { ...@@ -225,33 +224,20 @@ export default {
} }
}, },
resetFields() { resetFields() {
this.orderSearchForm = { this.orderSearchForm = {
productId: null, //产品id productId: null, //产品id
productName: "", //产品名称 productName: "", //产品名称
drawnNumber: null, //图号 drawnNumber: null, //图号
taskType: null, //任务类型 taskType: null, //任务类型
stage: null, //阶段 quantity: 1, //数量
materialId: null, //材料 taskRequire: "", //任务接点要求
quantity: 1, //数量 demandStartDate: this.getFormatDate(nowDate), //开始时间
guestName: "", //甲方客户 demandFinishDate: this.getFormatDateEnd(tomorrowDate), //完成时间
printSupply: "", //3D打印承制单位 remark: "", //备注
functionaryOffice: "", //厂内责任机关 projectNumber: "", //项目号
mainDepartmentId: "", //厂内责任主体部门ID batchNumber: "", //批次号
taskRequire: "", //任务接点要求 urgencyLevel: null //紧急程度
putintDocmentCode: "", //甲方投产输入文件编号 };
technologyDocmentCode: "", //甲方技术输入文件编号
outerDrawnNumber: "", //外部图号/模型号
modelVersion: "", //模型版本
taskCode: "", //甲方任务号
designer: "", //甲方设计人员
officeFunctionary: "", //厂内机关负责人
mainRoutingPeople: "", //厂内主工艺人员
routing_Method: null, //工艺方法
outer_Envelope_Size: "", //包装尺寸
demandStartDate: this.getFormatDate(nowDate), //开始时间
demandFinishDate: this.getFormatDate(tomorrowDate), //完成时间
remark: "" //备注
};
}, },
loadTree() { loadTree() {
//打开新增订单窗口加载产品 //打开新增订单窗口加载产品
...@@ -312,7 +298,8 @@ export default { ...@@ -312,7 +298,8 @@ export default {
"-" + "-" +
this.p(d.getMonth() + 1) + this.p(d.getMonth() + 1) +
"-" + "-" +
this.p(d.getDate())+ " 00:00:01"; this.p(d.getDate()) +
" 00:00:01";
return resDate; return resDate;
}, },
getFormatDateEnd(dates) { getFormatDateEnd(dates) {
...@@ -322,13 +309,14 @@ export default { ...@@ -322,13 +309,14 @@ export default {
"-" + "-" +
this.p(d.getMonth() + 1) + this.p(d.getMonth() + 1) +
"-" + "-" +
this.p(d.getDate())+ " 23:59:59"; this.p(d.getDate()) +
" 23:59:59";
return resDate; return resDate;
}, },
p(s) { p(s) {
return s < 10 ? "0" + s : s; return s < 10 ? "0" + s : s;
} }
//时间相关end //时间相关end
} }
}; };
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment