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 {
listLoading: false,
tableData: [
{
"unionName": "111",
"unionId": "1",
"reportTime": "2023-02-01 16:47:23",
"unCheckNums": 1,
"checkNums": 0
"unionName": "合肥高新附院",
"unionId": "2",
"reportTime": "2023-02-09 10:27:22",
"unCheckNums": 7,
"checkNums": 0
}
],
}
......@@ -230,7 +225,7 @@ export default {
res = await getFollowCheck(params) //已审核
break;
}
// this.tableData = res.data.records //调试注释
this.tableData = res.data.records //调试注释
this.total= res.data.total
},
},
......
......@@ -22,7 +22,7 @@
type="primary"
class="p-btn"
size="medium"
@click="showDialog(item.value)"
@click="showDialog(item.value,index)"
>{{ item.text }}</el-button>
<span v-if="editStatus" class="op">驳回修改建议:胃镜图片不合规</span>
</div>
......@@ -58,9 +58,9 @@
label-width="100px"
class="demo-ruleForm"
>
<el-form-item :label="curBtn == 2 ? '不合格原因' : '驳回修改建议'" prop="reson">
<el-form-item :label="curBtn == 2 ? '不合格原因' : '驳回修改建议'" prop="reason">
<el-input
v-model="form.reson"
v-model="form.reason"
type="textarea"
:placeholder="
curBtn == 2 ? '请填写不合格原因' : '请填写驳回修改建议'
......@@ -68,12 +68,18 @@
></el-input>
</el-form-item>
</el-form>
<!-- 标签 -->
<div class="tag-form">
<el-tag
:key="index"
v-for="(item,index) in tagList"
:disable-transitions="false"
>{{item.text}}</el-tag>
size="medium"
:class="item.isSelect ? '':'unselect-tag'"
@click="seleckTag(item,index)"
>
<span>{{item.text}}</span>
</el-tag>
<p class="handle-row">编辑标签</p>
</div>
</div>
</div>
......@@ -89,7 +95,7 @@
<div v-if="curBtn != 1" class="noPass">
<!-- 不合格和驳回 -->
<div class="label">{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}</div>
<div class="reson">{{ form.reson }}</div>
<div class="reason">{{ form.reason }}</div>
</div>
</div>
<div v-if="curBtn != 1" class="showTips">该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!</div>
......@@ -106,7 +112,8 @@
<script>
import publicDialog from "./components/publicDialog.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 {
components: { publicDialog, followReview },
data() {
......@@ -117,11 +124,18 @@ export default {
tabActive:'0', //当前随访病例
formEdit:[
{
name:"djksh",
contact_phone:"12345678",
is_accept:"0",
gas_exam:"15",
G_17:"5"
"patientId": "1623190906909835266",
"id": "1623216842623492098",
"formRecordId": "1623216842522828802",
"age": "",
"name": "",
"checkStatus": 1,
"patientFrom": 1,
"unionName": "合肥高新附院",
"unionId": "2",
"reportTime": "",
"riskRank": "",
"formId": "1598197066503389185"
},
{
name:"djksh",
......@@ -132,31 +146,34 @@ export default {
},
],//填报数据
auditLoading:false,
form: {}, //审核表单
form: {
reason:''
}, //审核表单
rules: {
reson: [{ required: true, message: "请填写", trigger: "blur" }],
reason: [{ required: true, message: "请填写", trigger: "blur" }],
},
btnGroup: [
{
text: "合格",
value: 1,
value: 3,
},
{
text: "不合格",
value: 2,
value: 4,
},
{
text: "驳回修改",
value: 3,
value: 2,
},
],
loading: false,
curBtn: 0,
curBtn: 0, //点击的按钮
curComponent: "followReview",
confirmStatus: false,
tagList:[
{
text:"不合格原因"
text:"不合格原因",
isSelect:false
},
{
text:"不合格原因不合格原因"
......@@ -164,6 +181,12 @@ export default {
{
text:"不合格原因"
},
{
text:"不合格原因"
},
{
text:"不合格原因"
},
]
}
},
......@@ -177,16 +200,19 @@ export default {
}
},
methods: {
showDialog(val) {
this.curBtn = val
showDialog(val,index) {
console.log("显示框",val)
this.curBtn = index+1
if (!this.editStatus) {
if (this.curBtn == 1) {
// 走接口,保存合格
this.confirmStatus = true
} else if (this.curBtn == 2) {
this.rules.reson[0].message = "请输入不合格原因"
this.rules.reason[0].message = "请输入不合格原因"
//获取审核标签
this.getSysCheckNote()
} else {
this.rules.reson[0].message = "请输入驳回修改建议"
this.rules.reason[0].message = "请输入驳回修改建议"
}
this.$refs.publicDialog.dialogVisible = true
} else {
......@@ -231,9 +257,9 @@ export default {
// 走接口,保存合格
this.confirmStatus = true
} else if (this.curBtn == 2) {
this.rules.reson[0].message = "请输入不合格原因"
this.rules.reason[0].message = "请输入不合格原因"
} else {
this.rules.reson[0].message = "请输入驳回修改建议"
this.rules.reason[0].message = "请输入驳回修改建议"
}
this.$refs.publicDialog.dialogVisible = true
},
......@@ -249,25 +275,41 @@ export default {
this.loading = true
let res = await getFollowUnCheckDetail(this.unionId)
if(res.code==1){
// this.formEdit=res.data[0] //调试注释
// this.formEdit=res.data //调试注释
}
this.loading = false
},
//审核
async getDetail(){
async handleCheck(){
this.auditLoading = true
let params={
id: "1",
checkStatus: this.curBtn,
id: this.formEdit[this.tabActive],
checkStatus: this.btnGroup[this.curBtn].value,
checkNote: this.form.reason,
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){
// 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>
......@@ -330,7 +372,7 @@ export default {
line-height: 26px;
}
.content {
margin: 58px;
margin: 28px 48px;
.pass {
font-size: 18px;
font-family: AlibabaPuHuiTiM;
......@@ -349,7 +391,7 @@ export default {
width: 100%;
text-align: left;
}
.reson {
.reason {
margin-top: 20px;
}
.showTips {
......@@ -366,10 +408,24 @@ export default {
padding-bottom: 20px;
}
.tag-form {
text-align: initial;
::v-deep {
.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>
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