|
@@ -101,7 +101,7 @@
|
|
|
v-for="item of routingList"
|
|
v-for="item of routingList"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
|
:label="item.name"
|
|
:label="item.name"
|
|
|
- :value="item.name"
|
|
|
|
|
|
|
+ :value="item.id"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
@@ -128,7 +128,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { deepClone } from '@/utils';
|
|
import { deepClone } from '@/utils';
|
|
|
- import { getBom } from '@/api/productionPlan/index.js';
|
|
|
|
|
|
|
+ import { getBom , batchSave} from '@/api/productionPlan/index.js';
|
|
|
import { routeList } from '@/api/saleOrder';
|
|
import { routeList } from '@/api/saleOrder';
|
|
|
import EquipmentDialog from './EquipmentDialog.vue';
|
|
import EquipmentDialog from './EquipmentDialog.vue';
|
|
|
|
|
|
|
@@ -336,6 +336,7 @@
|
|
|
produceRoutingId: '',
|
|
produceRoutingId: '',
|
|
|
produceRoutingName: '',
|
|
produceRoutingName: '',
|
|
|
requiredFormingNum: _num,
|
|
requiredFormingNum: _num,
|
|
|
|
|
+ productUnitWeight: m.productUnitWeight,
|
|
|
unit: this.unit,
|
|
unit: this.unit,
|
|
|
resourceType: 0
|
|
resourceType: 0
|
|
|
};
|
|
};
|
|
@@ -365,6 +366,7 @@
|
|
|
produceRoutingId: '',
|
|
produceRoutingId: '',
|
|
|
produceRoutingName: '',
|
|
produceRoutingName: '',
|
|
|
requiredFormingNum: '',
|
|
requiredFormingNum: '',
|
|
|
|
|
+ productUnitWeight: m.productUnitWeight,
|
|
|
unit: this.unit,
|
|
unit: this.unit,
|
|
|
resourceType: 1
|
|
resourceType: 1
|
|
|
};
|
|
};
|
|
@@ -405,9 +407,7 @@
|
|
|
produceType: this.formData.produceType,
|
|
produceType: this.formData.produceType,
|
|
|
id: this.formData.id
|
|
id: this.formData.id
|
|
|
};
|
|
};
|
|
|
- return false
|
|
|
|
|
batchSave(param).then((res) => {
|
|
batchSave(param).then((res) => {
|
|
|
-
|
|
|
|
|
this.$emit('close', true);
|
|
this.$emit('close', true);
|
|
|
this.visible = false;
|
|
this.visible = false;
|
|
|
});
|
|
});
|