|
@@ -135,6 +135,7 @@ const gridOptions = reactive<VxeGridProps<SystemItemModel>>({
|
|
|
columns: [
|
|
columns: [
|
|
|
{ field: 'name', title: '项目名称' },
|
|
{ field: 'name', title: '项目名称' },
|
|
|
{ field: 'conditioningProgramType', title: '方案类型' },
|
|
{ field: 'conditioningProgramType', title: '方案类型' },
|
|
|
|
|
+ { field: 'isForWrapCell', title: '项目应用', slots: { default: 'isForWrapCell' } },
|
|
|
{ field: 'cpFixedPricingRule.unitPrice', title: '单价(元)', slots: { default: 'unitPriceCell' } },
|
|
{ field: 'cpFixedPricingRule.unitPrice', title: '单价(元)', slots: { default: 'unitPriceCell' } },
|
|
|
{ field: 'cpFixedPricingRule.pricingUnit', title: '计价单位' },
|
|
{ field: 'cpFixedPricingRule.pricingUnit', title: '计价单位' },
|
|
|
{ field: 'cpFixedPricingRule.convertDose', title: '计价说明', slots: { default: 'convertDoseCell' } },
|
|
{ field: 'cpFixedPricingRule.convertDose', title: '计价说明', slots: { default: 'convertDoseCell' } },
|
|
@@ -328,6 +329,23 @@ defineExpose({
|
|
|
</header>
|
|
</header>
|
|
|
<main class="flex-auto overflow-hidden">
|
|
<main class="flex-auto overflow-hidden">
|
|
|
<vxe-grid ref="gridRef" v-bind="gridOptions" v-on="gridEvents" :loading="loading">
|
|
<vxe-grid ref="gridRef" v-bind="gridOptions" v-on="gridEvents" :loading="loading">
|
|
|
|
|
+ <template #isForWrapCell="{ row }">
|
|
|
|
|
+ {{
|
|
|
|
|
+ (() => {
|
|
|
|
|
+ const isWrap = row.isForWrap === 'Y';
|
|
|
|
|
+ const isInfer = row.isForInfer === 'Y';
|
|
|
|
|
+ if (isWrap && isInfer) {
|
|
|
|
|
+ return '服务包项目;调理方案项目';
|
|
|
|
|
+ } else if (isWrap) {
|
|
|
|
|
+ return '服务包项目';
|
|
|
|
|
+ } else if (isInfer) {
|
|
|
|
|
+ return '调理方案项目';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '';
|
|
|
|
|
+ }
|
|
|
|
|
+ })()
|
|
|
|
|
+ }}
|
|
|
|
|
+ </template>
|
|
|
<template #unitPriceCell="{ row }">
|
|
<template #unitPriceCell="{ row }">
|
|
|
{{ row.pricingType === '1' ? `` : row.cpFixedPricingRule?.unitPrice }}
|
|
{{ row.pricingType === '1' ? `` : row.cpFixedPricingRule?.unitPrice }}
|
|
|
</template>
|
|
</template>
|