fix:标签中的切片数量展示
This commit is contained in:
parent
6b05f21ce6
commit
4deeb0fc54
|
@ -81,6 +81,17 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="12" :xs="24" v-if="route_code=='tuomoceliang'">
|
||||||
|
<el-form-item label="切分数量">
|
||||||
|
<el-input-number
|
||||||
|
v-model="form.cutCount"
|
||||||
|
:min="1"
|
||||||
|
class="width-100"
|
||||||
|
controls-position="right"
|
||||||
|
>
|
||||||
|
</el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :md="12" :sm="12" :xs="24" v-for="item in testitems" :key="item.id">
|
<el-col :md="12" :sm="12" :xs="24" v-for="item in testitems" :key="item.id">
|
||||||
<el-form-item :label="item.name">
|
<el-form-item :label="item.name">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
|
@ -143,6 +154,7 @@
|
||||||
placeholder="工艺路线"
|
placeholder="工艺路线"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
@change="routeChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in routeOptions"
|
v-for="item in routeOptions"
|
||||||
|
@ -249,6 +261,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.route_code = this.$route.path.split("/")[2];
|
this.route_code = this.$route.path.split("/")[2];
|
||||||
|
console.log('this.route_code',this.route_code);
|
||||||
this.form.handle_date = this.$TOOL.dateFormat2(new Date());
|
this.form.handle_date = this.$TOOL.dateFormat2(new Date());
|
||||||
this.form.work_start_time = this.$TOOL.dateFormat(new Date());
|
this.form.work_start_time = this.$TOOL.dateFormat(new Date());
|
||||||
this.form.mgroup = this.mgroup;
|
this.form.mgroup = this.mgroup;
|
||||||
|
@ -375,6 +388,9 @@ export default {
|
||||||
})
|
})
|
||||||
if(that.routeOptions.length==1){
|
if(that.routeOptions.length==1){
|
||||||
that.form.route = that.routeOptions[0].id;
|
that.form.route = that.routeOptions[0].id;
|
||||||
|
if(that.route_code=='tuomoceliang'){
|
||||||
|
that.form.cutCount = that.routeOptions[0].div_number;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
@ -407,6 +423,9 @@ export default {
|
||||||
})
|
})
|
||||||
if(that.routeOptions.length==1){
|
if(that.routeOptions.length==1){
|
||||||
that.form.route = that.routeOptions[0].id;
|
that.form.route = that.routeOptions[0].id;
|
||||||
|
if(that.route_code=='tuomoceliang'){
|
||||||
|
that.form.cutCount = that.routeOptions[0].div_number;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let arr = that.materialOptions.filter((item) => {
|
let arr = that.materialOptions.filter((item) => {
|
||||||
|
@ -444,6 +463,14 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
routeChange(){
|
||||||
|
let that = this;
|
||||||
|
that.routeOptions.forEach((item) => {
|
||||||
|
if(item.id == that.form.route&&that.route_code=='tuomoceliang'){
|
||||||
|
that.form.cutCount = item.div_number;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//表单提交方法
|
//表单提交方法
|
||||||
submit() {
|
submit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
Loading…
Reference in New Issue