|
|
|
@ -120,7 +120,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="籍贯" prop="birthPlaceId" label-width="50px"> |
|
|
|
<el-select v-model="form.birthPlaceId" placeholder="请选择" filterable clearable |
|
|
|
<el-select v-model="form.birthPlaceId" placeholder="请选择" filterable clearable |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in dict.birthPlace" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id" /> |
|
|
|
@ -156,9 +156,9 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="民族" prop="nationId" label-width="50px"> |
|
|
|
<el-select v-model="form.nationId" placeholder="请选择" filterable clearable |
|
|
|
default-first-option :filter-method="filterMethod" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" size="small"> |
|
|
|
<el-select v-model="form.nationId" placeholder="请选择" filterable clearable default-first-option |
|
|
|
:filter-method="filterMethod" :style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" |
|
|
|
size="small"> |
|
|
|
<el-option v-for="item in nation" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
@ -217,7 +217,7 @@ |
|
|
|
<el-form-item label="单位体检次数" prop="isVip" label-width="110px"> |
|
|
|
<el-select :class="form.customerOrgId == dict.personOrgId ? '' : 'enterToTab'" |
|
|
|
v-model="form.customerOrgRegisterId" placeholder="次数" size="small" |
|
|
|
:disabled="form.customerOrgId == dict.personOrgId || form.completeFlag == '3' " |
|
|
|
:disabled="form.customerOrgId == dict.personOrgId || form.completeFlag == '3'" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 654) / 6) + 'px;'" @change="changeMedicalTimes" |
|
|
|
value-key="id"> |
|
|
|
<el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes" |
|
|
|
@ -226,8 +226,8 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="hisId" prop="isPhoneFollow"> |
|
|
|
<el-input v-model="form.hisPatientId" size="small" disabled/> |
|
|
|
<el-form-item label="hisId" prop="isPhoneFollow"> |
|
|
|
<el-input v-model="form.hisPatientId" size="small" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
@ -406,7 +406,8 @@ |
|
|
|
<el-button type="success" class="commonbutton" @click="toCharge(form)" :disabled="!form.id">收费</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '收费申请')" class="btn"> |
|
|
|
<el-button type="success" class="commonbutton" @click="chargeRequest(form)" :disabled="!form.id">收费申请</el-button> |
|
|
|
<el-button type="success" class="commonbutton" @click="chargeRequest(form)" |
|
|
|
:disabled="!form.id">收费申请</el-button> |
|
|
|
</div> |
|
|
|
<!-- |
|
|
|
<div class="btn"> |
|
|
|
@ -500,8 +501,8 @@ |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 收费申请 --> |
|
|
|
<el-dialog title="收费申请" :visible.sync="dialogWin.AsbChargeRequest" width="800px" |
|
|
|
:show-close="false" :close-on-click-modal="false" :append-to-body="true" @close="closeDialogCharge"> |
|
|
|
<el-dialog title="收费申请" :visible.sync="dialogWin.AsbChargeRequest" width="800px" :show-close="false" |
|
|
|
:close-on-click-modal="false" :append-to-body="true" @close="closeDialogCharge"> |
|
|
|
<AsbChargeRequest :patientRegister="form" /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
@ -518,7 +519,7 @@ import { |
|
|
|
arrayExistObj |
|
|
|
} from "../../utlis/proFunc"; |
|
|
|
import { |
|
|
|
photoParse, savePeoplePhoto, |
|
|
|
photoParse, savePeoplePhoto, |
|
|
|
} from "../../utlis/proApi"; |
|
|
|
import Camera from "./Camera.vue"; |
|
|
|
import PatientRegisterItem from "./PatientRegisterItem.vue"; |
|
|
|
@ -605,7 +606,7 @@ export default { |
|
|
|
isLockBox: false, //是否锁住 |
|
|
|
isMaxMedicalTimes: 'N', |
|
|
|
medicalStartDate: null, |
|
|
|
hisPatientId:'', //对接 hisid |
|
|
|
hisPatientId: '', //对接 hisid |
|
|
|
}, //单位 记录 目前新增与更新是一致 |
|
|
|
formInit: {}, //表单初始化 |
|
|
|
customerOrgRegisterList: [], //单位体检次数列表 |
|
|
|
@ -659,7 +660,7 @@ export default { |
|
|
|
prAsbGroup: 0, //触发分组更换 |
|
|
|
prAsbPackage: 0, //触发套餐更换 |
|
|
|
}, |
|
|
|
nation:[], // |
|
|
|
nation: [], // |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -942,14 +943,15 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (res.code > - 1) { |
|
|
|
console.log('获取单位体检次数', this.form.customerOrgRegisterId, res.data) |
|
|
|
this.customerOrgRegisterList = res.data |
|
|
|
this.customerOrgRegisterList = res.data |
|
|
|
if (!this.form.customerOrgRegisterId) { |
|
|
|
let customerOrgRegisterList = arrayFilter(res.data, 'isComplete', 'N') //不显示已完成的体检次数 |
|
|
|
if (customerOrgRegisterList.length > 0) { |
|
|
|
this.form.customerOrgRegisterId = customerOrgRegisterList[customerOrgRegisterList.length - 1].id |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.form.customerOrgRegisterId) return getapi(`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${this.form.customerOrgRegisterId}`) //获取单位分组 |
|
|
|
// /api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${this.form.customerOrgRegisterId} |
|
|
|
if (this.form.customerOrgRegisterId) return postapi('/api/app/CustomerOrgGroup/GetListForPatentRegisterByFilter', { customerOrgRegisterId: this.form.customerOrgRegisterId }) //获取单位分组 |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res && res.code != -1) { |
|
|
|
@ -980,13 +982,13 @@ export default { |
|
|
|
this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo |
|
|
|
|
|
|
|
this.changeIdNo() // 触发身份证查询档案号 |
|
|
|
}else{ |
|
|
|
this.$message.error({showClose:true,message:`${lres.message}`}) |
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: `${lres.message}` }) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改单位体检次数 |
|
|
|
changeMedicalTimes() { |
|
|
|
@ -1031,7 +1033,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
if (chargeComplete) { |
|
|
|
this.$message.info({ showClose: true, message: `所选项目:${chargeComplete}已收费或已检,不可删除!` }); |
|
|
|
this.$message.info({ showClose: true, message: `所选项目:${chargeComplete}已收费或已检,不可删除!` }); |
|
|
|
} |
|
|
|
|
|
|
|
body = { registerAsbitemIds }; |
|
|
|
@ -1077,7 +1079,8 @@ export default { |
|
|
|
//获取体检次数下的分组 |
|
|
|
getCustomerOrgGroup(customerOrgRegisterId) { |
|
|
|
this.patientRegister.customerOrgGroup = [] |
|
|
|
getapi(`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`).then(res => { |
|
|
|
// /api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}` |
|
|
|
postapi('/api/app/CustomerOrgGroup/GetListForPatentRegisterByFilter', { customerOrgRegisterId }).then(res => { |
|
|
|
if (res.code != - 1) { |
|
|
|
this.patientRegister.customerOrgGroup = res.data; |
|
|
|
} |
|
|
|
@ -1107,12 +1110,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// //分组改变时触发 |
|
|
|
changeCustomerOrgGroupId() { |
|
|
|
changeCustomerOrgGroupId() { |
|
|
|
this.prAsbOpraOpts.prAsbGroup++ |
|
|
|
}, |
|
|
|
|
|
|
|
// //套餐改变时触发 |
|
|
|
changeMedicalPackageId() { |
|
|
|
changeMedicalPackageId() { |
|
|
|
this.prAsbOpraOpts.prAsbPackage++ |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1152,27 +1155,27 @@ export default { |
|
|
|
|
|
|
|
//确定选择人员 |
|
|
|
choosePatient() { |
|
|
|
if (!this.patientChoosed) { |
|
|
|
if (!this.patientChoosed) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.form.patientId = this.patientChoosed.id; |
|
|
|
this.form.patientNo = this.patientChoosed.patientNo; |
|
|
|
this.form.medicalTimes = this.patientChoosed.medicalTimes + 1; |
|
|
|
// 考滤录入有值,档案却无值 |
|
|
|
if(this.patientChoosed.displayName) this.form.patientName = this.patientChoosed.displayName; |
|
|
|
if(this.patientChoosed.sexId) this.form.sexId = this.patientChoosed.sexId; |
|
|
|
if(this.patientChoosed.birthDate) this.form.birthDate = new Date(this.patientChoosed.birthDate); |
|
|
|
if(this.patientChoosed.nationId) this.form.nationId = this.patientChoosed.nationId; |
|
|
|
if(this.patientChoosed.idNo) this.form.idNo = this.patientChoosed.idNo; |
|
|
|
if (this.patientChoosed.displayName) this.form.patientName = this.patientChoosed.displayName; |
|
|
|
if (this.patientChoosed.sexId) this.form.sexId = this.patientChoosed.sexId; |
|
|
|
if (this.patientChoosed.birthDate) this.form.birthDate = new Date(this.patientChoosed.birthDate); |
|
|
|
if (this.patientChoosed.nationId) this.form.nationId = this.patientChoosed.nationId; |
|
|
|
if (this.patientChoosed.idNo) this.form.idNo = this.patientChoosed.idNo; |
|
|
|
|
|
|
|
if (!this.form.maritalStatusId) this.form.maritalStatusId = this.patientChoosed.maritalStatusId; |
|
|
|
if (!this.form.telephone) this.form.telephone = this.patientChoosed.telephone; |
|
|
|
if (!this.form.mobileTelephone) this.form.mobileTelephone = this.patientChoosed.mobileTelephone; |
|
|
|
|
|
|
|
if(!this.form.maritalStatusId) this.form.maritalStatusId = this.patientChoosed.maritalStatusId; |
|
|
|
if(!this.form.telephone) this.form.telephone = this.patientChoosed.telephone; |
|
|
|
if(!this.form.mobileTelephone) this.form.mobileTelephone = this.patientChoosed.mobileTelephone; |
|
|
|
|
|
|
|
|
|
|
|
if (this.form.birthDate) { |
|
|
|
this.form.age = birthdayToAge(this.form.birthDate) |
|
|
|
@ -1271,9 +1274,9 @@ export default { |
|
|
|
body.birthDate = null |
|
|
|
} |
|
|
|
if (body.birthDate == "Invalid date") body.birthDate = null |
|
|
|
if (isNaN(body.age)){ |
|
|
|
if (isNaN(body.age)) { |
|
|
|
body.age = null |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
body.age = Number(body.age) |
|
|
|
} |
|
|
|
// console.log('body',body) |
|
|
|
@ -1319,19 +1322,19 @@ export default { |
|
|
|
this.$refs[formName].validate((valid, fields) => { |
|
|
|
console.log('fields', fields) |
|
|
|
if (!valid) { |
|
|
|
this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message}); |
|
|
|
this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message }); |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
if (this.form.customerOrgId != this.dict.personOrgId) { |
|
|
|
if (!this.form.customerOrgRegisterId) { |
|
|
|
this.$message.warning({ showClose: true, message: "请填写单位体检次数!"}); |
|
|
|
this.$message.warning({ showClose: true, message: "请填写单位体检次数!" }); |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.form.idNo && checkIDCode(this.form.idNo) == false) { |
|
|
|
this.$message.warning({ showClose: true, message: "身份证号填写不合法!"}); |
|
|
|
this.$message.warning({ showClose: true, message: "身份证号填写不合法!" }); |
|
|
|
return false |
|
|
|
} |
|
|
|
let body = this.madePrBody() |
|
|
|
@ -1383,7 +1386,7 @@ export default { |
|
|
|
//将现有的数据,复制并展现,但未保存 |
|
|
|
rdCopy() { |
|
|
|
if (!this.form.id) { |
|
|
|
this.$message.info({ showClose: true, message: "该信息尚未保存,不可执行此操作!"}); |
|
|
|
this.$message.info({ showClose: true, message: "该信息尚未保存,不可执行此操作!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
|
@ -1417,7 +1420,7 @@ export default { |
|
|
|
e.isLock = 'N' |
|
|
|
}); |
|
|
|
// console.log('this.patientRegister.patientRegisterAbs',this.patientRegister.patientRegisterAbs) |
|
|
|
this.$message.info({ showClose: true, message: "操作成功,请记得点保存"}); |
|
|
|
this.$message.info({ showClose: true, message: "操作成功,请记得点保存" }); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
@ -1464,7 +1467,7 @@ export default { |
|
|
|
this.patientRegister.photo = `data:image/${lres.data.PhotoFormat == 'jpg' ? 'jpeg' : lres.data.PhotoFormat};base64,${lres.data.Photo}` |
|
|
|
return postapi(`/api/app/patient-register/up-load-img`, uploadPhoto) |
|
|
|
} else { |
|
|
|
this.$message.error({ showClose: true, message: "上传照片错误" + lres.code}) |
|
|
|
this.$message.error({ showClose: true, message: "上传照片错误" + lres.code }) |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res && res.code > -1) { |
|
|
|
@ -1483,7 +1486,7 @@ export default { |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
console.log('this.$peisAPI.photoGrah', err) |
|
|
|
this.$message.error({ showClose: true, message: `照片操作错误 ${err}`}) |
|
|
|
this.$message.error({ showClose: true, message: `照片操作错误 ${err}` }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1494,11 +1497,11 @@ export default { |
|
|
|
// 打印指引单(isPreview) |
|
|
|
async guidePrint(ReportCode, isPreview) { |
|
|
|
if (this.form.id.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!"}); |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"}) |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -1509,7 +1512,7 @@ export default { |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf: 'N', |
|
|
|
preViewCanPrint: 'N', |
|
|
|
BusinessCode:this.form.id, |
|
|
|
BusinessCode: this.form.id, |
|
|
|
Parameters: [ |
|
|
|
{ Name: 'printer', Value: user }, |
|
|
|
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, |
|
|
|
@ -1531,9 +1534,9 @@ export default { |
|
|
|
this.$message.warning({ showClose: true, message: err}); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
console.log('this.$peisAPI.printPre',res) |
|
|
|
console.log('this.$peisAPI.printPre', res) |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
} |
|
|
|
@ -1556,7 +1559,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
//更新打印次数 |
|
|
|
return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id]) |
|
|
|
} |
|
|
|
@ -1571,12 +1574,12 @@ export default { |
|
|
|
this.patientRegister.prList[lfind].guidePrintTimes = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.$message.warning({ showClose: true, message: res.message}); |
|
|
|
} else { |
|
|
|
this.$message.warning({ showClose: true, message: res.message }); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
this.$message.warning({ showClose: true, message: err}); |
|
|
|
this.$message.warning({ showClose: true, message: err }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
@ -1584,7 +1587,7 @@ export default { |
|
|
|
|
|
|
|
//检验申请 |
|
|
|
async lisRequest() { |
|
|
|
this.$message.warning({ showClose: true, message: '开发中……'}); |
|
|
|
this.$message.warning({ showClose: true, message: '开发中……' }); |
|
|
|
/* |
|
|
|
let isPrintLisRequest = false |
|
|
|
let res = null |
|
|
|
@ -1631,11 +1634,11 @@ export default { |
|
|
|
//条码打印 |
|
|
|
lisPrint(ReportCode, isPreview) { |
|
|
|
if (!this.form.id) { |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!"}); |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!this.$peisAPI) { |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!"}) |
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
@ -1643,23 +1646,23 @@ export default { |
|
|
|
let user = window.sessionStorage.getItem('user'); |
|
|
|
let toOutShell = { |
|
|
|
ReportCode, token, |
|
|
|
IsMoreLabel:'Y', |
|
|
|
IsMoreLabel: 'Y', |
|
|
|
isBuildImage: 'N', |
|
|
|
IsUploadPdf: 'N', |
|
|
|
BusinessCode:this.form.id, |
|
|
|
BusinessCode: this.form.id, |
|
|
|
Parameters: [ |
|
|
|
{ Name: 'printer', Value: user }, |
|
|
|
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, |
|
|
|
], |
|
|
|
}; |
|
|
|
console.log('this.$peisAPI.print',toOutShell) |
|
|
|
console.log('this.$peisAPI.print', toOutShell) |
|
|
|
if (isPreview) { |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
let lres = JSON.parse(res) |
|
|
|
console.log('this.$peisAPI.printPre',lres) |
|
|
|
console.log('this.$peisAPI.printPre', lres) |
|
|
|
if (lres.code < 0) { |
|
|
|
console.log('打印检验条码错误',lres.message) |
|
|
|
console.log('打印检验条码错误', lres.message) |
|
|
|
this.$message.warning({ showClose: true, message: lres.message }); |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -1674,17 +1677,17 @@ export default { |
|
|
|
console.log('打印检验条码', lres) |
|
|
|
if (res && lres.code > -1) { |
|
|
|
return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: this.form.id }) |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.$message.warning({ showClose: true, message: lres.message }); |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
if(res && res.code < 0){ |
|
|
|
if (res && res.code < 0) { |
|
|
|
this.$message.error({ showClose: true, message: `更新条码打印状态失败,原因:${res.message}` }); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
this.$message.warning({ showClose: true, message: `${err}`}); |
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1692,7 +1695,7 @@ export default { |
|
|
|
//补打条码 |
|
|
|
reLisRequest() { |
|
|
|
if (this.form.id.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!"}); |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.brushTimes++; |
|
|
|
@ -1702,26 +1705,26 @@ export default { |
|
|
|
//手动合并项目 |
|
|
|
reMergeAsbitem() { |
|
|
|
if (this.form.id.length < 1) { |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!"}); |
|
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.brushTimes++; |
|
|
|
this.patientRegister.mergeAsbitemVisble = true; |
|
|
|
}, |
|
|
|
|
|
|
|
btnPayTypeFlag(payTypeFlag){ |
|
|
|
btnPayTypeFlag(payTypeFlag) { |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { |
|
|
|
if(e.isCharge == 'N') e.payTypeFlag = payTypeFlag |
|
|
|
if (e.isCharge == 'N') e.payTypeFlag = payTypeFlag |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
async getAsb(id){ |
|
|
|
async getAsb(id) { |
|
|
|
let err = '' |
|
|
|
try { |
|
|
|
let res = await getapi(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`) |
|
|
|
if(res.code > -1){ |
|
|
|
if (res.code > -1) { |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem = res.data |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
err = res.message |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
@ -1733,16 +1736,16 @@ export default { |
|
|
|
async toCharge(form) { |
|
|
|
|
|
|
|
if (!form.patientRegisterNo) { |
|
|
|
this.$message.warning({ showClose: true, message: "请先保存人员信息!"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请先保存人员信息!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (form.completeFlag == '0') { |
|
|
|
this.$message.warning({ showClose: true, message: "预登记的人员不可执行此操作!"}) |
|
|
|
this.$message.warning({ showClose: true, message: "预登记的人员不可执行此操作!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let err = await this.getAsb(form.id) |
|
|
|
if(err){ |
|
|
|
if (err) { |
|
|
|
this.$message.error(err) |
|
|
|
return |
|
|
|
} |
|
|
|
@ -1759,24 +1762,24 @@ export default { |
|
|
|
|
|
|
|
//多次重复点击时,刷新处理 |
|
|
|
this.chargePatientRegisterNo = form.patientRegisterNo |
|
|
|
this.dataTransOpts.refresh.charge.S++ |
|
|
|
this.dataTransOpts.refresh.charge.S++ |
|
|
|
this.dialogWin.charge = true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 收费申请 |
|
|
|
async chargeRequest(form){ |
|
|
|
async chargeRequest(form) { |
|
|
|
if (!form.id) { |
|
|
|
this.$message.warning({ showClose: true, message: "请先保存人员信息!"}) |
|
|
|
this.$message.warning({ showClose: true, message: "请先保存人员信息!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (form.completeFlag == '0') { |
|
|
|
this.$message.warning({ showClose: true, message: "预登记的人员不可执行此操作!"}) |
|
|
|
this.$message.warning({ showClose: true, message: "预登记的人员不可执行此操作!" }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let err = await this.getAsb(form.id) |
|
|
|
if(err){ |
|
|
|
if (err) { |
|
|
|
this.$message.error(err) |
|
|
|
return |
|
|
|
} |
|
|
|
@ -1792,7 +1795,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
// 显示 |
|
|
|
this.dataTransOpts.refresh.charge.S++ |
|
|
|
this.dataTransOpts.refresh.charge.S++ |
|
|
|
this.dialogWin.AsbChargeRequest = true |
|
|
|
|
|
|
|
}, |
|
|
|
|