|
@@ -143,6 +143,15 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row :gutter="24" v-show="expand">
|
|
|
+ <el-col :span="7">
|
|
|
+ <el-form-item label="病历模版" prop="blmb">
|
|
|
+ <el-cascader style="width: 100%;" placeholder="请选择" v-model="formData.blmb"
|
|
|
+ :options="searchOptions.blmbArray" filterable clearable :props="{emitPath: false}">
|
|
|
+ </el-cascader>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="7">
|
|
|
<el-form-item label="" prop="">
|
|
@@ -200,6 +209,7 @@ export default {
|
|
|
AEM01C: '',
|
|
|
min_cost: '',//1
|
|
|
max_cost: '',//1
|
|
|
+ blmb: '', //1
|
|
|
order_value: '', //1
|
|
|
order_key: ''//1
|
|
|
},
|
|
@@ -207,6 +217,7 @@ export default {
|
|
|
ksArray: [],//科室options
|
|
|
bqArray: [],//病区options
|
|
|
lyTypeArray: [], //离院方式
|
|
|
+ blmbArray: [], //病历模版
|
|
|
unplannedSurgeryArray: [{
|
|
|
label: '全部', value: ''
|
|
|
},{
|
|
@@ -394,11 +405,32 @@ export default {
|
|
|
this.$refs.filterListFormRef.resetFields();
|
|
|
this.$emit('reset')
|
|
|
},
|
|
|
+
|
|
|
+ handleBlmbOptions(data) {
|
|
|
+ // 递归转换函数
|
|
|
+ const convert = (node) => {
|
|
|
+ const treeNode = {
|
|
|
+ value: node.key,
|
|
|
+ label: node.value
|
|
|
+ };
|
|
|
+
|
|
|
+ if (node.child && Object.keys(node.child).length > 0) {
|
|
|
+ treeNode.children = Object.values(node.child).map(child => convert(child));
|
|
|
+ }
|
|
|
+
|
|
|
+ return treeNode;
|
|
|
+ };
|
|
|
+
|
|
|
+ // 处理根节点
|
|
|
+ return Object.values(data).map(root => convert(root));
|
|
|
+ },
|
|
|
+
|
|
|
getSearchOptions() {
|
|
|
this.$axios.post('CaseHistory/Terminal/getQxBlSearchOptions', {}).then(res => {
|
|
|
this.searchOptions.ksArray = this.cancelChildren(res.data.ksArray);//科室
|
|
|
this.searchOptions.bqArray = this.cancelChildren(res.data.bqArray);//病区
|
|
|
this.searchOptions.lyTypeArray = res.data.lyTypeArray
|
|
|
+ this.searchOptions.blmbArray = this.handleBlmbOptions(res.data.BLMB);
|
|
|
})
|
|
|
},
|
|
|
//科室change事件
|