|
|
@@ -316,7 +316,8 @@
|
|
|
return {
|
|
|
form: {
|
|
|
produceVersionId: '',
|
|
|
- salesOrders: []
|
|
|
+ salesOrders: [],
|
|
|
+ produceVersionName:''
|
|
|
},
|
|
|
// 表单验证规则
|
|
|
rules: {
|
|
|
@@ -324,7 +325,7 @@
|
|
|
{ required: true, message: '请选择生产版本', trigger: 'change' }
|
|
|
]
|
|
|
},
|
|
|
- selection: [],
|
|
|
+ // selection: [],
|
|
|
loading: false
|
|
|
};
|
|
|
},
|
|
|
@@ -341,11 +342,7 @@
|
|
|
if (this.$route.query.type == 'edit') {
|
|
|
this.getPlanInfo(this.$route.query.id);
|
|
|
} else {
|
|
|
- this.selection = JSON.parse(this.$route.query.selection);
|
|
|
- const list = [];
|
|
|
- this.selection.map((item) => {
|
|
|
- list.push(item.id);
|
|
|
- });
|
|
|
+ const list = JSON.parse(this.$route.query.selection);
|
|
|
this.getSaleInfo(list);
|
|
|
}
|
|
|
},
|