应付模块菜单调整,新增应付费用编辑等

This commit is contained in:
liuminghui
2026-11-16 15:50:51 +08:00
parent 5b8d4de262
commit 49f24a6b1b
66 changed files with 3247 additions and 119 deletions
@@ -1,12 +1,14 @@
<template>
<div class="channel-select">
<el-button type="primary" plain icon="Connection" @click="openDialog">
{{ selectedCodes.length ? '重新选择渠道' : '选择渠道' }}
</el-button>
<span class="cs-summary">
已绑定 <b>{{ selectedCodes.length }}</b> 个渠道
<el-button v-if="selectedCodes.length" link type="danger" @click="clearSelection">清空</el-button>
</span>
<template v-if="showTrigger">
<el-button type="primary" plain icon="Connection" @click="openDialog">
{{ selectedCodes.length ? '重新选择渠道' : '选择渠道' }}
</el-button>
<span class="cs-summary">
已绑定 <b>{{ selectedCodes.length }}</b> 个渠道
<el-button v-if="selectedCodes.length" link type="danger" @click="clearSelection">清空</el-button>
</span>
</template>
<el-dialog
v-model="dialogVisible"
@@ -85,7 +87,9 @@ import { useChannels } from './useChannels'
const props = defineProps({
/** v-model 绑定值:逗号分隔的渠道编码串,如 "SK_DEPDHLL,015A" */
modelValue: { type: [String, Number], default: '' }
modelValue: { type: [String, Number], default: '' },
/** 为 false 时不显示按钮,由父页面调用 open() 打开同一个弹框 */
showTrigger: { type: Boolean, default: true }
})
const emit = defineEmits(['update:modelValue', 'change'])
@@ -186,8 +190,8 @@ function clearSelection() {
emit('change', [])
}
/** 供父组件预加载渠道缓存(tab 内明细表格使用) */
defineExpose({ ensureChannels })
/** 供父组件预加载渠道缓存,或直接打开选择弹框 */
defineExpose({ ensureChannels, open: openDialog })
</script>
<style scoped>