|
@@ -1,4 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
|
+import { onMounted, toRaw, shallowRef, reactive } from 'vue';
|
|
|
import ConfirmItems from './ConfirmItems.vue';
|
|
import ConfirmItems from './ConfirmItems.vue';
|
|
|
import type { SystemItemModel, SystemIteQuery } from '@/model/care.model';
|
|
import type { SystemItemModel, SystemIteQuery } from '@/model/care.model';
|
|
|
|
|
|
|
@@ -89,7 +90,7 @@ const gridOptions = reactive<VxeGridProps<SystemItemModel>>({
|
|
|
{ field: 'name', title: '项目名称' },
|
|
{ field: 'name', title: '项目名称' },
|
|
|
{ field: 'conditioningProgramType', title: '方案类型' },
|
|
{ field: 'conditioningProgramType', title: '方案类型' },
|
|
|
{ field: 'cpFixedPricingRule.unitPrice', title: '单价(元)', slots: { default: 'unitPriceCell' } },
|
|
{ field: 'cpFixedPricingRule.unitPrice', title: '单价(元)', slots: { default: 'unitPriceCell' } },
|
|
|
- { field: 'cpFixedPricingRule.pricingUnit', title: '计价单位',slots: { default: 'pricingUnitCell' } },
|
|
|
|
|
|
|
+ { field: 'cpFixedPricingRule.pricingUnit', title: '计价单位', slots: { default: 'pricingUnitCell' } },
|
|
|
{ field: 'cpFixedPricingRule.convertDose', title: '计价说明', slots: { default: 'convertDoseCell' } },
|
|
{ field: 'cpFixedPricingRule.convertDose', title: '计价说明', slots: { default: 'convertDoseCell' } },
|
|
|
{ field: 'conditioningProgramSupplierName', title: '供应商' },
|
|
{ field: 'conditioningProgramSupplierName', title: '供应商' },
|
|
|
{
|
|
{
|
|
@@ -125,7 +126,16 @@ const gridOptions = reactive<VxeGridProps<SystemItemModel>>({
|
|
|
});
|
|
});
|
|
|
const gridEvents: VxeGridListeners = {};
|
|
const gridEvents: VxeGridListeners = {};
|
|
|
|
|
|
|
|
-const { loading, page, pageSize, total, onSuccess, refresh, remove,send:sendRefresh } = usePagination((page, size) => pageOrgConfirmMethod(page, size, model.value), {
|
|
|
|
|
|
|
+const {
|
|
|
|
|
+ loading,
|
|
|
|
|
+ page,
|
|
|
|
|
+ pageSize,
|
|
|
|
|
+ total,
|
|
|
|
|
+ onSuccess,
|
|
|
|
|
+ refresh,
|
|
|
|
|
+ remove,
|
|
|
|
|
+ send: sendRefresh,
|
|
|
|
|
+} = usePagination((page, size) => pageOrgConfirmMethod(page, size, model.value), {
|
|
|
initialData: { data: [], total: 0 },
|
|
initialData: { data: [], total: 0 },
|
|
|
initialPage: 1,
|
|
initialPage: 1,
|
|
|
initialPageSize: 100,
|
|
initialPageSize: 100,
|
|
@@ -176,7 +186,7 @@ function sureItem(model?: SystemItemModel, index?: number) {
|
|
|
slots: {
|
|
slots: {
|
|
|
default() {
|
|
default() {
|
|
|
return h(HealthEvaluation, <any>{
|
|
return h(HealthEvaluation, <any>{
|
|
|
- data: {...model,addType},
|
|
|
|
|
|
|
+ data: { ...model, addType },
|
|
|
onChange: (data: SystemItemModel) => {
|
|
onChange: (data: SystemItemModel) => {
|
|
|
// 确认成功之后刷新页面
|
|
// 确认成功之后刷新页面
|
|
|
refresh(page.value);
|
|
refresh(page.value);
|
|
@@ -187,34 +197,34 @@ function sureItem(model?: SystemItemModel, index?: number) {
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
VxeUI.modal.open({
|
|
VxeUI.modal.open({
|
|
|
- title: `确认项目`,
|
|
|
|
|
- height: 700,
|
|
|
|
|
- width: 1000,
|
|
|
|
|
- position: {
|
|
|
|
|
- top: Math.min(100, window.innerHeight * 0.1),
|
|
|
|
|
- },
|
|
|
|
|
- escClosable: true,
|
|
|
|
|
- destroyOnClose: true,
|
|
|
|
|
- id: `confirm-item-modal`,
|
|
|
|
|
- remember: true,
|
|
|
|
|
- storage: true,
|
|
|
|
|
- slots: {
|
|
|
|
|
- default() {
|
|
|
|
|
- return h(ConfirmItems, <any>{
|
|
|
|
|
- data: model,
|
|
|
|
|
- onSubmit(data: SystemItemModel) {
|
|
|
|
|
- refresh(page.value);
|
|
|
|
|
- VxeUI.modal.close(`confirm-item-modal`);
|
|
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ title: `确认项目`,
|
|
|
|
|
+ height: 700,
|
|
|
|
|
+ width: 1000,
|
|
|
|
|
+ position: {
|
|
|
|
|
+ top: Math.min(100, window.innerHeight * 0.1),
|
|
|
},
|
|
},
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ escClosable: true,
|
|
|
|
|
+ destroyOnClose: true,
|
|
|
|
|
+ id: `confirm-item-modal`,
|
|
|
|
|
+ remember: true,
|
|
|
|
|
+ storage: true,
|
|
|
|
|
+ slots: {
|
|
|
|
|
+ default() {
|
|
|
|
|
+ return h(ConfirmItems, <any>{
|
|
|
|
|
+ data: model,
|
|
|
|
|
+ onSubmit(data: SystemItemModel) {
|
|
|
|
|
+ refresh(page.value);
|
|
|
|
|
+ VxeUI.modal.close(`confirm-item-modal`);
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
defineExpose({
|
|
defineExpose({
|
|
|
send: sendRefresh,
|
|
send: sendRefresh,
|
|
|
-})
|
|
|
|
|
|
|
+});
|
|
|
</script>
|
|
</script>
|
|
|
<template>
|
|
<template>
|
|
|
<div class="page-container flex flex-col">
|
|
<div class="page-container flex flex-col">
|