|
|
@ -205,6 +205,24 @@ |
|
|
:editTimes="editTimes" :refFuncSetData="refFuncSetData" /> |
|
|
:editTimes="editTimes" :refFuncSetData="refFuncSetData" /> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 修改信息 --> |
|
|
|
|
|
<el-dialog :title="`修改信息--${upBaseInfo.label}`" :visible.sync="upBaseInfo.visble" width="400" :show-close="false" |
|
|
|
|
|
:append-to-body="true" :close-on-click-modal="false"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<div style="display: flex;margin-bottom: 20px;"> |
|
|
|
|
|
<span style="padding: 5px 0 0 10px; width:100px;">{{ upBaseInfo.label }}</span> |
|
|
|
|
|
<el-input v-model="upBaseInfo.value" size="small"></el-input> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="display: flex;justify-content: space-between;"> |
|
|
|
|
|
<div></div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-button class="commonbutton" @click="btnUpBaseInfo">提交</el-button> |
|
|
|
|
|
<el-button class="commonbutton" @click="close_dialogWin_upBaseInfo">关闭</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 拍照 --> |
|
|
<!-- 拍照 --> |
|
|
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false" |
|
|
<el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false" |
|
|
:append-to-body="true" :close-on-click-modal="false"> |
|
|
:append-to-body="true" :close-on-click-modal="false"> |
|
|
@ -375,6 +393,14 @@ export default { |
|
|
maxResultCount: 100, |
|
|
maxResultCount: 100, |
|
|
}, |
|
|
}, |
|
|
loadOptsInit: {}, |
|
|
loadOptsInit: {}, |
|
|
|
|
|
|
|
|
|
|
|
upBaseInfo: { |
|
|
|
|
|
visble: false, |
|
|
|
|
|
label: "姓名", |
|
|
|
|
|
value: "", |
|
|
|
|
|
colName: "patientName", |
|
|
|
|
|
patientRegisterId: "" |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -978,6 +1004,48 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
close_dialogWin_upBaseInfo(){ |
|
|
|
|
|
this.upBaseInfo.visble = false |
|
|
|
|
|
this.close_dialogWin_PatientRegisterEdit() |
|
|
|
|
|
}, |
|
|
|
|
|
btnUpBaseInfo() { |
|
|
|
|
|
let body = { |
|
|
|
|
|
patientRegisterId: this.upBaseInfo.patientRegisterId, |
|
|
|
|
|
// "patientName": "string", |
|
|
|
|
|
// "mobileTelephone": "string", |
|
|
|
|
|
// "idNo": "string" |
|
|
|
|
|
} |
|
|
|
|
|
body[this.upBaseInfo.colName] = this.upBaseInfo.value |
|
|
|
|
|
|
|
|
|
|
|
postapi('/api/app/PatientRegister/UpdatePatientRegisterBaseInfoByPatientRegisterId',body).then(res => { |
|
|
|
|
|
if(res.code > -1){ |
|
|
|
|
|
this.close_dialogWin_upBaseInfo() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 修改基本信息 |
|
|
|
|
|
fnUpBaseInfo(row, baseInfoType) { |
|
|
|
|
|
this.dataTransOpts.tableS.patient_register.id = row.id |
|
|
|
|
|
this.upBaseInfo.visble = true |
|
|
|
|
|
this.upBaseInfo.patientRegisterId = row.id |
|
|
|
|
|
this.upBaseInfo.colName = baseInfoType |
|
|
|
|
|
switch (baseInfoType) { |
|
|
|
|
|
case "idNo": |
|
|
|
|
|
this.upBaseInfo.label = "新身份证号" |
|
|
|
|
|
break; |
|
|
|
|
|
case "mobileTelephone": |
|
|
|
|
|
this.upBaseInfo.label = "新手机号" |
|
|
|
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
this.upBaseInfo.label = "新姓名" |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
this.upBaseInfo.value = row[baseInfoType] |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//右击菜单 |
|
|
//右击菜单 |
|
|
onCellRightClick(row, column) { |
|
|
onCellRightClick(row, column) { |
|
|
this.rClickRow = { ...row }; //右击的行记录 |
|
|
this.rClickRow = { ...row }; //右击的行记录 |
|
|
@ -990,6 +1058,27 @@ export default { |
|
|
let row = { ...this.rClickRow }; |
|
|
let row = { ...this.rClickRow }; |
|
|
let items = [] //菜单项 |
|
|
let items = [] //菜单项 |
|
|
|
|
|
|
|
|
|
|
|
if (checkPagePriv(this.pagePriv.privs, '修改姓名') && row.completeFlag != '0') |
|
|
|
|
|
items.push({ |
|
|
|
|
|
label: "修改姓名", |
|
|
|
|
|
onClick: () => { |
|
|
|
|
|
this.fnUpBaseInfo(row, 'patientName'); |
|
|
|
|
|
}, |
|
|
|
|
|
}) |
|
|
|
|
|
if (checkPagePriv(this.pagePriv.privs, '修改手机号') && row.completeFlag != '0') |
|
|
|
|
|
items.push({ |
|
|
|
|
|
label: "修改手机号", |
|
|
|
|
|
onClick: () => { |
|
|
|
|
|
this.fnUpBaseInfo(row, 'mobileTelephone'); |
|
|
|
|
|
}, |
|
|
|
|
|
}) |
|
|
|
|
|
if (checkPagePriv(this.pagePriv.privs, '修改身份证号') && row.completeFlag != '0') |
|
|
|
|
|
items.push({ |
|
|
|
|
|
label: "修改身份证号", |
|
|
|
|
|
onClick: () => { |
|
|
|
|
|
this.fnUpBaseInfo(row, 'idNo'); |
|
|
|
|
|
}, |
|
|
|
|
|
}) |
|
|
if (checkPagePriv(this.pagePriv.privs, '发送检验申请') && row.completeFlag != '0') |
|
|
if (checkPagePriv(this.pagePriv.privs, '发送检验申请') && row.completeFlag != '0') |
|
|
items.push({ |
|
|
items.push({ |
|
|
label: "发送检验申请", |
|
|
label: "发送检验申请", |
|
|
|