Browse Source

dj ss

master
pengjun 2 years ago
parent
commit
ed7fd67e17
  1. 47
      src/components/patientRegister/PatientRegisterEdit.vue
  2. 27
      src/components/patientRegister/PatientRegisterItem.vue
  3. 5
      src/components/patientRegister/PatientRegisterList.vue

47
src/components/patientRegister/PatientRegisterEdit.vue

@ -790,29 +790,37 @@ export default {
computed: {
...mapState(["window","dataTransOpts","dict", "patientRegister", "customerOrg", "projPriv"]),
displayPackage(){
//()
isComplete(){
return this.form.completeFlag == '3' ? true:false;
},
//
displayPackage(){
let isPersonOrgId = true
if(!this.form.customerOrgId) return false
if(typeof this.form.customerOrgId == 'string'){
if(this.form.customerOrgId == this.dict.personOrgId) isPersonOrgId = false
}else{
if(this.form.customerOrgId[this.form.customerOrgId.length - 1] == this.dict.personOrgId) isPersonOrgId = false
}
return isPersonOrgId
if(!this.isComplete){
if(!this.form.customerOrgId) return false
if(typeof this.form.customerOrgId == 'string'){
if(this.form.customerOrgId == this.dict.personOrgId) isPersonOrgId = false
}else{
if(this.form.customerOrgId[this.form.customerOrgId.length - 1] == this.dict.personOrgId) isPersonOrgId = false
}
}
return isPersonOrgId
},
//
displayGroup(){
let isPersonOrgId = true
if(!this.form.customerOrgId) return isPersonOrgId
if(typeof this.form.customerOrgId == 'string'){
if(this.form.customerOrgId != this.dict.personOrgId) isPersonOrgId = false
}else{
if(this.form.customerOrgId[this.form.customerOrgId.length - 1] != this.dict.personOrgId) isPersonOrgId = false
if(!this.isComplete){
if(!this.form.customerOrgId) return isPersonOrgId
if(typeof this.form.customerOrgId == 'string'){
if(this.form.customerOrgId != this.dict.personOrgId) isPersonOrgId = false
}else{
if(this.form.customerOrgId[this.form.customerOrgId.length - 1] != this.dict.personOrgId) isPersonOrgId = false
}
}
return isPersonOrgId
return isPersonOrgId
},
},
methods: {
@ -935,9 +943,10 @@ export default {
this.peisid = window.sessionStorage.getItem('peisid');
if (!patientRegisterId) {
if (!patientRegisterId) { //
objCopy(this.formInit, this.form);
this.form.organizationUnitId = this.peisid;
this.form.organizationUnitId = this.peisid; //
this.form.customerOrgId = this.patientRegister.query.customerOrgId //
}else{
// let res = await getapi(`/api/app/patient-register/${patientRegisterId}`)
let res = await postapi(`/api/app/patientregister/getinfoorpatient?PatientRegisterId=${patientRegisterId}`)

27
src/components/patientRegister/PatientRegisterItem.vue

@ -5,7 +5,7 @@
<span>项目类别</span>
<el-cascader :options="dict.itemTypeTree" v-model="itemTypeIds" style="margin-left: 3px;width:160px;"
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" :show-all-levels="false"
clearable filterable @change="changeItemType" size="small">
clearable filterable @change="changeItemType" size="small" :disabled="isComplete">
</el-cascader>
</div>
<div class="mainareaBox">
@ -35,19 +35,19 @@
<div style="width:100px;margin-top: 70px;">
<div class="btnList">
<el-button type="primary" @click="addAbs(asbItemChoosed,'choosed')" style="width:90px;">添加 <i class="el-icon-arrow-right"></i>
<el-button type="primary" @click="addAbs(asbItemChoosed,'choosed')" style="width:90px;" :disabled="isComplete">添加 <i class="el-icon-arrow-right"></i>
</el-button>
</div>
<div class="btnList">
<el-button type="success" @click="addAbs(asbItemChoosed,'all')" style="width:90px;">全添加 <i class="el-icon-d-arrow-right"></i>
<el-button type="success" @click="addAbs(asbItemChoosed,'all')" style="width:90px;" :disabled="isComplete">全添加 <i class="el-icon-d-arrow-right"></i>
</el-button>
</div>
<div class="btnList">
<el-button type="warning" @click="delAbs(patientRegisterAbsChoosed,'choosed')" style="width:90px;"><i class="el-icon-arrow-left"> 移除</i>
<el-button type="warning" @click="delAbs(patientRegisterAbsChoosed,'choosed')" style="width:90px;" :disabled="isComplete"><i class="el-icon-arrow-left"> 移除</i>
</el-button>
</div>
<div class="btnList">
<el-button type="danger" @click="delAbs(patientRegisterAbsChoosed,'all')" style="width:90px;"><i class="el-icon-d-arrow-left"> 全移除</i>
<el-button type="danger" @click="delAbs(patientRegisterAbsChoosed,'all')" style="width:90px;" :disabled="isComplete"><i class="el-icon-d-arrow-left"> 全移除</i>
</el-button>
</div>
<!-- 不显示保存当已选组合有修改时失去焦点自动保存
@ -72,11 +72,11 @@
<span>总金额 </span>
</el-tooltip>
<el-input style="width:70px;" v-model="total" size="small" type="number" @input="changeTotal" ref="total"
@focus="totalFoucs = true" @blur="totalFoucs = false" />
@focus="totalFoucs = true" @blur="totalFoucs = false"/>
</div>
<div class="disTotal">
<el-select v-model="asbItemId" placeholder="快速选择组合项目" size="small"
filterable :filter-method="filterMethod"
filterable :filter-method="filterMethod" :disabled="isComplete"
clearable @clear="quickAsb = deepCopy(asbItemQuick)"
@change="quickChoosedAsb" default-first-option ref="quickAsbOCX"
style="width:150px;text-align: left;padding-right: 15px;">
@ -200,6 +200,11 @@ export default {
},
computed: {
...mapState(["window", "dataTransOpts", "dict", "customerOrg", "patientRegister", "personnelUnit"]),
//
isComplete(){
return this.prForm.completeFlag == '3' ? true:false;
},
},
created(){
@ -653,6 +658,10 @@ export default {
//
removeAbs(row) {
if(this.isComplete){
this.$message.info('人员已总检,不可 添加/删除 组合项目')
return
}
this.delAbs([row]);
},
@ -870,6 +879,10 @@ export default {
//
dbClickChoosedAsb(row) {
if(this.isComplete){
this.$message.info('人员已总检,不可 添加/删除 组合项目')
return
}
this.addAbs([row]);
},

5
src/components/patientRegister/PatientRegisterList.vue

@ -818,6 +818,7 @@ export default {
if(lfind > -1){
//
this.dataTransOpts.tableS.patient_register.id = this.patientRegister.prList[lfind].id
this.getCustomerOrgGroup(this.patientRegister.prList[lfind].customerOrgParentId);
setTimeout(() => {
this.dataTransOpts.refresh.register_asbitem.M++
}, 20);
@ -861,8 +862,8 @@ export default {
this.dialogVisible = true;
setTimeout(() => {
//
this.dataTransOpts.refresh.patient_register.S++ //
this.dataTransOpts.refresh.register_asbitem.M++ //
this.dataTransOpts.refresh.patient_register.S++ //
this.dataTransOpts.refresh.register_asbitem.M++ //
}, 20);
},

Loading…
Cancel
Save