Commit a58b404d authored by 刘予佳's avatar 刘予佳

标签显示

parent 5fad0ca3
import request from "@/utils/request";
/**
* 审核标签
*
* */
// 获取审核意见标签
export function getSysCheckNote(params = {}) {
return request({
url: "/disease-data/sysCheckNote",
method: "get",
params,
});
}
//随访调查 列表
export function getFollowSurvey(params = {}) {
return request({
url: "/disease-data/follow/survey",
method: "get",
params,
});
}
///////////////审核质控/////////////////////
//随访已审核列表
export function getFollowCheck(params = {}) {
return request({
url: "/disease-data/dataCheck/follow/check",
method: "get",
params,
});
}
//随访待审核列表
export function getFollowUncheck(params = {}) {
return request({
url: "/disease-data/dataCheck/follow/unCheck",
method: "get",
params,
});
}
//随访病例待审核(详情数据)
export function getFollowUnCheckDetail(id) {
return request({
url: `/disease-data/dataCheck/follow/unCheck/detail/${id}`,
method: "get",
});
}
//随访病例审核
export function putFollowCheck(data = {}) {
return request({
url: "/disease-data/dataCheck/follow/check",
method: "put",
data,
})
}
//修改随访审核意见
export function putFollowCheckAdvice(data = {}) {
return request({
url: "/disease-data/dataCheck/follow/check/advice",
method: "put",
data,
})
}
\ No newline at end of file
...@@ -51,16 +51,11 @@ export default { ...@@ -51,16 +51,11 @@ export default {
listLoading: false, listLoading: false,
tableData: [ tableData: [
{ {
"unionName": "111", "unionName": "合肥高新附院",
"unionId": "2",
"unionId": "1", "reportTime": "2023-02-09 10:27:22",
"unCheckNums": 7,
"reportTime": "2023-02-01 16:47:23",
"unCheckNums": 1,
"checkNums": 0 "checkNums": 0
} }
], ],
} }
...@@ -230,7 +225,7 @@ export default { ...@@ -230,7 +225,7 @@ export default {
res = await getFollowCheck(params) //已审核 res = await getFollowCheck(params) //已审核
break; break;
} }
// this.tableData = res.data.records //调试注释 this.tableData = res.data.records //调试注释
this.total= res.data.total this.total= res.data.total
}, },
}, },
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
type="primary" type="primary"
class="p-btn" class="p-btn"
size="medium" size="medium"
@click="showDialog(item.value)" @click="showDialog(item.value,index)"
>{{ item.text }}</el-button> >{{ item.text }}</el-button>
<span v-if="editStatus" class="op">驳回修改建议:胃镜图片不合规</span> <span v-if="editStatus" class="op">驳回修改建议:胃镜图片不合规</span>
</div> </div>
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item :label="curBtn == 2 ? '不合格原因' : '驳回修改建议'" prop="reson"> <el-form-item :label="curBtn == 2 ? '不合格原因' : '驳回修改建议'" prop="reason">
<el-input <el-input
v-model="form.reson" v-model="form.reason"
type="textarea" type="textarea"
:placeholder=" :placeholder="
curBtn == 2 ? '请填写不合格原因' : '请填写驳回修改建议' curBtn == 2 ? '请填写不合格原因' : '请填写驳回修改建议'
...@@ -68,12 +68,18 @@ ...@@ -68,12 +68,18 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 标签 -->
<div class="tag-form"> <div class="tag-form">
<el-tag <el-tag
:key="index" :key="index"
v-for="(item,index) in tagList" v-for="(item,index) in tagList"
:disable-transitions="false" size="medium"
>{{item.text}}</el-tag> :class="item.isSelect ? '':'unselect-tag'"
@click="seleckTag(item,index)"
>
<span>{{item.text}}</span>
</el-tag>
<p class="handle-row">编辑标签</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -89,7 +95,7 @@ ...@@ -89,7 +95,7 @@
<div v-if="curBtn != 1" class="noPass"> <div v-if="curBtn != 1" class="noPass">
<!-- 不合格和驳回 --> <!-- 不合格和驳回 -->
<div class="label">{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}</div> <div class="label">{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}</div>
<div class="reson">{{ form.reson }}</div> <div class="reason">{{ form.reason }}</div>
</div> </div>
</div> </div>
<div v-if="curBtn != 1" class="showTips">该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!</div> <div v-if="curBtn != 1" class="showTips">该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!</div>
...@@ -106,7 +112,8 @@ ...@@ -106,7 +112,8 @@
<script> <script>
import publicDialog from "./components/publicDialog.vue" import publicDialog from "./components/publicDialog.vue"
import followReview from "./components/followReview.vue" import followReview from "./components/followReview.vue"
import { getFollowUnCheckDetail } from "@/api/followup" import { getFollowUnCheckDetail,putFollowCheck } from "@/api/followup"
import { getSysCheckNote } from "@/api/note"
export default { export default {
components: { publicDialog, followReview }, components: { publicDialog, followReview },
data() { data() {
...@@ -117,11 +124,18 @@ export default { ...@@ -117,11 +124,18 @@ export default {
tabActive:'0', //当前随访病例 tabActive:'0', //当前随访病例
formEdit:[ formEdit:[
{ {
name:"djksh", "patientId": "1623190906909835266",
contact_phone:"12345678", "id": "1623216842623492098",
is_accept:"0", "formRecordId": "1623216842522828802",
gas_exam:"15", "age": "",
G_17:"5" "name": "",
"checkStatus": 1,
"patientFrom": 1,
"unionName": "合肥高新附院",
"unionId": "2",
"reportTime": "",
"riskRank": "",
"formId": "1598197066503389185"
}, },
{ {
name:"djksh", name:"djksh",
...@@ -132,31 +146,34 @@ export default { ...@@ -132,31 +146,34 @@ export default {
}, },
],//填报数据 ],//填报数据
auditLoading:false, auditLoading:false,
form: {}, //审核表单 form: {
reason:''
}, //审核表单
rules: { rules: {
reson: [{ required: true, message: "请填写", trigger: "blur" }], reason: [{ required: true, message: "请填写", trigger: "blur" }],
}, },
btnGroup: [ btnGroup: [
{ {
text: "合格", text: "合格",
value: 1, value: 3,
}, },
{ {
text: "不合格", text: "不合格",
value: 2, value: 4,
}, },
{ {
text: "驳回修改", text: "驳回修改",
value: 3, value: 2,
}, },
], ],
loading: false, loading: false,
curBtn: 0, curBtn: 0, //点击的按钮
curComponent: "followReview", curComponent: "followReview",
confirmStatus: false, confirmStatus: false,
tagList:[ tagList:[
{ {
text:"不合格原因" text:"不合格原因",
isSelect:false
}, },
{ {
text:"不合格原因不合格原因" text:"不合格原因不合格原因"
...@@ -164,6 +181,12 @@ export default { ...@@ -164,6 +181,12 @@ export default {
{ {
text:"不合格原因" text:"不合格原因"
}, },
{
text:"不合格原因"
},
{
text:"不合格原因"
},
] ]
} }
}, },
...@@ -177,16 +200,19 @@ export default { ...@@ -177,16 +200,19 @@ export default {
} }
}, },
methods: { methods: {
showDialog(val) { showDialog(val,index) {
this.curBtn = val console.log("显示框",val)
this.curBtn = index+1
if (!this.editStatus) { if (!this.editStatus) {
if (this.curBtn == 1) { if (this.curBtn == 1) {
// 走接口,保存合格 // 走接口,保存合格
this.confirmStatus = true this.confirmStatus = true
} else if (this.curBtn == 2) { } else if (this.curBtn == 2) {
this.rules.reson[0].message = "请输入不合格原因" this.rules.reason[0].message = "请输入不合格原因"
//获取审核标签
this.getSysCheckNote()
} else { } else {
this.rules.reson[0].message = "请输入驳回修改建议" this.rules.reason[0].message = "请输入驳回修改建议"
} }
this.$refs.publicDialog.dialogVisible = true this.$refs.publicDialog.dialogVisible = true
} else { } else {
...@@ -231,9 +257,9 @@ export default { ...@@ -231,9 +257,9 @@ export default {
// 走接口,保存合格 // 走接口,保存合格
this.confirmStatus = true this.confirmStatus = true
} else if (this.curBtn == 2) { } else if (this.curBtn == 2) {
this.rules.reson[0].message = "请输入不合格原因" this.rules.reason[0].message = "请输入不合格原因"
} else { } else {
this.rules.reson[0].message = "请输入驳回修改建议" this.rules.reason[0].message = "请输入驳回修改建议"
} }
this.$refs.publicDialog.dialogVisible = true this.$refs.publicDialog.dialogVisible = true
}, },
...@@ -249,25 +275,41 @@ export default { ...@@ -249,25 +275,41 @@ export default {
this.loading = true this.loading = true
let res = await getFollowUnCheckDetail(this.unionId) let res = await getFollowUnCheckDetail(this.unionId)
if(res.code==1){ if(res.code==1){
// this.formEdit=res.data[0] //调试注释 // this.formEdit=res.data //调试注释
} }
this.loading = false this.loading = false
}, },
//审核 //审核
async getDetail(){ async handleCheck(){
this.auditLoading = true this.auditLoading = true
let params={ let params={
id: "1", id: this.formEdit[this.tabActive],
checkStatus: this.curBtn, checkStatus: this.btnGroup[this.curBtn].value,
checkNote: this.form.reason, checkNote: this.form.reason,
patientId: this.unionId patientId: this.unionId
} }
let res = await putFollowCheck(params) console.log('审核值',params)
// let res = await putFollowCheck(params)
// if(res.code==1){
// // this.formEdit=res.data //调试注释
// }
this.auditLoading = false
},
// 审核标签
async getSysCheckNote(){
this.loading = true
let res = await getSysCheckNote()
if(res.code==1){ if(res.code==1){
// this.formEdit=res.data[0] //调试注释 // this.formEdit=res.data //调试注释
} }
this.auditLoading = false this.loading = false
}, },
//选择标签
seleckTag(item,index){
this.tagList[index]['isSelect']=true
this.form.reason = this.form.reason+item.text
this.$forceUpdate();
}
}, },
} }
</script> </script>
...@@ -330,7 +372,7 @@ export default { ...@@ -330,7 +372,7 @@ export default {
line-height: 26px; line-height: 26px;
} }
.content { .content {
margin: 58px; margin: 28px 48px;
.pass { .pass {
font-size: 18px; font-size: 18px;
font-family: AlibabaPuHuiTiM; font-family: AlibabaPuHuiTiM;
...@@ -349,7 +391,7 @@ export default { ...@@ -349,7 +391,7 @@ export default {
width: 100%; width: 100%;
text-align: left; text-align: left;
} }
.reson { .reason {
margin-top: 20px; margin-top: 20px;
} }
.showTips { .showTips {
...@@ -366,10 +408,24 @@ export default { ...@@ -366,10 +408,24 @@ export default {
padding-bottom: 20px; padding-bottom: 20px;
} }
.tag-form { .tag-form {
text-align: initial;
::v-deep { ::v-deep {
.el-tag { .el-tag {
margin-right: 12px; margin: 0px 12px 12px 0px;
cursor: pointer;
border-color: #4e68ff;
} }
.unselect-tag {
color: #353a45;
border-color: #edf0ff;
}
}
.handle-row {
color: #4e68ff;
text-decoration: underline;
text-align: right;
cursor: pointer;
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment