fix:尺寸外观(成品)检验添加检验设备和备注

This commit is contained in:
shijing 2024-11-21 13:24:38 +08:00
parent 05649491ab
commit 431fcf4bd8
1 changed files with 33 additions and 0 deletions

View File

@ -127,6 +127,32 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :md="12" :sm="24">
<el-form-item label="检验设备">
<el-select
v-model="form.equipment"
placeholder="检验设备"
clearable
filterable
style="width: 100%"
>
<el-option
v-for="item in eqOptions"
:key="item.id"
:label="item.label"
:value="item.id"
>
<span style="float:left">{{item.name}}</span>
<span style="float:right">{{item.number}}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<el-form-item label="备注">
<el-input v-model="form.note" placeholder="备注"></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-divider style="margin-top:0"></el-divider> <el-divider style="margin-top:0"></el-divider>
<el-row v-if="mode=='sizeAdd'||mode=='sizeEdit'||mode=='sizeShow'"> <el-row v-if="mode=='sizeAdd'||mode=='sizeEdit'||mode=='sizeShow'">
@ -482,6 +508,7 @@ export default {
visible: false, visible: false,
isSaveing: false, isSaveing: false,
options: [], options: [],
eqOptions: [],
userList:[], userList:[],
shiftOtions:[], shiftOtions:[],
selectionFilters: [], selectionFilters: [],
@ -491,6 +518,7 @@ export default {
mounted() { mounted() {
this.getUsers(); this.getUsers();
this.getShift(); this.getShift();
this.geteEqOptions();
}, },
methods: { methods: {
// //
@ -515,6 +543,11 @@ export default {
that.userList = res; that.userList = res;
}); });
}, },
geteEqOptions(){
that.$API.system.user.list.req({ page: 0, type:20 }).then((res) => {
that.eqOptions = res;
});
},
handleCheckChange(){ handleCheckChange(){
this.form.count_ok = this.form.count-this.form.count_notok; this.form.count_ok = this.form.count-this.form.count_notok;
}, },