|
|
@@ -57,7 +57,7 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }" v-if="clientEnvironmentId != 4">
|
|
|
- {{ form.produceRoutingId }}99999
|
|
|
+
|
|
|
<el-form-item label="工艺路线:" prop="produceRoutingId">
|
|
|
<!-- @click.native="openVersion" -->
|
|
|
|
|
|
@@ -164,7 +164,7 @@
|
|
|
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 10 } : { span: 5 }">
|
|
|
<el-form-item label="所属工厂:" prop="factoriesId">
|
|
|
- <el-select v-model="form.factoriesId" style="width: 100%" >
|
|
|
+ <el-select v-model="form.factoriesId" style="width: 100%" @change="factoriesIdFn">
|
|
|
<el-option
|
|
|
v-for="item of factoryList"
|
|
|
:key="item.id"
|
|
|
@@ -802,7 +802,7 @@ export default {
|
|
|
|
|
|
console.log(this.routingList);
|
|
|
console.log(this.form.produceRoutingId);
|
|
|
-
|
|
|
+ this.$forceUpdate();
|
|
|
this.routingList.forEach((f) => {
|
|
|
if(f.id == this.form.produceRoutingId) {
|
|
|
this.$set(this.form, 'produceRoutingName', f.name);
|
|
|
@@ -879,6 +879,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ factoriesIdFn(){
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
+
|
|
|
toInt(planProductNum) {
|
|
|
return planProductNum * (this.form.marginCoefficient || 1);
|
|
|
},
|