Browse Source

doctor

master
pengjun 2 years ago
parent
commit
e2b7136e98
  1. 2
      public/sysConfig.json
  2. 43
      src/components/doctorCheck/CheckPicture.vue
  3. 3
      src/components/doctorCheck/RegisterCheckList.vue
  4. 4
      src/components/report/BtnReport.vue
  5. 18
      src/views/workload/directordoctor.vue

2
public/sysConfig.json

@ -1,4 +1,4 @@
{
"apiurl": "http://140.143.162.39:9529",
"apiurl": "http://192.168.2.67:9529",
"softName": "神豚体检管理系统"
}

43
src/components/doctorCheck/CheckPicture.vue

@ -27,7 +27,7 @@
z-index: 2;
">
<el-tooltip content="删除该图" placement="bottom" effect="light">
<i class="el-icon-close" @click="btnDelImage(index)" v-show="!doctorBtnDisabled('btnDelImage')"
<i class="el-icon-close" @click="btnDelImage(index)" v-show="!doctorBtnDisabled('btnDelImage')"
style="color: red; cursor: pointer"></i>
</el-tooltip>
</div>
@ -40,13 +40,14 @@
</div>
<div style="display: flex">
<div style="margin: -6px 0 0 1px">
<el-checkbox v-model="item.isPrintTrans" @change="btnSavePic" :disabled="doctorBtnDisabled('btnSavePic')"></el-checkbox>
<el-checkbox v-model="item.isPrintTrans" @change="btnSavePic"
:disabled="doctorBtnDisabled('btnSavePic')"></el-checkbox>
</div>
<div style="font-size: 12px; margin: -2px 0 0 1px">打印</div>
<div style="font-size: 15px; margin: -5px 0 0 2px">
<el-tooltip content="保存后,图片将按序号从小到大排序" placement="bottom" effect="light">
<input placeholder="排序" v-model="item.displayOrder" @onkeyup="validateInteger(e, index)"
style="width: 30px" :disabled="doctorBtnDisabled('btnSavePic')"/>
style="width: 30px" :disabled="doctorBtnDisabled('btnSavePic')" />
</el-tooltip>
</div>
</div>
@ -158,7 +159,7 @@ export default {
this.checkPictures = res.data
this.checkPictures.forEach(e => {
e.isPrintTrans = e.isPrint == "Y" ? true : false
});
});
}
});
},
@ -192,16 +193,38 @@ export default {
btnGetPic() {
if (!this.doctorCheck.RegisterCheckId) {
this.$message.warning({ showClose: true, message: "未选中组合项目!"});
this.$message.warning({ showClose: true, message: "未选中组合项目!" });
return;
}
console.log("采图,开发中……");
if (!this.$peisAPI) {
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
return
}
let toOutShell = {
barCode: this.doctorCheck.checkRequestNo,
patientName: this.dataTransOpts.tableS.patient_register.patientName,
sexName: this.dataTransOpts.tableS.patient_register.sexName,
age: (this.dataTransOpts.tableS.patient_register.age||'') + '',
asbitemName: this.doctorCheck.asbitemName
}
console.log('this.$peisAPI.imageAcquisition',JSON.stringify(toOutShell))
this.$peisAPI.imageAcquisition(JSON.stringify(toOutShell)).then(res => {
let lres = JSON.parse(res)
if (lres.code > -1) {
console.log(lres.data)
}
console.log('lres', lres)
}).catch(err => {
this.$message.error(err)
})
},
//
btnExpPic() {
if (!this.doctorCheck.RegisterCheckId) {
this.$message.warning({ showClose: true, message: "未选中组合项目!"});
this.$message.warning({ showClose: true, message: "未选中组合项目!" });
return;
}
this.uploadSeq++;
@ -215,7 +238,7 @@ export default {
btnSavePic() {
if (!this.doctorCheck.RegisterCheckId) {
this.$message.warning({ showClose: true, message: "未选中组合项目!"});
this.$message.warning({ showClose: true, message: "未选中组合项目!" });
return;
}
@ -230,7 +253,7 @@ export default {
// }
// ]
if (this.checkPictures.length == 0) {
this.$message.warning({ showClose: true, message: "没有可保存的图片数据!"});
this.$message.warning({ showClose: true, message: "没有可保存的图片数据!" });
return;
}
@ -282,7 +305,7 @@ export default {
type: "warning",
})
.then(() => {
return postapi(`/api/app/registercheckpicture/deleteregistercheckpicturemany`,body);
return postapi(`/api/app/registercheckpicture/deleteregistercheckpicturemany`, body);
})
.then((res) => {
if (res && res.code > -1) {

3
src/components/doctorCheck/RegisterCheckList.vue

@ -118,6 +118,9 @@ export default {
rowClick(row) {
console.log('rowClick')
this.doctorCheck.RegisterCheckId = row.id
this.doctorCheck.asbitemName = row.asbitemName
this.doctorCheck.checkRequestNo = row.checkRequestNo
this.dataTransOpts.tableS.register_check.id = row.id
this.dataTransOpts.refresh.register_check.S++

4
src/components/report/BtnReport.vue

@ -326,7 +326,7 @@ export default {
{ Name: "orgSign", Value: "pic/orgSign.png" },
{ Name: 'picExtOne', Value: 'pic/hisLog.jpg' },
],
IsHealthReport: 'Y'
IsHealthReport: 'Y'
};
for (let i = 0; i < this.dataTransOpts.tableM.patient_register.length; i++) {
@ -338,7 +338,7 @@ export default {
try {
if (e.completeFlag == '3') {
toOutShell.BusinessCode = e.patientRegisterId
toOutShell.ExportDirectory = `${path}\\${e.patientRegisterNo}_${patientName}.pdf`
toOutShell.ExportDirectory = `${path}\\${e.patientRegisterNo}_${e.patientName}.pdf`
let jsonToOutShell = JSON.stringify(toOutShell)
console.log('toOutShell', jsonToOutShell)
let res = await this.$peisAPI.exportToPdfPre(jsonToOutShell)

18
src/views/workload/directordoctor.vue

@ -363,13 +363,21 @@ export default {
}
});
},
getList() {
getapi("/api/identity/users/getlist",this.pages).then((res) => {
if (res.code != -1) {
this.registrardata = [...res.data.items];
}
});
// getapi("/api/identity/users/getlist",this.pages).then((res) => {
// if (res.code != -1) {
// this.registrardata = [...res.data.items];
// }
// });
postapi('/api/identity/users/GetListByOperatorType', { operatorTypes: ["2", "3"] })
.then(res => {
if (res.code > -1) {
this.registrardata = res.data
}
})
},
getNowTime() {
var now = new Date();
var year = now.getFullYear(); //

Loading…
Cancel
Save