|
|
@ -10,16 +10,20 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: flex;margin-left: 5px;"> |
|
|
<div style="display: flex;margin-left: 5px;"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '职业病')"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '职业病')"> |
|
|
<el-button @click="btnOcc" class="commonbutton" style="width:80px;">职业病</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="btnOcc" class="commonbutton" style="width:60px;">职业病</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '读身份证')"> |
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '读身份证')"> |
|
|
<el-button @click="peopleIcCard" class="commonbutton">读身份证</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="peopleIcCard" class="commonbutton" style="width:70px;">读身份证</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '拍照')"> |
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '拍照')"> |
|
|
<el-button type="primary" class="commonbutton" @click="photoGrah" icon="el-icon-camera">拍照</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="photoGrah" style="width:60px;">拍照</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '网上预约')"> |
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="btnWebBooking">网上预约</el-button> |
|
|
|
|
|
|
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '个人预约')"> |
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="btnWebBooking" style="width:70px;">个人预约</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '同步团检预约')" > |
|
|
|
|
|
<el-button type="primary" class="commonbutton" @click="btnDownOrg" |
|
|
|
|
|
:disabled="(form.customerOrgId == dict.personOrgId) || !form.id">同步团检预约</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -587,7 +591,7 @@ |
|
|
:append-to-body="true"> |
|
|
:append-to-body="true"> |
|
|
<div style="height: 320px;"> |
|
|
<div style="height: 320px;"> |
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
<el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;" |
|
|
filterable popper-class="example" :show-all-levels="false" |
|
|
|
|
|
|
|
|
filterable popper-class="example" :show-all-levels="false" |
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" size="small"> |
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" size="small"> |
|
|
</el-cascader> |
|
|
</el-cascader> |
|
|
</div> |
|
|
</div> |
|
|
@ -856,6 +860,8 @@ export default { |
|
|
poison: [], |
|
|
poison: [], |
|
|
poisonList: [], |
|
|
poisonList: [], |
|
|
|
|
|
|
|
|
|
|
|
thirdInterfaceId:'', // 网上预约用到 |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -1208,7 +1214,7 @@ export default { |
|
|
// } |
|
|
// } |
|
|
} |
|
|
} |
|
|
this.preCustomerOrgId = customerOrgId |
|
|
this.preCustomerOrgId = customerOrgId |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (customerOrgParentId) { |
|
|
if (customerOrgParentId) { |
|
|
if (customerOrgParentId == this.dict.personOrgId) { |
|
|
if (customerOrgParentId == this.dict.personOrgId) { |
|
|
@ -1891,6 +1897,38 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 同步团检人员网上添加项目信息 |
|
|
|
|
|
btnDownOrg() { |
|
|
|
|
|
postapi("/api/app/ThirdInterface/GetListByThirdInterfaceTypeAsync", { thirdInterfaceType: "07" }) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res.code > -1 && res.data && Array.isArray(res.data) && res.data.length > 0) { |
|
|
|
|
|
this.thirdInterfaceId = res.data[0].id |
|
|
|
|
|
return postapi('/api/app/AppointPatientRegister/GetByPatientRegisterId', { thirdInterfaceId:this.thirdInterfaceId, appointPatientRegisterId:'1',patientRegisterId: this.form.id }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res && res.code > -1) { |
|
|
|
|
|
return postapi('/api/app/AppointPatientRegister/GetAppointRegisterAsbitemListById', { |
|
|
|
|
|
thirdInterFaceId:this.thirdInterfaceId, |
|
|
|
|
|
appointPatientRegisterId: res.data.appointPatientRegisterId |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res && res.code > -1) { |
|
|
|
|
|
res.data.forEach(e => { |
|
|
|
|
|
e.discount = e.standardPrice == 0 ? 100 : Math.floor(e.chargePrice * 10000 / e.standardPrice) / 100 |
|
|
|
|
|
if (!e.isBelongGroupPackage) { |
|
|
|
|
|
e.isBelongGroupPackage = e.isInMedicalPackage |
|
|
|
|
|
} |
|
|
|
|
|
// e.standTotal = e.amount * e.standardPrice |
|
|
|
|
|
e.total = e.amount * e.chargePrice |
|
|
|
|
|
}); |
|
|
|
|
|
this.dataTransOpts.tableM.register_check_asbitem = deepCopy(res.data) |
|
|
|
|
|
this.$message.success({ showClose: true, message: '操作成功!' }) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
//拍照(已废弃) |
|
|
//拍照(已废弃) |
|
|
// openCamera() { |
|
|
// openCamera() { |
|
|
// if (!this.form.id) { |
|
|
// if (!this.form.id) { |
|
|
@ -2429,7 +2467,7 @@ export default { |
|
|
let appoint_patient_register = this.dataTransOpts.tableS.appoint_patient_register |
|
|
let appoint_patient_register = this.dataTransOpts.tableS.appoint_patient_register |
|
|
if (!appoint_patient_register.appointPatientRegisterId) return |
|
|
if (!appoint_patient_register.appointPatientRegisterId) return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 新增 |
|
|
// 新增 |
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
this.dataTransOpts.tableS.patient_register.id = '' |
|
|
@ -2460,8 +2498,10 @@ export default { |
|
|
// "weight": 0 |
|
|
// "weight": 0 |
|
|
delete appoint_patient_register.medicalCenterId |
|
|
delete appoint_patient_register.medicalCenterId |
|
|
Object.assign(this.form, appoint_patient_register, |
|
|
Object.assign(this.form, appoint_patient_register, |
|
|
{ patientName: appoint_patient_register.personName, |
|
|
|
|
|
completeFlag:'1' |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
patientName: appoint_patient_register.personName, |
|
|
|
|
|
completeFlag: '1', |
|
|
|
|
|
customerOrgId: ["00000000-0000-0000-0000-000000000001"], //单位编号 默认个人 |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
// 明细必填项 |
|
|
// 明细必填项 |
|
|
|