fix:日志中的物料详情固定编号和编辑列,并固定检测项的宽度
This commit is contained in:
parent
adc8965199
commit
ebad387933
|
@ -300,7 +300,7 @@
|
|||
<el-link
|
||||
:underline="false"
|
||||
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')"
|
||||
>详情</el-link>
|
||||
</template>
|
||||
|
@ -356,6 +356,7 @@
|
|||
ref="checkDialogSingle"
|
||||
:mlogb="mlogb"
|
||||
:wm = "wm"
|
||||
:isSubmit="isSubmit"
|
||||
:batchNumber="batchNumber"
|
||||
:handle_user="handle_user"
|
||||
:handle_date="handle_date"
|
||||
|
@ -482,6 +483,7 @@ export default {
|
|||
qct:null,
|
||||
defectlist:[],
|
||||
batchNumber:'',
|
||||
isSubmit:false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
@ -597,6 +599,7 @@ export default {
|
|||
let that = this;
|
||||
that.mlogb = row.id;
|
||||
that.wm = row.wm_in;
|
||||
that.isSubmit = that.mlogItem.submit_time == null ? false : true;
|
||||
that.batchNumber = row.batch;
|
||||
that.handle_date=that.mlogItem.handle_date;
|
||||
that.handle_user = that.mlogItem.handle_user;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
:addTemplate="addTemplate"
|
||||
placeholder="暂无数据"
|
||||
>
|
||||
<el-table-column prop="number" label="物料编号">
|
||||
<el-table-column prop="number" label="物料编号" fixed min-width="120px">
|
||||
<template #default="scope">
|
||||
<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>
|
||||
|
@ -38,7 +38,7 @@
|
|||
</el-select>
|
||||
</template>
|
||||
</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">
|
||||
<el-input-number
|
||||
v-if="item.testitem_field_type=='input-number'"
|
||||
|
@ -103,7 +103,7 @@
|
|||
</el-select>
|
||||
</template>
|
||||
</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">
|
||||
<el-switch
|
||||
:disabled="!scope.row.isEdit"
|
||||
|
@ -119,7 +119,7 @@
|
|||
<el-input v-else v-model="scope.row.note" placeholder="备注"></el-input>
|
||||
</template>
|
||||
</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">
|
||||
<el-button
|
||||
v-if="scope.row.isEdit"
|
||||
|
@ -185,6 +185,10 @@ export default {
|
|||
type: String,
|
||||
default: "",
|
||||
},
|
||||
isSubmit:{
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
emits: ["success", "closed"],
|
||||
data() {
|
||||
|
|
Loading…
Reference in New Issue