Commit 564e7671 authored by 沈翠玲's avatar 沈翠玲

切换页签保存数据

parent 3bbc5c53
......@@ -357,7 +357,7 @@ export default {
return {
loading: false,
optType: undefined,
workorderId: null,
bomList: [],
// 表单参数
form: {
......@@ -371,6 +371,7 @@ export default {
orderSource: null,
sourceCode: null,
productId: null,
startDate: null,
productCode: null,
productName: null,
productSpc: null,
......@@ -457,6 +458,16 @@ export default {
return titles[this.mode];
},
},
activated() {
if (this.$route.query && this.$route.query.workorderId && this.workorderId !== this.$route.query.workorderId) {
this.resetForm()
this.workorderId = this.$route.query.workorderId
}
this.getFormInfo();
if (this.mode == "apply") {
this.gCode();
}
},
created() {
this.getFormInfo();
if (this.mode == "apply") {
......@@ -750,6 +761,7 @@ export default {
createBy: null,
createTime: null,
updateBy: null,
startDate: null,
updateTime: null,
packType: null,
packUnitOfMeasure: null,
......
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