|
|
@@ -534,9 +534,7 @@ export default {
|
|
|
this.getByCodeFn();
|
|
|
this.getFactoryList();
|
|
|
if (val.type == 'edit') {
|
|
|
-
|
|
|
this.getPlanInfo(val.id);
|
|
|
-
|
|
|
} else {
|
|
|
this.getSaleInfo();
|
|
|
|
|
|
@@ -579,13 +577,12 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.form.factoriesId = this.factoryList[0].id
|
|
|
})
|
|
|
- // console.log(this.factoryList, 'factoryList');
|
|
|
},
|
|
|
async getPlanInfo(id) {
|
|
|
const data = await getUpdateInfoById(id);
|
|
|
- console.log('wwwwwwwwwwww', data);
|
|
|
|
|
|
this.form = data;
|
|
|
+ this.form.factoriesId = data.salesOrders ? data.salesOrders[0].factoriesId : '';
|
|
|
|
|
|
if (this.clientEnvironmentId != 4) {
|
|
|
this.bomListVersion()
|
|
|
@@ -635,7 +632,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
bomListVersion() {
|
|
|
- console.log(this.form, '1111111111');
|
|
|
let categoryId = ''
|
|
|
|
|
|
if (this.form.salesOrders.length) {
|