|
|
|
@ -23,17 +23,9 @@ |
|
|
|
<el-col :span="5"> |
|
|
|
<el-form-item label="单位名称" prop="customerOrgName"> |
|
|
|
<el-input placeholder="请选择单位" v-model="form.customerOrgName" size="small" disabled> |
|
|
|
<el-button slot="append" icon="el-icon-search" @click="report.dialogCusOrgOCX = true" |
|
|
|
style="font-size: 20px;"></el-button> |
|
|
|
<el-button slot="append" icon="el-icon-search" @click="dialogOrg = true" style="font-size: 20px;" |
|
|
|
:disabled="(form.completeFlag == '3' || isDoctor != '1') ? true : false"></el-button> |
|
|
|
</el-input> |
|
|
|
<!-- |
|
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" filterable |
|
|
|
popper-class="example" :show-all-levels="false" @change="changeCustomerOrgId" |
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" |
|
|
|
:disabled="(form.completeFlag == '3' || isDoctor != '1') ? true : false" size="small"> |
|
|
|
</el-cascader> |
|
|
|
--> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5"> |
|
|
|
@ -324,6 +316,60 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!--青藏公司 start--> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="高原/健康" > |
|
|
|
<el-input v-model="form.qztlType" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="普速" > |
|
|
|
<el-checkbox v-model="form.qztlIsCw" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="从业" > |
|
|
|
<el-checkbox v-model="form.qztlIsCy" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="高铁" > |
|
|
|
<el-checkbox v-model="form.qztlIsGt" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="行车" > |
|
|
|
<el-checkbox v-model="form.qztlIsMain" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="职害" > |
|
|
|
<el-checkbox v-model="form.qztlIsWh" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="复检" > |
|
|
|
<el-checkbox v-model="form.qztlIsFj" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="导入" > |
|
|
|
<el-checkbox v-model="form.isQztlImport" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item label="上传" > |
|
|
|
<el-checkbox v-model="form.uploadQztlFlag" true-label="Y" false-label="N" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="计划" prop="planuserid"> |
|
|
|
<el-input v-model="form.planuserid" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!--青藏公司 end--> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="创建人员"> |
|
|
|
@ -480,6 +526,19 @@ |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="选择单位" :visible.sync="dialogOrg" width="800px" :close-on-click-modal="false" :append-to-body="true"> |
|
|
|
<div style="height: 320px;"> |
|
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
|
filterable popper-class="example" :show-all-levels="false" |
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" size="small"> |
|
|
|
</el-cascader> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="btnOkOrg">确定</el-button> |
|
|
|
<el-button @click="dialogOrg = false">关闭</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 拍照(openCamera) 网页模式,已废弃 |
|
|
|
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="600" |
|
|
|
:close-on-click-modal="false" :append-to-body="true"> |
|
|
|
@ -518,6 +577,7 @@ |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getTreeNode } from "../../utlis/tree" |
|
|
|
|
|
|
|
import { |
|
|
|
getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID, |
|
|
|
@ -568,8 +628,8 @@ export default { |
|
|
|
patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000... |
|
|
|
patientNo: "", //档案号 |
|
|
|
customerOrgId: ["00000000-0000-0000-0000-000000000001"], //单位编号 默认个人 |
|
|
|
customerOrgParentId: "", |
|
|
|
customerOrgName: "", |
|
|
|
customerOrgParentId: "00000000-0000-0000-0000-000000000001", |
|
|
|
customerOrgName: "个人体检", |
|
|
|
customerOrgRegisterId: "00000000-0000-0000-0000-000000000001", //默认单位体检次数 |
|
|
|
customerOrgGroupId: null, //分组 |
|
|
|
medicalPackageId: null, //套餐 |
|
|
|
@ -670,6 +730,7 @@ export default { |
|
|
|
prAsbPackage: 0, //触发套餐更换 |
|
|
|
}, |
|
|
|
nation: [], // |
|
|
|
dialogOrg: false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -839,16 +900,47 @@ export default { |
|
|
|
// // console.log("dict", this.dict); |
|
|
|
}, |
|
|
|
|
|
|
|
// 确定选中企业 |
|
|
|
btnOkOrg() { |
|
|
|
let customerOrgId = '' |
|
|
|
this.changeCustomerOrgId(this.form.customerOrgId) |
|
|
|
if (Array.isArray(this.form.customerOrgId)) { |
|
|
|
this.form.customerOrgParentId = this.form.customerOrgId[0] |
|
|
|
customerOrgId = this.form.customerOrgId[this.form.customerOrgId.length - 1] |
|
|
|
} else { |
|
|
|
this.form.customerOrgParentId = this.form.customerOrgId |
|
|
|
customerOrgId = this.form.customerOrgId |
|
|
|
} |
|
|
|
let node = getTreeNode(this.patientRegister.customerOrgTreeAll, "treeChildren", "id", customerOrgId) |
|
|
|
if (node) this.form.customerOrgName = node.displayName |
|
|
|
|
|
|
|
this.dialogOrg = false |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取登记信息 初始form表单数据 |
|
|
|
async initFormData(patientRegisterId) { |
|
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
|
this.preCustomerOrgId = this.preCustomerOrgId || this.patientRegister.query.customerOrgId |
|
|
|
let customerOrgId,customerOrgName,customerOrgParentId |
|
|
|
if(this.patientRegister.query.customerOrgId){ |
|
|
|
customerOrgParentId = this.patientRegister.query.CustomerOrgParentId |
|
|
|
customerOrgId = this.patientRegister.query.customerOrgId |
|
|
|
customerOrgName = this.patientRegister.query.customerOrgName |
|
|
|
}else{ |
|
|
|
customerOrgParentId = this.form.customerOrgParentId |
|
|
|
customerOrgId = this.form.customerOrgId |
|
|
|
customerOrgName = this.form.customerOrgName |
|
|
|
} |
|
|
|
this.preCustomerOrgId = this.patientRegister.query.customerOrgId |
|
|
|
if (!patientRegisterId) { //添加 |
|
|
|
objCopy(this.formInit, this.form); |
|
|
|
this.form.registerCheckAsbitems=[] |
|
|
|
this.form.medicalCenterId = this.peisid; //体检中收 |
|
|
|
this.form.customerOrgId = this.preCustomerOrgId || this.dict.personOrgId //体检单位 |
|
|
|
this.form.customerOrgParentId = await this.getParentCustomerOrgId(this.form.customerOrgId) //体检父单位 |
|
|
|
this.form.customerOrgId = customerOrgId //体检单位 |
|
|
|
this.form.customerOrgParentId = customerOrgParentId //体检父单位 |
|
|
|
this.form.customerOrgName = customerOrgName |
|
|
|
this.handleFormData() |
|
|
|
} else { |
|
|
|
// let res = await getapi(`/api/app/patient-register/${patientRegisterId}`) |
|
|
|
@ -865,7 +957,7 @@ export default { |
|
|
|
handleFormData() { |
|
|
|
this.initBox(); |
|
|
|
this.getPeoplePhoto(this.form.photo) |
|
|
|
|
|
|
|
|
|
|
|
// this.dataTransOpts.refresh.register_check_asbitem.D++ //触发所选组合项目刷新 (取消这种触发,减少交互) |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem = this.form.registerCheckAsbitems |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { |
|
|
|
@ -875,6 +967,8 @@ export default { |
|
|
|
|
|
|
|
// 单位/个人 的分组与套餐处理 |
|
|
|
this.changeCustomerOrgId(this.form.customerOrgId) |
|
|
|
|
|
|
|
this.dataTransOpts.refresh.register_check_asbitem.OnlyRefreshAsbitem++ |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -915,29 +1009,24 @@ export default { |
|
|
|
this.getCustomerOrgRegisterList(customerOrgParentId) |
|
|
|
} |
|
|
|
|
|
|
|
// 父单位被更改时,需要触发 修改 分组/套餐 |
|
|
|
if (this.form.customerOrgParentId != customerOrgParentId) { |
|
|
|
this.form.customerOrgGroupId = null |
|
|
|
this.form.medicalPackageId = null |
|
|
|
// 清除套餐分组标识 |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { |
|
|
|
e.isBelongGroupPackage = 'N' |
|
|
|
}); |
|
|
|
|
|
|
|
if (customerOrgParentId == this.dict.personOrgId) { |
|
|
|
// 需要触发 修改 分组/套餐 |
|
|
|
this.form.customerOrgGroupId = null |
|
|
|
this.form.medicalPackageId = null |
|
|
|
// 清除套餐分组标识 |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { |
|
|
|
e.isBelongGroupPackage = 'N' |
|
|
|
}); |
|
|
|
|
|
|
|
this.patientRegister.customerOrgGroup = [] |
|
|
|
} else { |
|
|
|
this.form.customerOrgRegisterId = null |
|
|
|
} |
|
|
|
if (customerOrgParentId == this.dict.personOrgId) { |
|
|
|
this.patientRegister.customerOrgGroup = [] |
|
|
|
} |
|
|
|
|
|
|
|
if (this.form.customerOrgParentId == this.dict.personOrgId) { |
|
|
|
this.changeMedicalPackageId() |
|
|
|
} else { |
|
|
|
this.changeCustomerOrgGroupId() |
|
|
|
} |
|
|
|
this.form.customerOrgParentId = customerOrgParentId |
|
|
|
if (this.form.customerOrgParentId == this.dict.personOrgId) { |
|
|
|
this.changeMedicalPackageId() |
|
|
|
} else { |
|
|
|
this.changeCustomerOrgGroupId() |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -966,7 +1055,8 @@ export default { |
|
|
|
if (res.code > - 1) { |
|
|
|
// console.log('获取单位体检次数', this.form.customerOrgRegisterId, res.data) |
|
|
|
this.customerOrgRegisterList = res.data |
|
|
|
if (!this.form.customerOrgRegisterId) { |
|
|
|
|
|
|
|
if (!this.form.customerOrgRegisterId || this.form.customerOrgRegisterId == "00000000-0000-0000-0000-000000000001") { |
|
|
|
let customerOrgRegisterList = arrayFilter(res.data, 'isComplete', 'N') //不显示已完成的体检次数 |
|
|
|
if (customerOrgRegisterList.length > 0) { |
|
|
|
this.form.customerOrgRegisterId = customerOrgRegisterList[customerOrgRegisterList.length - 1].id |
|
|
|
|