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

切换页签保存数据

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