提交
This commit is contained in:
1 parent
1ca2668112
commit
5b3edb1700
278 files changed
+53761
-36931
No files matched your search
+24
-10
@@ -157,7 +157,11 @@
|
||||
<el-button class="btn-op-item" @click.stop="emit('view', row)">
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
<el-button class="btn-op-item" @click.stop="emit('edit', row)">
|
||||
<el-button
|
||||
v-if="canEditReceived(row)"
|
||||
class="btn-op-item"
|
||||
@click.stop="emit('edit', row)"
|
||||
>
|
||||
<el-icon><EditPen /></el-icon>编辑
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -203,15 +207,21 @@
|
||||
|
||||
type ReceptionTab = 'pending' | 'received'
|
||||
|
||||
const props = defineProps<{
|
||||
rows: Record<string, unknown>[]
|
||||
loading: boolean
|
||||
activeTab: ReceptionTab
|
||||
page: number
|
||||
pageSize: number
|
||||
total: number
|
||||
selectedIds: string[]
|
||||
}>()
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
rows: Record<string, unknown>[]
|
||||
loading: boolean
|
||||
activeTab: ReceptionTab
|
||||
page: number
|
||||
pageSize: number
|
||||
total: number
|
||||
selectedIds: string[]
|
||||
canEditReceived?: (row: Record<string, unknown>) => boolean
|
||||
}>(),
|
||||
{
|
||||
canEditReceived: () => false
|
||||
}
|
||||
)
|
||||
|
||||
const emit = defineEmits<{
|
||||
receive: [row: Record<string, unknown>]
|
||||
@@ -277,6 +287,10 @@
|
||||
if (!summary || typeof summary !== 'object') return null
|
||||
return summary as QcProtocolPaymentSummary
|
||||
}
|
||||
|
||||
function canEditReceived(row: Record<string, unknown>) {
|
||||
return props.canEditReceived(row)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in new issue
Block a user