Commit 8552294e authored by 刘予佳's avatar 刘予佳

编辑标签样式

parent 4c1641f4
...@@ -4,14 +4,17 @@ ...@@ -4,14 +4,17 @@
<div class="audit-detail_header p-24"> <div class="audit-detail_header p-24">
<div class="left"> <div class="left">
<span>当前审核</span> <span>当前审核</span>
<span class="f-b">{{unionName}}】【剩余{{mcCount}}</span> <span class="f-b">{{ unionName }}】【剩余{{ mcCount }}</span>
</div> </div>
<div class="right"> <div class="right">
<el-button class="btn" @click="$router.go(-1)">返回</el-button> <el-button class="btn" @click="$router.go(-1)">返回</el-button>
</div> </div>
</div> </div>
<div class="table-content p-24"> <div class="table-content p-24">
<follow-review :formDataList="formEdit" :tabActive="tabActive"></follow-review> <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>
...@@ -22,8 +25,9 @@ ...@@ -22,8 +25,9 @@
type="primary" type="primary"
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>
...@@ -34,20 +38,26 @@ ...@@ -34,20 +38,26 @@
<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> <el-button type="primary" :loading="loading" @click="onCancel"
<el-button type="primary" :loading="loading" @click="editSubmit"></el-button> ></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">{{ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" }}</div> <div class="title">
{{ btnGroup[curBtn - 1] ? btnGroup[curBtn - 1].text : "" }}
</div>
<div class="content"> <div class="content">
<div v-if="curBtn != 1" class="noPass"> <div v-if="curBtn != 1" class="noPass">
<el-form <el-form
...@@ -58,7 +68,10 @@ ...@@ -58,7 +68,10 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item :label="curBtn == 2 ? '不合格原因' : '驳回修改建议'" prop="reason"> <el-form-item
:label="curBtn == 2 ? '不合格原因' : '驳回修改建议'"
prop="reason"
>
<el-input <el-input
v-model="form.reason" v-model="form.reason"
type="textarea" type="textarea"
...@@ -72,19 +85,21 @@ ...@@ -72,19 +85,21 @@
<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"
size="medium" size="medium"
:class="item.isSelect ? '':'unselect-tag'" :class="item.isSelect ? '' : 'unselect-tag'"
@click="seleckTag(item,index)" @click="seleckTag(item, index)"
> >
<span>{{item.text}}</span> <span>{{ item.text }}</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> <el-button type="primary" :loading="loading" @click="onSubmit"
>确 定</el-button
>
</div> </div>
</template> </template>
<!-- 提交后结果 --> <!-- 提交后结果 -->
...@@ -94,32 +109,58 @@ ...@@ -94,32 +109,58 @@
<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">{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}</div> <div class="label">
{{ 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">该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!</div> <div v-if="curBtn != 1" class="showTips">
该病例审核{{ curBtn == 2 ? "不合格原因" : "驳回修改建议" }}提交成功!
</div>
<div class="btn"> <div class="btn">
<el-button type="primary" @click="nextExample" :loading="auditLoading"> <el-button
<span v-if="tabActive < this.formEdit.length - 1">确认并进入下一列审核</span> type="primary"
@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 ref="noteDialog" @onSubmit="onSubmit" @onCancel="onCancel"> <public-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>
<el-tag <div class="content">
:key="index" <el-row :key="index" v-for="(item, index) in tagList" class="mb-16">
v-for="(item,index) in tagList" <el-col span="18">
size="medium" <el-input
:class="item.isSelect ? '':'unselect-tag'" size="medium"
@click="seleckTag(item,index)" v-model="item.text"
> class="tag-input"
<span>{{item.text}}</span> :class="item.isSelect ? '' : 'unselect-tag'"
</el-tag> @click="seleckTag(item, index)"
>
</el-input>
</el-col>
<el-col span="3">
<span class="handle-text" style="color: #E02020;">删除</span>
</el-col>
<el-col span="2">
<span class="handle-text" style="color: #4E68FF;" v-if="index == tagList.length - 1">添加</span>
</el-col>
</el-row>
</div>
</template> </template>
</public-dialog> </public-dialog>
</div> </div>
...@@ -127,41 +168,41 @@ ...@@ -127,41 +168,41 @@
<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,putFollowCheck } from "@/api/followup" import { getFollowUnCheckDetail, putFollowCheck } from "@/api/followup"
import { getSysCheckNote } from "@/api/note" import { getSysCheckNote } from "@/api/note"
export default { export default {
components: { publicDialog, followReview }, components: { publicDialog, followReview },
data() { data() {
return { return {
mcCount:7, mcCount: 7,
editStatus: false, //进入的状态是第一次审核还是修改审核,false为第一次,true为修改 editStatus: false, //进入的状态是第一次审核还是修改审核,false为第一次,true为修改
tabActive:'0', //当前随访病例 tabActive: "0", //当前随访病例
formEdit:[ formEdit: [
{ {
"patientId": "1623190906909835266", patientId: "1623190906909835266",
"id": "1623216842623492098", id: "1623216842623492098",
"formRecordId": "1623216842522828802", formRecordId: "1623216842522828802",
"age": "", age: "",
"name": "", name: "",
"checkStatus": 1, checkStatus: 1,
"patientFrom": 1, patientFrom: 1,
"unionName": "合肥高新附院", unionName: "合肥高新附院",
"unionId": "2", unionId: "2",
"reportTime": "", reportTime: "",
"riskRank": "", riskRank: "",
"formId": "1598197066503389185" formId: "1598197066503389185",
}, },
{ {
name:"djksh", name: "djksh",
contact_phone:"12345678", contact_phone: "12345678",
is_accept:"0", is_accept: "0",
gas_exam:"15", gas_exam: "15",
G_17:"6" G_17: "6",
}, },
],//填报数据 ], //填报数据
auditLoading:false, auditLoading: false,
form: { form: {
reason:'' reason: "",
}, //审核表单 }, //审核表单
rules: { rules: {
reason: [{ required: true, message: "请填写", trigger: "blur" }], reason: [{ required: true, message: "请填写", trigger: "blur" }],
...@@ -184,45 +225,45 @@ export default { ...@@ -184,45 +225,45 @@ export default {
curBtn: 0, //点击的按钮 curBtn: 0, //点击的按钮
curComponent: "followReview", curComponent: "followReview",
confirmStatus: false, confirmStatus: false,
tagList:[ tagList: [
{ {
text:"不合格原因", text: "不合格原因",
isSelect:false isSelect: false,
}, },
{ {
text:"不合格原因不合格原因" text: "不合格原因不合格原因",
}, },
{ {
text:"不合格原因" text: "不合格原因",
}, },
{ {
text:"不合格原因" text: "不合格原因",
}, },
{ {
text:"不合格原因" text: "不合格原因",
}, },
] ],
} }
}, },
watch: {}, watch: {},
created() { created() {
this.getDetail() this.getDetail()
}, },
computed:{ computed: {
unionId(){ unionId() {
return this.$route.query.unionId return this.$route.query.unionId
}, },
unionName(){ unionName() {
return this.$route.query.unionName || '--' return this.$route.query.unionName || "--"
} },
}, },
methods: { methods: {
handleEdit(){ handleEdit() {
this.$refs.noteDialog.dialogVisible = true this.$refs.noteDialog.dialogVisible = true
}, },
showDialog(val,index) { showDialog(val, index) {
console.log("显示框",val) console.log("显示框", val)
this.curBtn = index+1 this.curBtn = index + 1
if (!this.editStatus) { if (!this.editStatus) {
if (this.curBtn == 1) { if (this.curBtn == 1) {
// 走接口,保存合格 // 走接口,保存合格
...@@ -284,31 +325,31 @@ this.$refs.noteDialog.dialogVisible = true ...@@ -284,31 +325,31 @@ this.$refs.noteDialog.dialogVisible = true
this.$refs.publicDialog.dialogVisible = true this.$refs.publicDialog.dialogVisible = true
}, },
nextExample() { nextExample() {
if(Number(this.tabActive) < this.formEdit.length - 1){ if (Number(this.tabActive) < this.formEdit.length - 1) {
this.tabActive=String(Number(this.tabActive) + 1) this.tabActive = String(Number(this.tabActive) + 1)
} }
console.log('tab激活',this.tabActive) console.log("tab激活", this.tabActive)
this.onCancel() this.onCancel()
}, },
//随访数据 //随访数据
async getDetail(){ async getDetail() {
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 //调试注释 // this.formEdit=res.data //调试注释
} }
this.loading = false this.loading = false
}, },
//审核 //审核
async handleCheck(){ async handleCheck() {
this.auditLoading = true this.auditLoading = true
let params={ let params = {
id: this.formEdit[this.tabActive], id: this.formEdit[this.tabActive],
checkStatus: this.btnGroup[this.curBtn].value, checkStatus: this.btnGroup[this.curBtn].value,
checkNote: this.form.reason, checkNote: this.form.reason,
patientId: this.unionId patientId: this.unionId,
} }
console.log('审核值',params) console.log("审核值", params)
// let res = await putFollowCheck(params) // let res = await putFollowCheck(params)
// if(res.code==1){ // if(res.code==1){
// // this.formEdit=res.data //调试注释 // // this.formEdit=res.data //调试注释
...@@ -316,20 +357,20 @@ this.$refs.noteDialog.dialogVisible = true ...@@ -316,20 +357,20 @@ this.$refs.noteDialog.dialogVisible = true
this.auditLoading = false this.auditLoading = false
}, },
// 审核标签 // 审核标签
async getSysCheckNote(){ async getSysCheckNote() {
this.loading = true this.loading = true
let res = await getSysCheckNote() let res = await getSysCheckNote()
if(res.code==1){ if (res.code == 1) {
// this.formEdit=res.data //调试注释 // this.formEdit=res.data //调试注释
} }
this.loading = false this.loading = 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.text
this.$forceUpdate(); this.$forceUpdate()
} },
}, },
} }
</script> </script>
...@@ -392,7 +433,7 @@ this.$refs.noteDialog.dialogVisible = true ...@@ -392,7 +433,7 @@ this.$refs.noteDialog.dialogVisible = true
line-height: 26px; line-height: 26px;
} }
.content { .content {
margin: 28px 48px; margin: 28px 23px;
.pass { .pass {
font-size: 18px; font-size: 18px;
font-family: AlibabaPuHuiTiM; font-family: AlibabaPuHuiTiM;
...@@ -448,4 +489,18 @@ this.$refs.noteDialog.dialogVisible = true ...@@ -448,4 +489,18 @@ this.$refs.noteDialog.dialogVisible = true
cursor: pointer; cursor: pointer;
} }
} }
.note-dialog {
::v-deep {
.tag-input {
.el-input__inner {
background-color: rgba(78, 104, 255, 0.06);
border-radius: 2px;
}
}
.handle-text{
line-height: 36px;
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