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

标签增改

parent 8552294e
...@@ -12,51 +12,28 @@ export function getSysCheckNote(params = {}) { ...@@ -12,51 +12,28 @@ export function getSysCheckNote(params = {}) {
params, params,
}); });
} }
//随访调查 列表
export function getFollowSurvey(params = {}) { //新增意见标签
return request({ export function postSysCheckNote(data = {}) {
url: "/disease-data/follow/survey",
method: "get",
params,
});
}
///////////////审核质控/////////////////////
//随访已审核列表
export function getFollowCheck(params = {}) {
return request({ return request({
url: "/disease-data/dataCheck/follow/check", url: "/disease-data/sysCheckNote",
method: "get", method: "post",
params, data
}); });
} }
//随访待审核列表
export function getFollowUncheck(params = {}) { //修改意见标签
export function putSysCheckNote(data = {}) {
return request({ return request({
url: "/disease-data/dataCheck/follow/unCheck", url: "/disease-data/sysCheckNote",
method: "get", method: "put",
params, data
}); });
} }
//随访病例待审核(详情数据) //删除意见标签
export function getFollowUnCheckDetail(id) { export function delSysCheckNote(id) {
return request({ return request({
url: `/disease-data/dataCheck/follow/unCheck/detail/${id}`, url: `/disease-data/sysCheckNote/${id}`,
method: "get", method: "delete",
}); });
}
//随访病例审核
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
...@@ -272,7 +272,7 @@ html { ...@@ -272,7 +272,7 @@ html {
border-top: 1px solid $base-border-color; border-top: 1px solid $base-border-color;
.el-form { .el-form {
padding-right: 30px; // padding-right: 30px;
} }
} }
......
...@@ -11,10 +11,7 @@ ...@@ -11,10 +11,7 @@
</div> </div>
</div> </div>
<div class="table-content p-24"> <div class="table-content p-24">
<follow-review <follow-review :formDataList="formEdit" :tabActive="tabActive"></follow-review>
:formDataList="formEdit"
:tabActive="tabActive"
></follow-review>
</div> </div>
<div class="choose-handle p-24"> <div class="choose-handle p-24">
<span v-if="!editStatus">请选择审核结果:</span> <span v-if="!editStatus">请选择审核结果:</span>
...@@ -26,8 +23,7 @@ ...@@ -26,8 +23,7 @@
class="p-btn" class="p-btn"
size="medium" size="medium"
@click="showDialog(item.value, index)" @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>
</div> </div>
...@@ -38,27 +34,21 @@ ...@@ -38,27 +34,21 @@
<div class="content"> <div class="content">
<div class="showTips"> <div class="showTips">
该病例已经审核【驳回修改】,需要改为{{ 该病例已经审核【驳回修改】,需要改为{{
btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : ""
}} }}
</div> </div>
</div> </div>
<div class="btn"> <div class="btn">
<el-button type="primary" :loading="loading" @click="onCancel" <el-button type="primary" :loading="loading" @click="onCancel"></el-button>
></el-button <el-button type="primary" :loading="loading" @click="editSubmit"></el-button>
>
<el-button type="primary" :loading="loading" @click="editSubmit"
></el-button
>
</div> </div>
</template> </template>
</public-dialog> </public-dialog>
<public-dialog ref="publicDialog" @onSubmit="onSubmit" @onCancel="onCancel"> <public-dialog ref="publicDialog" @onSubmit="onSubmit" @onCancel="onCancel">
<!-- 审核结果回显 --> <!-- 审核结果回显 -->
<template v-if="!confirmStatus" slot="content"> <template v-if="!confirmStatus" slot="content">
<div class="title"> <div class="title">{{ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" }}</div>
{{ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" }} <div class="content" ref="publicContent">
</div>
<div class="content">
<div v-if="curBtn != 1" class="noPass"> <div v-if="curBtn != 1" class="noPass">
<el-form <el-form
ref="form" ref="form"
...@@ -68,10 +58,7 @@ ...@@ -68,10 +58,7 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item <el-form-item :label="curBtn == 2 ? '不合格原因' : '驳回修改建议'" prop="reason">
:label="curBtn == 2 ? '不合格原因' : '驳回修改建议'"
prop="reason"
>
<el-input <el-input
v-model="form.reason" v-model="form.reason"
type="textarea" type="textarea"
...@@ -82,7 +69,7 @@ ...@@ -82,7 +69,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- 标签 --> <!-- 标签 -->
<div class="tag-form"> <div class="tag-form" v-loading="tagLoading">
<el-tag <el-tag
:key="index" :key="index"
v-for="(item, index) in tagList" v-for="(item, index) in tagList"
...@@ -90,16 +77,14 @@ ...@@ -90,16 +77,14 @@
:class="item.isSelect ? '' : 'unselect-tag'" :class="item.isSelect ? '' : 'unselect-tag'"
@click="seleckTag(item, index)" @click="seleckTag(item, index)"
> >
<span>{{ item.text }}</span> <span>{{ item.note }}</span>
</el-tag> </el-tag>
<p class="handle-row" @click="handleEdit">编辑标签</p> <p class="handle-row" @click="handleEdit">编辑标签</p>
</div> </div>
</div> </div>
</div> </div>
<div class="btn"> <div class="btn">
<el-button type="primary" :loading="loading" @click="onSubmit" <el-button type="primary" :loading="loading" @click="onSubmit">确 定</el-button>
>确 定</el-button
>
</div> </div>
</template> </template>
<!-- 提交后结果 --> <!-- 提交后结果 -->
...@@ -109,58 +94,73 @@ ...@@ -109,58 +94,73 @@
<div v-if="curBtn == 1" class="pass">该病例审核合格成功!</div> <div v-if="curBtn == 1" class="pass">该病例审核合格成功!</div>
<div v-if="curBtn != 1" class="noPass"> <div v-if="curBtn != 1" class="noPass">
<!-- 不合格和驳回 --> <!-- 不合格和驳回 -->
<div class="label"> <div class="label">{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}</div>
{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}
</div>
<div class="reason">{{ form.reason }}</div> <div class="reason">{{ form.reason }}</div>
</div> </div>
</div> </div>
<div v-if="curBtn != 1" class="showTips"> <div v-if="curBtn != 1" class="showTips">该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!</div>
该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!
</div>
<div class="btn"> <div class="btn">
<el-button <el-button type="primary" @click="nextExample" :loading="auditLoading">
type="primary" <span v-if="tabActive < this.formEdit.length - 1">确认并进入下一列审核</span>
@click="nextExample"
:loading="auditLoading"
>
<span v-if="tabActive < this.formEdit.length - 1"
>确认并进入下一列审核</span
>
<span v-else>确 定</span> <span v-else>确 定</span>
</el-button> </el-button>
</div> </div>
</template> </template>
</public-dialog> </public-dialog>
<!-- 标签操作 --> <!-- 标签操作 -->
<public-dialog <public-dialog ref="noteDialog" @onSubmit="onSubmit" @onCancel="onCancel" class="note-dialog">
ref="noteDialog"
@onSubmit="onSubmit"
@onCancel="onCancel"
class="note-dialog"
>
<template v-if="!confirmStatus" slot="content"> <template v-if="!confirmStatus" slot="content">
<div class="title">编辑标签</div> <div class="title">编辑标签</div>
<div class="content"> <div class="content" v-if="tagList.length>0" :style="{'min-height':minHeight}">
<el-row :key="index" v-for="(item, index) in tagList" class="mb-16"> <el-row :key="index" v-for="(item, index) in tagList" class="mb-16">
<el-col span="18"> <el-col :span="18">
<el-input <el-input
size="medium" size="medium"
v-model="item.text" v-model="item.note"
class="tag-input" class="tag-input"
:class="item.isSelect ? '' : 'unselect-tag'" :class="item.isSelect ? '' : 'unselect-tag'"
placeholder="请输入标签"
@click="seleckTag(item, index)" @click="seleckTag(item, index)"
> @blur="handleTag(item)"
</el-input> ></el-input>
</el-col>
<el-col :span="3">
<span class="handle-text" style="color: #E02020;" @click="delTag(index)">删除</span>
</el-col>
<el-col :span="2">
<span
class="handle-text"
style="color: #4E68FF;"
v-if="index == tagList.length - 1"
@click="addTag"
>添加</span>
</el-col>
</el-row>
</div>
<div class="content" :style="{'min-height':minHeight}" v-else>
<el-row class="mb-16">
<el-col :span="18">
<el-input
size="medium"
v-model="newNote"
class="tag-input"
placeholder="请输入标签"
@blur="handleTag({note:newNote})"
></el-input>
</el-col> </el-col>
<el-col span="3"> <el-col :span="3">
<span class="handle-text" style="color: #E02020;">删除</span> <span class="handle-text" style="color: #E02020;" @click="delTag(index)">删除</span>
</el-col> </el-col>
<el-col span="2"> <el-col :span="2">
<span class="handle-text" style="color: #4E68FF;" v-if="index == tagList.length - 1">添加</span> <span class="handle-text" style="color: #4E68FF;" @click="addTag">添加</span>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div class="btn">
<el-button type="primary" :loading="auditLoading" @click="noteSave">
<span>保 存</span>
</el-button>
</div>
</template> </template>
</public-dialog> </public-dialog>
</div> </div>
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
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, putFollowCheck } from "@/api/followup" import { getFollowUnCheckDetail, putFollowCheck } from "@/api/followup"
import { getSysCheckNote } from "@/api/note" import { getSysCheckNote,postSysCheckNote,putSysCheckNote,delSysCheckNote } from "@/api/note"
export default { export default {
components: { publicDialog, followReview }, components: { publicDialog, followReview },
data() { data() {
...@@ -191,16 +191,18 @@ export default { ...@@ -191,16 +191,18 @@ export default {
reportTime: "", reportTime: "",
riskRank: "", riskRank: "",
formId: "1598197066503389185", formId: "1598197066503389185",
is_accept: "0",
}, },
{ {
name: "djksh", name: "djksh",
contact_phone: "12345678", contact_phone: "12345678",
is_accept: "0", is_accept: "1",
gas_exam: "15", gas_exam: "15",
G_17: "6", G_17: "6",
}, },
], //填报数据 ], //填报数据
auditLoading: false, auditLoading: false,
tagLoading:false,
form: { form: {
reason: "", reason: "",
}, //审核表单 }, //审核表单
...@@ -226,26 +228,35 @@ export default { ...@@ -226,26 +228,35 @@ export default {
curComponent: "followReview", curComponent: "followReview",
confirmStatus: false, confirmStatus: false,
tagList: [ tagList: [
{ // {
text: "不合格原因", // note: "不合格原因",
isSelect: false, // isSelect: false,
}, // },
{ // {
text: "不合格原因不合格原因", // note: "不合格原因不合格原因",
}, // },
{ // {
text: "不合格原因", // note: "不合格原因",
}, // },
{ // {
text: "不合格原因", // note: "不合格原因",
}, // },
{ // {
text: "不合格原因", // note: "不合格原因",
}, // },
], ],
newNote:'',
minHeight:'170px'
}
},
watch: {
tagList(){
this.$nextTick(() => {
this.minHeight = this.$refs.publicContent.offsetHeight + "px"
})
console.log('高度',this.$refs.publicContent.offsetHeight)
} }
}, },
watch: {},
created() { created() {
this.getDetail() this.getDetail()
}, },
...@@ -307,7 +318,8 @@ export default { ...@@ -307,7 +318,8 @@ export default {
this.form = {} this.form = {}
} }
this.$refs.editDialog.dialogVisible = false this.$refs.editDialog.dialogVisible = false
this.$refs.publicDialog.dialogVisible = false // this.$refs.publicDialog.dialogVisible = false
this.$refs.noteDialog.dialogVisible = false
if (this.$refs.form) { if (this.$refs.form) {
this.$refs.form.clearValidate() this.$refs.form.clearValidate()
} }
...@@ -356,21 +368,46 @@ export default { ...@@ -356,21 +368,46 @@ export default {
// } // }
this.auditLoading = false this.auditLoading = false
}, },
// 审核标签 // 获取审核标签
async getSysCheckNote() { async getSysCheckNote() {
this.loading = true this.tagLoading = true
let res = await getSysCheckNote() let res = await getSysCheckNote()
if (res.code == 1) { if (res.code == 1) {
// this.formEdit=res.data //调试注释 this.tagList=res.data
} }
this.loading = false this.tagLoading = false
}, },
//选择标签 //选择标签
seleckTag(item, index) { seleckTag(item, index) {
this.tagList[index]["isSelect"] = true this.tagList[index]["isSelect"] = true
this.form.reason = this.form.reason + item.text this.form.reason = this.form.reason + item.note
this.$forceUpdate() this.$forceUpdate()
}, },
//标签添加
addTag(){
this.tagList.push(
{
note:''
},
)
this.$forceUpdate();
},
//标签对话框操作
noteSave(){
this.$refs.noteDialog.dialogVisible = false
this.getSysCheckNote()
},
//添加、编辑标签
async handleTag(item){
if(!item.note) return
else{
let params = {
note:item.note
}
item.id ? params['id']=item.id : ''
let res = item.id ? await putSysCheckNote(params) : await postSysCheckNote(params)
}
}
}, },
} }
</script> </script>
...@@ -476,6 +513,9 @@ export default { ...@@ -476,6 +513,9 @@ export default {
margin: 0px 12px 12px 0px; margin: 0px 12px 12px 0px;
cursor: pointer; cursor: pointer;
border-color: #4e68ff; border-color: #4e68ff;
span {
display: inline-block;
}
} }
.unselect-tag { .unselect-tag {
color: #353a45; color: #353a45;
...@@ -497,7 +537,7 @@ export default { ...@@ -497,7 +537,7 @@ export default {
border-radius: 2px; border-radius: 2px;
} }
} }
.handle-text{ .handle-text {
line-height: 36px; line-height: 36px;
cursor: pointer; cursor: pointer;
} }
......
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