pengjun 4 months ago
parent
commit
0d7ecc59f5
  1. 143
      src/components/customerOrg/customerOrgGroupAsbitem.vue
  2. 4
      src/components/doctorCheck/RegisterCheckEdit.vue
  3. 6
      src/components/patientRegister/patientRegisterQuery.vue
  4. 1
      src/store/index.js
  5. 2
      src/views/doctorCheck/doctorCheck.vue

143
src/components/customerOrg/customerOrgGroupAsbitem.vue

@ -104,7 +104,8 @@
<el-button class="commonbutton" @click="btnCopyGroupAsbitem">复制</el-button> <el-button class="commonbutton" @click="btnCopyGroupAsbitem">复制</el-button>
</div> </div>
<div style="margin-top: 10px;"> <div style="margin-top: 10px;">
<el-button class="commonbutton" @click="btnPastGroupAsbitem" :disabled="dataTransOpts.copyGroupAsbitem.length == 0 ? true:false" >粘贴</el-button>
<el-button class="commonbutton" @click="btnPastGroupAsbitem"
:disabled="dataTransOpts.copyGroupAsbitem.length == 0 ? true : false">粘贴</el-button>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '保存')" style="margin-top: 10px;"> <div v-show="checkPagePriv(pagePriv.privs, '保存')" style="margin-top: 10px;">
<el-button class="commonbutton" @click="btnSave">保存</el-button> <el-button class="commonbutton" @click="btnSave">保存</el-button>
@ -172,9 +173,9 @@
<div style="display: flex"> <div style="display: flex">
<div> <div>
<span>体检单位</span> <span>体检单位</span>
<el-select v-model="customerOrgId" placeholder="请选择体检单位" :filter-method="filterMethodOrg" default-first-option
clearable filterable @clear="customerOrgDisp = deepCopy(customerOrgAll)" style="margin-left: 10px"
@change="changeCustomerOrg" size="small">
<el-select v-model="customerOrgId" placeholder="请选择体检单位" :filter-method="filterMethodOrg"
default-first-option clearable filterable @clear="customerOrgDisp = deepCopy(customerOrgAll)"
style="margin-left: 10px" @change="changeCustomerOrg" size="small">
<el-option v-for="item in customerOrgDisp" :key="item.id" :label="item.displayName" :value="item.id"> <el-option v-for="item in customerOrgDisp" :key="item.id" :label="item.displayName" :value="item.id">
{{ item.displayName }} {{ item.displayName }}
</el-option> </el-option>
@ -283,6 +284,8 @@ export default {
addrulst: [], //Id addrulst: [], //Id
price: "", // price: "", //
title: 1, title: 1,
hc_warn_mode: '1', //0-1-2-
}; };
}, },
computed: { computed: {
@ -549,16 +552,33 @@ export default {
arrayReduce(asbItemChoosed, this.customerOrgGroupAsbitems, "id=asbitemId") arrayReduce(asbItemChoosed, this.customerOrgGroupAsbitems, "id=asbitemId")
for (let i = asbItemChoosed.length - 1; i > - 1; i--) { for (let i = asbItemChoosed.length - 1; i > - 1; i--) {
if (this.customerOrgGroup.forSexId == 'A') break //
if (asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U') continue
//
if (this.customerOrgGroup.forSexId == 'A' && this.customerOrgGroup.maritalStatusId == 'A') {
break;
} else {
if (this.customerOrgGroup.forSexId != 'A'){
if (!(asbItemChoosed[i].forSexId == 'A' || asbItemChoosed[i].forSexId == 'U')) {
if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) { if (asbItemChoosed[i].forSexId != this.customerOrgGroup.forSexId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`) message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
checked = false checked = false
asbItemChoosed.splice(i, 1) asbItemChoosed.splice(i, 1)
} }
} }
}
//
if (!(checked || asbItemChoosed[i].maritalStatusId == 'A' || asbItemChoosed[i].maritalStatusId == 'U')) {
if (asbItemChoosed[i].maritalStatusId != this.customerOrgGroup.maritalStatusId) {
message.push(asbItemChoosed[i].displayName) //.warning(`${asbItemChoosed[i].displayName}`)
checked = false
asbItemChoosed.splice(i, 1)
}
}
}
}
//console.log(222,checked) //console.log(222,checked)
if (!checked) this.$message.warning(`所选项目【${JSON.stringify(message)}】不适合当前人员性别`)
if (!checked) this.$message.warning(`所选项目【${JSON.stringify(message)}】不适合当前人员性别或婚姻状态`)
for (let i = 0; i < asbItemChoosed.length; i++) { for (let i = 0; i < asbItemChoosed.length; i++) {
let pojo = { let pojo = {
@ -984,19 +1004,10 @@ export default {
}) })
let group = deepCopy(this.customerOrgGroup); let group = deepCopy(this.customerOrgGroup);
postapi('/api/app/customerorggroupdetail/createcustomerorggroupdetailmany', body
)
// .then(res => {
// if(res.code != -1){
// delete group.id;
// delete group.customerOrgId;
// delete group.isComplete;
// group.price = this.groupPrice
// // console.log('this.customerOrgGroup',this.customerOrgGroup)
// // console.log('group',group)
// return putapi(`/api/app/customer-org-group/${this.customerOrgGroup.id}`, group)
// }
// })
this.checkAsbItemHC()
.then(() => {
return postapi('/api/app/customerorggroupdetail/createcustomerorggroupdetailmany', body)
})
.then(res => { .then(res => {
if (res && res.code != -1) { if (res && res.code != -1) {
console.log("操作成功"); console.log("操作成功");
@ -1053,25 +1064,115 @@ export default {
// / // /
btnPastGroupAsbitem() { btnPastGroupAsbitem() {
let lfind = -1
let lfind = -1, lfind2 = -1
this.dataTransOpts.copyGroupAsbitem.forEach(e => { this.dataTransOpts.copyGroupAsbitem.forEach(e => {
lfind = arrayExistObj(this.customerOrgGroupAsbitems, 'asbitemId', e.asbitemId) lfind = arrayExistObj(this.customerOrgGroupAsbitems, 'asbitemId', e.asbitemId)
if (lfind == -1) { if (lfind == -1) {
lfind2 = arrayExistObj(this.dict.asbItemAll, 'id', e.asbitemId)
if (lfind2 > -1) {
let pojo = Object.assign({}, e, { id: Date.now(), }) let pojo = Object.assign({}, e, { id: Date.now(), })
if (this.customerOrgGroup.forSexId == 'A' && this.customerOrgGroup.maritalStatusId == 'A') {
this.customerOrgGroupAsbitems.push(pojo) this.customerOrgGroupAsbitems.push(pojo)
} else {
let pasteAble = true //
if (this.customerOrgGroup.forSexId != 'A'){
if (!(this.dict.asbItemAll[lfind2].forSexId == 'A' || this.dict.asbItemAll[lfind2].forSexId == 'U')) {
if (this.dict.asbItemAll[lfind2].forSexId != this.customerOrgGroup.forSexId) {
this.$message.warning({showClose:true,message:`${this.dict.asbItemAll[lfind2].displayName} 不适合当前性别`})
pasteAble = false
}
}
}
//
if (!(checked || this.dict.asbItemAll[lfind2].maritalStatusId == 'A' || this.dict.asbItemAll[lfind2].maritalStatusId == 'U')) {
if (this.dict.asbItemAll[lfind2].maritalStatusId != this.customerOrgGroup.maritalStatusId) {
this.$message.warning({showClose:true,message:`${this.dict.asbItemAll[lfind2].displayName} 不适合当前婚姻状态`})
pasteAble = false
}
}
if(pasteAble) this.customerOrgGroupAsbitems.push(pojo)
}
}
} }
}); });
this.dataTransOpts.copyGroupAsbitem = [] this.dataTransOpts.copyGroupAsbitem = []
this.refAsbItemByChoosed() this.refAsbItemByChoosed()
this.$message.success({ showClose: true, message: '操作成功!' }) this.$message.success({ showClose: true, message: '操作成功!' })
},
//
checkAsbItemHC() {
return new Promise((resolve, reject) => {
let asbitemIds = []
//console.log('this.dataTransOpts.tableM.register_check_asbitem',this.dataTransOpts.tableM.register_check_asbitem)
this.customerOrgGroupAsbitems.forEach(e => {
asbitemIds.push(e.asbitemId)
});
let message = ''
if (asbitemIds.length == 0) {
resolve()
} else {
postapi('/api/app/AsbitemMutualExclusion/GetAsbitemIsMutualExclusion', { asbitemIds })
.then(res => {
if (res.code > -1) {
if (res?.data?.message) message = res.data.message
}
})
.finally(() => {
if (message) {
switch (this.hc_warn_mode) {
case '1': ''
this.$confirm(`${message} 是否继续?`, "提示", {
confirmButtonText: "是",
cancelButtonText: " 否 ",
type: "warning",
})
.then(() => {
resolve()
})
.catch((err) => {
reject(message)
// if (err == "cancel") {
// console.log("");
// }
});
break;
case '2':
this.$message.error({ showClose: true, message })
reject(message)
break;
default:
this.$message.warning({ showClose: true, message })
resolve()
break;
} }
} else {
resolve()
}
})
}
})
},
}, },
// //
watch: { watch: {
//
"dataTransOpts.tableS.customer_org_group.id": {
handler(newVal, oldVal) {
if (newVal != oldVal) {
if (!(Array.isArray(this.itemTypeIds) && this.itemTypeIds.length > 0)) {
this.dict.asbItem = []
}
}
}
},
// ID // ID
"dataTransOpts.refresh.customer_org_group_detail.M": { "dataTransOpts.refresh.customer_org_group_detail.M": {
// immediate:true, // immediate:true,

4
src/components/doctorCheck/RegisterCheckEdit.vue

@ -20,13 +20,13 @@
<div> <div>
<span class="query">审核医生</span> <span class="query">审核医生</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.auditorUserId" filterable clearable placeholder="请选择" <el-select v-model="doctorCheck.RegisterCheckEdit.auditorUserId" filterable clearable placeholder="请选择"
style="width: 80px" size="small" disabled>
style="width: 80px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false">
<el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" /> <el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" />
</el-select> </el-select>
</div> </div>
<div> <div>
<span class="query">审核日期</span> <span class="query">审核日期</span>
<el-date-picker v-model="doctorCheck.RegisterCheckEdit.auditTime" type="datetime" style="width: 90px" size="small" disabled/>
<el-date-picker v-model="doctorCheck.RegisterCheckEdit.auditTime" type="datetime" style="width: 90px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false" />
</div> </div>
<div> <div>
<el-select v-model="doctorCheck.RegisterCheckEdit.isAudit" style="width: 60px" size="small" disabled> <el-select v-model="doctorCheck.RegisterCheckEdit.isAudit" style="width: 60px" size="small" disabled>

6
src/components/patientRegister/patientRegisterQuery.vue

@ -194,6 +194,12 @@ export default {
this.patientRegister.query.sex = '' this.patientRegister.query.sex = ''
this.patientRegister.query.phone = '' this.patientRegister.query.phone = ''
this.patientRegister.query.idCardNo = '' this.patientRegister.query.idCardNo = ''
this.patientRegister.query.medicalTypeIds = null
this.patientRegister.query.completeFlags = null
this.patientRegister.query.personnelTypeIds = null
this.patientRegister.query.isRecoverGuide = null
}, },
init(customerOrgId) { init(customerOrgId) {

1
src/store/index.js

@ -213,6 +213,7 @@ export default new Vuex.Store({
patientName: '', //姓名 patientName: '', //姓名
sex: '', //性别 sex: '', //性别
idCardNo: '', //身份证号 idCardNo: '', //身份证号
phone:'', // 手机号
isReportPrint:'', // 报告是否打印 isReportPrint:'', // 报告是否打印
isSeries: 'N', isSeries: 'N',
isSmsComplete: "N", isSmsComplete: "N",

2
src/views/doctorCheck/doctorCheck.vue

@ -835,6 +835,8 @@ export default {
//auditorUserId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", //auditorUserId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
//auditTime: "string" //auditTime: "string"
} }
if(this.doctorCheck.RegisterCheckEdit.auditorUserId) body.auditorUserId = this.doctorCheck.RegisterCheckEdit.auditorUserId
console.log(`/api/app/registercheck/updateauditordoctor`, body) console.log(`/api/app/registercheck/updateauditordoctor`, body)
postapi(`/api/app/registercheck/updateauditordoctor`, body) postapi(`/api/app/registercheck/updateauditordoctor`, body)

Loading…
Cancel
Save