Browse Source

group

master
pengjun 2 years ago
parent
commit
7a0da2aaa6
  1. 7
      src/components/customerOrg/customerOrgGroupAsbitem.vue
  2. 21
      src/components/doctorCheck/RegisterCheckList.vue
  3. 98
      src/components/patientRegister/PatientRegisterRefuseList.vue
  4. 3
      src/components/report/RegisterCheckStatus.vue
  5. 18
      src/components/sumDoctorCheck/SumItems.vue
  6. 58
      src/utlis/proFunc.js
  7. 7
      src/views/customerOrg/customerOrgGroup.vue

7
src/components/customerOrg/customerOrgGroupAsbitem.vue

@ -374,8 +374,8 @@ export default {
} }
}); });
//
postapi("/api/app/asbitem/getasbitemlist",{}).then((res) => {
// ()
postapi("/api/app/medicalpackage/getmedicalpackagelist",{}).then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.dict.medicalPackage = res.data; this.dict.medicalPackage = res.data;
} }
@ -790,7 +790,7 @@ export default {
// //
btnCopyGroup(){ btnCopyGroup(){
console.log('this.customerOrgGroup',this.customerOrgGroup) console.log('this.customerOrgGroup',this.customerOrgGroup)
if(!this.customerOrgGroup.id || !this.customerOrgGroup.customerOrgId){
if(!this.customerOrgGroup.id){
this.$message.warning({ showClose: true, message: "请先选中单位分组"}) this.$message.warning({ showClose: true, message: "请先选中单位分组"})
return return
} }
@ -849,6 +849,7 @@ export default {
// //
btnCopyMedicalPackage(){ btnCopyMedicalPackage(){
// console.log('this.customerOrgGroup',this.customerOrgGroup)
if(!this.customerOrgGroup.id){ if(!this.customerOrgGroup.id){
this.$message.warning({ showClose: true, message: "请先选中单位分组"}) this.$message.warning({ showClose: true, message: "请先选中单位分组"})
return return

21
src/components/doctorCheck/RegisterCheckList.vue

@ -28,6 +28,7 @@
<script> <script>
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { listOrderBy } from "../../utlis/proFunc"
export default { export default {
components: {}, components: {},
@ -82,11 +83,10 @@ export default {
console.log('rowClick') console.log('rowClick')
this.doctorCheck.RegisterCheckId = row.id this.doctorCheck.RegisterCheckId = row.id
this.dataTransOpts.tableS.register_check.id = row.id this.dataTransOpts.tableS.register_check.id = row.id
setTimeout(() => { //
this.dataTransOpts.refresh.register_check.S++ this.dataTransOpts.refresh.register_check.S++
this.dataTransOpts.refresh.register_check_item.M++ this.dataTransOpts.refresh.register_check_item.M++
}, 10);
// this.doctorCheck.RegisterCheckEdit = row
}, },
// //
@ -95,18 +95,19 @@ export default {
this.doctorCheck.RegisterCheckList = [] this.doctorCheck.RegisterCheckList = []
this.doctorCheck.RegisterCheckId = '' this.doctorCheck.RegisterCheckId = ''
this.dataTransOpts.tableS.register_check.id = '' this.dataTransOpts.tableS.register_check.id = ''
setTimeout(() => {
this.dataTransOpts.refresh.register_check.S++ this.dataTransOpts.refresh.register_check.S++
this.dataTransOpts.refresh.register_check_item.M++ this.dataTransOpts.refresh.register_check_item.M++
}, 20);
return return
} }
console.log(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`)
postapi('/api/app/RegisterCheck/GetRegisterCheckWithAsbitems', { patientRegisterId }) postapi('/api/app/RegisterCheck/GetRegisterCheckWithAsbitems', { patientRegisterId })
.then((res) => { .then((res) => {
console.log("registerCheckList", res.data);
console.log("registerCheckList res.data", res.data);
if (res.code != -1) { if (res.code != -1) {
this.doctorCheck.RegisterCheckList = res.data;
// this.doctorCheck.RegisterCheckList = res.data;
this.doctorCheck.RegisterCheckList = listOrderBy(res.data,[{ colName: 'checkTypeFlag', sortType: 'A' },{ colName: 'itemTypeDisplayOrder', sortType: 'A' },{ colName: 'asbitemDisplayOrder', sortType: 'A' }])
console.log("this.doctorCheck.RegisterCheckList", this.doctorCheck.RegisterCheckList);
// 1 // 1
if (res.data.length > 0) { if (res.data.length > 0) {
this.doctorCheck.RegisterCheckId = res.data[0].id this.doctorCheck.RegisterCheckId = res.data[0].id
@ -119,10 +120,10 @@ export default {
this.dataTransOpts.tableS.register_check.id = '' this.dataTransOpts.tableS.register_check.id = ''
} }
setTimeout(() => { //
this.dataTransOpts.refresh.register_check.S++ // this.dataTransOpts.refresh.register_check.S++ //
this.dataTransOpts.refresh.register_check_item.M++ // this.dataTransOpts.refresh.register_check_item.M++ //
}, 10);
} }
}) })
.catch((err) => { .catch((err) => {

98
src/components/patientRegister/PatientRegisterRefuseList.vue

@ -2,17 +2,9 @@
<div style="display: flex"> <div style="display: flex">
<div :style="'display: flex;width:' + (window.pageWidth - 110 - 10) + 'px;'"> <div :style="'display: flex;width:' + (window.pageWidth - 110 - 10) + 'px;'">
<div <div
:style="'padding: 15px;background-color: #fff;border-radius: 8px;width:' + Math.floor((window.pageWidth - 110 - 50) / 2) + 'px;'"
>
<el-table
:data="dataList"
:height="window.pageHeight < 600 ? 350 : window.pageHeight - 245"
row-key="id"
size="small"
highlight-current-row
ref="dataList"
@row-click="rowClick"
>
:style="'padding: 15px;background-color: #fff;border-radius: 8px;width:' + Math.floor((window.pageWidth - 110 - 50) / 2) + 'px;'">
<el-table :data="dataList" :height="window.pageHeight < 600 ? 350 : window.pageHeight - 245" row-key="id"
size="small" highlight-current-row ref="dataList" @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="体检进度">
<template slot-scope="scope"> <template slot-scope="scope">
@ -67,12 +59,9 @@
<el-table-column prop="medicalTimes" label="体检次数"></el-table-column> <el-table-column prop="medicalTimes" label="体检次数"></el-table-column>
<el-table-column label="分组/套餐" width="150"> <el-table-column label="分组/套餐" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div
v-if="
scope.row.medicalPackageId !== dict.personOrgId &&
<div v-if="scope.row.medicalPackageId !== dict.personOrgId &&
scope.row.customerOrgId === dict.personOrgId scope.row.customerOrgId === dict.personOrgId
"
>
">
{{ {{
ldddw( ldddw(
dict.medicalPackage, dict.medicalPackage,
@ -82,12 +71,9 @@
) )
}} }}
</div> </div>
<div
v-if="
scope.row.medicalPackageId !== dict.personOrgId &&
<div v-if="scope.row.medicalPackageId !== dict.personOrgId &&
scope.row.customerOrgId !== dict.personOrgId scope.row.customerOrgId !== dict.personOrgId
"
>
">
{{ {{
ldddw( ldddw(
dict.customerOrgGroupAll, dict.customerOrgGroupAll,
@ -183,56 +169,31 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div
:style="
'margin-left: 15px;width:' +
<div :style="'margin-left: 15px;width:' +
Math.floor((window.pageWidth) / 2) + Math.floor((window.pageWidth) / 2) +
'px;' 'px;'
"
>
">
<div style="display: flex; flex-wrap: wrap; height: 40px; width: 100%;background-color: #fff; <div style="display: flex; flex-wrap: wrap; height: 40px; width: 100%;background-color: #fff;
border-radius: 8px;margin-bottom: 5px;align-items: center;"> border-radius: 8px;margin-bottom: 5px;align-items: center;">
<div class="query"> <div class="query">
<span>条码号</span> <span>条码号</span>
<el-input
placeholder="条码号"
v-model="quick.patientRegisterNo"
size="small"
style="width: 140px"
clearable
@input="onQueryByPatientRegisterNo"
/>
<el-input placeholder="条码号" v-model="quick.patientRegisterNo" size="small" style="width: 140px" clearable
@input="onQueryByPatientRegisterNo" />
</div> </div>
<div class="query"> <div class="query">
<span>档案号</span> <span>档案号</span>
<el-input
placeholder="档案号"
v-model="quick.patientNo"
size="small"
style="width: 100px"
clearable
@input="onQueryByPatientNo"
/>
<el-input placeholder="档案号" v-model="quick.patientNo" size="small" style="width: 100px" clearable
@input="onQueryByPatientNo" />
</div> </div>
<div class="query"> <div class="query">
<span>姓名</span> <span>姓名</span>
<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>
<div style="padding: 15px;background-color: #fff;border-radius: 8px;"> <div style="padding: 15px;background-color: #fff;border-radius: 8px;">
<el-table
:data="doctorCheck.RegisterCheckList"
:height="window.pageHeight < 600 ? 310 : window.pageHeight - 291"
highlight-current-row
size="small"
@selection-change="handleSelectionChange"
>
<el-table :data="doctorCheck.RegisterCheckList"
:height="window.pageHeight < 600 ? 310 : window.pageHeight - 291" highlight-current-row 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" />
<el-table-column label="弃检" width="80"> <el-table-column label="弃检" width="80">
@ -241,11 +202,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="lastModifierName" label="操作员" width="100" /> <el-table-column prop="lastModifierName" label="操作员" width="100" />
<el-table-column
prop="lastModificationTime"
label="操作时间"
width="180"
>
<el-table-column prop="lastModificationTime" label="操作时间" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{ {{
@ -260,14 +217,10 @@
</div> </div>
<div style="margin-left: 10px;margin-top: 60px; width: 100px"> <div style="margin-left: 10px;margin-top: 60px; width: 100px">
<div class="listBtn"> <div class="listBtn">
<el-button type="success" class="commonbutton" @click="resuse('2')"
>登记弃检</el-button
>
<el-button type="success" class="commonbutton" @click="resuse('2')">登记弃检</el-button>
</div> </div>
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="commonbutton" @click="resuse('0')"
>取消弃检</el-button
>
<el-button type="primary" class="commonbutton" @click="resuse('0')">取消弃检</el-button>
</div> </div>
</div> </div>
</div> </div>
@ -364,12 +317,7 @@ export default {
// //
registerCheckList(patientRegisterId) { registerCheckList(patientRegisterId) {
console.log(
`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`
);
getapi(
`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`
)
postapi('/api/app/RegisterCheck/GetRegisterCheckAsbitemsByPatientRegisterId', { patientRegisterId })
.then((res) => { .then((res) => {
console.log("registerCheckList", res.data); console.log("registerCheckList", res.data);
if (res.code != -1) { if (res.code != -1) {
@ -458,8 +406,7 @@ export default {
msg += msg +=
"\r\n组合项目:【" + "\r\n组合项目:【" +
resuseAsb.substring(1, resuseAsb.length) + resuseAsb.substring(1, resuseAsb.length) +
`${
completeFlag == "2" ? "已登记弃检" : "未登记弃检"
`${completeFlag == "2" ? "已登记弃检" : "未登记弃检"
}无需再执行此操作`; }无需再执行此操作`;
} }
ret.msg = msg; ret.msg = msg;
@ -584,6 +531,7 @@ export default {
margin-top: 10px; margin-top: 10px;
text-align: center; text-align: center;
} }
.btnClass { .btnClass {
width: 100px; width: 100px;
} }

3
src/components/report/RegisterCheckStatus.vue

@ -85,8 +85,7 @@ export default {
registerCheckList(patientRegisterId) { registerCheckList(patientRegisterId) {
this.doctorCheck.RegisterCheckList = [] this.doctorCheck.RegisterCheckList = []
if (!patientRegisterId) return if (!patientRegisterId) return
console.log(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`)
getapi(`/api/app/register-check/register-check-or-asbitem/${patientRegisterId}`)
postapi('/api/app/RegisterCheck/GetRegisterCheckAsbitemsByPatientRegisterId', { patientRegisterId })
.then((res) => { .then((res) => {
console.log("registerCheckList", res.data); console.log("registerCheckList", res.data);
if (res.code > -1) { if (res.code > -1) {

18
src/components/sumDoctorCheck/SumItems.vue

@ -13,7 +13,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div :style="`width:${(window.pageWidth - 180 - 110 - 15)}px;`">
<div :style="`padding-left:10px;width:${(window.pageWidth - 180 - 110 - 25)}px;`">
<!-- <!--
<el-table :data="tableData" :height="divHeight" border highlight-current-row> <el-table :data="tableData" :height="divHeight" border highlight-current-row>
<el-table-column prop="itemName" label="项目" width="150" /> <el-table-column prop="itemName" label="项目" width="150" />
@ -27,7 +27,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
--> -->
<table width="100%" style="margin-left: 10px;font-size:14px;text-align: center;border-collapse:collapse;" border="1" cellspacing="0"
<table width="100%" style="font-size:14px;border-collapse:collapse;" border="1" cellspacing="0"
bordercolor="#909399"> bordercolor="#909399">
<colgroup> <colgroup>
<col width="150"> <col width="150">
@ -37,10 +37,10 @@
</colgroup> </colgroup>
<thead> <thead>
<tr height="30"> <tr height="30">
<td>项目</td>
<td>单位</td>
<td>参考范围</td>
<td v-for="(item, index) of tableCols" :key="index">{{ item.substring(0, 10) }}</td>
<td class="tdCellClass">项目</td>
<td class="tdCellClass">单位</td>
<td class="tdCellClass">参考范围</td>
<td class="tdCellClass" v-for="(item, index) of tableCols" :key="index">{{ item.substring(0, 10) }}</td>
</tr> </tr>
</thead> </thead>
<tbody v-for="(item, index) of tableData" :key="index"> <tbody v-for="(item, index) of tableData" :key="index">
@ -48,12 +48,11 @@
<td class="tdCellClass" style="text-align: left;">{{ item.itemName }}</td> <td class="tdCellClass" style="text-align: left;">{{ item.itemName }}</td>
<td class="tdCellClass">{{ item.unitName }}</td> <td class="tdCellClass">{{ item.unitName }}</td>
<td class="tdCellClass">{{ item.referenceRangeValue }}</td> <td class="tdCellClass">{{ item.referenceRangeValue }}</td>
<td class="tdCellClass" v-for="(item2, index2) of tableCols" :key="index2"
:style="`color: ${item.unitName == '小结' ? '#000000': getColorStr(item[item2 + '_color'])};`" v-html="item[item2]"></td>
<td v-for="(item2, index2) of tableCols" :key="index2"
:style="`padding: 0 5px;text-align:left;color: ${item.itemName == '小结' ? '#000000': getColorStr(item[item2 + '_color'])};`" v-html="item[item2]"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</template> </template>
@ -237,6 +236,7 @@ export default {
.tdCellClass { .tdCellClass {
padding: 0 5px; padding: 0 5px;
text-align: center;
} }
::v-deep .el-table tr { ::v-deep .el-table tr {
background-color: #f4f8ff; background-color: #f4f8ff;

58
src/utlis/proFunc.js

@ -326,6 +326,64 @@ function getColorStr(intColor) {
} }
exports.getColorStr = getColorStr; exports.getColorStr = getColorStr;
//对象数组排序 keyObjs示例:[{ colName: 'id', sortType: 'A' },] sortType: A/D(ASC/DESC)
//简单数组排序 arr.sort(a-b) 升序,arr.sort(b-a)
function listOrderBy(arr, keyObjs) {
if (!arr || arr.length < 2) return arr
let arrCount = arr.length
let lkeyObjs = keyObjs
if (typeof keyObjs !== 'object') {
lkeyObjs = keyObjs.split(',')
}
if (!lkeyObjs || lkeyObjs.length < 1) return arr
let temp = null
let sortType = 'A' //默认升序排序
try {
for (let i = 0; i < arrCount; i++) {
for (let j = 0; j < arrCount - 1; j++) {
for (let k = 0; k < lkeyObjs.length; k++) {
sortType = lkeyObjs[k][1] || 'A'
if (k == 0) {
if (sortType == 'A') {
if (arr[j][lkeyObjs[k][0]] > arr[j + 1][lkeyObjs[k][0]]) {
temp = deepCopy(arr[j])
arr[j] = deepCopy(arr[j + 1])
arr[j + 1] = deepCopy(temp)
}
} else {
if (arr[j][lkeyObjs[k][0]] < arr[j + 1][lkeyObjs[k][0]]) {
temp = deepCopy(arr[j])
arr[j] = deepCopy(arr[j + 1])
arr[j + 1] = deepCopy(temp)
}
}
} else {
if (arr[j][lkeyObjs[k - 1][0]] != arr[j + 1][lkeyObjs[k - 1][0]]) break;
if (sortType == 'A') {
if (arr[j][lkeyObjs[k][0]] > arr[j + 1][lkeyObjs[k][0]]) {
temp = deepCopy(arr[j])
arr[j] = deepCopy(arr[j + 1])
arr[j + 1] = deepCopy(temp)
}
} else {
if (arr[j][lkeyObjs[k][0]] < arr[j + 1][lkeyObjs[k][0]]) {
temp = deepCopy(arr[j])
arr[j] = deepCopy(arr[j + 1])
arr[j + 1] = deepCopy(temp)
}
}
}
}
}
}
} catch (error) {
console.log(`listOrderBy ${error}`);
}
return arr;
}
exports.listOrderBy = listOrderBy;

7
src/views/customerOrg/customerOrgGroup.vue

@ -205,11 +205,14 @@ export default {
this.$message.warning("请选择体检次数"); this.$message.warning("请选择体检次数");
return; return;
} }
this.$message.warning({showClose:true,message:'开发中……'})
postapi('/api/app/CustomerOrgGroup/CopyLastGrouping', { customerOrgRegisterId: this.customerOrgRegister.id })
.then(res => {
if (res.code > -1) {
// //
this.getCustomerOrgGroup(this.customerOrgRegister.id); this.getCustomerOrgGroup(this.customerOrgRegister.id);
}
})
}, },
// //

Loading…
Cancel
Save