pengjun 2 years ago
parent
commit
1017fac714
  1. 11
      src/components/doctorCheck/CheckItemList.vue
  2. 1
      src/components/doctorCheck/RegisterCheckList.vue
  3. 15
      src/views/doctorCheck/doctorCheck.vue

11
src/components/doctorCheck/CheckItemList.vue

@ -71,7 +71,7 @@ import { arrayExistObj, dddw, deepCopy } from '../../utlis/proFunc'
export default { export default {
components: {}, components: {},
props: ["isCheckPicture", "registerCheckId"],
props: ["isCheckPicture", "registerCheckId","doctor_check_check_charge"],
data() { data() {
return { return {
resultStatus: [], // resultStatus: [], //
@ -109,7 +109,7 @@ export default {
start: 0, end: 0 start: 0, end: 0
}, },
symbols: [], // symbols: [], //
userId:'',
userId: '',
}; };
}, },
@ -397,7 +397,7 @@ export default {
}, },
// //
btnClear(){
btnClear() {
this.moreResult.result = '' this.moreResult.result = ''
}, },
@ -435,7 +435,10 @@ export default {
.then(res => { .then(res => {
if (res.code > -1) { if (res.code > -1) {
this.doctorCheck.RegisterCheckEdit = res.data this.doctorCheck.RegisterCheckEdit = res.data
if(this.doctorCheck.RegisterCheckEdit.completeFlag == '0'){
if (res.data.isCharge != 'Y' && this.doctor_check_check_charge == 'Y') {
this.$message.warning({showClose:true,message:`该体检人员未缴清费用!`})
}
if (this.doctorCheck.RegisterCheckEdit.completeFlag == '0') {
this.doctorCheck.RegisterCheckEdit.checkDoctorId = this.userId this.doctorCheck.RegisterCheckEdit.checkDoctorId = this.userId
this.doctorCheck.RegisterCheckEdit.checkDate = new Date() this.doctorCheck.RegisterCheckEdit.checkDate = new Date()
} }

1
src/components/doctorCheck/RegisterCheckList.vue

@ -156,7 +156,6 @@ export default {
this.dataTransOpts.tableS.register_check.id = '' this.dataTransOpts.tableS.register_check.id = ''
} }
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++ //

15
src/views/doctorCheck/doctorCheck.vue

@ -33,7 +33,7 @@
<div :style="'width:' + (window.pageWidth - 200 - 110 - 15) + 'px;'"> <div :style="'width:' + (window.pageWidth - 200 - 110 - 15) + 'px;'">
<div :style="'margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'"> <div :style="'margin-left: 2px;width:' + (window.pageWidth - 200 - 110 - 15 - 2) + 'px;'">
<CheckItemList :isCheckPicture="isCheckPicture"
<CheckItemList :isCheckPicture="isCheckPicture" :doctor_check_check_charge="doctor_check_check_charge"
:registerCheckId="dataTransOpts.tableS.register_check.id" /> :registerCheckId="dataTransOpts.tableS.register_check.id" />
</div> </div>
<div v-if="isCheckPicture" class="demo-image__preview" <div v-if="isCheckPicture" class="demo-image__preview"
@ -95,6 +95,7 @@ export default {
isCheckPicture: false, // isCheckPicture: false, //
} }
}, },
doctor_check_check_charge:'Y', //
}; };
}, },
@ -154,7 +155,11 @@ export default {
methods: { methods: {
// //
dictInit() {
async dictInit() {
let sysParmId = "doctor_check_check_charge"
let sysParam = await postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId })
this.doctor_check_check_charge = sysParam.data.toUpperCase()
// //
getapi("/api/app/sex").then((res) => { getapi("/api/app/sex").then((res) => {
if (res.code == 1) { if (res.code == 1) {
@ -351,7 +356,11 @@ export default {
case 'btnSavePic': // case 'btnSavePic': //
case 'btnDelImage': // case 'btnDelImage': //
// console.log('btnFlagName RegisterCheckEdit', btnFlagName, RegisterCheckEdit.completeFlag) // console.log('btnFlagName RegisterCheckEdit', btnFlagName, RegisterCheckEdit.completeFlag)
if (this.doctor_check_check_charge == 'Y') {
if (RegisterCheckEdit.completeFlag && RegisterCheckEdit.completeFlag == '0' && RegisterCheckEdit.isCharge == 'Y') ret = false
} else {
if (RegisterCheckEdit.completeFlag && RegisterCheckEdit.completeFlag == '0') ret = false if (RegisterCheckEdit.completeFlag && RegisterCheckEdit.completeFlag == '0') ret = false
}
break; break;
case 'audit': case 'audit':
if (RegisterCheckEdit.completeFlag && RegisterCheckEdit.completeFlag != '0' && RegisterCheckEdit.isAudit && RegisterCheckEdit.isAudit != 'Y') ret = false if (RegisterCheckEdit.completeFlag && RegisterCheckEdit.completeFlag != '0' && RegisterCheckEdit.isAudit && RegisterCheckEdit.isAudit != 'Y') ret = false
@ -570,7 +579,7 @@ export default {
if (summarys.length == 0) { if (summarys.length == 0) {
this.$message.warning({showClose:true,message:'请生成小结!'})
this.$message.warning({ showClose: true, message: '请生成小结!' })
return return
} }

Loading…
Cancel
Save