Browse Source

report

master
pengjun 2 years ago
parent
commit
5c6dd05ad4
  1. 9
      src/components/occDisease/OccDisease.vue
  2. 11
      src/components/patientRegister/PatientRegisterEdit.vue
  3. 43
      src/components/sumDoctorCheck/ButtonList.vue

9
src/components/occDisease/OccDisease.vue

@ -5,7 +5,7 @@
<OccDiseaseBase />
</el-tab-pane>
<el-tab-pane label="毒害因素" name="2">
<el-tab-pane label="接害因素检查结论" name="2">
<OccDiseasePoison />
</el-tab-pane>
@ -16,9 +16,12 @@
<OccDiseaseSymptom />
</el-tab-pane>
<el-tab-pane label="体征" name="5">
<CheckDetails :patientRegisterId="patientRegisterId" :tabChoosed="'2'" />
<CheckDetails />
</el-tab-pane>
<el-tab-pane label="检查结论" name="6">
<el-tab-pane label="图文报告" name="5">
<CheckDetails />
</el-tab-pane>
<el-tab-pane label="职业健康检查结论" name="6">
<OccDiseaseConclusion />
</el-tab-pane>
</el-tabs>

11
src/components/patientRegister/PatientRegisterEdit.vue

@ -625,7 +625,11 @@ export default {
data() {
var validateMobileTelephone = (rule, value, callback) => {
if (value) {
if (!isValidMobileNumber(value)) callback(new Error('请填写正确的手机号!'));
if (!isValidMobileNumber(value)){
callback(new Error('请填写正确的手机号!'));
}else{
callback();
}
} else {
callback();
}
@ -1475,13 +1479,14 @@ export default {
//
btnSubmit(formName, msgTip) {
console.log('btnSubmit',formName)
this.$refs[formName].validate((valid, fields) => {
// console.log('fields', fields)
if (!valid) {
this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message });
return false
}
console.log('btnSubmit1',formName)
if (this.form.customerOrgId != this.dict.personOrgId) {
if (!this.form.customerOrgRegisterId) {
this.$message.warning({ showClose: true, message: "请填写单位体检次数!" });
@ -1493,6 +1498,7 @@ export default {
this.$message.warning({ showClose: true, message: "身份证号填写不合法!" });
return false
}
console.log('btnSubmit2',formName)
let body = this.madePrBody()
// console.log('madePrBody',body)
body.registerCheckAsbitems = deepCopy(this.dataTransOpts.tableM.register_check_asbitem)
@ -1504,6 +1510,7 @@ export default {
} else {
delete body.id;
}
console.log('btnSubmit3',formName)
// // console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(async (res) => {

43
src/components/sumDoctorCheck/ButtonList.vue

@ -7,10 +7,12 @@
<el-button type="primary" class="commonbutton" @click="toDoctorCheck">医生诊台</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '导入检查结果')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnImportResult('pacs')" :disabled="sumBtnDisabled('save')">导入检查结果</el-button>
<el-button type="primary" class="commonbutton" @click="btnImportResult('pacs')"
:disabled="sumBtnDisabled('save')">导入检查结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '导入检验结果')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnImportResult('lis')" :disabled="sumBtnDisabled('save')">导入检验结果</el-button>
<el-button type="primary" class="commonbutton" @click="btnImportResult('lis')"
:disabled="sumBtnDisabled('save')">导入检验结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnSave"
@ -50,7 +52,7 @@
</div>
<div v-show="checkPagePriv(pagePriv.privs, '职业病')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="btnOcc"
:disabled="sumBtnDisabled('btnOcc')">职业病</el-button>
:disabled="sumBtnDisabled('btnOcc')">职业病</el-button>
</div>
@ -89,6 +91,7 @@ import { getPagePriv, checkPagePriv, deepCopy } from "../../utlis/proFunc";
import PatientRegisterList from "../doctorCheck/PatientRegisterList.vue";
import SumDiagnosis from "./SumDiagnosis.vue";
import OccDisease from "../../components/occDisease/OccDisease.vue"
import moment from "moment";
export default {
components: {
@ -124,7 +127,7 @@ export default {
},
computed: {
...mapState(["window", "dict", "dataTransOpts", "dialogWin","patientRegister", "doctorCheck", "sumDoctorCheck"]),
...mapState(["window", "dict", "dataTransOpts", "dialogWin", "patientRegister", "doctorCheck", "sumDoctorCheck"]),
},
methods: {
@ -200,7 +203,7 @@ export default {
default:
break;
}
postapi(url, { patientRegisterId: this.dataTransOpts.tableS.patient_register.id }).then(res => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '导入成功!' })
@ -222,12 +225,40 @@ export default {
let body = {
patientRegisterId: this.dataTransOpts.tableS.patient_register.id,
summaryDoctorId: this.dataTransOpts.tableS.patient_register.summaryDoctorId || null,
summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate,
summaryDate: this.dataTransOpts.tableS.patient_register.summaryDate||moment(new Date()).format("yyyy-MM-DD HH:mm:ss"),
medicalConclusionId: this.dataTransOpts.tableS.patient_register.medicalConclusionId || null,
sumSummarys: this.sumDoctorCheck.summaryList,
sumSuggestions: this.sumDoctorCheck.suggestionList
}
//
let message = ''
for (let index = 0; index < this.sumDoctorCheck.summaryList.length; index++) {
let e = this.sumDoctorCheck.summaryList[index];
if (!e.patientRegisterId || e.patientRegisterId != this.dataTransOpts.tableS.patient_register.id) {
message = "人员ID 与 综述人员ID 不一致"
break
}
}
if (message) {
this.$message.error({ showClose: true, message })
return
}
for (let index = 0; index < this.sumDoctorCheck.suggestionList.length; index++) {
let e = this.sumDoctorCheck.suggestionList[index];
if (!e.patientRegisterId || e.patientRegisterId != this.dataTransOpts.tableS.patient_register.id) {
message = "人员ID 与 建议人员ID 不一致"
break
}
}
if (message) {
this.$message.error({ showClose: true, message })
return
}
postapi(`/api/app/patientregister/UpdatePatientRegisterSummarySuggestion`, body)
.then((res) => {

Loading…
Cancel
Save