|
@@ -63,9 +63,13 @@ const form = reactive<FollowModel>({
|
|
|
},
|
|
},
|
|
|
items: [],
|
|
items: [],
|
|
|
provinceName: '',
|
|
provinceName: '',
|
|
|
|
|
+ provinceCode: '',
|
|
|
cityName: '',
|
|
cityName: '',
|
|
|
- districtName: '',
|
|
|
|
|
|
|
+ cityCode: '',
|
|
|
|
|
+ // districtName: '',
|
|
|
|
|
+ // districtCode: '',
|
|
|
areaName: '',
|
|
areaName: '',
|
|
|
|
|
+ areaCode: '',
|
|
|
detailAddress: '',
|
|
detailAddress: '',
|
|
|
phone: '',
|
|
phone: '',
|
|
|
progress: '0',
|
|
progress: '0',
|
|
@@ -162,11 +166,13 @@ async function getCpRecordDetail(id: string) {
|
|
|
form.estimatedEndDate = res?.estimatedEndDate;
|
|
form.estimatedEndDate = res?.estimatedEndDate;
|
|
|
form.provinceName = res?.provinceName;
|
|
form.provinceName = res?.provinceName;
|
|
|
form.cityName = res?.cityName;
|
|
form.cityName = res?.cityName;
|
|
|
- form.districtName = res?.districtName;
|
|
|
|
|
form.areaName = res?.areaName;
|
|
form.areaName = res?.areaName;
|
|
|
form.detailAddress = res?.detailAddress;
|
|
form.detailAddress = res?.detailAddress;
|
|
|
form.phone = res?.phone;
|
|
form.phone = res?.phone;
|
|
|
form.healthAnalysisReport = res.healthAnalysisReport;
|
|
form.healthAnalysisReport = res.healthAnalysisReport;
|
|
|
|
|
+ selectedProvince.value=res.provinceCode;
|
|
|
|
|
+ selectedCity.value=res.cityCode;
|
|
|
|
|
+ selectedArea.value=res.areaCode
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
function getPatientList(id: string) {
|
|
function getPatientList(id: string) {
|
|
@@ -234,8 +240,10 @@ async function selectPatient(item: any) {
|
|
|
// 清空服务包选择
|
|
// 清空服务包选择
|
|
|
selectedPackage.value = '';
|
|
selectedPackage.value = '';
|
|
|
currentSelectedPackage.value = null;
|
|
currentSelectedPackage.value = null;
|
|
|
-}
|
|
|
|
|
|
|
+ btnType.value=''
|
|
|
|
|
|
|
|
|
|
+}
|
|
|
|
|
+const btnType = ref('');
|
|
|
// 打开调养记录
|
|
// 打开调养记录
|
|
|
function openRecord(item: any) {
|
|
function openRecord(item: any) {
|
|
|
const types = 'record';
|
|
const types = 'record';
|
|
@@ -487,13 +495,7 @@ const allProjects = ref<
|
|
|
effect?: string;
|
|
effect?: string;
|
|
|
}>
|
|
}>
|
|
|
>([]);
|
|
>([]);
|
|
|
-const {
|
|
|
|
|
- loading: projectLoading,
|
|
|
|
|
- onSuccess,
|
|
|
|
|
- refresh,
|
|
|
|
|
- remove,
|
|
|
|
|
-} = usePagination(() => getCpContentListMethod(), {
|
|
|
|
|
- initialData: { data: [], total: 0 },
|
|
|
|
|
|
|
+const { loading: projectLoading, onSuccess } = useRequest(() => getCpContentListMethod(), {
|
|
|
immediate: true,
|
|
immediate: true,
|
|
|
});
|
|
});
|
|
|
onSuccess(({ data }) => {
|
|
onSuccess(({ data }) => {
|
|
@@ -728,10 +730,19 @@ async function loadAreas(name: string, citycode: string) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function handleProvinceChange(value: string) {
|
|
function handleProvinceChange(value: string) {
|
|
|
|
|
+ if (btnType.value === '转方案') {
|
|
|
|
|
+ selectedCity.value = '';
|
|
|
|
|
+ selectedArea.value = '';
|
|
|
|
|
+ form.cityCode = '';
|
|
|
|
|
+ form.areaCode = '';
|
|
|
|
|
+ form.detailAddress=''
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
selectedProvince.value = value;
|
|
selectedProvince.value = value;
|
|
|
const selectedProvinceOption = provinceOptions.value.find((p) => p.value === value);
|
|
const selectedProvinceOption = provinceOptions.value.find((p) => p.value === value);
|
|
|
form.provinceName = selectedProvinceOption?.label || '';
|
|
form.provinceName = selectedProvinceOption?.label || '';
|
|
|
-
|
|
|
|
|
|
|
+ form.provinceCode = selectedProvinceOption?.value || '';
|
|
|
|
|
+ // 获取城市
|
|
|
loadCities(selectedProvinceOption?.name, value);
|
|
loadCities(selectedProvinceOption?.name, value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -739,13 +750,23 @@ function handleCityChange(value: string) {
|
|
|
selectedCity.value = value;
|
|
selectedCity.value = value;
|
|
|
const selectedCityOption = cityOptions.value.find((c) => c.value === value);
|
|
const selectedCityOption = cityOptions.value.find((c) => c.value === value);
|
|
|
form.cityName = selectedCityOption?.label || '';
|
|
form.cityName = selectedCityOption?.label || '';
|
|
|
|
|
+ form.cityCode = selectedCityOption?.value || '';
|
|
|
|
|
+ if (btnType.value === '转方案') {
|
|
|
|
|
+ selectedArea.value = '';
|
|
|
|
|
+ form.areaCode = '';
|
|
|
|
|
+ form.detailAddress=''
|
|
|
|
|
+ }
|
|
|
loadAreas(selectedCityOption?.name, value);
|
|
loadAreas(selectedCityOption?.name, value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function handleAreaChange(value: string) {
|
|
function handleAreaChange(value: string) {
|
|
|
selectedArea.value = value;
|
|
selectedArea.value = value;
|
|
|
const selectedAreaOption = areaOptions.value.find((a) => a.value === value);
|
|
const selectedAreaOption = areaOptions.value.find((a) => a.value === value);
|
|
|
- form.districtName = selectedAreaOption?.label || '';
|
|
|
|
|
|
|
+ form.areaName = selectedAreaOption?.label || '';
|
|
|
|
|
+ form.areaCode = selectedAreaOption?.value || '';
|
|
|
|
|
+ if (btnType.value === '转方案') {
|
|
|
|
|
+ form.detailAddress=''
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface PatientInfo {
|
|
interface PatientInfo {
|
|
@@ -985,7 +1006,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
|
|
|
<!-- 服务包内容表格 -->
|
|
<!-- 服务包内容表格 -->
|
|
|
<div class="table-section">
|
|
<div class="table-section">
|
|
|
<div class="table-title">服务包内容</div>
|
|
<div class="table-title">服务包内容</div>
|
|
|
- <vxe-table :data="displayTableData" border style="margin-top: 8px">
|
|
|
|
|
|
|
+ <vxe-table :data="displayTableData" border style="margin-top: 8px" max-height="380px">
|
|
|
<vxe-column width="60" title="">
|
|
<vxe-column width="60" title="">
|
|
|
<template #default="{ rowIndex }">
|
|
<template #default="{ rowIndex }">
|
|
|
<a-button type="text" danger @click="removeTableRow(rowIndex)" :disabled="rowIndex === displayTableData.length - 1">
|
|
<a-button type="text" danger @click="removeTableRow(rowIndex)" :disabled="rowIndex === displayTableData.length - 1">
|
|
@@ -1026,7 +1047,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
|
|
|
<vxe-column field="days" title="周期" width="120">
|
|
<vxe-column field="days" title="周期" width="120">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<div style="display: flex; align-items: center">
|
|
<div style="display: flex; align-items: center">
|
|
|
- <a-input v-model:value="row.days" @change="() => calculateCount(row)" :disabled="currentPatient?.status === '0' ? true : false" />
|
|
|
|
|
|
|
+ <a-input v-model:value="row.days" @change="() => calculateCount(row)" />
|
|
|
<span>天</span>
|
|
<span>天</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -1094,7 +1115,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
|
|
|
<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" :disabled="currentPatient?.status === '0' ? true : false" />
|
|
|
|
|
|
|
+ <a-input v-model:value="row.initialDay" style="width: 80px" />
|
|
|
<span>天</span>
|
|
<span>天</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -1138,7 +1159,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
|
|
|
<!-- 调养日期 -->
|
|
<!-- 调养日期 -->
|
|
|
<div class="delivery-row">
|
|
<div class="delivery-row">
|
|
|
<span>开始调养日期:</span>
|
|
<span>开始调养日期:</span>
|
|
|
- <span v-if="currentPatient?.status === '0'">
|
|
|
|
|
|
|
+ <span v-if="currentPatient?.status === '0' && btnType !== '转方案'">
|
|
|
{{ form.estimatedStartDate }}
|
|
{{ form.estimatedStartDate }}
|
|
|
</span>
|
|
</span>
|
|
|
<span v-else>
|
|
<span v-else>
|
|
@@ -1152,7 +1173,15 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 配送信息 -->
|
|
<!-- 配送信息 -->
|
|
|
<div class="delivery-row" v-if="isShowDelivery">
|
|
<div class="delivery-row" v-if="isShowDelivery">
|
|
|
- <div v-if="!form.progress || currentPatient?.status === '1'">
|
|
|
|
|
|
|
+ <div v-if="(btnType !== '转方案' && currentPatient?.status === '0')">
|
|
|
|
|
+ <a-checkbox v-model:checked="deliveryChecked" disabled>配送</a-checkbox>
|
|
|
|
|
+ <span>地址:</span>
|
|
|
|
|
+ <span>{{ form.provinceName }}{{ form.cityName }}{{ form.areaName }}{{ form.detailAddress }}</span>
|
|
|
|
|
+ <span style="margin-left: 16px" v-if="form.phone">电话:</span>
|
|
|
|
|
+ <span>{{ form.phone }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <div v-if="!form.progress || currentPatient?.status === '1'"> -->
|
|
|
|
|
+ <div v-else>
|
|
|
<a-checkbox v-model:checked="deliveryChecked">配送</a-checkbox>
|
|
<a-checkbox v-model:checked="deliveryChecked">配送</a-checkbox>
|
|
|
<template v-if="deliveryChecked">
|
|
<template v-if="deliveryChecked">
|
|
|
<span>地址:</span>
|
|
<span>地址:</span>
|
|
@@ -1178,13 +1207,6 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
|
|
|
<a-input v-model:value="form.phone" placeholder="请输入" style="width: 120px" />
|
|
<a-input v-model:value="form.phone" placeholder="请输入" style="width: 120px" />
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-else>
|
|
|
|
|
- <a-checkbox v-model:checked="deliveryChecked" disabled>配送</a-checkbox>
|
|
|
|
|
- <span>地址:</span>
|
|
|
|
|
- <span>{{ form.provinceName }}{{ form.cityName }}{{ form.districtName }}{{ form.detailAddress }}</span>
|
|
|
|
|
- <span style="margin-left: 16px" v-if="form.phone">电话:</span>
|
|
|
|
|
- <span>{{ form.phone }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|