fix:批量交接,并可查询

This commit is contained in:
shijing 2024-09-05 19:26:26 +08:00
parent 9d7dca9096
commit d17f336a89
2 changed files with 40 additions and 1 deletions

View File

@ -67,12 +67,36 @@
type="index"
width="50"
></el-table-column>
<el-table-column type="expand">
<template #default="props">
<div style="padding-left: 50px">
<el-descriptions :column="2">
<template v-for="item in props.row.handoverb" :key="item.id">
<el-descriptions :column="3">
<el-descriptions-item label="批次">
{{props.row.batch}}
</el-descriptions-item>
<el-descriptions-item label="数量">
{{props.row.count}}
</el-descriptions-item>
<el-descriptions-item label="不合格标记" v-if="props.row.notok_sign_name!==null">
{{props.row.notok_sign_name}}
</el-descriptions-item>
</el-descriptions>
</template>
</el-descriptions>
</div>
</template>
</el-table-column>
<el-table-column
label="物料"
prop="material_name"
min-width="140"
></el-table-column>
<el-table-column label="批次" prop="batch" min-width="140">
<template #default="scope">
<el-text v-if="scope.row.handoverb.length>0" type="primary">{{scope.row.handoverb.length}}</el-text>
</template>
</el-table-column>
<el-table-column label="数量" prop="count" width="80"></el-table-column>
<el-table-column label="交接类型" prop="type" width="100">
@ -144,6 +168,14 @@
"
>接收</el-button
>
<el-button
link
size="small"
@click="table_show(scope.row)"
type="success"
v-if="scope.row.recive_mgroup == mgroupId &&scope.row.submit_time == null"
>查看</el-button
>
<el-button
link
size="small"
@ -324,6 +356,13 @@ export default {
this.$refs.saveDialog.open("edit").setData(row);
});
},
table_show(row){
this.type=row.type;
this.dialog.save = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("show").setData(row);
});
},
//
async table_del(row) {
var id = row.id;

View File

@ -167,7 +167,7 @@
</el-col>
</el-row>
</el-form>
<el-footer>
<el-footer v-if="mode!=='show'">
<el-button type="primary" v-loading="isSaveing" @click="submit"
>确定</el-button
>