pengjun 4 months ago
parent
commit
b421ce767c
  1. 41
      src/components/customerOrg/customerOrgGroupAsbitem.vue
  2. 4
      src/components/report/BtnReport.vue
  3. 13
      src/components/report/PatientRegisterListNobtn.vue

41
src/components/customerOrg/customerOrgGroupAsbitem.vue

@ -556,7 +556,7 @@ export default {
if (this.customerOrgGroup.forSexId == 'A' && this.customerOrgGroup.maritalStatusId == 'A') { if (this.customerOrgGroup.forSexId == 'A' && this.customerOrgGroup.maritalStatusId == 'A') {
break; break;
} else { } else {
if (this.customerOrgGroup.forSexId != 'A'){
if (this.customerOrgGroup.forSexId != 'A') {
if (!(asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U')) { if (!(asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U')) {
if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) { if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`) message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
@ -566,11 +566,14 @@ export default {
} }
} }
// //
if (!(checked || asbItemChoosed[i].maritalStatusId == 'A' || asbItemChoosed[i].maritalStatusId == 'U')) {
if (asbItemChoosed[i].maritalStatusId != this.customerOrgGroup.maritalStatusId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
checked = false
asbItemChoosed.splice(i, 1)
if (checked) {
console.log('maritalStatusId', asbItemChoosed[i].maritalStatusId, this.customerOrgGroup.maritalStatusId)
if (!(asbItemChoosed[i].maritalStatusId == 'A' || asbItemChoosed[i].maritalStatusId == 'U')) {
if (asbItemChoosed[i].maritalStatusId != this.customerOrgGroup.maritalStatusId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
checked = false
asbItemChoosed.splice(i, 1)
}
} }
} }
} }
@ -1065,7 +1068,7 @@ export default {
// / // /
btnPastGroupAsbitem() { btnPastGroupAsbitem() {
let lfind = -1, lfind2 = -1 let lfind = -1, lfind2 = -1
let unPasteAble = []
this.dataTransOpts.copyGroupAsbitem.forEach(e => { this.dataTransOpts.copyGroupAsbitem.forEach(e => {
lfind = arrayExistObj(this.customerOrgGroupAsbitems, 'asbitemId', e.asbitemId) lfind = arrayExistObj(this.customerOrgGroupAsbitems, 'asbitemId', e.asbitemId)
if (lfind == -1) { if (lfind == -1) {
@ -1077,29 +1080,37 @@ export default {
this.customerOrgGroupAsbitems.push(pojo) this.customerOrgGroupAsbitems.push(pojo)
} else { } else {
let pasteAble = true // let pasteAble = true //
if (this.customerOrgGroup.forSexId != 'A'){
if (this.customerOrgGroup.forSexId != 'A') {
if (!(this.dict.asbItemAll[lfind2].forSexId == 'A' || this.dict.asbItemAll[lfind2].forSexId == 'U')) { if (!(this.dict.asbItemAll[lfind2].forSexId == 'A' || this.dict.asbItemAll[lfind2].forSexId == 'U')) {
if (this.dict.asbItemAll[lfind2].forSexId != this.customerOrgGroup.forSexId) { if (this.dict.asbItemAll[lfind2].forSexId != this.customerOrgGroup.forSexId) {
this.$message.warning({showClose:true,message:`${this.dict.asbItemAll[lfind2].displayName} 不适合当前性别`})
unPasteAble.push(this.dict.asbItemAll[lfind2].displayName)
pasteAble = false pasteAble = false
} }
} }
} }
// //
if (!(checked || this.dict.asbItemAll[lfind2].maritalStatusId == 'A' || this.dict.asbItemAll[lfind2].maritalStatusId == 'U')) {
if (this.dict.asbItemAll[lfind2].maritalStatusId != this.customerOrgGroup.maritalStatusId) {
this.$message.warning({showClose:true,message:`${this.dict.asbItemAll[lfind2].displayName} 不适合当前婚姻状态`})
pasteAble = false
if (pasteAble) {
if (!(this.dict.asbItemAll[lfind2].maritalStatusId == 'A' || this.dict.asbItemAll[lfind2].maritalStatusId == 'U')) {
if (this.dict.asbItemAll[lfind2].maritalStatusId != this.customerOrgGroup.maritalStatusId) {
unPasteAble.push(this.dict.asbItemAll[lfind2].displayName)
pasteAble = false
}
} }
} }
if(pasteAble) this.customerOrgGroupAsbitems.push(pojo)
if (pasteAble) this.customerOrgGroupAsbitems.push(pojo)
} }
} }
} }
}); });
this.dataTransOpts.copyGroupAsbitem = [] this.dataTransOpts.copyGroupAsbitem = []
this.refAsbItemByChoosed() this.refAsbItemByChoosed()
this.$message.success({ showClose: true, message: '操作成功!' })
if(unPasteAble.length > 0){
this.$message.warning({ showClose: true, message: `操作成功! 部份项目不适合当前的性别或婚姻状况:${unPasteAble.toString()}`})
}else{
this.$message.success({ showClose: true, message: `操作成功!`})
}
}, },
// //

4
src/components/report/BtnReport.vue

@ -182,6 +182,10 @@ export default {
{ label: "锁住", prop: "isLock", minWidth: 60, align: "center" }, { label: "锁住", prop: "isLock", minWidth: 60, align: "center" },
{ label: "预约备单", prop: "isUploadAppoint", minWidth: 90, align: "center" }, { label: "预约备单", prop: "isUploadAppoint", minWidth: 90, align: "center" },
{ label: "上传", prop: "isUpload", minWidth: 60, align: "center" }, { label: "上传", prop: "isUpload", minWidth: 60, align: "center" },
{ label: "标准金额", prop: "standardAmount", minWidth: 80, align: "center" },
{ label: "应收金额", prop: "receivableAmount", minWidth: 80, align: "center" },
{ label: "实收金额", prop: "chargeAmount", minWidth: 80, align: "center" },
{ label: "支付方式", prop: "chargePayMode", minWidth: 80, align: "center" },
], ],
}; };
}, },

13
src/components/report/PatientRegisterListNobtn.vue

@ -145,6 +145,10 @@ export default {
{ label: "锁住", prop: "isLock", minWidth: 60, align: "center" }, { label: "锁住", prop: "isLock", minWidth: 60, align: "center" },
{ label: "预约备单", prop: "isUploadAppoint", minWidth: 90, align: "center" }, { label: "预约备单", prop: "isUploadAppoint", minWidth: 90, align: "center" },
{ label: "上传", prop: "isUpload", minWidth: 60, align: "center" }, { label: "上传", prop: "isUpload", minWidth: 60, align: "center" },
{ label: "标准金额", prop: "standardAmount", minWidth: 80, align: "center" },
{ label: "应收金额", prop: "receivableAmount", minWidth: 80, align: "center" },
{ label: "实收金额", prop: "chargeAmount", minWidth: 80, align: "center" },
{ label: "支付方式", prop: "chargePayMode", minWidth: 80, align: "center" },
], ],
}; };
@ -395,7 +399,9 @@ export default {
console.log('/api/app/patientregister/getlistinfilter', body) console.log('/api/app/patientregister/getlistinfilter', body)
postapi('/api/app/patientregister/getlistinfilter', body)
// /api/app/PeisReport/GetPatientRegisterReportWithCharge
// /api/app/patientregister/getlistinfilter
postapi('/api/app/PeisReport/GetPatientRegisterReportWithCharge', body)
.then((res) => { .then((res) => {
if (res.code != -1) { if (res.code != -1) {
this.patientRegister.prList = this.prListTrans(res.data.items); this.patientRegister.prList = this.prListTrans(res.data.items);
@ -484,8 +490,9 @@ export default {
if (this.patientRegister.query.medicalConclusionId && this.patientRegister.query.medicalConclusionId.length > 0) body.medicalConclusionIds = this.patientRegister.query.medicalConclusionId if (this.patientRegister.query.medicalConclusionId && this.patientRegister.query.medicalConclusionId.length > 0) body.medicalConclusionIds = this.patientRegister.query.medicalConclusionId
//console.log('/api/app/peisreport/getpatientregisterreport',body) //console.log('/api/app/peisreport/getpatientregisterreport',body)
postapi('/api/app/peisreport/getpatientregisterreport', body).then(res => {
// /api/app/PeisReport/GetPatientRegisterReportWithCharge
// /api/app/patientregister/getlistinfilter
postapi('/api/app/PeisReport/GetPatientRegisterReportWithCharge', body).then(res => {
if (res.code > -1) { if (res.code > -1) {
if (this.patientRegister.query.isSeries == 'Y' && this.patientRegister.query.patientRegisterNo) { if (this.patientRegister.query.isSeries == 'Y' && this.patientRegister.query.patientRegisterNo) {

Loading…
Cancel
Save