@ -146,9 +146,10 @@ const showAll = () =>{
}}
</slot>
<slot v-else-if="item.valueFilter">
{{
<el-tag v-if="item.dictType" :type="item.dictType">{{ item.valueFilter(data[item.field]) }}</el-tag>
<span v-else>{{
item.valueFilter(data[item.field])
}}</span>
<slot v-else-if="item.dictType">
<div v-if="data[item.field]&&Array.isArray(data[item.field])" >
@ -28,6 +28,9 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #recoveryRequestFlag="{row}">
<el-tag>{{ row.recoveryRequestFlag=='TRUE'?'是':'否' }}</el-tag>
</template>
<template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span>
@ -569,6 +569,24 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150
},
{
label: '是否已撤销',
field: 'recoveryRequestFlag',
sort: 'custom',
table: {
detail:{
dictType:'primary',
valueFilter:(value)=>{
if(value=='TRUE'){
return `是`
}else{
return '否'
}
label: '单据号',
field: 'number',
@ -42,6 +42,25 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false
label: '生产计划单号',
field: 'productionPlanNumber',