|
|
|
@ -3,7 +3,7 @@ |
|
|
|
<div style="display: flex"> |
|
|
|
<div :style="'width:' + (window.pageWidth - 110 - 20) + 'px;'"> |
|
|
|
<!--查询条件--> |
|
|
|
<div style="position: absolute;top:28px;left:180px;display: flex; flex-wrap: wrap; height:32px;border: 1px solid #DCDFE6;border-radius:5px;background-color: #F5F7FA;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'查找')" style="position: absolute;top:28px;left:180px;display: flex; flex-wrap: wrap; height:32px;border: 1px solid #DCDFE6;border-radius:5px;background-color: #F5F7FA;"> |
|
|
|
<div class="query"> |
|
|
|
<span class="querySpan">查找: 条码号</span> |
|
|
|
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small" |
|
|
|
@ -32,7 +32,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 - 510) / 4.8) + 'px;'" filterable="" |
|
|
|
:style="'width:' + Math.floor((window.pageWidth - 490) / 4.8) + 'px;'" filterable="" |
|
|
|
:props="{ checkStrictly: true, expandTrigger: 'hover', ...customerOrg.treeprops, }" |
|
|
|
:show-all-levels="false" :disabled="(form.id || form.registerManType == 'customer') ? true:false" size="small"> |
|
|
|
</el-cascader> |
|
|
|
@ -361,47 +361,47 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px;"> |
|
|
|
<div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'拍照')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="photoGrah" icon="el-icon-camera">拍照</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'读身份证')" class="btn"> |
|
|
|
<el-button @click="peopleIcCard" class="btnClass">读身份证</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'复制新增')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="rdCopy">复制新增</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'保存')" class="btn"> |
|
|
|
<el-button type="success" class="btnClass" @click="btnSubmit('form', true)">保存</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'检验单申请')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="lisRequest">检验单申请</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'条码打印')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="lisPrint('0002', false)">条码打印</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'条码补打')" class="btn"> |
|
|
|
<el-button type="danger" class="btnClass" @click="reLisRequest">条码补打</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'指引单打印')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="guidePrint('0001', false)">指引单打印</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'指引单预览')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="guidePrint('0001', true)">指引单预览</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'手动合并项目')" class="btn"> |
|
|
|
<el-button type="danger" class="btnClass" @click="reMergeAsbitem">手动合并项目</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="margin-top: 30px;"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'全个人支付')" style="margin-top: 30px;"> |
|
|
|
<el-button type="primary" class="btnClass" @click="prAsbOpraOpts.payTypeFlag = '0'">全个人支付</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'全单位支付')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="prAsbOpraOpts.payTypeFlag = '1'">全单位支付</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'全赠送')" class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="prAsbOpraOpts.payTypeFlag = '2'">全赠送</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs,'收费')" class="btn"> |
|
|
|
<el-button type="success" class="btnClass" @click="toCharge(form.patientRegisterNo)">收费</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -639,7 +639,7 @@ import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import mm from "../../utlis/mm"; |
|
|
|
import { objCopy, setNull, dddw,checkIDCode, parseID, birthdayToAge,ageToBirthday, deepCopy, arrayFilter, arrayReduce,parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import { getPagePriv,checkPagePriv, objCopy, setNull, dddw,checkIDCode, parseID, birthdayToAge,ageToBirthday, deepCopy, arrayFilter, arrayReduce,parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import Camera from "./Camera.vue"; |
|
|
|
import PatientRegisterItem from "./PatientRegisterItem.vue"; |
|
|
|
import LisRequest from "./LisRequest.vue"; |
|
|
|
@ -657,6 +657,11 @@ export default { |
|
|
|
props: ['patientRegisterId','editTimes','refreshRegister'], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pagePriv:{ |
|
|
|
routeUrlorPageName:'PatientRegisterEdit', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs:[] // 页面权限 |
|
|
|
}, |
|
|
|
|
|
|
|
apiurl: mm.apiurl, |
|
|
|
brushTimes: 0, |
|
|
|
|
|
|
|
@ -776,6 +781,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
//获取用户当前页面的权限 |
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
if(userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
|
|
|
|
this.formInit = deepCopy(this.form) |
|
|
|
// 初始化字典数据 |
|
|
|
this.dictInit() |
|
|
|
@ -825,7 +834,7 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapActions(['getPatientRegisterAbs']), |
|
|
|
dddw,moment, |
|
|
|
dddw,moment,checkPagePriv, |
|
|
|
|
|
|
|
//数据初始化 |
|
|
|
dictInit() { |
|
|
|
@ -1934,7 +1943,7 @@ export default { |
|
|
|
watch: { |
|
|
|
//人员ID未切换换时 也可以强制刷新数据 |
|
|
|
"dataTransOpts.refresh.patient_register.S":{ |
|
|
|
immediate:true, |
|
|
|
// immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 人员登记 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
|
this.initFormData(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
|