|
|
|
@ -23,20 +23,20 @@ |
|
|
|
:row-class-name="handleRowClassName" |
|
|
|
> |
|
|
|
<!-- 取消勾选,改为选中 |
|
|
|
<el-table-column type="selection" width="40"/> |
|
|
|
|
|
|
|
<el-table-column type="index" label="序号" width="50" align="center" /> |
|
|
|
<el-table-column type="selection" width="40" show-overflow-tooltip/> |
|
|
|
--> |
|
|
|
<el-table-column |
|
|
|
v-for="(item, index) in headerCols" |
|
|
|
show-overflow-tooltip |
|
|
|
:key="`col_${index}`" |
|
|
|
:label="item.label" |
|
|
|
v-for="(item, index) in headerCols" |
|
|
|
:key="`col_${index}`" |
|
|
|
:min-width="dropCol[index].minWidth" |
|
|
|
:align="dropCol[index].align" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="dropCol[index].prop == 'completeFlag'" > |
|
|
|
:label="item.label" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="dropCol[index].prop == 'sn'" > |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</div> |
|
|
|
<div v-else-if="dropCol[index].prop == 'completeFlag'" > |
|
|
|
{{ dddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }} |
|
|
|
</div> |
|
|
|
<div v-else-if="dropCol[index].prop == 'guidePrintTimes'" > |
|
|
|
@ -85,7 +85,7 @@ |
|
|
|
<div v-else> |
|
|
|
{{ scope.row[dropCol[index].prop] }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- |
|
|
|
"sexHormoneTermId": "00000000-0000-0000-0000-000000000000", |
|
|
|
@ -133,7 +133,7 @@ |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="danger" class="btnClass" @click="del" |
|
|
|
<el-button type="danger" class="btnClass" @click="btnDel" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
@ -157,7 +157,7 @@ |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div class="listBtn"> |
|
|
|
<el-button type="" class="btnClass" @click="asbBatch" |
|
|
|
<el-button type="" class="btnClass" @click="btnAsbBatch" |
|
|
|
>批量调整项目</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
@ -309,13 +309,11 @@ |
|
|
|
<el-select |
|
|
|
v-model="asbitemBatch.asbItemId" |
|
|
|
placeholder="快速选择组合项目" |
|
|
|
size="small" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
remote |
|
|
|
:remote-method="remoteMethod" |
|
|
|
size="small" highlight-current-row |
|
|
|
filterable :filter-method="filterMethod" |
|
|
|
clearable @clear="quickAsb = deepCopy(dict.asbItemQuick)" |
|
|
|
@change="quickChoosedAsb" |
|
|
|
default-first-option |
|
|
|
default-first-option ref="quickAsbOCX" |
|
|
|
style="width: 150px; text-align: left; padding-right: 15px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
@ -334,7 +332,7 @@ |
|
|
|
width="100%" |
|
|
|
show-summary |
|
|
|
@row-dblclick="removeAbs" |
|
|
|
size="small" |
|
|
|
size="small" highlight-current-row |
|
|
|
@row-click="rowClickaAbitemCurr" |
|
|
|
border |
|
|
|
> |
|
|
|
@ -513,6 +511,7 @@ export default { |
|
|
|
|
|
|
|
//拖动列 |
|
|
|
dropCol: [ |
|
|
|
{ label: "序号",prop: "sn",minWidth: 40,align:"center"}, |
|
|
|
{ label: "体检进度",prop: "completeFlag",minWidth: 80,align:"center"}, |
|
|
|
{ label: "打印", prop: "guidePrintTimes", minWidth: 50,align:"center" }, |
|
|
|
{ label: "锁住", prop: "isLock", minWidth: 50, align:"center"}, |
|
|
|
@ -572,7 +571,7 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]), |
|
|
|
moment,dddw, |
|
|
|
moment,dddw,deepCopy, |
|
|
|
|
|
|
|
handleRowClassName({ row, rowIndex }) { |
|
|
|
// highLightBg 为 'selected'的高亮 |
|
|
|
@ -703,9 +702,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf |
|
|
|
getCustomerOrgGroup(customerOrgld) { |
|
|
|
getCustomerOrgGroup(customerOrgId) { |
|
|
|
getapi( |
|
|
|
`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}` |
|
|
|
`/api/app/customer-org-group/in-customer-org-id/${customerOrgId}` |
|
|
|
).then((res) => { |
|
|
|
console.log("getCustomerOrgGroup", res.data); |
|
|
|
if (res.code == 1) { |
|
|
|
@ -714,6 +713,14 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//设置新增/编辑的form数据 |
|
|
|
setForm(formData){ |
|
|
|
this.patientRegister.patientRegisterRd = deepCopy(formData) |
|
|
|
if(!this.patientRegister.patientRegisterRd.id){ |
|
|
|
this.patientRegister.patientRegisterRd.customerOrgId = this.patientRegister.query.customerOrgId |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//点击体检次数行 |
|
|
|
rowClick(row) { |
|
|
|
//console.log("this.patientRegister.prList",this.window,this.patientRegister.prList); |
|
|
|
@ -768,11 +775,8 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
if(lfind > -1 && this.patientRegister.patientRegisterRd.id != this.patientRegister.prList[lfind].id){ |
|
|
|
this.patientRegister.patientRegisterRd = this.patientRegister.prList[lfind]; |
|
|
|
this.patientRegister.photo = this.patientRegister.prList[lfind].photo || "/pic/Photo.jpg"; |
|
|
|
this.patientRegister.patientRegisterRd.customerOrgId = this.patientRegister.query.customerOrgId; |
|
|
|
|
|
|
|
this.patientRegister.query.customerOrgParentId = this.patientRegister.prList[lfind].customerOrgParentId; |
|
|
|
this.setForm(this.patientRegister.prList[lfind]) |
|
|
|
// this.patientRegister.query.customerOrgParentId = this.patientRegister.prList[lfind].customerOrgParentId; |
|
|
|
this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作 |
|
|
|
this.patientRegister.medicalPackageChange = 0; //控制体检列表记录切换时,0 无需触发更换套餐操作 |
|
|
|
this.getCustomerOrgGroup(this.patientRegister.prList[lfind].customerOrgParentId); |
|
|
|
@ -795,10 +799,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.patientRegister.patientRegisterRd = deepCopy(this.patientRegister.patientRegisterRdInit) |
|
|
|
this.patientRegister.patientRegisterRd.customerOrgId = this.patientRegister.query.customerOrgId; |
|
|
|
this.patientRegister.photo = "/pic/Photo.jpg"; |
|
|
|
|
|
|
|
this.setForm(this.patientRegister.patientRegisterRdInit) |
|
|
|
this.patientRegister.patientRegisterAbs = []; |
|
|
|
this.dialogVisible = true; |
|
|
|
this.editTimes++; //触发表单窗口,数据更新 |
|
|
|
@ -825,19 +826,30 @@ export default { |
|
|
|
|
|
|
|
//删除(可批量删除) |
|
|
|
// /api/app/patient-register/many?PatientRegisterIds=3a0c2cac-f44c-f407-9504-c1fc5e80a159&PatientRegisterIds=3a0c2cb3-d10c-ed70-db6a-b835e75ce641 |
|
|
|
del() { |
|
|
|
btnDel() { |
|
|
|
|
|
|
|
//选中(取消勾选)start ------------------------- |
|
|
|
this.multipleSelection = [] |
|
|
|
this.patientRegister.prList.forEach(e =>{ |
|
|
|
if(e.choosed){ |
|
|
|
this.multipleSelection.push(deepCopy(e)) |
|
|
|
} |
|
|
|
}) |
|
|
|
//选中(取消勾选) end ------------------------- |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.warning("请先勾选要操作的记录"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
let patientRegisterIds = []; |
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
patientRegisterIds.push(this.multipleSelection[i]["id"]); |
|
|
|
} |
|
|
|
|
|
|
|
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
confirmButtonText: "是", |
|
|
|
cancelButtonText: "否", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
@ -847,45 +859,20 @@ export default { |
|
|
|
}); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.patientRegister.patientRegisterId = ""; |
|
|
|
if(res.code != -1){ |
|
|
|
this.$message.success("操作成功"); |
|
|
|
arrayReduce(this.patientRegister.prList,this.multipleSelection,'id=id') |
|
|
|
this.setForm(this.patientRegister.patientRegisterRdInit) |
|
|
|
this.getPatientRegisterAbs(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
this.$message.info("已取消删除"); |
|
|
|
this.$message.info("已取消操作"); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//单个删除方式 |
|
|
|
delBak() { |
|
|
|
if (!this.patientRegister.patientRegisterId) { |
|
|
|
this.$message.warning("请选择要操作的记录"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
//console.log('${this.patientRegister.patientRegisterId}',this.patientRegister.patientRegisterId) |
|
|
|
return deletapi( |
|
|
|
`/api/app/patient-register/${this.patientRegister.patientRegisterId}` |
|
|
|
); |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.patientRegister.patientRegisterId = ""; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ type: "info", message: "已取消删除" }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询 |
|
|
|
async Query() { |
|
|
|
@ -1047,7 +1034,7 @@ export default { |
|
|
|
//取消勾选,换成选择的方式 end |
|
|
|
|
|
|
|
if (this.multipleSelection.length < 1) { |
|
|
|
this.$message.info("请勾选要操作的人员!"); |
|
|
|
this.$message.info("请选择要操作的记录!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1091,8 +1078,8 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//快速查询项目 |
|
|
|
remoteMethod(keyWords) { |
|
|
|
//console.log('remoteMethod',this.dict.asbItemQuick) |
|
|
|
filterMethod(keyWords) { |
|
|
|
//console.log('filterMethod',this.dict.asbItemQuick) |
|
|
|
if (keyWords) { |
|
|
|
this.quickAsb = []; |
|
|
|
this.dict.asbItemQuick.forEach((item) => { |
|
|
|
@ -1107,7 +1094,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.quickAsb = [...this.dict.asbItemQuick]; |
|
|
|
this.quickAsb = deepCopy(this.dict.asbItemQuick); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1129,10 +1116,17 @@ export default { |
|
|
|
amount: 1, |
|
|
|
}); |
|
|
|
this.quickAsb.splice(lfind, 1); |
|
|
|
arrayReduce(this.dict.asbItemQuick, { id: v }, "id"); |
|
|
|
arrayReduce(this.dict.asbItemQuick, { id: v }, "id=id"); |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(v, this.asbitemBatch.asbitemsTemp); |
|
|
|
//console.log(v, this.asbitemBatch.asbitemsTemp); |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['quickAsbOCX'].blur(); //total asbItemId |
|
|
|
this.asbItemId = '' |
|
|
|
this.quickAsb = deepCopy(this.dict.asbItemQuick) |
|
|
|
this.$refs['quickAsbOCX'].focus(); //total asbItemId |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//删除临时显示的组合项目 |
|
|
|
@ -1163,7 +1157,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//批量更新项目 |
|
|
|
asbBatch() { |
|
|
|
btnAsbBatch() { |
|
|
|
let customerOrgId = this.patientRegister.query.customerOrgId; |
|
|
|
if (!customerOrgId) { |
|
|
|
this.$message.warning("请选择单位"); |
|
|
|
@ -1176,9 +1170,14 @@ export default { |
|
|
|
}); |
|
|
|
//取消勾选,换成选择的方式 end |
|
|
|
|
|
|
|
if(this.multipleSelection.length < 1){ |
|
|
|
this.$message.warning("请选择要操作的记录") |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.dialogAsbitem = true; |
|
|
|
//供快速选择的组合项目 |
|
|
|
this.dict.asbItemQuick = [...this.dict.asbItemAll]; |
|
|
|
this.dict.asbItemQuick = deepCopy(this.dict.asbItemAll); |
|
|
|
this.asbitemBatch.asbitemCurr.asbitemId = null; |
|
|
|
this.asbitemBatch.asbitemsTemp = []; |
|
|
|
}, |
|
|
|
|