fix:日志中的物料详情固定编号和编辑列,并固定检测项的宽度

This commit is contained in:
shijing 2025-02-13 11:04:30 +08:00
parent adc8965199
commit ebad387933
2 changed files with 12 additions and 5 deletions

View File

@ -300,7 +300,7 @@
<el-link <el-link
:underline="false" :underline="false"
type="primary" type="primary"
v-if="mlogItem.submit_time == null&&mlogItem.material_out_&&mlogItem.material_out_.tracking==20" v-if="mlogItem.material_out_&&mlogItem.material_out_.tracking==20"
@click="table_out_check_single(scope.row,'outs')" @click="table_out_check_single(scope.row,'outs')"
>详情</el-link> >详情</el-link>
</template> </template>
@ -356,6 +356,7 @@
ref="checkDialogSingle" ref="checkDialogSingle"
:mlogb="mlogb" :mlogb="mlogb"
:wm = "wm" :wm = "wm"
:isSubmit="isSubmit"
:batchNumber="batchNumber" :batchNumber="batchNumber"
:handle_user="handle_user" :handle_user="handle_user"
:handle_date="handle_date" :handle_date="handle_date"
@ -482,6 +483,7 @@ export default {
qct:null, qct:null,
defectlist:[], defectlist:[],
batchNumber:'', batchNumber:'',
isSubmit:false,
}; };
}, },
mounted() { mounted() {
@ -597,6 +599,7 @@ export default {
let that = this; let that = this;
that.mlogb = row.id; that.mlogb = row.id;
that.wm = row.wm_in; that.wm = row.wm_in;
that.isSubmit = that.mlogItem.submit_time == null ? false : true;
that.batchNumber = row.batch; that.batchNumber = row.batch;
that.handle_date=that.mlogItem.handle_date; that.handle_date=that.mlogItem.handle_date;
that.handle_user = that.mlogItem.handle_user; that.handle_user = that.mlogItem.handle_user;

View File

@ -16,7 +16,7 @@
:addTemplate="addTemplate" :addTemplate="addTemplate"
placeholder="暂无数据" placeholder="暂无数据"
> >
<el-table-column prop="number" label="物料编号"> <el-table-column prop="number" label="物料编号" fixed min-width="120px">
<template #default="scope"> <template #default="scope">
<span v-if="!scope.row.isEdit">{{ scope.row.number }}</span> <span v-if="!scope.row.isEdit">{{ scope.row.number }}</span>
<el-input v-if="scope.row.isEdit&&mode == 'outs'" v-model="scope.row.number" placeholder="物料编号"></el-input> <el-input v-if="scope.row.isEdit&&mode == 'outs'" v-model="scope.row.number" placeholder="物料编号"></el-input>
@ -38,7 +38,7 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="note" :label="item.testitem_name" v-for="item in qct_testitems" :key="item.id"> <el-table-column prop="note" :label="item.testitem_name" v-for="item in qct_testitems" :key="item.id" width="150px">
<template #default="scope"> <template #default="scope">
<el-input-number <el-input-number
v-if="item.testitem_field_type=='input-number'" v-if="item.testitem_field_type=='input-number'"
@ -103,7 +103,7 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="note" :label="item.defect_name" v-for="item in qct_defects" :key="item.id" width="70px"> <el-table-column prop="note" :label="item.defect_name" v-for="item in qct_defects" :key="item.id" width="80px">
<template #default="scope"> <template #default="scope">
<el-switch <el-switch
:disabled="!scope.row.isEdit" :disabled="!scope.row.isEdit"
@ -119,7 +119,7 @@
<el-input v-else v-model="scope.row.note" placeholder="备注"></el-input> <el-input v-else v-model="scope.row.note" placeholder="备注"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="open" label="操作" width="60" align="center"> <el-table-column prop="open" label="操作" width="60" align="center" v-if="!isSubmit">
<template #default="scope"> <template #default="scope">
<el-button <el-button
v-if="scope.row.isEdit" v-if="scope.row.isEdit"
@ -185,6 +185,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
isSubmit:{
type: Boolean,
default: false,
},
}, },
emits: ["success", "closed"], emits: ["success", "closed"],
data() { data() {