人工审核

This commit is contained in:
shidongli 2024-07-01 15:19:50 +08:00
parent 7ab8b7e8ee
commit 245054714f
3 changed files with 120 additions and 150 deletions

View File

@ -263,9 +263,9 @@ export default {
portaitCheckRemark: value, portaitCheckRemark: value,
portaitCheckStatus: 'DISAGREE', portaitCheckStatus: 'DISAGREE',
signPatientRecordId: this.$route.query.signRecordId, signPatientRecordId: this.$route.query.signRecordId,
labelFieldContentList: [], labelFieldAndPartitionDictList: [],
} }
obj.labelFieldContentList = this.portraitlistdata obj.labelFieldAndPartitionDictList = this.portraitlistdata
updatePortaitCheckStatus(obj).then(res => { updatePortaitCheckStatus(obj).then(res => {
this.$notify({ this.$notify({
type: 'success', type: 'success',
@ -317,9 +317,9 @@ export default {
portaitCheckRemark: value, portaitCheckRemark: value,
portaitCheckStatus: 'AGREE', portaitCheckStatus: 'AGREE',
signPatientRecordId: this.$route.query.signRecordId, signPatientRecordId: this.$route.query.signRecordId,
labelFieldContentList: [], labelFieldAndPartitionDictList: [],
} }
obj.labelFieldContentList = this.portraitlistdata obj.labelFieldAndPartitionDictList = this.portraitlistdata
console.log(obj, 'tijiao') console.log(obj, 'tijiao')
// return // return
updatePortaitCheckStatus(obj).then(res => { updatePortaitCheckStatus(obj).then(res => {

View File

@ -32,66 +32,57 @@
taskid == ulitem.taskPartitionDictId ? 'allactive' : 'all' taskid == ulitem.taskPartitionDictId ? 'allactive' : 'all'
" "
> >
{{ulitem.taskTypeName}}<span class="spanitme" v-if="ulitem.taskTypeName">|</span>{{ ulitem.taskPartitionDictName }} {{ ulitem.taskTypeName
}}<span class="spanitme" v-if="ulitem.taskTypeName">|</span
>{{ ulitem.taskPartitionDictName }}
</div> </div>
<!-- <span class="count">{{ ulitem.countNum }}</span> -->
</div> </div>
</div> </div>
</div> </div>
<div class="texts"> <div class="texts">
<div class="topform"> <div class="topform">
<div v-if="getParamslistData"> <div style="margin-bottom: 20px">
<div <div v-for="(aitem, aindex) in getParamslistData" :key="aindex">
v-for="(item, index) in getParamslistData" <el-card>
:key="index" <!-- {{aitem}} -->
style="display: flex" <div class="toptitle">{{ aitem.taskPartitionDictName }}</div>
> <div
<el-card class="box-card"> style="display: flex"
<el-form v-for="(bitem, bindex) in aitem.portraitSnVOList"
ref="form" :key="bindex"
:inline="true"
:model="form"
class="form"
label-width="100px"
:rules="rules"
> >
<!-- {{item}} --> <el-card class="box-card">
<el-form-item <el-form
v-for="(ite, ind) in item" ref="form"
:label="ite.fieldName" :inline="true"
:key="ind" :model="form"
> class="form"
<el-input label-width="100px"
class="textarea" :rules="rules"
v-model="ite.fieldValue" >
></el-input> <el-form-item
</el-form-item> v-for="(cItem, cIndex) in bitem.groupingValues"
</el-form> :key="cIndex"
:label="cItem.fieldName"
>
<el-input v-model="cItem.fieldValue"></el-input>
</el-form-item>
</el-form>
</el-card>
<div class="icon">
<i
class="el-icon-delete"
@click="delitem(aindex, bindex)"
v-if="bindex != 0"
></i>
<i
v-if="bindex == 0"
class="el-icon-circle-plus-outline"
@click="additem(aindex, bindex)"
></i>
</div>
</div>
</el-card> </el-card>
<div class="icon">
<i
class="el-icon-delete"
@click="delitem(index)"
v-if="index != 0"
></i>
<i
v-if="index == 0"
class="el-icon-circle-plus-outline"
@click="additem(index)"
></i>
<!-- <el-button
v-if="
taskPartitionCode == 'MEDICATION_GUIDE' ||
taskPartitionCode == 'SPORT_GUIDE' ||
taskPartitionCode == 'DIET_GUIDE' ||
taskPartitionCode == 'NURSING_GUIDE'
"
round
style="margin-left: 10px"
@click="knowledge(index, item)"
>知识库获取</el-button
> -->
</div>
</div> </div>
</div> </div>
</div> </div>
@ -145,20 +136,7 @@ export default {
console.log(this.$route.query, 'this.$route.query') console.log(this.$route.query, 'this.$route.query')
this.qurelist.patientId = this.$route.query.patientId this.qurelist.patientId = this.$route.query.patientId
this.getAllNodeBy() this.getAllNodeBy()
// console.log(this.DepartmentoList)
// var querytParams={
// taskPartitionDictId: this.DepartmentoList[0].taskPartitionDictId,
// patientId: this.$route.query.patientId,
// }
// groupingValue(querytParams).then(res => {
// console.log(res, 'res')
// this.moban = JSON.parse(JSON.stringify(res))
// this.getParamslistData = res
// // console.log(this.getParamslistData, '009090')
// })
}, },
beforeDestroy() { }, beforeDestroy() { },
watch: { watch: {
@ -195,7 +173,6 @@ export default {
} }
}, },
bottomclickevent(ulitem) { bottomclickevent(ulitem) {
console.log(ulitem, '9999')
this.taskid = ulitem.taskPartitionDictId this.taskid = ulitem.taskPartitionDictId
// this.querytParams.signPatientManageRouteNodeId = ulitem.taskPartitionDictId // this.querytParams.signPatientManageRouteNodeId = ulitem.taskPartitionDictId
this.querytParams.taskPartitionDictId = ulitem.taskPartitionDictId this.querytParams.taskPartitionDictId = ulitem.taskPartitionDictId
@ -215,14 +192,15 @@ export default {
// //
TemporaryStorage() { TemporaryStorage() {
// console.log(this.getParamslistData,'this.getParamslistData')
var emptyItems = [] var emptyItems = []
var form={ var form = {
groupingValues:[] labelFieldAndPartitionDictList: []
} }
form.groupingValues=this.getParamslistData form.labelFieldAndPartitionDictList = this.getParamslistData
// emptyItems = form.groupingValues.flat().filter(f => f.fieldValue == "" || !f.fieldValue) // emptyItems = form.groupingValues.flat().filter(f => f.fieldValue == "" || !f.fieldValue)
// console.log(form, 'this.form') console.log(this.form, 'this.form')
// console.log(emptyItems, 'emptyItems') // console.log(emptyItems, 'emptyItems')
// return // return
@ -230,50 +208,45 @@ export default {
// this.$modal.msgError(","); // this.$modal.msgError(",");
// } else { // } else {
this.$confirm('是否确认提交?', '提示', { this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(() => { }).then(() => {
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: '提交中', text: '提交中',
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
insertLabelField(form).then(res => { insertLabelField(form).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$modal.msgSuccess("提交成功!"); this.$modal.msgSuccess("提交成功!");
this.indexdata = null this.indexdata = null
loading.close();
}
else {
loading.close();
}
}).catch(() => {
loading.close(); loading.close();
}); }
}) else {
loading.close();
}
}).catch(() => {
loading.close();
});
})
// } // }
}, },
additem(aindex, bindex) {
additem(index) { // console.log(this.form.list,'this.form.list')
this.moban[0].forEach(e => { const newVal = JSON.parse(JSON.stringify(this.moban[aindex].portraitSnVOList[0]))
newVal.groupingValues.forEach(e => {
e.fieldValue = "" e.fieldValue = ""
e.portraitSn = '' e.portraitSn = ''
// e.id = ""
}) });
const newVal = JSON.parse(JSON.stringify(this.moban[0]))
// const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0])) this.getParamslistData[aindex].portraitSnVOList.push(newVal)
// newVal.forEach(i => {
// // i.sn = this.getParamslistData.length +1
// i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1
// })
this.getParamslistData.push(newVal)
}, },
delitem(index, item) { delitem(aindex, bindex) {
this.getParamslistData.splice(index, 1) this.getParamslistData[aindex].portraitSnVOList.splice(bindex, 1)
}, },
} }
}; };
@ -302,19 +275,25 @@ export default {
.dialog-footer { .dialog-footer {
padding: 2px 44px 0; padding: 2px 44px 0;
text-align: right; text-align: right;
position: relative;
bottom: 66px;
} }
.texts { .texts {
// overflow-y: scroll; // overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
width: 72%; width: 72%;
height: calc(100vh - 30px); height: calc(100vh - 200px);
background-color: #fff; background-color: #fff;
.topform { .topform {
width: 100%; width: 100%;
position: relative; position: relative;
height: calc(100% - 177px); height: calc(100% - 177px);
overflow-y: auto; // overflow-y: auto;
padding: 15px 70px 30px 15px; padding: 15px 70px 30px 15px;
.toptitle {
font-weight: 600;
font-size: 18px;
}
.box-card { .box-card {
// width:calc(100% - 149px); // width:calc(100% - 149px);
width: 85%; width: 85%;
@ -355,7 +334,7 @@ export default {
.list { .list {
margin: 20px auto; margin: 20px auto;
width: 100%; width: 100%;
height: calc(100% - 80px); height: calc(100% - 11px);
background-color: #f2f4f5; background-color: #f2f4f5;
display: flex; display: flex;
padding-top: 15px; padding-top: 15px;
@ -367,6 +346,7 @@ export default {
width: 25%; width: 25%;
background-color: #fff; background-color: #fff;
padding: 17px 20px; padding: 17px 20px;
height: calc(100% - 56px);
// height: 680px; // height: 680px;
// height: calc(100vh - 294px); // height: calc(100vh - 294px);
overflow-y: scroll; overflow-y: scroll;
@ -384,10 +364,9 @@ export default {
width: 100%; width: 100%;
height: 50px; height: 50px;
border-bottom: 1px solid #dcdfe6; border-bottom: 1px solid #dcdfe6;
.spanitme{ .spanitme {
padding: 10px; padding: 10px;
color: #A8A8A8; color: #a8a8a8;
} }
.count { .count {

View File

@ -1,9 +1,8 @@
<template> <template>
<div class="topform"> <div class="topform">
<div v-if="form.getParamslistData"> <div v-if="getParamslistData">
<div v-for="(aitem, aindex) in form.getParamslistData" :key="aindex"> <div v-for="(aitem, aindex) in getParamslistData" :key="aindex">
<el-card> <el-card>
<div class="toptitle">{{ aitem.taskPartitionDictName }}</div> <div class="toptitle">{{ aitem.taskPartitionDictName }}</div>
<div <div
style="display: flex" style="display: flex"
@ -24,11 +23,12 @@
:key="cIndex" :key="cIndex"
:label="cItem.fieldName" :label="cItem.fieldName"
> >
<el-input v-model="cItem.fieldValue"></el-input> <el-input class="textarea" v-model="cItem.fieldValue" v-if="!portaitCheckStatus"></el-input>
<el-input class="textarea" v-model="cItem.fieldValue" disabled v-else></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
<div class="icon"> <div class="icon" v-if="!portaitCheckStatus">
<i <i
class="el-icon-delete" class="el-icon-delete"
@click="delitem(aindex,bindex)" @click="delitem(aindex,bindex)"
@ -89,10 +89,8 @@
</template> </template>
<script> <script>
import { groupingValue } from '@/api/manage/Portraitedit'
import {
getPortaitByPatient
} from '@/api/manage/Auditing.js'
export default { export default {
props:['patientId','portaitCheckStatus'],//psMsg props:['patientId','portaitCheckStatus'],//psMsg
@ -110,13 +108,9 @@ export default {
{ required: true, message: '请选择节点审核状态', trigger: 'change' } { required: true, message: '请选择节点审核状态', trigger: 'change' }
], ],
}, },
form: { form: {},
getParamslistData: [], getParamslistData: [],
},
// form:{},
// getParamslistData: [],
} }
}, },
watch: { watch: {
@ -145,35 +139,29 @@ export default {
methods: { methods: {
// //
getParams() { getParams() {
// getPortaitByPatient groupingValue(this.querytParams).then(res => {
getPortaitByPatient(this.querytParams).then(res => {
console.log(res, 'res') console.log(res, 'res')
this.moban = JSON.parse(JSON.stringify(res.data)) this.moban = JSON.parse(JSON.stringify(res))
this.getParamslistData = res.data this.getParamslistData = res
// console.log(this.getParamslistData, '009090') console.log(this.getParamslistData, '009090')
}) })
}, },
// //
additem(index) { additem(aindex, bindex) {
this.moban[0].forEach(e => { // console.log(this.form.list,'this.form.list')
const newVal = JSON.parse(JSON.stringify(this.moban[aindex].portraitSnVOList[0]))
newVal.groupingValues.forEach(e => {
e.fieldValue = "" e.fieldValue = ""
e.portraitSn = '' e.portraitSn = ''
// e.id = ""
}) });
const newVal = JSON.parse(JSON.stringify(this.moban[0]))
// const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0])) this.getParamslistData[aindex].portraitSnVOList.push(newVal)
// newVal.forEach(i => {
// // i.sn = this.getParamslistData.length +1
// i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1
// })
this.getParamslistData.push(newVal)
}, },
// //
delitem(index, item) { delitem(aindex, bindex) {
// this.form.items.splice(index, 1) this.getParamslistData[aindex].portraitSnVOList.splice(bindex, 1)
this.getParamslistData.splice(index, 1)
}, },
}, },
@ -184,6 +172,9 @@ export default {
::v-deep .el-input.is-disabled .el-input__inner{ ::v-deep .el-input.is-disabled .el-input__inner{
background: #fff; background: #fff;
} }
::v-deep .el-card {
margin-bottom: 20px !important;
}
.topform { .topform {
width: 100%; width: 100%;
position: relative; position: relative;