pengjun 2 years ago
parent
commit
f00c166915
  1. 7
      src/components/patientRegister/PatientLis.vue
  2. 44
      src/components/patientRegister/PatientLisRequest.vue
  3. 3
      src/components/patientRegister/PatientRegisterEdit.vue
  4. 6
      src/components/patientRegister/patientRegisterAsbItem.vue
  5. 4
      src/components/patientRegister/patientRegisterQuery.vue

7
src/components/patientRegister/PatientLis.vue

@ -395,9 +395,14 @@ export default {
})
//
if (this.dataTransOpts.tableS.patient_register.id) {
if(this.tableData.length == 1){
this.dataTransOpts.tableS.patient_register = deepCopy(this.tableData[0])
this.dataTransOpts.refresh.register_check_asbitem.M++
this.dataTransOpts.refresh.lis_request.M++
}
// if (this.dataTransOpts.tableS.patient_register.id) {
// this.dataTransOpts.refresh.register_check_asbitem.M++
// }
}
})

44
src/components/patientRegister/PatientLisRequest.vue

@ -3,7 +3,7 @@
<div :style="'width:' + (window.pageWidth - 200 - 145) + 'px;'">
<el-table :data="dataTransOpts.tableM.lis_request" border @row-click="rowClick"
:height="window.pageHeight < 600 ? 140 : Math.floor((window.pageHeight - 250) * 2 / 5)" size="small"
highlight-current-row ref="lis_request">
highlight-current-row ref="lis_request" :row-class-name="handleRowClassName">
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="isPrint" label="打印" min-width="50">
<template slot-scope="scope">
@ -90,7 +90,9 @@ export default {
},
//
mounted() { },
mounted() {
this.retrieve_lis_request(this.dataTransOpts.tableS.patient_register.id)
},
computed: {
...mapState(["window", "dataTransOpts", "dict", "patientRegister"]),
@ -98,6 +100,18 @@ export default {
methods: {
dddw, moment, checkPagePriv,
//
handleRowClassName({ row, rowIndex }) {
// highLightBg 'selected'
//console.log(rowIndex, row)
//return row.highLightBg == 'selected' ? 'high-light-bg' : '';
if (row.choosed) {
return "current-row";
} else {
return "";
}
},
//
colorTrans(intDataColor) {
let tempColor = '000000' + Number(intDataColor).toString(16)
@ -106,21 +120,31 @@ export default {
},
//
rowClick(row) {
rowClick(row) {
this.btnChoose(false)
this.chooseRows = [row]
this.$refs['lis_request'].setCurrentRow(row);
},
// /
btnChoose(isChooseAll) {
if (isChooseAll) {
this.chooseRows = deepCopy(this.dataTransOpts.tableM.lis_request)
this.chooseRows = deepCopy(this.dataTransOpts.tableM.lis_request)
this.dataTransOpts.tableM.lis_request.forEach(e => {
e.choosed = true;
this.$refs['lis_request'].setCurrentRow(e);
});
} else {
this.chooseRows = []
this.dataTransOpts.tableM.lis_request.forEach(e => {
e.choosed = false;
});
this.$refs['lis_request'].setCurrentRow();
}
this.$nextTick(() => {
this.$refs['lis_request'].doLayout()
})
},
//
@ -134,14 +158,14 @@ export default {
//
async btnLisPrint(isPreview) {
if (!this.$peisAPI) {
this.$message.warning({ showClose: true, message: "此功能需要在壳客户端中方可运行!" })
return
}
if (this.chooseRows.length == 0) {
this.$message.warning({ showClose: true, message: "请先选择要操作的条码记录!" })
return
}
if (!this.$peisAPI) {
this.$message.warning({ showClose: true, message: "此功能需要在壳客户端中方可运行!" })
return
}
if (isPreview) {
this.lisPrint(this.chooseRows[0].lisRequestId,"0002",isPreview)
@ -229,6 +253,7 @@ export default {
.then(res => {
if (res.code > -1) {
this.dataTransOpts.tableM.lis_request = res.data
this.btnChoose(true)
}
})
},
@ -241,7 +266,7 @@ export default {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 人员登记 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.patient_register.id}`);
this.retrieve_lis_request(this.dataTransOpts.tableS.patient_register.id)
if(newVal != oldVal) this.retrieve_lis_request(this.dataTransOpts.tableS.patient_register.id)
}
},
}
@ -249,6 +274,7 @@ export default {
</script>
<style scoped>
@import "../../assets/css/global.css";
@import "../../assets/css/global_table.css";
.listBtn {
padding: 2px 0;

3
src/components/patientRegister/PatientRegisterEdit.vue

@ -1800,7 +1800,8 @@ export default {
//
closeDialogCharge() {
// this.prAsbOpraOpts.prAsbQuery++
this.dataTransOpts.refresh.register_check_asbitem.D++
this.dataTransOpts.refresh.patient_register.S++
// this.dataTransOpts.refresh.register_check_asbitem.D++
},
//

6
src/components/patientRegister/patientRegisterAsbItem.vue

@ -73,7 +73,9 @@ export default {
},
//
mounted() { },
mounted() {
this.retrieveregister_check_asbitem(this.dataTransOpts.tableS.patient_register.id)
},
computed: {
...mapState(["window", "dataTransOpts", "dict", "patientRegister"]),
@ -172,7 +174,7 @@ export default {
// immediate:true,
handler(newVal, oldVal) {
console.log(`watch 人员登记 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.patient_register.id}`);
this.retrieveregister_check_asbitem(this.dataTransOpts.tableS.patient_register.id)
if(newVal != oldVal) this.retrieveregister_check_asbitem(this.dataTransOpts.tableS.patient_register.id)
}
},
}

4
src/components/patientRegister/patientRegisterQuery.vue

@ -187,6 +187,9 @@ export default {
this.patientRegister.query.patientName = idNos.Name
this.patientRegister.query.sex = idNos.sexId
this.patientRegister.query.idCardNo = idNos.IDCode
this.patientRegister.query.times++;
} else {
this.$message.error({ showClose: true, message: lres.message })
}
@ -218,6 +221,7 @@ export default {
case '档案号':
case '姓名':
case '预约手机号':
case '身份证号':
if(input.value) this.patientRegister.query.times++;
break;
}

Loading…
Cancel
Save