|
|
|
@ -8,7 +8,7 @@ |
|
|
|
<el-col :span="5"> |
|
|
|
<el-form-item label="单位名称" prop="customerOrgId"> |
|
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" |
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" |
|
|
|
:show-all-levels="false" disabled size="small"> |
|
|
|
</el-cascader> |
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="性别" prop="sexId" label-width="50px"> |
|
|
|
<el-select v-model="form.sexId" placeholder="请选择" size="small" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 650) / 8) + 'px;'"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'"> |
|
|
|
<el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
@ -55,7 +55,7 @@ |
|
|
|
<el-col :span="5"> |
|
|
|
<el-form-item label="出生日期" prop="birthDate"> |
|
|
|
<el-date-picker v-model="form.birthDate" type="date" value-format="yyyy-MM-dd" placeholder="出生日期" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'" @change="changeBirthDate" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" @change="changeBirthDate" |
|
|
|
prefix-icon="" size="small"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -67,7 +67,7 @@ |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="婚姻" prop="maritalStatusId" label-width="50px"> |
|
|
|
<el-select v-model="form.maritalStatusId" placeholder="请选择" size="small" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 650) / 8) + 'px;'"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'"> |
|
|
|
<el-option v-for="item in dict.maritalStatus" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id"> |
|
|
|
</el-option> |
|
|
|
@ -100,7 +100,7 @@ |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="籍贯" prop="birthPlaceId" label-width="50px"> |
|
|
|
<el-select v-model="form.birthPlaceId" placeholder="请选择" filterable clearable |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 650) / 8) + 'px;'" size="small"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in dict.birthPlace" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
@ -117,7 +117,7 @@ |
|
|
|
<el-col :span="5"> |
|
|
|
<el-form-item label="人员类别" prop="personnelTypeId"> |
|
|
|
<el-select v-model="form.personnelTypeId" placeholder="请选择" filterable clearable |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'" size="small"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in dict.personnelType" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
@ -135,7 +135,7 @@ |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="民族" prop="nationId" label-width="50px"> |
|
|
|
<el-select v-model="form.nationId" placeholder="请选择" filterable clearable |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 650) / 8) + 'px;'" size="small"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in dict.nation" :key="item.nationId" :label="item.displayName" |
|
|
|
:value="item.nationId" /> |
|
|
|
</el-select> |
|
|
|
@ -147,7 +147,7 @@ |
|
|
|
<el-col :span="5"> |
|
|
|
<el-form-item label="体检类别" prop="medicalTypeId"> |
|
|
|
<el-select v-model="form.medicalTypeId" placeholder="请选择" filterable clearable |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'" size="small"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in dict.medicalType" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
@ -171,7 +171,7 @@ |
|
|
|
<el-col :span="3"> |
|
|
|
<el-form-item label="职称" prop="jobTitle" label-width="50px"> |
|
|
|
<el-input v-model="form.jobTitle" size="small" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 650) / 8) + 'px;'" /> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3"> |
|
|
|
@ -185,7 +185,7 @@ |
|
|
|
<el-form-item label="体检中心" prop="organizationUnitId"> |
|
|
|
<el-select v-model="form.organizationUnitId" placeholder="请选择" filterable |
|
|
|
:disabled="peisid ? true : false" size="small" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'"> |
|
|
|
<el-option v-for="item in dict.organization" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id"> |
|
|
|
</el-option> |
|
|
|
@ -196,7 +196,7 @@ |
|
|
|
<el-form-item label="单位体检次数" prop="isVip" label-width="110px"> |
|
|
|
<el-select v-model="form.customerOrgRegisterId" placeholder="次数" size="small" |
|
|
|
:disabled="form.customerOrgId == dict.personOrgId" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 674) / 4.8) + 'px;'" @change="changeMedicalTimes" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 654) / 4.8) + 'px;'" @change="changeMedicalTimes" |
|
|
|
value-key="id"> |
|
|
|
<el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes" |
|
|
|
:value="item.id" /> |
|
|
|
@ -253,7 +253,7 @@ |
|
|
|
<el-form-item label="分组" prop="customerOrgGroupId"> |
|
|
|
<el-select v-model="form.customerOrgGroupId" placeholder="请选择" filterable clearable |
|
|
|
@change="changeCustomerOrgGroupId" :disabled="form.customerOrgId === dict.personOrgId ? true : false" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'" size="small"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in patientRegister.customerOrgGroup" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
@ -263,7 +263,7 @@ |
|
|
|
<el-form-item label="套餐" prop="medicalPackageId"> |
|
|
|
<el-select v-model="form.medicalPackageId" placeholder="请选择" filterable clearable |
|
|
|
@change="changeMedicalPackageId" :disabled="form.customerOrgId === dict.personOrgId ? false : true" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 530) / 4.8) + 'px;'" size="small"> |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small"> |
|
|
|
<el-option v-for="item in dict.medicalPackage" :key="item.id" :label="item.displayName" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
@ -739,13 +739,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
|
if (!this.form.id) { |
|
|
|
this.form.organizationUnitId = this.peisid; |
|
|
|
} |
|
|
|
objCopy(this.formInitData, this.form); |
|
|
|
this.initBox(); |
|
|
|
this.getPeoplePhoto(this.patientRegister.photo) |
|
|
|
this.initFormData() |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -762,6 +758,48 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapActions(['getPatientRegisterAbs']), |
|
|
|
|
|
|
|
//初始form表单数据 |
|
|
|
initFormData(){ |
|
|
|
objCopy(this.formInitData, this.form); |
|
|
|
this.peisid = window.sessionStorage.getItem('peisid'); |
|
|
|
if (!this.form.id) { |
|
|
|
this.form.organizationUnitId = this.peisid; |
|
|
|
} |
|
|
|
this.initBox(); |
|
|
|
this.getPeoplePhoto(this.patientRegister.photo) |
|
|
|
|
|
|
|
|
|
|
|
//获取顶级单位ID |
|
|
|
let customerOrgParentId = '' |
|
|
|
if (this.form.customerOrgId == this.dict.personOrgId) { |
|
|
|
customerOrgParentId = this.dict.personOrgId; |
|
|
|
this.form.customerOrgRegisterId = null |
|
|
|
this.patientRegister.customerOrgGroup = [] |
|
|
|
}else{ |
|
|
|
getapi(`/api/app/customer-org/parent/${this.form.customerOrgId} |
|
|
|
`).then(res => { |
|
|
|
if(res.code != - 1){ |
|
|
|
customerOrgParentId = res.data //获取顶级单位ID |
|
|
|
return getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${res.data}`) //获取单位体检次数信息 |
|
|
|
} |
|
|
|
}).then(res =>{ |
|
|
|
if(res.code != - 1){ |
|
|
|
this.customerOrgRegisterList = arrayFilter(res.data, 'isComplete', 'N') //不显示已完成的体检次数 |
|
|
|
if(this.customerOrgRegisterList.length > 0){ |
|
|
|
this.form.customerOrgRegisterId = this.customerOrgRegisterList[this.customerOrgRegisterList.length - 1].id |
|
|
|
return getapi(`/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${this.form.customerOrgRegisterId}`) //获取单位分组 |
|
|
|
} |
|
|
|
} |
|
|
|
}).then(res =>{ |
|
|
|
if(res.code != -1){ |
|
|
|
this.patientRegister.customerOrgGroup = res.data.items; |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//快速查找个人数据 |
|
|
|
quickQuery(type) { |
|
|
|
let url1 = '/api/app/patientregister/getpatientregisterorpatient' |
|
|
|
@ -1498,11 +1536,7 @@ export default { |
|
|
|
"editTimes"(newVal, oldVal) { |
|
|
|
//console.log('editTimes newVal:',newVal,' oldVal:',oldVal) |
|
|
|
if (newVal != oldVal) { |
|
|
|
console.log('this.editTimes', this.editTimes,this.formInitData) |
|
|
|
objCopy(this.formInitData, this.form); |
|
|
|
this.initBox(); |
|
|
|
this.getPeoplePhoto(this.patientRegister.photo) |
|
|
|
//console.log('this.form',this.form) |
|
|
|
this.initFormData() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|