Browse Source

djseo

master
pengjun 2 years ago
parent
commit
1dd2eaa7f8
  1. 27
      src/components/doctorCheck/RegisterCheckList.vue
  2. 164
      src/components/patientRegister/PatientRegisterEdit.vue
  3. 4
      src/utlis/proFunc.js

27
src/components/doctorCheck/RegisterCheckList.vue

@ -67,11 +67,7 @@ export default {
components: {},
data() {
return {
activeNames:['0','1','2','3'],
registerCheckList0:[],
registerCheckList1:[],
registerCheckList2:[],
registerCheckList3:[],
activeNames:['0','1','2','3'],
};
},
@ -87,7 +83,21 @@ export default {
tableHeight() {
return this.window.pageHeight < 600 ? 400 : this.window.pageHeight - 200
}
},
registerCheckList0(){
return this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '0'})
},
registerCheckList1(){
return this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '1'})
},
registerCheckList2(){
return this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '2'})
},
registerCheckList3(){
return this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '3'})
},
},
methods: {
@ -173,10 +183,7 @@ export default {
handleRegisterCheckList(registerCheckList){
this.doctorCheck.RegisterCheckList = listOrderBy(registerCheckList, [{ colName: 'checkTypeFlag', sortType: 'A' }, { colName: 'itemTypeDisplayOrder', sortType: 'A' }, { colName: 'asbitemDisplayOrder', sortType: 'A' }])
this.registerCheckList0 = this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '0'})
this.registerCheckList1 = this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '1'})
this.registerCheckList2 = this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '2'})
this.registerCheckList3 = this.doctorCheck.RegisterCheckList.filter(e => { return e.checkTypeFlag == '3'})
}
},

164
src/components/patientRegister/PatientRegisterEdit.vue

@ -316,58 +316,58 @@
</el-form-item>
</el-col>
</el-row>
<!--青藏公司 start-->
<!--青藏公司 start-->
<el-row v-if="LocalConfig.normal.PatientRegisterEdit == 'qztl'">
<el-col :span="4">
<el-form-item label="高原/健康" >
<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-select>
<el-form-item label="高原/健康">
<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-select>
</el-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<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-form-item>
</el-col>
<el-col :span="4">
<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-col>
</el-row>
@ -426,11 +426,13 @@
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="btn">
<el-button type="success" class="commonbutton" @click="btnSubmit('form', true)">保存</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '检验单申请')" class="btn">
<el-button type="primary" class="commonbutton" @click="lisRequest">检验单申请</el-button>
</div>
<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 v-show="checkPagePriv(pagePriv.privs, '条码补打')" class="btn">
<el-button type="danger" class="commonbutton" @click="reLisRequest">条码补打</el-button>
@ -528,7 +530,8 @@
</span>
</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;">
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;"
filterable popper-class="example" :show-all-levels="false"
@ -673,21 +676,21 @@ export default {
creatorId: null,
creationTime: "",
lastModificationTime: "",
lastModifierId: null,
lastModifierId: null,
isMaxMedicalTimes: 'N',
medicalStartDate: null,
hisPatientId: '', // hisid
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: {}, //
@ -761,7 +764,7 @@ export default {
} catch (error) {
console.log("window.localStorage.getItem('LocalConfig')", error)
}
this.formInit = deepCopy(this.form)
//
@ -947,12 +950,12 @@ export default {
// form
async initFormData(patientRegisterId) {
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
customerOrgId = this.patientRegister.query.customerOrgId
customerOrgName = this.patientRegister.query.customerOrgName
}else{
} else {
customerOrgParentId = this.form.customerOrgParentId
customerOrgId = this.form.customerOrgId
customerOrgName = this.form.customerOrgName
@ -960,7 +963,7 @@ export default {
this.preCustomerOrgId = this.patientRegister.query.customerOrgId
if (!patientRegisterId) { //
objCopy(this.formInit, this.form);
this.form.registerCheckAsbitems=[]
this.form.registerCheckAsbitems = []
this.form.medicalCenterId = this.peisid; //
this.form.customerOrgId = customerOrgId //
this.form.customerOrgParentId = customerOrgParentId //
@ -978,7 +981,7 @@ export default {
}
},
handleFormData() {
handleFormData() {
this.getPeoplePhoto(this.form.photo)
// this.dataTransOpts.refresh.register_check_asbitem.D++ // ()
@ -1013,27 +1016,27 @@ export default {
//
async changeCustomerOrgId(v) {
console.log('changeCustomerOrgId',v,this.form.customerOrgParentId)
console.log('changeCustomerOrgId', v, this.form.customerOrgParentId)
let customerOrgId = ""
if (Array.isArray(v) && v.length > 0) {
customerOrgId = v[v.length - 1]
this.form.customerOrgParentId = v[0]
} else {
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
}else{
} else {
this.form.customerOrgParentId = pids[1]
}
}
}
}
}
this.preCustomerOrgId = customerOrgId
// let customerOrgParentId = await this.getParentCustomerOrgId(customerOrgId)
let customerOrgParentId = this.form.customerOrgParentId
if (customerOrgParentId) {
if (customerOrgParentId == this.dict.personOrgId) {
@ -1060,7 +1063,7 @@ export default {
} else {
this.changeCustomerOrgGroupId()
}
}
},
@ -1457,7 +1460,7 @@ export default {
// // console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(res => {
if (res.code == 1) {
if (res.code > -1) {
objCopy(res.data, this.form)
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 (!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) {
this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" });
return;
@ -1748,11 +1768,10 @@ export default {
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
return
}
let token = window.sessionStorage.getItem('token');
let user = window.sessionStorage.getItem('user');
let toOutShell = {
ReportCode, token,
token, // ReportCode,
IsMoreLabel: 'Y',
isBuildImage: 'N',
IsUploadPdf: 'N',
@ -1762,6 +1781,18 @@ export default {
{ 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)
if (isPreview) {
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() {
if (this.form.id.length < 1) {

4
src/utlis/proFunc.js

@ -350,7 +350,7 @@ function listOrderBy(arr, keyObjs) {
for (let i = 0; i < arrCount; i++) {
for (let j = 0; j < arrCount - 1; j++) {
for (let k = 0; k < lKeyObjs.length; k++) {
sortType = lKeyObjs[k]['sortType'] || 'A'
sortType = (lKeyObjs[k]['sortType'] || 'A').toUpperCase()
if (sortType == 'A'){
if (arr[j][lKeyObjs[k]['colName']] > arr[j + 1][lKeyObjs[k]['colName']]) {
temp = deepCopy(arr[j])
@ -378,7 +378,7 @@ function listOrderBy(arr, keyObjs) {
}
}
} catch (error) {
console.log(`listOrderBy ${error}`);
console.log(`listOrderBy error: ${error}`);
}
return arr;
}

Loading…
Cancel
Save