Browse Source

resize

master
pengjun 2 years ago
parent
commit
afc1ac2c76
  1. 13
      src/components/patientRegister/PatientRegisterRecoverList.vue
  2. 23
      src/components/patientRegister/PatientRegisterRefuseList.vue
  3. 4
      src/components/patientRegister/patientRegisterQuery.vue
  4. 40
      src/views/customerOrg/patientRegisterRecover.vue
  5. 12
      src/views/customerOrg/patientRegisterRefuse.vue

13
src/components/patientRegister/PatientRegisterRecoverList.vue

@ -1,7 +1,9 @@
<template> <template>
<div>
<div style="display: flex"> <div style="display: flex">
<el-table :data="dataList" border width="100%" height="700" row-key="id" size="small"
<div :style="'width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'">
<el-table :data="dataList" border width="100%"
:height="window.pageHeight < 600 ? 350:window.pageHeight-250"
row-key="id" size="small"
highlight-current-row ref="dataList" highlight-current-row ref="dataList"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40"/> <el-table-column type="selection" width="40"/>
@ -113,8 +115,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="margin-left: 10px">
</div>
<div style="margin-left: 10px;width:110px;">
<div class="listBtn"> <div class="listBtn">
<el-button type="success" class="btnClass" @click="recover">回收表单</el-button> <el-button type="success" class="btnClass" @click="recover">回收表单</el-button>
</div> </div>
@ -122,7 +124,6 @@
<el-button type="primary" class="btnClass" @click="scanRecover">扫码回收</el-button> <el-button type="primary" class="btnClass" @click="scanRecover">扫码回收</el-button>
</div> </div>
</div> </div>
</div>
<el-dialog title="扫/输入条码签到" :visible.sync="dialogVisible"> <el-dialog title="扫/输入条码签到" :visible.sync="dialogVisible">
<el-form :model="form"> <el-form :model="form">
<el-form-item label="条码" label-width="100px"> <el-form-item label="条码" label-width="100px">
@ -166,7 +167,7 @@ export default {
// //
mounted() { }, mounted() { },
computed: { computed: {
...mapState(["dict", "patientRegister", "customerOrg"]),
...mapState(["window","dict", "patientRegister", "customerOrg"]),
}, },
methods: { methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),

23
src/components/patientRegister/PatientRegisterRefuseList.vue

@ -1,8 +1,9 @@
<template> <template>
<div>
<div style="display: flex"> <div style="display: flex">
<div style="width:46%;">
<el-table :data="dataList" border height="700" row-key="id" size="small" highlight-current-row ref="dataList"
<div :style="'width:' + Math.floor((window.pageWidth - 120 - 86)/2) + 'px;'">
<el-table :data="dataList" border
:height="window.pageHeight < 600 ? 350:window.pageHeight-250"
row-key="id" size="small" highlight-current-row ref="dataList"
@row-click="rowClick"> @row-click="rowClick">
<el-table-column type="index" width="50" label="序号" /> <el-table-column type="index" width="50" label="序号" />
<el-table-column prop="completeFlag" label="体检进度"> <el-table-column prop="completeFlag" label="体检进度">
@ -110,8 +111,8 @@
</el-table> </el-table>
</div> </div>
<div style="width:47%;margin-left: 5px;">
<div style="display: flex; flex-wrap: wrap; width: 100%;">
<div :style="'margin-left: 5px;width:' + Math.floor((window.pageWidth - 120 - 86)/2) + 'px;'">
<div style="display: flex; flex-wrap: wrap;height:40px; width: 100%;">
<div class="query"> <div class="query">
<span>条码号</span> <span>条码号</span>
<el-input placeholder="条码号" v-model="quick.patientRegisterNo" size="small" style="width: 140px" clearable <el-input placeholder="条码号" v-model="quick.patientRegisterNo" size="small" style="width: 140px" clearable
@ -119,7 +120,7 @@
</div> </div>
<div class="query"> <div class="query">
<span>档案号</span> <span>档案号</span>
<el-input placeholder="档案号" v-model="quick.patientNo" size="small" style="width: 130px" clearable
<el-input placeholder="档案号" v-model="quick.patientNo" size="small" style="width: 100px" clearable
@input="onQueryByPatientNo" /> @input="onQueryByPatientNo" />
</div> </div>
<div class="query"> <div class="query">
@ -127,7 +128,9 @@
<el-input placeholder="姓名" v-model="quick.patientName" size="small" style="width: 100px" disabled /> <el-input placeholder="姓名" v-model="quick.patientName" size="small" style="width: 100px" disabled />
</div> </div>
</div> </div>
<el-table :data="doctorCheck.RegisterCheckList" style="width: 100%" height="660" border highlight-current-row
<el-table :data="doctorCheck.RegisterCheckList"
:height="window.pageHeight < 600 ? 310:window.pageHeight-290"
border highlight-current-row
size="small" @selection-change="handleSelectionChange"> size="small" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" /> <el-table-column type="selection" width="40" />
<el-table-column prop="asbitemName" label="组合项目" width="180" /> <el-table-column prop="asbitemName" label="组合项目" width="180" />
@ -144,7 +147,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div style="margin-left: 10px;width:100px;">
<div style="margin-left: 10px;width:110px;">
<div class="listBtn"> <div class="listBtn">
<el-button type="success" class="btnClass" @click="resuse('2')">登记弃检</el-button> <el-button type="success" class="btnClass" @click="resuse('2')">登记弃检</el-button>
</div> </div>
@ -153,8 +156,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import moment from "moment"; import moment from "moment";
@ -189,7 +190,7 @@ export default {
// //
mounted() { }, mounted() { },
computed: { computed: {
...mapState(["dict", "patientRegister", "customerOrg", "doctorCheck"]),
...mapState(["window","dict", "patientRegister", "customerOrg", "doctorCheck"]),
}, },
methods: { methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),

4
src/components/patientRegister/patientRegisterQuery.vue

@ -1,6 +1,6 @@
<template> <template>
<div style="display: flex"> <div style="display: flex">
<div :style="'display: flex; flex-wrap: wrap; height:100px;width:' + (window.pageWidth - 200 - 120 - 70) + 'px;'">
<div :style="'display: flex; flex-wrap: wrap; height:100px;width:' + (window.pageWidth - (orgEnable=='Y' ? 0:200) - 120 - 70) + 'px;'">
<div class="query"> <div class="query">
<span class="demonstration">登记日期</span> <span class="demonstration">登记日期</span>
<el-date-picker v-model="patientRegister.query.dateRange" type="daterange" align="right" unlink-panels <el-date-picker v-model="patientRegister.query.dateRange" type="daterange" align="right" unlink-panels
@ -37,7 +37,7 @@
</div> </div>
<div class="query"> <div class="query">
<el-cascader v-model="patientRegister.query.customerOrgId" :options="patientRegister.customerOrgTreeAll" <el-cascader v-model="patientRegister.query.customerOrgId" :options="patientRegister.customerOrgTreeAll"
:props="{checkStrictly: true,expandTrigger: 'hover',...customerOrg.treeprops,}"
:props="{checkStrictly: true,expandTrigger: 'hover',...customerOrg.treeprops,}" placeholder="请选择单位"
:show-all-levels="false" clearable :disabled="orgEnable == 'Y' ? false : true" size="small"> :show-all-levels="false" clearable :disabled="orgEnable == 'Y' ? false : true" size="small">
</el-cascader> </el-cascader>
<el-checkbox v-model="patientRegister.query.customerOrgFlag">单位作为查询条件</el-checkbox> <el-checkbox v-model="patientRegister.query.customerOrgFlag">单位作为查询条件</el-checkbox>

40
src/views/customerOrg/patientRegisterRecover.vue

@ -1,13 +1,12 @@
<template> <template>
<div class="box">
<div style="width: 100%">
<div>
<el-card> <el-card>
<div style="display: flex"> <div style="display: flex">
<!-- 单位树组件 --> <!-- 单位树组件 -->
<div style="width: 15%; border: 1px solid">
<div :style="CustomerOrgTreeStyle">
<CustomerOrgTreeAll /> <CustomerOrgTreeAll />
</div> </div>
<div style="margin-left: 10px; width: 85%">
<div :style="CustomerOrgRightStyle">
<!-- 查询条件 --> <!-- 查询条件 -->
<PatientRegisterQuery /> <PatientRegisterQuery />
@ -18,7 +17,6 @@
</div> </div>
</el-card> </el-card>
</div> </div>
</div>
</template> </template>
<script> <script>
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
@ -38,10 +36,14 @@ export default {
data() { data() {
return { return {
tabChoosed: "1", tabChoosed: "1",
CustomerOrgTreeStyle:'',
CustomerOrgRightStyle:'',
}; };
}, },
created() {},
created() {
this.resize();
},
// //
mounted() { mounted() {
@ -49,11 +51,24 @@ export default {
}, },
computed: { computed: {
...mapState(["dict", "patientRegister", "customerOrg"]),
...mapState(["window","dict", "patientRegister", "customerOrg"]),
}, },
methods: { methods: {
...mapActions(["getCustomerOrgGroup"]), ...mapActions(["getCustomerOrgGroup"]),
resize() {
//console.log(this.window.pageHeight,this.window.pageWidth)
let headerHeight = Number(150);
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (this.window.pageHeight - headerHeight) + "px;";
this.CustomerOrgRightStyle = "margin-left: 10px;width:" + (this.window.pageWidth - 200 - 60) + "px; height:" + (this.window.pageHeight - headerHeight) + "px;";
if (this.window.pageHeight < 600) {
this.CustomerOrgTreeStyle = "overflow: scroll;border: 1px solid;width:200px; height:" + (600 - headerHeight) + "px;";
}
},
// //
dictInit() { dictInit() {
// //
@ -183,6 +198,17 @@ export default {
this.getCustomerOrgGroup(newVal); this.getCustomerOrgGroup(newVal);
} }
}, },
"window.pageHeight"(newVal, oldVal) {
if (newVal != oldVal) {
this.resize();
}
},
"window.pageWidth"(newVal, oldVal) {
if (newVal != oldVal) {
this.resize();
}
},
}, },
}; };
</script> </script>

12
src/views/customerOrg/patientRegisterRefuse.vue

@ -1,9 +1,7 @@
<template> <template>
<div class="box">
<div style="width: 100%">
<div>
<el-card> <el-card>
<div style="display: flex">
<div style="margin-left: 10px; width: 100%">
<div style=" width: 100%">
<!-- 查询条件 --> <!-- 查询条件 -->
<PatientRegisterQuery orgEnable="Y"/> <PatientRegisterQuery orgEnable="Y"/>
@ -11,10 +9,8 @@
<PatientRegisterRefuseList /> <PatientRegisterRefuseList />
</div> </div>
</div>
</el-card> </el-card>
</div> </div>
</div>
</template> </template>
<script> <script>
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
@ -185,7 +181,5 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.box {
display: flex;
}
</style> </style>
Loading…
Cancel
Save