This commit is contained in:
xielue 2023-10-18 16:26:49 +08:00
parent be9f9b3521
commit 100c8960c0
1 changed files with 17 additions and 2 deletions

View File

@ -17,6 +17,10 @@
<img v-if="row.mold_detail.image" style="width:50px;height:50px;" :src="row.mold_detail.image" />
<span v-else></span>
</template>
<template v-slot:column5="{ row }">
<a-button type="link" @click="pageEdit(row.change_production_detail)" v-if="row.change_production_detail && row.change_production_detail.id">{{ row.change_production_detail.code }}</a-button>
</template>
<template v-slot:column3="{ row }">
<a-table :columns="columns" :data-source="row.department_progress" style="border:1px solid #afafaf;margin: 15px;">
@ -227,7 +231,9 @@ export default {
{ title: '模具图片', slots: { default: 'column4' }, width: 90 },
{ field: 'change_production_detail', formatter: 'formatRef', params: { dataType: "object", textField: "code" }, sortable: false, title: '改模前布产号', width: 120 },
{ title: '改模前布产单', slots: { default: 'column5' }, width: 120 },
{ slots: { content: 'column3' }, type: "expand", width: 100, title: '进度明细', showHeaderOverflow: true },
{ field: 'progress', minWidth: 150, cellRender: { name: 'progress' }, title: '总进度', showHeaderOverflow: true },
@ -267,7 +273,16 @@ export default {
return;
}
this.$openPage('/Mold/MoldProductionOrderDetail/' + row.id)
},
pageEdit(row) {
if (!row) {
this.$mk.msg("请选择行");
return;
}
this.$openPage('/Mold/MoldProductionOrderUpdate/' + row.id)
},
},
watch: {