前端最新版本同步
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<el-button icon="Search" @click="getList" />
|
||||
</template>
|
||||
</el-input>
|
||||
<el-radio-group v-model="queryParams.rangeCode" @change="getList">
|
||||
<el-radio-group v-model="queryParams.rangeCode" @change="handelRadioChange">
|
||||
<el-radio-button :label="1">个人</el-radio-button>
|
||||
<el-radio-button :label="2">科室</el-radio-button>
|
||||
<el-radio-button :label="3">全院</el-radio-button>
|
||||
@@ -32,21 +32,26 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getOrderGroupList } from '../api';
|
||||
import { getOrderGroup } from '../api';
|
||||
|
||||
const props = defineProps({
|
||||
diagnosis: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
organizationId: {
|
||||
type: String,
|
||||
required: true,
|
||||
}
|
||||
});
|
||||
|
||||
const drawer = ref(false);
|
||||
const orderList = ref([]);
|
||||
const result = ref([]);
|
||||
const emit = defineEmits(['useOrderGroup']);
|
||||
const queryParams = ref({
|
||||
typeEnum: 1,
|
||||
rangeCode: 3,
|
||||
rangeCode: 2,
|
||||
});
|
||||
|
||||
function handleOpen() {
|
||||
@@ -54,24 +59,39 @@ function handleOpen() {
|
||||
getList();
|
||||
}
|
||||
|
||||
function handelRadioChange(value){
|
||||
switch (value) {
|
||||
case 1:
|
||||
orderList.value = result.value.personalList;
|
||||
break;
|
||||
case 2:
|
||||
orderList.value = result.value.organizationList;
|
||||
break;
|
||||
case 3:
|
||||
orderList.value = result.value.hospitalList;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function handleUseOrderGroup(row) {
|
||||
let value = JSON.parse(row.groupJson);
|
||||
value = value.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
conditionId: props.diagnosis.conditionId,
|
||||
conditionDefinitionId: props.diagnosis.definitionId,
|
||||
};
|
||||
});
|
||||
// let value = JSON.parse(row.groupJson);
|
||||
// value = value.map((item) => {
|
||||
// return {
|
||||
// ...item,
|
||||
// conditionId: props.diagnosis.conditionId,
|
||||
// conditionDefinitionId: props.diagnosis.definitionId,
|
||||
// };
|
||||
// });
|
||||
// value.conditionId = props.diagnosis.conditionId;
|
||||
// value.conditionDefinitionId = props.diagnosis.definitionId;
|
||||
emit('useOrderGroup', value);
|
||||
emit('useOrderGroup', row.detailList);
|
||||
drawer.value = false;
|
||||
}
|
||||
|
||||
function getList() {
|
||||
getOrderGroupList(queryParams.value).then((res) => {
|
||||
orderList.value = res.data.records;
|
||||
getOrderGroup({ organizationId: props.organizationId }).then((res) => {
|
||||
result.value = res.data
|
||||
orderList.value = res.data.organizationList;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user