Browse Source

occ r

master
pengjun 1 year ago
parent
commit
d12e1b1a92
  1. 57
      src/components/occDisease/OccDisease.vue
  2. 3
      src/components/patientRegister/PatientLisRequest.vue
  3. 3
      src/components/patientRegister/PatientPacsRequest.vue
  4. 57
      src/components/patientRegister/PatientRegisterEdit.vue
  5. 1
      src/store/index.js

57
src/components/occDisease/OccDisease.vue

@ -169,22 +169,59 @@ export default {
if (res && res.code > -1) { if (res && res.code > -1) {
this.dialogWin.OccDisease = false this.dialogWin.OccDisease = false
} }
}).catch((err) => {
if (err != 'cancel') {
this.$message.info({ showClose: true, message: err });
}
});
})
}, },
//
btnOk() {
let message = ''
// console.log('this.dataTransOpts.tableM.patient_poison', this.dataTransOpts.tableM.patient_poison)
//
validiteData(){
let err = ''
let disease = this.dataTransOpts.tableS.patient_occupational_disease
if(!disease.ocCheckTypeId){
err = '请填写 检查类别'
return err
}
if(!disease.jobType){
err = '请填写 工种'
return err
}
if(!disease.riskFactors){
err = '请填写 基本信息-接害因素'
return err
}
if(disease.smokeFlag && disease.smokeFlag != '0'){
if(!disease.smokeNum){
err = '请填写 吸烟频次'
return err
}
if(!disease.smokeYears){
err = '请填写 烟龄'
return err
}
}
if(disease.drinkFlag && disease.drinkFlag != '0'){
if(!disease.drinkNum){
err = '请填写 饮酒频次'
return err
}
if(!disease.drinkYears){
err = '请填写 酒龄'
return err
}
}
this.dataTransOpts.tableM.patient_poison.forEach((e, i) => { this.dataTransOpts.tableM.patient_poison.forEach((e, i) => {
if (!e.poisonId) message = `接害因素,第 ${i + 1} 行,不能为空`
if (!e.poisonId) err = `接害因素,第 ${i + 1} 行,不能为空`
if (!e.occupationalAbnormalId) e.occupationalAbnormalId = null if (!e.occupationalAbnormalId) e.occupationalAbnormalId = null
}); });
return err
},
//
btnOk() {
let message = this.validiteData()
// console.log('this.dataTransOpts.tableM.patient_poison', this.dataTransOpts.tableM.patient_poison)
if (message) { if (message) {
this.$message.warning({ showClose: true, message }) this.$message.warning({ showClose: true, message })
return return

3
src/components/patientRegister/PatientLisRequest.vue

@ -1,6 +1,6 @@
<template> <template>
<div style="display: flex;"> <div style="display: flex;">
<div :style="'width:' + (window.pageWidth - 200 - 145) + 'px;'">
<div :style="`width:${isDialog ? 660:(window.pageWidth - 200 - 145)}px;`">
<el-table :data="dataTransOpts.tableM.lis_request" border @row-click="rowClick" <el-table :data="dataTransOpts.tableM.lis_request" border @row-click="rowClick"
:height="window.pageHeight < 600 ? 140 : Math.floor((window.pageHeight - 250) * 2 / 5)" size="small" :height="window.pageHeight < 600 ? 140 : Math.floor((window.pageHeight - 250) * 2 / 5)" size="small"
highlight-current-row ref="lis_request" :row-class-name="handleRowClassName"> highlight-current-row ref="lis_request" :row-class-name="handleRowClassName">
@ -68,6 +68,7 @@ import { getapi, postapi, putapi, deletapi } from "../../api/api";
export default { export default {
components: {}, components: {},
props:["isDialog"],
data() { data() {
return { return {
pagePriv: { pagePriv: {

3
src/components/patientRegister/PatientPacsRequest.vue

@ -1,6 +1,6 @@
<template> <template>
<div style="display: flex;"> <div style="display: flex;">
<div :style="'width:' + (window.pageWidth - 200 - 145) + 'px;'">
<div :style="`width:${isDialog ? 660:(window.pageWidth - 200 - 145)}px;`">
<el-table :data="pacsRequest" border @row-click="rowClick" <el-table :data="pacsRequest" border @row-click="rowClick"
:height="window.pageHeight < 600 ? 140 : Math.floor((window.pageHeight - 250) * 2 / 5)" size="small" :height="window.pageHeight < 600 ? 140 : Math.floor((window.pageHeight - 250) * 2 / 5)" size="small"
highlight-current-row ref="pacs_request" :row-class-name="handleRowClassName"> highlight-current-row ref="pacs_request" :row-class-name="handleRowClassName">
@ -42,6 +42,7 @@ import { getapi, postapi, putapi, deletapi } from "../../api/api";
export default { export default {
components: {}, components: {},
props:["isDialog"],
data() { data() {
return { return {
pagePriv: { pagePriv: {

57
src/components/patientRegister/PatientRegisterEdit.vue

@ -438,7 +438,7 @@
<el-button type="primary" class="commonbutton" @click="labelPrint(false)" :disabled="printing">条码打印</el-button> <el-button type="primary" class="commonbutton" @click="labelPrint(false)" :disabled="printing">条码打印</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="btnLabel">条码补打</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="guidePrint('0001', false)" <el-button type="primary" class="commonbutton" @click="guidePrint('0001', false)"
@ -449,6 +449,9 @@
<el-button type="primary" class="commonbutton" @click="guidePrint('0001', true)">指引单预览</el-button> <el-button type="primary" class="commonbutton" @click="guidePrint('0001', true)">指引单预览</el-button>
</div> </div>
--> -->
<div v-show="checkPagePriv(pagePriv.privs, '条码合并')" class="btn">
<el-button type="danger" class="commonbutton" @click="reLisRequest">条码合并</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '手动合并项目')" class="btn"> <div v-show="checkPagePriv(pagePriv.privs, '手动合并项目')" class="btn">
<el-button type="danger" class="commonbutton" @click="reMergeAsbitem">手动合并项目</el-button> <el-button type="danger" class="commonbutton" @click="reMergeAsbitem">手动合并项目</el-button>
</div> </div>
@ -559,12 +562,26 @@
<Camera :id="form.id" /> <Camera :id="form.id" />
</el-dialog> </el-dialog>
--> -->
<!-- 检验条码补打 -->
<el-dialog title="检验条码补打" :visible.sync="patientRegister.lisRequestVisble" width="600px" height="400"
<!-- 合并条码 -->
<el-dialog title="合并条码" :visible.sync="patientRegister.lisRequestVisble" width="600px" height="400"
:show-close="false" :close-on-click-modal="false" :append-to-body="true"> :show-close="false" :close-on-click-modal="false" :append-to-body="true">
<LisRequest :id="form.id" :brushTimes="brushTimes" /> <LisRequest :id="form.id" :brushTimes="brushTimes" />
</el-dialog> </el-dialog>
<!-- 条码补打 -->
<el-dialog title="条码补打" :visible.sync="dialogWin.Label" width="800px" height="400"
:close-on-click-modal="false" :append-to-body="true">
<el-tabs v-model="tabChoosed" style="height:320px;margin-top: -22px;">
<!-- 组合项目 -->
<el-tab-pane label="检验条码" name="1">
<PatientLisRequest :isDialog="true"/>
</el-tab-pane>
<el-tab-pane label="检查条码" name="2">
<PatientPacsRequest :isDialog="true"/>
</el-tab-pane>
</el-tabs>
</el-dialog>
<!-- 手动合并项目 --> <!-- 手动合并项目 -->
<el-dialog title="手动合并项目" :visible.sync="patientRegister.mergeAsbitemVisble" width="600px" height="400" <el-dialog title="手动合并项目" :visible.sync="patientRegister.mergeAsbitemVisble" width="600px" height="400"
:show-close="false" :close-on-click-modal="false" :append-to-body="true"> :show-close="false" :close-on-click-modal="false" :append-to-body="true">
@ -609,6 +626,10 @@ import Charge from "../../views/charge/charge.vue";
import PatientRegisterEditQuery from "../../components/patientRegister/PatientRegisterEditQuery.vue"; import PatientRegisterEditQuery from "../../components/patientRegister/PatientRegisterEditQuery.vue";
import OccDisease from "../../components/occDisease/OccDisease.vue" import OccDisease from "../../components/occDisease/OccDisease.vue"
import PatientLisRequest from "../../components/patientRegister/PatientLisRequest.vue";
import PatientPacsRequest from "../../components/patientRegister/PatientPacsRequest.vue";
export default { export default {
components: { components: {
Camera, Camera,
@ -618,16 +639,18 @@ export default {
Charge, Charge,
AsbChargeRequest, AsbChargeRequest,
PatientRegisterEditQuery, PatientRegisterEditQuery,
OccDisease
OccDisease,
PatientLisRequest,
PatientPacsRequest,
}, },
// isDoctor: '0:/1:()' // isDoctor: '0:/1:()'
props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'], props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'],
data() { data() {
var validateMobileTelephone = (rule, value, callback) => { var validateMobileTelephone = (rule, value, callback) => {
if (value) { if (value) {
if (!isValidMobileNumber(value)){
if (!isValidMobileNumber(value)) {
callback(new Error('请填写正确的手机号!')); callback(new Error('请填写正确的手机号!'));
}else{
} else {
callback(); callback();
} }
} else { } else {
@ -713,7 +736,7 @@ export default {
qztlIsFj: 'N', // qztlIsFj: 'N', //
isQztlImport: 'N', // isQztlImport: 'N', //
uploadQztlFlag: 'N', // uploadQztlFlag: 'N', //
planuserid: '', //
planuserid: '', //
}, // }, //
formInit: {}, // formInit: {}, //
@ -776,6 +799,8 @@ export default {
printing: false, // printing: false, //
completeFlag: '0', // completeFlag: '0', //
tabChoosed:"1",
}; };
}, },
@ -1479,14 +1504,14 @@ export default {
// //
btnSubmit(formName, msgTip) { btnSubmit(formName, msgTip) {
console.log('btnSubmit',formName)
console.log('btnSubmit', formName)
this.$refs[formName].validate((valid, fields) => { this.$refs[formName].validate((valid, fields) => {
// console.log('fields', fields) // console.log('fields', fields)
if (!valid) { if (!valid) {
this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message }); this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message });
return false return false
} }
console.log('btnSubmit1',formName)
console.log('btnSubmit1', formName)
if (this.form.customerOrgId != this.dict.personOrgId) { if (this.form.customerOrgId != this.dict.personOrgId) {
if (!this.form.customerOrgRegisterId) { if (!this.form.customerOrgRegisterId) {
this.$message.warning({ showClose: true, message: "请填写单位体检次数!" }); this.$message.warning({ showClose: true, message: "请填写单位体检次数!" });
@ -1498,7 +1523,7 @@ export default {
this.$message.warning({ showClose: true, message: "身份证号填写不合法!" }); this.$message.warning({ showClose: true, message: "身份证号填写不合法!" });
return false return false
} }
console.log('btnSubmit2',formName)
console.log('btnSubmit2', formName)
let body = this.madePrBody() let body = this.madePrBody()
// console.log('madePrBody',body) // console.log('madePrBody',body)
body.registerCheckAsbitems = deepCopy(this.dataTransOpts.tableM.register_check_asbitem) body.registerCheckAsbitems = deepCopy(this.dataTransOpts.tableM.register_check_asbitem)
@ -1510,7 +1535,7 @@ export default {
} else { } else {
delete body.id; delete body.id;
} }
console.log('btnSubmit3',formName)
console.log('btnSubmit3', formName)
// // console.log(`/api/patientregister/createreturninfo`, body); // // console.log(`/api/patientregister/createreturninfo`, body);
postapi(`/api/PatientRegister/CreatePatientRegister`, body) postapi(`/api/PatientRegister/CreatePatientRegister`, body)
.then(async (res) => { .then(async (res) => {
@ -2099,6 +2124,16 @@ export default {
this.dialogWin.OccDisease = true this.dialogWin.OccDisease = true
}, },
btnLabel() {
if (!this.form.id) {
this.$message.warning({ showClose: true, message: '人员信息尚未保存!' })
return
}
this.dataTransOpts.refresh.lis_request.M++ //
this.dataTransOpts.refresh.register_check.M++ //
this.dialogWin.Label = true
},
//tab //tab
enterToTab() { enterToTab() {
this.$nextTick(() => { this.$nextTick(() => {

1
src/store/index.js

@ -420,6 +420,7 @@ export default new Vuex.Store({
LocalConfig: false, // 设置窗口 LocalConfig: false, // 设置窗口
AsbChargeRequest: false, // 收费申请 AsbChargeRequest: false, // 收费申请
OccDisease: false, // 职业病 OccDisease: false, // 职业病
Label:false, // 补打条码
} }
}, },

Loading…
Cancel
Save