|
@@ -175,16 +175,38 @@ export default { |
|
|
} |
|
|
} |
|
|
if (this.isEdit) { |
|
|
if (this.isEdit) { |
|
|
//编辑 |
|
|
//编辑 |
|
|
orderUpdate({ ...this.form }).then((res) => { |
|
|
|
|
|
|
|
|
orderUpdate({ |
|
|
|
|
|
code: this.form.code, |
|
|
|
|
|
name: this.form.name, |
|
|
|
|
|
planQuantity: this.form.planQuantity, |
|
|
|
|
|
planProductId: this.form.planProductId, |
|
|
|
|
|
priority: this.form.priority, |
|
|
|
|
|
planStartTime: this.form.planStartTime, |
|
|
|
|
|
planFinishTime: this.form.planFinishTime, |
|
|
|
|
|
remark: this.form.remark, |
|
|
|
|
|
id: this.form.id, |
|
|
|
|
|
specifications: this.form.specifications |
|
|
|
|
|
}).then((res) => { |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
this.$modal.msgSuccess("操作成功"); |
|
|
this.$modal.msgSuccess("操作成功"); |
|
|
this.$emit('successSubmit') |
|
|
this.$emit('successSubmit') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.form.status = 1 |
|
|
|
|
|
this.form.triggerOrigin = 1 |
|
|
|
|
|
orderCreate({ ...this.form }).then((res) => { |
|
|
|
|
|
|
|
|
orderCreate({ |
|
|
|
|
|
code: this.form.code, |
|
|
|
|
|
name: this.form.name, |
|
|
|
|
|
planQuantity: this.form.planQuantity, |
|
|
|
|
|
planProductId: this.form.planProductId, |
|
|
|
|
|
priority: this.form.priority, |
|
|
|
|
|
planStartTime: this.form.planStartTime, |
|
|
|
|
|
planFinishTime: this.form.planFinishTime, |
|
|
|
|
|
remark: this.form.remark, |
|
|
|
|
|
id: this.form.id, |
|
|
|
|
|
specifications: this.form.specifications, |
|
|
|
|
|
status: 1, |
|
|
|
|
|
triggerOrigin: 1 |
|
|
|
|
|
}).then((res) => { |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
this.$modal.msgSuccess("操作成功"); |
|
|
this.$modal.msgSuccess("操作成功"); |
|
|
this.$emit('successSubmit') |
|
|
this.$emit('successSubmit') |
|
|