fix:玻纤外协工段日志不显示外协单位修正

This commit is contained in:
shijing 2026-08-04 14:29:46 +08:00
parent ce9aa0c799
commit f5d73eb46c
2 changed files with 37 additions and 2 deletions

View File

@ -22,7 +22,6 @@
<el-form-item
label="外协单位"
prop="supplier"
v-if="form.mtype == 20"
>
<el-select
v-model="form.supplier"
@ -332,7 +331,6 @@ export default {
})
}
this.getRoute();
this.getSupplier();
this.getEquipment();
this.getMtask();
this.gettestitem();
@ -411,6 +409,9 @@ export default {
this.form.handle_user = userInfo.id;
this.form.handle_user_name = userInfo.name;
}
if(that.mgroupMtype == 20 ){
that.getSupplier();
}
this.visible = true;
if(type!==''&&type!==undefined&&type!==null){
this.mlogtype = type;

View File

@ -18,6 +18,27 @@
style="padding: 0 10px"
>
<el-row>
<el-col :md="12" :sm="12" :xs="24" v-if="mgroupMtype == 20">
<el-form-item
label="外协单位"
prop="supplier"
>
<el-select
v-model="form.supplier"
placeholder="外协单位"
clearable
:disabled="mode == 'edit'"
style="width: 100%"
>
<el-option
v-for="item in supplierOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="scanColSpan">
<el-form-item label="扫码:">
<el-input
@ -291,6 +312,7 @@ export default {
bwItemForms: [],
routeOptions: [],
materialOptions: [],
supplierOptions: [],
routeOriginOptions: [],
base_code: this.$TOOL.data.get('BASE_INFO').base.base_code,
};
@ -354,6 +376,15 @@ export default {
});
});
},
getSupplier() {
let that = this;
let obj = {};
obj.page = 0;
obj.can_outsource = true;
that.$API.pum.supplier.list.req(obj).then((res) => {
that.supplierOptions = res;
});
},
gettestitem(){
let that = this;
that.$API.qm.testitem.list.req({ process: that.process,type:20 }).then((res) => {
@ -401,6 +432,9 @@ export default {
this.form.handle_user = userInfo.id;
this.form.handle_user_name = userInfo.name;
}
if(that.mgroupMtype == 20 ){
that.getSupplier();
}
this.visible = true;
return this;
},