dev
This commit is contained in:
parent
53b508017a
commit
7d6ea12c52
|
|
@ -72,7 +72,7 @@ interface ShowConfig {
|
||||||
prop: string;
|
prop: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const diagnosisSearchApi = "social/directory/getDiagnosis"
|
const diagnosisSearchApi = "social/diagnose/search"
|
||||||
const diagnosisShowConfig: ShowConfig[] = [
|
const diagnosisShowConfig: ShowConfig[] = [
|
||||||
{
|
{
|
||||||
label: "诊断名称",
|
label: "诊断名称",
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value2"
|
v-model="dateArray"
|
||||||
type="daterange"
|
type="daterange"
|
||||||
range-separator="~"
|
range-separator="~"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
|
|
@ -34,45 +34,14 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {h, ref, type VNode} from 'vue'
|
import {h, onMounted, ref, type VNode} from 'vue'
|
||||||
import type { TableColumnCtx } from 'element-plus'
|
import type { TableColumnCtx } from 'element-plus'
|
||||||
const value2 = ref([])
|
import {post} from "@/utils/request.ts";
|
||||||
|
import {getThisWeek} from "@/utils/dateUtils.ts";
|
||||||
|
|
||||||
|
const dateArray = ref<any>([])
|
||||||
const tableData: Product[] = [
|
const tableData: Product[] = [
|
||||||
{
|
|
||||||
id: '12987122',
|
|
||||||
name: 'Tom',
|
|
||||||
amount1: '234',
|
|
||||||
amount2: '3.2',
|
|
||||||
amount3: 10,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '12987123',
|
|
||||||
name: 'Tom',
|
|
||||||
amount1: '165',
|
|
||||||
amount2: '4.43',
|
|
||||||
amount3: 12,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '12987124',
|
|
||||||
name: 'Tom',
|
|
||||||
amount1: '324',
|
|
||||||
amount2: '1.9',
|
|
||||||
amount3: 9,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '12987125',
|
|
||||||
name: 'Tom',
|
|
||||||
amount1: '621',
|
|
||||||
amount2: '2.2',
|
|
||||||
amount3: 17,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '12987126',
|
|
||||||
name: 'Tom',
|
|
||||||
amount1: '539',
|
|
||||||
amount2: '4.1',
|
|
||||||
amount3: 15,
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
interface Product {
|
interface Product {
|
||||||
id: string
|
id: string
|
||||||
|
|
@ -112,6 +81,17 @@ const getSummaries = (param: SummaryMethodProps) => {
|
||||||
|
|
||||||
return sums
|
return sums
|
||||||
}
|
}
|
||||||
|
const getDailyReport = ()=>{
|
||||||
|
post("charge/dailyChargingReport",{startDate:dateArray.value[0],endDate:dateArray.value[1]} ).then((res:any)=>{
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
onMounted(()=>{
|
||||||
|
let thisWeek = getThisWeek()
|
||||||
|
dateArray.value[0] = thisWeek.start
|
||||||
|
dateArray.value[1] = thisWeek.end
|
||||||
|
getDailyReport()
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.title{
|
.title{
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,15 @@
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="case">
|
<div class="case">
|
||||||
<CaseDetail v-if="registerId&&formData" v-model="formData"></CaseDetail>
|
<CaseDetail v-if="registerId&&formData.status == 3" v-model="formData"></CaseDetail>
|
||||||
<Case v-else v-model="formData"></Case>
|
<Case v-else v-model="formData"></Case>
|
||||||
</div>
|
</div>
|
||||||
<div class="service-items">
|
<div class="service-items">
|
||||||
<ServiceItemsDetail v-if="registerId&&itemList" v-model="itemList"></ServiceItemsDetail>
|
<ServiceItemsDetail v-if="registerId&&formData.status == 3" v-model="itemList"></ServiceItemsDetail>
|
||||||
<ServiceItems v-else v-model="itemList"></ServiceItems>
|
<ServiceItems v-else v-model="itemList"></ServiceItems>
|
||||||
</div>
|
</div>
|
||||||
<div class="pharmaceutical-consumables">
|
<div class="pharmaceutical-consumables">
|
||||||
<PharmaceuticalConsumablesDetail v-if="registerId&&goodsList"
|
<PharmaceuticalConsumablesDetail v-if="registerId&&formData.status == 3"
|
||||||
v-model="goodsList"></PharmaceuticalConsumablesDetail>
|
v-model="goodsList"></PharmaceuticalConsumablesDetail>
|
||||||
<PharmaceuticalConsumables v-else v-model="goodsList"></PharmaceuticalConsumables>
|
<PharmaceuticalConsumables v-else v-model="goodsList"></PharmaceuticalConsumables>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -64,10 +64,7 @@ const save = () => {
|
||||||
adjunctCheck: formData.value.adjunctCheck,
|
adjunctCheck: formData.value.adjunctCheck,
|
||||||
deal: formData.value.deal,
|
deal: formData.value.deal,
|
||||||
}
|
}
|
||||||
const data = {
|
let medicalRecord = {
|
||||||
itemList: itemList.value,
|
|
||||||
goodsList: goodsList.value,
|
|
||||||
patientId: patientId.value,
|
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
mainAppeal: formData.value.mainAppeal,
|
mainAppeal: formData.value.mainAppeal,
|
||||||
nowMedicalHistory: formData.value.nowMedicalHistory,
|
nowMedicalHistory: formData.value.nowMedicalHistory,
|
||||||
|
|
@ -76,7 +73,14 @@ const save = () => {
|
||||||
exam: formData.value.exam,
|
exam: formData.value.exam,
|
||||||
diagnosisDetail: formData.value.diagnosisDetail,
|
diagnosisDetail: formData.value.diagnosisDetail,
|
||||||
diagnosisSummary: formData.value.diagnosisSummary,
|
diagnosisSummary: formData.value.diagnosisSummary,
|
||||||
registrationId: registerId.value
|
}
|
||||||
|
const data = {
|
||||||
|
registrationId: registerId.value,
|
||||||
|
patientId: patientId.value,
|
||||||
|
itemList: itemList.value,
|
||||||
|
goodsList: goodsList.value,
|
||||||
|
diagnosisMedicalRecord: medicalRecord,
|
||||||
|
|
||||||
}
|
}
|
||||||
post('medical/record/save', {data: data}).then(() => {
|
post('medical/record/save', {data: data}).then(() => {
|
||||||
ElMessage.success("保存成功")
|
ElMessage.success("保存成功")
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ const start_type = () => {
|
||||||
}
|
}
|
||||||
let download = (ver: any, type: any) => {
|
let download = (ver: any, type: any) => {
|
||||||
post("social/directory/download", {ver: ver, type: type}).then((res: any) => {
|
post("social/directory/download", {ver: ver, type: type}).then((res: any) => {
|
||||||
if (res == null) {
|
if (res == null || res == "") {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|
@ -153,7 +153,9 @@ let download = (ver: any, type: any) => {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
get_data_list()
|
||||||
start_type()
|
start_type()
|
||||||
|
|
||||||
}).catch((err: any) => {
|
}).catch((err: any) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
ElNotification({
|
ElNotification({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue