fix:扫A、扫B、成品抛、一次、二次、三次超洗填日志中操作人可多选

This commit is contained in:
shijing 2025-05-19 13:54:40 +08:00
parent b2413f1fd9
commit a4f0900cbe
2 changed files with 64 additions and 31 deletions

View File

@ -59,7 +59,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<el-form-item label="生产设备">
<el-select
@ -81,7 +80,28 @@
</el-select>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<!-- 操作员多选 -->
<el-col :md="12" :sm="24" v-if="route_code=='saobian'||route_code=='saobianb'||route_code=='chengpinpao'">
<el-form-item label="操作员">
<el-select
v-model="form.handle_users"
placeholder="操作员"
clearable
filterable
multiple
class="width100"
@change="handleUsersChange"
>
<el-option
v-for="item in userList"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24" v-else>
<el-form-item label="操作员">
<el-select
v-model="form.handle_user"
@ -99,25 +119,6 @@
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :md="12" :sm="24">
<el-form-item label="班次">
<el-select
v-model="form.shift"
placeholder="班次"
clearable
filterable
class="width100"
>
<el-option
v-for="item in shiftOtions"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col> -->
<el-col :md="12" :sm="12" :xs="24" v-for="item in testitems" :key="item.id">
<el-form-item :label="item.name">
<el-input-number
@ -308,12 +309,10 @@
const defaultForm = {
batch: null,
equipment: null,
// mtaskb: null,
shift: null,
wm_in: null,
fmlog:null,
// work_start_time:null,
// work_end_time:null,
handle_users:null,
material_out:'',
count_pn_jgqbl:0,
count_use:0,
@ -379,6 +378,7 @@ export default {
qct:'',
codeText:'',
codeBatch:'',
route_code:'',
mgroupName:'',
materialCount:1,//
material_in:'',
@ -403,12 +403,14 @@ export default {
};
},
mounted() {
this.getShift();
this.getMgroup();
this.getRoute();
this.gettestitem();
this.form.fmlog = this.fmlog;
this.form.handle_date = this.$TOOL.dateFormat2(new Date());;
let that = this;
that.route_code = that.$route.path.split("/")[2];
that.getShift();
that.getMgroup();
that.getRoute();
that.gettestitem();
that.form.fmlog = that.fmlog;
that.form.handle_date = that.$TOOL.dateFormat2(new Date());;
},
methods: {
getTeam() {
@ -612,6 +614,9 @@ export default {
setData(data) {
Object.assign(this.form, data);
},
handleUsersChange(){
console.log('handleUsersChange',this.form.handle_users)
},
countUseChange(){
let that = this;
that.form.count_real = that.form.count_use - that.form.count_pn_jgqbl;

View File

@ -131,7 +131,28 @@
/>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
<el-col :md="12" :sm="24" v-if="route_code=='chaoxi'||route_code=='chaoxi2'||route_code=='chaoxi3'">
<el-form-item label="操作人">
<el-select
v-model="form.handle_users"
placeholder="操作人"
clearable
filterable
multiple
:disabled="mode == 'edit'"
style="width: 100%"
@change="handleUsersChange"
>
<el-option
v-for="item in userOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24" v-else>
<el-form-item label="操作人">
<el-select
v-model="form.handle_user"
@ -274,6 +295,7 @@ const defaultForm = {
route: "",
equipment: "",
handle_user: null,
handle_users:null,
work_start_time: "",
work_end_time:null,
note:'',
@ -321,6 +343,7 @@ export default {
edit: "编辑日志",
show: "查看日志",
},
route_code:"",
test_file:'',
fileList:[],
testitems:[],
@ -382,6 +405,8 @@ export default {
};
},
mounted() {
let that = this;
that.route_code = that.$route.path.split("/")[2];
this.getUser();
this.getRoute();
this.getTeam();
@ -503,6 +528,9 @@ export default {
console.log('res',res);
this.test_file = res.path;
},
handleUsersChange(){
console.log('handleUsersChange',this.form.handle_users)
},
//
submit() {
let that = this;