|
|
@ -319,55 +319,55 @@ |
|
|
<!--青藏公司 start--> |
|
|
<!--青藏公司 start--> |
|
|
<el-row v-if="LocalConfig.normal.PatientRegisterEdit == 'qztl'"> |
|
|
<el-row v-if="LocalConfig.normal.PatientRegisterEdit == 'qztl'"> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="高原/健康" > |
|
|
|
|
|
|
|
|
<el-form-item label="高原/健康"> |
|
|
<el-select v-model="form.qztlType" placeholder="请选择"> |
|
|
<el-select v-model="form.qztlType" placeholder="请选择"> |
|
|
<el-option v-for="item in dict.qztlType" :key="item.id" :label="item.displayName" :value="item.id"/> |
|
|
|
|
|
|
|
|
<el-option v-for="item in dict.qztlType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="普速" > |
|
|
|
|
|
|
|
|
<el-form-item label="普速"> |
|
|
<el-checkbox v-model="form.qztlIsCw" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.qztlIsCw" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="从业" > |
|
|
|
|
|
|
|
|
<el-form-item label="从业"> |
|
|
<el-checkbox v-model="form.qztlIsCy" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.qztlIsCy" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="高铁" > |
|
|
|
|
|
|
|
|
<el-form-item label="高铁"> |
|
|
<el-checkbox v-model="form.qztlIsGt" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.qztlIsGt" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="行车" > |
|
|
|
|
|
|
|
|
<el-form-item label="行车"> |
|
|
<el-checkbox v-model="form.qztlIsMain" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.qztlIsMain" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="职害" > |
|
|
|
|
|
|
|
|
<el-form-item label="职害"> |
|
|
<el-checkbox v-model="form.qztlIsWh" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.qztlIsWh" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="复检" > |
|
|
|
|
|
|
|
|
<el-form-item label="复检"> |
|
|
<el-checkbox v-model="form.qztlIsFj" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.qztlIsFj" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="导入" > |
|
|
|
|
|
|
|
|
<el-form-item label="导入"> |
|
|
<el-checkbox v-model="form.isQztlImport" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.isQztlImport" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2"> |
|
|
<el-col :span="2"> |
|
|
<el-form-item label="上传" > |
|
|
|
|
|
|
|
|
<el-form-item label="上传"> |
|
|
<el-checkbox v-model="form.uploadQztlFlag" true-label="Y" false-label="N" /> |
|
|
<el-checkbox v-model="form.uploadQztlFlag" true-label="Y" false-label="N" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4"> |
|
|
<el-col :span="4"> |
|
|
<el-form-item label="计划" prop="planuserid"> |
|
|
<el-form-item label="计划" prop="planuserid"> |
|
|
<el-input v-model="form.planuserid" size="small"/> |
|
|
|
|
|
|
|
|
<el-input v-model="form.planuserid" size="small" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -426,11 +426,13 @@ |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="btn"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="btn"> |
|
|
<el-button type="success" class="commonbutton" @click="btnSubmit('form', true)">保存</el-button> |
|
|
<el-button type="success" class="commonbutton" @click="btnSubmit('form', true)">保存</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '检验单申请')" class="btn"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '检验单申请')" class="btn"> |
|
|
<el-button type="primary" class="commonbutton" @click="lisRequest">检验单申请</el-button> |
|
|
<el-button type="primary" class="commonbutton" @click="lisRequest">检验单申请</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '条码打印')" class="btn"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '条码打印')" class="btn"> |
|
|
<el-button type="primary" class="commonbutton" @click="lisPrint('0003', false)">条码打印</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="labelPrint(false)">条码打印</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '条码补打')" class="btn"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '条码补打')" class="btn"> |
|
|
<el-button type="danger" class="commonbutton" @click="reLisRequest">条码补打</el-button> |
|
|
<el-button type="danger" class="commonbutton" @click="reLisRequest">条码补打</el-button> |
|
|
@ -528,7 +530,8 @@ |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog title="选择单位" :visible.sync="dialogOrg" width="800px" :close-on-click-modal="false" :append-to-body="true"> |
|
|
|
|
|
|
|
|
<el-dialog title="选择单位" :visible.sync="dialogOrg" width="800px" :close-on-click-modal="false" |
|
|
|
|
|
:append-to-body="true"> |
|
|
<div style="height: 320px;"> |
|
|
<div style="height: 320px;"> |
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
filterable popper-class="example" :show-all-levels="false" |
|
|
filterable popper-class="example" :show-all-levels="false" |
|
|
@ -678,16 +681,16 @@ export default { |
|
|
medicalStartDate: null, |
|
|
medicalStartDate: null, |
|
|
hisPatientId: '', //对接 hisid |
|
|
hisPatientId: '', //对接 hisid |
|
|
registerCheckAsbitems: [], //所选组合项目明细 |
|
|
registerCheckAsbitems: [], //所选组合项目明细 |
|
|
qztlType:'0', // 高原/健康 |
|
|
|
|
|
qztlIsCw:'N', // 普速 |
|
|
|
|
|
qztlIsCy:'N', // 从业 |
|
|
|
|
|
qztlIsGt:'N', // 高铁 |
|
|
|
|
|
qztlIsMain:'N', // 行车 |
|
|
|
|
|
qztlIsWh:'N', // 职害 |
|
|
|
|
|
qztlIsFj:'N', // 复检 |
|
|
|
|
|
isQztlImport:'N', // 导入 |
|
|
|
|
|
uploadQztlFlag:'N', // 上传 |
|
|
|
|
|
planuserid:'', // 计划人 |
|
|
|
|
|
|
|
|
qztlType: '0', // 高原/健康 |
|
|
|
|
|
qztlIsCw: 'N', // 普速 |
|
|
|
|
|
qztlIsCy: 'N', // 从业 |
|
|
|
|
|
qztlIsGt: 'N', // 高铁 |
|
|
|
|
|
qztlIsMain: 'N', // 行车 |
|
|
|
|
|
qztlIsWh: 'N', // 职害 |
|
|
|
|
|
qztlIsFj: 'N', // 复检 |
|
|
|
|
|
isQztlImport: 'N', // 导入 |
|
|
|
|
|
uploadQztlFlag: 'N', // 上传 |
|
|
|
|
|
planuserid: '', // 计划人 |
|
|
}, //单位 记录 目前新增与更新是一致 |
|
|
}, //单位 记录 目前新增与更新是一致 |
|
|
|
|
|
|
|
|
formInit: {}, //表单初始化 |
|
|
formInit: {}, //表单初始化 |
|
|
@ -947,12 +950,12 @@ export default { |
|
|
// 获取登记信息 初始form表单数据 |
|
|
// 获取登记信息 初始form表单数据 |
|
|
async initFormData(patientRegisterId) { |
|
|
async initFormData(patientRegisterId) { |
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
let customerOrgId,customerOrgName,customerOrgParentId |
|
|
|
|
|
if(this.patientRegister.query.customerOrgId){ |
|
|
|
|
|
|
|
|
let customerOrgId, customerOrgName, customerOrgParentId |
|
|
|
|
|
if (this.patientRegister.query.customerOrgId) { |
|
|
customerOrgParentId = this.patientRegister.query.CustomerOrgParentId |
|
|
customerOrgParentId = this.patientRegister.query.CustomerOrgParentId |
|
|
customerOrgId = this.patientRegister.query.customerOrgId |
|
|
customerOrgId = this.patientRegister.query.customerOrgId |
|
|
customerOrgName = this.patientRegister.query.customerOrgName |
|
|
customerOrgName = this.patientRegister.query.customerOrgName |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
customerOrgParentId = this.form.customerOrgParentId |
|
|
customerOrgParentId = this.form.customerOrgParentId |
|
|
customerOrgId = this.form.customerOrgId |
|
|
customerOrgId = this.form.customerOrgId |
|
|
customerOrgName = this.form.customerOrgName |
|
|
customerOrgName = this.form.customerOrgName |
|
|
@ -960,7 +963,7 @@ export default { |
|
|
this.preCustomerOrgId = this.patientRegister.query.customerOrgId |
|
|
this.preCustomerOrgId = this.patientRegister.query.customerOrgId |
|
|
if (!patientRegisterId) { //添加 |
|
|
if (!patientRegisterId) { //添加 |
|
|
objCopy(this.formInit, this.form); |
|
|
objCopy(this.formInit, this.form); |
|
|
this.form.registerCheckAsbitems=[] |
|
|
|
|
|
|
|
|
this.form.registerCheckAsbitems = [] |
|
|
this.form.medicalCenterId = this.peisid; //体检中收 |
|
|
this.form.medicalCenterId = this.peisid; //体检中收 |
|
|
this.form.customerOrgId = customerOrgId //体检单位 |
|
|
this.form.customerOrgId = customerOrgId //体检单位 |
|
|
this.form.customerOrgParentId = customerOrgParentId //体检父单位 |
|
|
this.form.customerOrgParentId = customerOrgParentId //体检父单位 |
|
|
@ -1013,18 +1016,18 @@ export default { |
|
|
|
|
|
|
|
|
//选择单位 |
|
|
//选择单位 |
|
|
async changeCustomerOrgId(v) { |
|
|
async changeCustomerOrgId(v) { |
|
|
console.log('changeCustomerOrgId',v,this.form.customerOrgParentId) |
|
|
|
|
|
|
|
|
console.log('changeCustomerOrgId', v, this.form.customerOrgParentId) |
|
|
let customerOrgId = "" |
|
|
let customerOrgId = "" |
|
|
if (Array.isArray(v) && v.length > 0) { |
|
|
if (Array.isArray(v) && v.length > 0) { |
|
|
customerOrgId = v[v.length - 1] |
|
|
customerOrgId = v[v.length - 1] |
|
|
this.form.customerOrgParentId = v[0] |
|
|
this.form.customerOrgParentId = v[0] |
|
|
} else { |
|
|
} else { |
|
|
customerOrgId = v // 后台顶级单位ID未获取正确(再获取一次) |
|
|
customerOrgId = v // 后台顶级单位ID未获取正确(再获取一次) |
|
|
let pids = getTreePids(this.patientRegister.customerOrgTreeAll,"treeChildren","parentId","id",customerOrgId) |
|
|
|
|
|
if(Array.isArray(pids) && pids.length > 0){ |
|
|
|
|
|
if(pids.length == 1){ |
|
|
|
|
|
|
|
|
let pids = getTreePids(this.patientRegister.customerOrgTreeAll, "treeChildren", "parentId", "id", customerOrgId) |
|
|
|
|
|
if (Array.isArray(pids) && pids.length > 0) { |
|
|
|
|
|
if (pids.length == 1) { |
|
|
this.form.customerOrgParentId = customerOrgId |
|
|
this.form.customerOrgParentId = customerOrgId |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.form.customerOrgParentId = pids[1] |
|
|
this.form.customerOrgParentId = pids[1] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1457,7 +1460,7 @@ export default { |
|
|
// // console.log(`/api/patientregister/createreturninfo`, body); |
|
|
// // console.log(`/api/patientregister/createreturninfo`, body); |
|
|
postapi(`/api/PatientRegister/CreatePatientRegister`, body) |
|
|
postapi(`/api/PatientRegister/CreatePatientRegister`, body) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.code == 1) { |
|
|
|
|
|
|
|
|
if (res.code > -1) { |
|
|
objCopy(res.data, this.form) |
|
|
objCopy(res.data, this.form) |
|
|
|
|
|
|
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
this.dataTransOpts.tableS.patient_register = deepCopy(res.data) |
|
|
@ -1477,6 +1480,23 @@ export default { |
|
|
|
|
|
|
|
|
//一般读身份证照片时,会出现这种情况 |
|
|
//一般读身份证照片时,会出现这种情况 |
|
|
if (this.patientRegister.photo && this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo); |
|
|
if (this.patientRegister.photo && this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(res.data.id, this.patientRegister.photo); |
|
|
|
|
|
|
|
|
|
|
|
// 新增保存时,提示是否打条码 |
|
|
|
|
|
if (!body.id) { |
|
|
|
|
|
this.$confirm("是否打印 检验 与 Pacs 条码?", "提示", { |
|
|
|
|
|
confirmButtonText: "是", |
|
|
|
|
|
cancelButtonText: "否", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
}) |
|
|
|
|
|
.then(() => { |
|
|
|
|
|
this.labelPrint(false) |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
// if (err == "cancel") { |
|
|
|
|
|
// this.$message.info({ showClose: true, message: "已取消操作" }); |
|
|
|
|
|
// } |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
@ -1738,8 +1758,8 @@ export default { |
|
|
*/ |
|
|
*/ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//条码打印 |
|
|
|
|
|
lisPrint(ReportCode, isPreview) { |
|
|
|
|
|
|
|
|
//条码打印(lis + pacs) |
|
|
|
|
|
labelPrint(isPreview) { |
|
|
if (!this.form.id) { |
|
|
if (!this.form.id) { |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" }); |
|
|
return; |
|
|
return; |
|
|
@ -1748,11 +1768,10 @@ export default { |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let token = window.sessionStorage.getItem('token'); |
|
|
let token = window.sessionStorage.getItem('token'); |
|
|
let user = window.sessionStorage.getItem('user'); |
|
|
let user = window.sessionStorage.getItem('user'); |
|
|
let toOutShell = { |
|
|
let toOutShell = { |
|
|
ReportCode, token, |
|
|
|
|
|
|
|
|
token, // ReportCode, |
|
|
IsMoreLabel: 'Y', |
|
|
IsMoreLabel: 'Y', |
|
|
isBuildImage: 'N', |
|
|
isBuildImage: 'N', |
|
|
IsUploadPdf: 'N', |
|
|
IsUploadPdf: 'N', |
|
|
@ -1762,6 +1781,18 @@ export default { |
|
|
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, |
|
|
{ Name: 'hisLog', Value: 'pic/hisLog.jpg' }, |
|
|
], |
|
|
], |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// lis条码打印 |
|
|
|
|
|
this.lisPrint('0003', isPreview, toOutShell) |
|
|
|
|
|
|
|
|
|
|
|
// pacs条码打印 |
|
|
|
|
|
this.pacsPrint('0004', isPreview, toOutShell) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// lis条码打印 |
|
|
|
|
|
lisPrint(ReportCode, isPreview, toOutShell) { |
|
|
|
|
|
toOutShell.ReportCode = ReportCode |
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
if (isPreview) { |
|
|
if (isPreview) { |
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
@ -1799,6 +1830,45 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//pacs条码打印 |
|
|
|
|
|
pacsPrint(ReportCode, isPreview, toOutShell) { |
|
|
|
|
|
toOutShell.ReportCode = ReportCode |
|
|
|
|
|
if (isPreview) { |
|
|
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
// console.log('打印pacs条码错误', err) |
|
|
|
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (JSON.parse(res).code < 0) { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
|
|
|
} else { |
|
|
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
|
|
operateType: 1, |
|
|
|
|
|
patientRegisterId: prId, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res && res.code < 0) { |
|
|
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
// console.log('打印pacs条码错误', err) |
|
|
|
|
|
this.$message.error({ showClose: true, message: `${err}` }); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//补打条码 |
|
|
//补打条码 |
|
|
reLisRequest() { |
|
|
reLisRequest() { |
|
|
if (this.form.id.length < 1) { |
|
|
if (this.form.id.length < 1) { |
|
|
|