|
@@ -6,14 +6,12 @@ import { UploadIFile } from '@/request/api/follow.api';
|
|
|
import type { UploadFile } from 'ant-design-vue/es/upload/interface';
|
|
import type { UploadFile } from 'ant-design-vue/es/upload/interface';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import {
|
|
import {
|
|
|
- pageConfirmedCpMethod,
|
|
|
|
|
pageMedicineMethod,
|
|
pageMedicineMethod,
|
|
|
pageDiagnoseTypeMethod,
|
|
pageDiagnoseTypeMethod,
|
|
|
addSystemCwMethod,
|
|
addSystemCwMethod,
|
|
|
addOrgCwMethod,
|
|
addOrgCwMethod,
|
|
|
getConditioningRecordDetailMethod,
|
|
getConditioningRecordDetailMethod,
|
|
|
getAllSystemCpMethod,
|
|
getAllSystemCpMethod,
|
|
|
- getAllOrgCwMethod,
|
|
|
|
|
getCpContentListMethod,
|
|
getCpContentListMethod,
|
|
|
} from '@/request/api/care.api';
|
|
} from '@/request/api/care.api';
|
|
|
import RemoteSelect from '@/libs/v-select-page/RemoteSelect.vue';
|
|
import RemoteSelect from '@/libs/v-select-page/RemoteSelect.vue';
|
|
@@ -23,7 +21,7 @@ import type { SystemCwModel } from '@/model/care.model';
|
|
|
import AcupointEdit from '@/service/AcupointEdit.vue';
|
|
import AcupointEdit from '@/service/AcupointEdit.vue';
|
|
|
import ServiceDetail from '@/service/ServiceDetail.vue';
|
|
import ServiceDetail from '@/service/ServiceDetail.vue';
|
|
|
import ServicePackageList from '@/service/ServicePackageList.vue';
|
|
import ServicePackageList from '@/service/ServicePackageList.vue';
|
|
|
-import { MinusCircleOutlined, PlusCircleOutlined, EyeOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
|
|
+import { MinusCircleOutlined, EyeOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
|
|
import { VxeUI } from 'vxe-pc-ui';
|
|
import { VxeUI } from 'vxe-pc-ui';
|
|
|
type FollowModel = Partial<SystemCwModel>;
|
|
type FollowModel = Partial<SystemCwModel>;
|
|
|
const props = defineProps<{ data: FollowModel }>();
|
|
const props = defineProps<{ data: FollowModel }>();
|
|
@@ -348,9 +346,7 @@ function calculateCount(row: any) {
|
|
|
// 检查是否选择了"不限"
|
|
// 检查是否选择了"不限"
|
|
|
if (row.frequencyType === '不限') {
|
|
if (row.frequencyType === '不限') {
|
|
|
frequencyType.value = [row.frequencyType];
|
|
frequencyType.value = [row.frequencyType];
|
|
|
- // row.frequencyType = ''; // 重置 frequencyType
|
|
|
|
|
row.frequencyMeasure = ''; // 重置 frequencyMeasure
|
|
row.frequencyMeasure = ''; // 重置 frequencyMeasure
|
|
|
- // row.totalMeasure = Math.ceil(period / 1) * 1; // 使用默认值进行计算
|
|
|
|
|
row.totalMeasure = 1;
|
|
row.totalMeasure = 1;
|
|
|
} else {
|
|
} else {
|
|
|
const frequencyType = Number(row.frequencyType) || 0;
|
|
const frequencyType = Number(row.frequencyType) || 0;
|
|
@@ -578,9 +574,6 @@ const handlePreview = async (file: UploadFile) => {
|
|
|
visible.value = true;
|
|
visible.value = true;
|
|
|
};
|
|
};
|
|
|
let multiple = ref<boolean>(true);
|
|
let multiple = ref<boolean>(true);
|
|
|
-let constitutionGroupNames = ref<string[]>([]);
|
|
|
|
|
-let sex = ref<string>('');
|
|
|
|
|
-let age = ref<string>('');
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
@@ -767,7 +760,7 @@ let age = ref<string>('');
|
|
|
calculateCount(row);
|
|
calculateCount(row);
|
|
|
}
|
|
}
|
|
|
"
|
|
"
|
|
|
- v-model:value="frequencyType"
|
|
|
|
|
|
|
+ v-model:value="row.frequencyType"
|
|
|
>
|
|
>
|
|
|
<a-checkbox value="不限">不限</a-checkbox>
|
|
<a-checkbox value="不限">不限</a-checkbox>
|
|
|
</a-checkbox-group>
|
|
</a-checkbox-group>
|
|
@@ -812,7 +805,7 @@ let age = ref<string>('');
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<div style="display: flex; align-items: center">
|
|
<div style="display: flex; align-items: center">
|
|
|
<span>调养开始第</span>
|
|
<span>调养开始第</span>
|
|
|
- <a-input v-model:value="row.initialDay" style="width: 80px" />
|
|
|
|
|
|
|
+ <a-input v-model:value="row.initialDay" style="width: 60px" />
|
|
|
<span>天</span>
|
|
<span>天</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -826,7 +819,7 @@ let age = ref<string>('');
|
|
|
</template>
|
|
</template>
|
|
|
</vxe-column>
|
|
</vxe-column>
|
|
|
|
|
|
|
|
- <vxe-column field="conditioningProgramDetail.pricingType" title="穴位/经络/部位" width="160">
|
|
|
|
|
|
|
+ <vxe-column field="conditioningProgramDetail.pricingType" title="穴位/经络/部位" width="120">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<!-- <a-input v-model:value="row.desc" style="width: 120px" /> -->
|
|
<!-- <a-input v-model:value="row.desc" style="width: 120px" /> -->
|
|
|
<a @click="editPart(row)" style="color: #1890ff; cursor: pointer" @submit="editPart(row)" v-if="row?.conditioningProgramDetail?.pricingType === '1'">编辑</a>
|
|
<a @click="editPart(row)" style="color: #1890ff; cursor: pointer" @submit="editPart(row)" v-if="row?.conditioningProgramDetail?.pricingType === '1'">编辑</a>
|
|
@@ -848,11 +841,11 @@ let age = ref<string>('');
|
|
|
}"
|
|
}"
|
|
|
:src="previewImg"
|
|
:src="previewImg"
|
|
|
/>
|
|
/>
|
|
|
- <div style="display: flex; justify-content: flex-end; margin-top: 16px">
|
|
|
|
|
|
|
+ <div style="display: flex; justify-content: flex-end;">
|
|
|
<span style="font-weight: bold">合计:{{ formData.price }}元</span>
|
|
<span style="font-weight: bold">合计:{{ formData.price }}元</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div style="display: flex; justify-content: center; margin-top: 32px">
|
|
|
|
|
|
|
+ <div style="display: flex; justify-content: center;">
|
|
|
<a-button style="margin-right: 24px" @click="cancel">取消</a-button>
|
|
<a-button style="margin-right: 24px" @click="cancel">取消</a-button>
|
|
|
<a-button type="primary" @click="confirm">确认</a-button>
|
|
<a-button type="primary" @click="confirm">确认</a-button>
|
|
|
</div>
|
|
</div>
|