pengjun 2 years ago
parent
commit
9b06ebb11b
  1. 42
      src/components/doctorCheck/PatientRegisterList.vue
  2. 65
      src/components/patientRegister/PatientLis.vue
  3. 3
      src/views/doctorCheck/doctorCheck.vue

42
src/components/doctorCheck/PatientRegisterList.vue

@ -10,8 +10,7 @@
</el-tooltip> </el-tooltip>
</div> </div>
<div class="query" style="display: flex;padding-top: 2px;"> <div class="query" style="display: flex;padding-top: 2px;">
<el-input placeholder="请选择体检单位" v-model="patientRegister.query.cusOrgOCX" style="width:238px;" size="small"
disabled>
<el-input placeholder="请选择体检单位" v-model="patientRegister.query.cusOrgOCX" style="width:238px;" size="small" disabled>
</el-input> </el-input>
<el-button icon="el-icon-search" @click="report.dialogCusOrgOCX = true" <el-button icon="el-icon-search" @click="report.dialogCusOrgOCX = true"
style="font-size: 20px;height:30px;min-width:30px; padding: 5px 5px;" size="small"></el-button> style="font-size: 20px;height:30px;min-width:30px; padding: 5px 5px;" size="small"></el-button>
@ -19,24 +18,22 @@
<div class="query"> <div class="query">
<span>姓名</span> <span>姓名</span>
<el-input placeholder="姓名" v-model="patientRegister.query.patientName" size="small" clearable
style="width: 100px" />
<el-input placeholder="姓名" v-model="local.query.patientName" size="small" clearable style="width: 100px" />
</div> </div>
<div class="query"> <div class="query">
<span>性别</span> <span>性别</span>
<el-select v-model="patientRegister.query.sex" placeholder="请选择" clearable style="width: 80px" size="small">
<el-select v-model="local.query.sex" placeholder="请选择" clearable style="width: 80px" size="small">
<el-option v-for="item in dict.forSex" :key="item.id" :label="item.displayName" :value="item.id"> <el-option v-for="item in dict.forSex" :key="item.id" :label="item.displayName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="query"> <div class="query">
<span>检查状态</span> <span>检查状态</span>
<el-select v-model="patientRegister.query.completeFlag" placeholder="请选择" clearable style="width: 80px"
size="small">
<el-select v-model="local.query.completeFlag" placeholder="请选择" clearable style="width: 80px" size="small">
<el-option v-for="item in local.completeFlag" :key="item.id" :label="item.displayName" :value="item.id"> <el-option v-for="item in local.completeFlag" :key="item.id" :label="item.displayName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="patientRegister.query.isAudit" placeholder="请选择" clearable style="width: 75px;margin: 0 2px;"
<el-select v-model="local.query.isAudit" placeholder="请选择" clearable style="width: 75px;margin: 0 2px;"
size="small"> size="small">
<el-option label="未审核" value="N" /> <el-option label="未审核" value="N" />
<el-option label="已审核" value="Y" /> <el-option label="已审核" value="Y" />
@ -167,7 +164,7 @@
<!--通用选单位体检次数分组的控件--> <!--通用选单位体检次数分组的控件-->
<el-dialog title="体检单位选择" :visible.sync="report.dialogCusOrgOCX" :close-on-click-modal="false" :append-to-body="true" <el-dialog title="体检单位选择" :visible.sync="report.dialogCusOrgOCX" :close-on-click-modal="false" :append-to-body="true"
width="800px" height="600px">
width="800px" height="600px" >
<CusOrgOCX :useCustomerOrg="false" :initDateType="'medicalStartDate'" /> <CusOrgOCX :useCustomerOrg="false" :initDateType="'medicalStartDate'" />
</el-dialog> </el-dialog>
@ -196,6 +193,20 @@ export default {
local: { local: {
query: { query: {
dateType: 'creationTime', //
dateRange: null, //
startDate: null,
endDate: null,
containRefuse: true, //
times: 0, //
customerOrgId: "", //ID
CustomerOrgParentId: "", //ID
customerOrgFlag: true, //
customerOrgRegister: { id: '' }, //
checkAsbs: null,
patientName: '', //
sex: '', //
idCardNo: '', //
haveImage: false, haveImage: false,
checkAsb: '', // checkAsb: '', //
}, },
@ -217,7 +228,7 @@ export default {
// //
mounted() { }, mounted() { },
computed: { computed: {
...mapState(["window", "dataTransOpts", "dict", "patientRegister", "customerOrg", "doctorCheck", "sumDoctorCheck", "report"]),
...mapState(["window", "dataTransOpts", "dict", "customerOrg","patientRegister", "doctorCheck", "sumDoctorCheck", "report"]),
}, },
methods: { methods: {
...mapMutations(['doctorCheckPrBaseInit', 'sumPREditInit']), ...mapMutations(['doctorCheckPrBaseInit', 'sumPREditInit']),
@ -252,6 +263,7 @@ export default {
this.local.completeFlag.splice(0, 1) // this.local.completeFlag.splice(0, 1) //
}, },
// //
filterMethod(keyWords) { filterMethod(keyWords) {
//console.log('filterMethod',this.asbItemQuick) //console.log('filterMethod',this.asbItemQuick)
@ -305,7 +317,7 @@ export default {
} }
setTimeout(() => { //300ms setTimeout(() => { //300ms
if(this.oneClick == 1 && this.DbClick == 0) this.rowClickRetrieve(row)
if (this.oneClick == 1 && this.DbClick == 0) this.rowClickRetrieve(row)
}, 300) }, 300)
}, },
@ -361,10 +373,10 @@ export default {
} }
body.customerOrgs = customerOrgs body.customerOrgs = customerOrgs
if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex
if (this.patientRegister.query.isAudit) body.isAudit = this.patientRegister.query.isAudit
if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
if (this.local.query.patientName) body.patientName = this.local.query.patientName
if (this.local.query.sex) body.sexId = this.local.query.sex
if (this.local.query.isAudit) body.isAudit = this.local.query.isAudit
if (this.local.query.completeFlag) body.completeFlag = this.local.query.completeFlag
if (this.local.query.checkAsb) body.asbitems = [this.local.query.checkAsb] if (this.local.query.checkAsb) body.asbitems = [this.local.query.checkAsb]
if (this.local.query.haveImage) body.isPicture = 'Y' if (this.local.query.haveImage) body.isPicture = 'Y'

65
src/components/patientRegister/PatientLis.vue

@ -7,8 +7,7 @@
<el-table @body-scrolling="load" :data="tableData" border <el-table @body-scrolling="load" :data="tableData" border
:height="window.pageHeight < 600 ? 248 : Math.floor(((window.pageHeight - 250) * 2) / 3)" :height="window.pageHeight < 600 ? 248 : Math.floor(((window.pageHeight - 250) * 2) / 3)"
highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" size="small" row-key="id" highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" size="small" row-key="id"
@selection-change="handleSelectionChange" ref="info" id="info"
:row-class-name="handleRowClassName">
@selection-change="handleSelectionChange" ref="info" id="info" :row-class-name="handleRowClassName">
<!-- 取消勾选改为选中 <!-- 取消勾选改为选中
<el-table-column type="selection" width="40" show-overflow-tooltip/> <el-table-column type="selection" width="40" show-overflow-tooltip/>
:height="window.pageHeight < 600 ? 202 : Math.floor(((window.pageHeight - 302) * 2) / 3)" :height="window.pageHeight < 600 ? 202 : Math.floor(((window.pageHeight - 302) * 2) / 3)"
@ -110,7 +109,14 @@
<el-tabs v-model="tabChoosed" style="margin-top: -22px;"> <el-tabs v-model="tabChoosed" style="margin-top: -22px;">
<!-- 给合项目 --> <!-- 给合项目 -->
<el-tab-pane label="预览" name="1"> <el-tab-pane label="预览" name="1">
<PatientRegisterAsbItem />
<div style="overflow: scroll; width: 100%;height: 240px;">
<el-image :src="lisLabel">
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
</el-image>
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -133,6 +139,13 @@
<div v-show="checkPagePriv(pagePriv.privs, '撤消申请')" class="listBtn"> <div v-show="checkPagePriv(pagePriv.privs, '撤消申请')" class="listBtn">
<el-button type="" class="commonbutton" @click="btnUndoLis">撤消申请</el-button> <el-button type="" class="commonbutton" @click="btnUndoLis">撤消申请</el-button>
</div> </div>
<div style="margin-top: 5px;">
<el-image style="width: 110px; height: 115px;" :src="peoplePhoto">
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
</el-image>
</div>
</div> </div>
</div> </div>
<!--组件弹窗--> <!--组件弹窗-->
@ -149,6 +162,7 @@
import moment from "moment"; import moment from "moment";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { photoParse } from "../../utlis/proFunc"
import Sortable from "sortablejs"; import Sortable from "sortablejs";
import FileSaver from 'file-saver'; import FileSaver from 'file-saver';
import html2canvas from 'html2canvas'; import html2canvas from 'html2canvas';
@ -246,6 +260,8 @@ export default {
oneClick: 0, // 1 oneClick: 0, // 1
DbClick: 0, // 1 DbClick: 0, // 1
lisLabel:'https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg',
}; };
}, },
@ -278,6 +294,10 @@ export default {
"patientRegister", "patientRegister",
"customerOrg", "customerOrg",
]), ]),
peoplePhoto() {
return photoParse(this.tableDataCurrentRow.photo)
}
}, },
methods: { methods: {
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),
@ -296,11 +316,22 @@ export default {
}, },
// //
btnChooseAll(type){
if(type == 1){
btnChooseAll(type) {
if (type == 1) {
// //
}else{
this.tableData.forEach(e => {
e.choosed = true;
e.highLightBg = "selected";
});
this.multipleSelection = deepCopy(this.tableData)
} else {
this.tableData.forEach(e => {
e.choosed = false;
e.highLightBg = "";
});
this.multipleSelection = []
this.$refs['info'].setCurrentRow();
} }
}, },
@ -333,7 +364,7 @@ export default {
this.multipleSelection = JSON.parse(JSON.stringify(rows)); this.multipleSelection = JSON.parse(JSON.stringify(rows));
}, },
//
//
rowClick(row) { rowClick(row) {
if (this.oneClick == 0) { if (this.oneClick == 0) {
this.oneClick = 1; this.oneClick = 1;
@ -565,22 +596,22 @@ export default {
}, },
// //
btnPrintPre(){
btnPrintPre() {
}, },
// //
btnPrint(){
btnPrint() {
}, },
// //
btnSendLis(){
btnSendLis() {
console.log('btnSendLis') console.log('btnSendLis')
}, },
// //
btnUndoLis(){
btnUndoLis() {
console.log('btnUndoLis') console.log('btnUndoLis')
}, },
@ -651,7 +682,7 @@ export default {
{ Name: "printer", Value: user }, { Name: "printer", Value: user },
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, { Name: "hisLog", Value: "pic/hisLog.jpg" },
], ],
BusinessCode:prId
BusinessCode: prId
}; };
if (isPreview) { if (isPreview) {
@ -722,7 +753,7 @@ export default {
.then(res => { .then(res => {
if (JSON.parse(res).code < 0) { if (JSON.parse(res).code < 0) {
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); this.$message.warning({ showClose: true, message: JSON.parse(res).message });
}else{
} else {
return postapi("/api/app/lisrequest/updatelisrequestisprint", { return postapi("/api/app/lisrequest/updatelisrequestisprint", {
operateType: 1, operateType: 1,
patientRegisterId: prId, patientRegisterId: prId,
@ -730,7 +761,7 @@ export default {
} }
}) })
.then(res => { .then(res => {
if(res && res.code < 0){
if (res && res.code < 0) {
this.$message.error({ showClose: true, message: `${res.message}` }); this.$message.error({ showClose: true, message: `${res.message}` });
} }
}) })
@ -757,7 +788,7 @@ export default {
{ Name: "printer", Value: user }, { Name: "printer", Value: user },
{ Name: "hisLog", Value: "pic/hisLog.jpg" }, { Name: "hisLog", Value: "pic/hisLog.jpg" },
], ],
BusinessCode:prId
BusinessCode: prId
}; };
if (isPreview) { if (isPreview) {
@ -826,7 +857,7 @@ export default {
.then(res => { .then(res => {
if (JSON.parse(res).code < 0) { if (JSON.parse(res).code < 0) {
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); this.$message.warning({ showClose: true, message: JSON.parse(res).message });
}else{
} else {
return postapi("/api/app/lisrequest/updatelisrequestisprint", { return postapi("/api/app/lisrequest/updatelisrequestisprint", {
operateType: 1, operateType: 1,
patientRegisterId: prId, patientRegisterId: prId,
@ -834,7 +865,7 @@ export default {
} }
}) })
.then(res => { .then(res => {
if(res && res.code < 0){
if (res && res.code < 0) {
this.$message.error({ showClose: true, message: `${res.message}` }); this.$message.error({ showClose: true, message: `${res.message}` });
} }
}) })

3
src/views/doctorCheck/doctorCheck.vue

@ -103,7 +103,8 @@ export default {
// this.$message.info(""); // this.$message.info("");
// console.log('this.$peisAPI',this.$peisAPI) // console.log('this.$peisAPI',this.$peisAPI)
this.$peisAPI.getIsCheckPicture().then(res => { this.$peisAPI.getIsCheckPicture().then(res => {
if (res) this.isCheckPicture = res
console.log("this.$peisAPI.getIsCheckPicture()",res)
if (res) this.isCheckPicture = res.toUpperCase() == 'Y' ? true:false
}) })
} }

Loading…
Cancel
Save