|
|
|
@ -25,6 +25,10 @@ |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnDownOrg" |
|
|
|
:disabled="(form.customerOrgId == dict.personOrgId) || !form.id">同步团检预约</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '分诊排队')"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="fnQueue(form)" |
|
|
|
:disabled="!form.id">分诊排队</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
@ -587,12 +591,14 @@ |
|
|
|
<WebBooking /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- checkStrictly: true, expandTrigger: 'hover', --> |
|
|
|
<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"> |
|
|
|
:props="{ ...customerOrg.treeprops, lazyLoad: lazyLoad, lazy: true, leaf: 'isLeaf' }" |
|
|
|
size="small"> |
|
|
|
</el-cascader> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
@ -646,6 +652,12 @@ |
|
|
|
:close-on-click-modal="false" :append-to-body="true" @close="closeDialogCharge"> |
|
|
|
<AsbChargeRequest :patientRegister="form" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 分诊排队 --> |
|
|
|
<el-dialog title="分诊排队" :visible.sync="dialogWin.queue" width="800px" :append-to-body="true" |
|
|
|
:close-on-click-modal="false"> |
|
|
|
<Queue :refParams="queueParams" /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -658,9 +670,9 @@ import { getTreeNode } from "../../utlis/tree" |
|
|
|
import { |
|
|
|
getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID, |
|
|
|
birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal, |
|
|
|
arrayExistObj, isValidMobileNumber |
|
|
|
reMadeOrgTree, arrayExistObj, isValidMobileNumber |
|
|
|
} from "../../utlis/proFunc"; |
|
|
|
import { getTreePids } from "../../utlis/tree"; |
|
|
|
import { getTreePids,madeTree } from "../../utlis/tree"; |
|
|
|
import { photoParse, savePeoplePhoto, } from "../../utlis/proApi"; |
|
|
|
import Camera from "./Camera.vue"; |
|
|
|
import PatientRegisterItem from "./PatientRegisterItem.vue"; |
|
|
|
@ -674,6 +686,7 @@ import WebBooking from "../../components/webBooking/WebBooking.vue" |
|
|
|
|
|
|
|
import PatientLisRequest from "../../components/patientRegister/PatientLisRequest.vue"; |
|
|
|
import PatientPacsRequest from "../../components/patientRegister/PatientPacsRequest.vue"; |
|
|
|
import Queue from "../../components/queue/Queue.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
@ -688,6 +701,7 @@ export default { |
|
|
|
PatientLisRequest, |
|
|
|
PatientPacsRequest, |
|
|
|
WebBooking, |
|
|
|
Queue |
|
|
|
}, |
|
|
|
// isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)' |
|
|
|
props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'], |
|
|
|
@ -716,6 +730,7 @@ export default { |
|
|
|
immediateToHisCharge: true, // 人员登记保存后,立即发送收费申请 |
|
|
|
findPatientByName: true, // 人员登记,启有人名查询 |
|
|
|
printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码 |
|
|
|
dispCustomerOrgCode: 'N', // 人员登记列表--单位树是否显示 customerOrgCode |
|
|
|
}, |
|
|
|
}, |
|
|
|
brushTimes: 0, |
|
|
|
@ -861,7 +876,8 @@ export default { |
|
|
|
poisonList: [], |
|
|
|
|
|
|
|
thirdInterfaceId: '', // 网上预约用到 |
|
|
|
|
|
|
|
queueParams: {}, // 分诊排队参数 |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -886,6 +902,7 @@ export default { |
|
|
|
this.LocalConfig.patientRegister.findPatientByName = false |
|
|
|
} |
|
|
|
if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel) |
|
|
|
if (LocalConfig.patientRegister.dispCustomerOrgCode) this.LocalConfig.patientRegister.dispCustomerOrgCode = LocalConfig.patientRegister.dispCustomerOrgCode |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.log("window.localStorage.getItem('LocalConfig')", error) |
|
|
|
@ -1100,6 +1117,43 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getCustomerOrgChild(parentId) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
postapi('/api/app/CustomerOrg/GetCustomerOrgByParentId', { parentId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
res.data.forEach(e => { |
|
|
|
e.isLeaf = e.isChild == 'Y' ? false : true |
|
|
|
}); |
|
|
|
// console.log('this.patientRegister.customerOrgs', this.patientRegister.customerOrgs) |
|
|
|
let treeData = reMadeOrgTree(deepCopy(res.data), this.LocalConfig.patientRegister.dispCustomerOrgCode); |
|
|
|
treeData.forEach(e => { |
|
|
|
if (arrayExistObj(this.patientRegister.customerOrgs, 'id', e.id) == -1) { |
|
|
|
this.patientRegister.customerOrgs.push(e) |
|
|
|
} |
|
|
|
}); |
|
|
|
this.patientRegister.customerOrgTreeAll = madeTree(this.patientRegister.customerOrgs,'treeChildren','parentId','id',null) |
|
|
|
// console.log('this.patientRegister.customerOrgTreeAll', this.patientRegister.customerOrgTreeAll) |
|
|
|
resolve(treeData) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
reject(err) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
lazyLoad(node, resolve) { |
|
|
|
if (node && node.data && node.data.id) { |
|
|
|
this.getCustomerOrgChild(node.data.id).then(res => { |
|
|
|
resolve(res) |
|
|
|
}).catch(err => { |
|
|
|
resolve([]) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 确定选中企业 |
|
|
|
btnOkOrg() { |
|
|
|
let customerOrgId = '' |
|
|
|
@ -1318,7 +1372,14 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 分诊排队 |
|
|
|
fnQueue(row) { |
|
|
|
this.queueParams = { |
|
|
|
patientRegisterId: row.id |
|
|
|
} |
|
|
|
this.dataTransOpts.plus.queue++ |
|
|
|
this.dialogWin.queue = true |
|
|
|
}, |
|
|
|
|
|
|
|
//修改单位体检次数 |
|
|
|
changeMedicalTimes() { |
|
|
|
@ -1692,7 +1753,7 @@ export default { |
|
|
|
this.dataTransOpts.tableM.register_check_asbitem.forEach(e => { |
|
|
|
e.total = e.amount * e.chargePrice |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//一般读身份证照片时,会出现这种情况 |
|
|
|
if (this.peoplePhoto && this.peoplePhoto.indexOf("data:image") > -1) await savePeoplePhoto(res.data.id, this.peoplePhoto); |
|
|
|
|
|
|
|
|