修改 详情

This commit is contained in:
shidongli 2024-05-23 15:48:57 +08:00
parent 5e5b5f33ad
commit 4695a0f2db

View File

@ -13,7 +13,7 @@
> >
<div class="top"> <div class="top">
<div class="toptop"> <div class="toptop">
<el-select v-model="uitem.routeNodeName" style="width: 87px"> <el-select v-model="uitem.routeNodeName" style="width: 87px" disabled>
<el-option label="出院后" value="AFTER_DISCHARGE" /> <el-option label="出院后" value="AFTER_DISCHARGE" />
<el-option label="入院后" value="AFTER_ADMISSION" /> <el-option label="入院后" value="AFTER_ADMISSION" />
<el-option label="就诊后" value="AFTER_CONSULTATION" /> <el-option label="就诊后" value="AFTER_CONSULTATION" />
@ -25,6 +25,7 @@
<el-option label="术后" value="POSTOPERATIVE" /> <el-option label="术后" value="POSTOPERATIVE" />
</el-select> </el-select>
<el-input <el-input
disabled
v-model="uitem.routeNodeDay" v-model="uitem.routeNodeDay"
style="width: 70px" style="width: 70px"
type="number" type="number"
@ -34,17 +35,19 @@
<div></div> <div></div>
</div> </div>
<el-card <el-card
@click.native="bottomclickevent(uitem, uindex)" v-for="(ulitem, ulindex) in uitem.list"
:class="listindex == uindex ? 'cards' : ''" :key="ulindex"
@click.native="bottomclickevent(ulitem, uindex ,ulindex)"
:class="listindex == uindex && itemindex == ulindex ? 'cards' : ''"
> >
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3> <h3 style="height: 20px">{{ ulitem.taskTypeName }}</h3>
<el-tag <el-tag
v-if="uitem.routeCheckStatus == 'AGREE'" v-if="ulitem.routeCheckStatus == 'AGREE'"
class="routeCheckStatus" class="routeCheckStatus"
>已审核</el-tag >已审核</el-tag
> >
<el-tag <el-tag
v-else-if="uitem.routeCheckStatus == 'DISAGREE'" v-else-if="ulitem.routeCheckStatus == 'DISAGREE'"
type="danger" type="danger"
class="routeCheckStatus" class="routeCheckStatus"
>不同意</el-tag >不同意</el-tag
@ -52,7 +55,7 @@
<el-tag v-else type="warning" class="routeCheckStatus" <el-tag v-else type="warning" class="routeCheckStatus"
>未审核</el-tag >未审核</el-tag
> >
<p style="height: 16px">{{ uitem.taskPartitionDictName }}</p> <p style="height: 16px">{{ ulitem.taskPartitionDictName }}</p>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>
@ -73,6 +76,7 @@
label-width="100px" label-width="100px"
v-for="(ite, ind) in item" v-for="(ite, ind) in item"
:key="ind" :key="ind"
:rules="rules"
> >
<el-form-item :label="ite.paramName" :key="ind"> <el-form-item :label="ite.paramName" :key="ind">
<el-input <el-input
@ -445,13 +449,48 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="饮食建议名称" align="center" prop="dietName" :show-overflow-tooltip="true"/> <el-table-column
<el-table-column label="饮食原则" align="center" prop="dietPrinciple" :show-overflow-tooltip="true"/> label="饮食建议名称"
<el-table-column label="主食推荐" align="center" prop="mainFood" :show-overflow-tooltip="true"/> align="center"
<el-table-column label="蔬菜推荐" align="center" prop="vegetable" :show-overflow-tooltip="true"/> prop="dietName"
<el-table-column label="水果推荐" align="center" prop="fruit" :show-overflow-tooltip="true"/> :show-overflow-tooltip="true"
<el-table-column label="肉类推荐" align="center" prop="meat" :show-overflow-tooltip="true"/> />
<el-table-column label="饮食说明" align="center" prop="dietRemark" :show-overflow-tooltip="true"/> <el-table-column
label="饮食原则"
align="center"
prop="dietPrinciple"
:show-overflow-tooltip="true"
/>
<el-table-column
label="主食推荐"
align="center"
prop="mainFood"
:show-overflow-tooltip="true"
/>
<el-table-column
label="蔬菜推荐"
align="center"
prop="vegetable"
:show-overflow-tooltip="true"
/>
<el-table-column
label="水果推荐"
align="center"
prop="fruit"
:show-overflow-tooltip="true"
/>
<el-table-column
label="肉类推荐"
align="center"
prop="meat"
:show-overflow-tooltip="true"
/>
<el-table-column
label="饮食说明"
align="center"
prop="dietRemark"
:show-overflow-tooltip="true"
/>
</el-table> </el-table>
<pagination <pagination
v-show="Dietotal > 0" v-show="Dietotal > 0"
@ -522,11 +561,36 @@
></el-button> ></el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="护理知识名称" align="center" prop="nursingName" :show-overflow-tooltip="true"/> <el-table-column
<el-table-column label="烟酒指导" align="center" prop="tobaccoWine" :show-overflow-tooltip="true"/> label="护理知识名称"
<el-table-column label="睡眠指导" align="center" prop="sleep" :show-overflow-tooltip="true"/> align="center"
<el-table-column label="情绪指导" align="center" prop="emotion" :show-overflow-tooltip="true"/> prop="nursingName"
<el-table-column label="居家安全指导" align="center" prop="homeSafeguard" :show-overflow-tooltip="true"/> :show-overflow-tooltip="true"
/>
<el-table-column
label="烟酒指导"
align="center"
prop="tobaccoWine"
:show-overflow-tooltip="true"
/>
<el-table-column
label="睡眠指导"
align="center"
prop="sleep"
:show-overflow-tooltip="true"
/>
<el-table-column
label="情绪指导"
align="center"
prop="emotion"
:show-overflow-tooltip="true"
/>
<el-table-column
label="居家安全指导"
align="center"
prop="homeSafeguard"
:show-overflow-tooltip="true"
/>
</el-table> </el-table>
<pagination <pagination
v-show="Nursingtotal > 0" v-show="Nursingtotal > 0"
@ -542,7 +606,7 @@
<script> <script>
import { import {
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectTaskTypeList, taskPartitionList, taskStatusDictList,
} from '@/api/system/specialDiseaseNode' } from '@/api/system/specialDiseaseNode'
import { getAllNodeByPatient, getParams, inserList } from '@/api/manage/Datadetails' import { getAllNodeByPatient, getParams, inserList } from '@/api/manage/Datadetails'
import { listBaseDrug } from "@/api/system/baseDrug"; import { listBaseDrug } from "@/api/system/baseDrug";
@ -563,7 +627,6 @@ export default {
pageSize: 10, pageSize: 10,
drugName: null, drugName: null,
}, },
// //
baseSportList: [], baseSportList: [],
Sporttotal: 0, Sporttotal: 0,
@ -594,6 +657,7 @@ export default {
pageSize: 10, pageSize: 10,
nursingName: null, nursingName: null,
}, },
itemdata: {},
// infolist: [], // infolist: [],
taskPartitionCode: "", taskPartitionCode: "",
@ -647,7 +711,6 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
// //
getAllNodeBy() { getAllNodeBy() {
const loading = this.$loading({ const loading = this.$loading({
@ -656,12 +719,70 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
setInterval(() => { this.getAllNodeByPatientlist = []
loading.close(); if (this.$route.query) {
}, 1500);
getAllNodeByPatient(this.qurelist).then(res => { getAllNodeByPatient(this.qurelist).then(res => {
this.getAllNodeByPatientlist = res.data // this.getAllNodeByPatientlist = res.data
loading.close();
this.getAllNodeByPatientlist = this.handleData(res.data, 'routeNodeDay', 'routeNodeName')
console.log(this.getAllNodeByPatientlist, 'this.getAllNodeByPatientlist')
}) })
} else {
loading.close();
this.getAllNodeByPatientlist.push({
routeNodeName: "",
routeNodeDay: "",
list: [
{
routeCheckStatus: "AGREE",
routeId: '',
routeName: "",
routeNodeDay: "",
routeNodeId: "",
routeNodeName: "",
taskPartitionCode: "",
taskPartitionDictId: "",
taskPartitionDictName: "",
taskTypeCode: "",
taskTypeId: "",
taskTypeName: "",
},
],
});
}
},
handleData(list, key, keytwo) {
console.log(list, key, keytwo)
//
let keysArr = list.map((item) => {
return {
routeNodeDay: item[key],
routeNodeName: item[keytwo],
};
});
let array = keysArr.filter(
(item, index, arr) =>
index ===
arr.findIndex(
(ite) =>
ite.routeNodeDay == item.routeNodeDay &&
ite.routeNodeName == item.routeNodeName
)
);
let keys = [...new Set(array)];
let newList = keys.map((item) => {
return {
//
routeNodeDay: item[key], //1tian
routeNodeName: item[keytwo],
list: list.filter(
(i) => i[key] == item[key] && i[keytwo] == item[keytwo]
),
};
});
return newList;
}, },
getParams() { getParams() {
getParams(this.querytParams).then(res => { getParams(this.querytParams).then(res => {
@ -672,11 +793,14 @@ export default {
el.sn = Number(el.sn) el.sn = Number(el.sn)
}) })
}) })
// this.moban= JSON.parse(JSON.stringify(res.data)) this.moban = JSON.parse(JSON.stringify(res.data))
this.getParamslistData = res.data this.getParamslistData = res.data
}) })
}, },
// //
informationInfoinfo() { informationInfoinfo() {
// this.informationqueryParams.pageNum = 1; // this.informationqueryParams.pageNum = 1;
@ -735,17 +859,13 @@ export default {
}, },
this.DiegetList() this.DiegetList()
} else if (this.taskPartitionCode == 'TPC202405200006') {// } else if (this.taskPartitionCode == 'TPC202405200006') {//
this.NursingParams = { this.NursingParams = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
nursingName: null, nursingName: null,
} }
this.NursinggetList() this.NursinggetList()
} }
}, },
// //
innerVisiblecancel() { innerVisiblecancel() {
@ -756,9 +876,6 @@ export default {
}, },
// //
nurseclick(row) { nurseclick(row) {
console.log(row)
console.log(this.getParamslistData,'.---666666')
// const newdata=JSON.parse(JSON.stringify(this.getParamslistData))
this.getParamslistData[this.indexdata].forEach(el => { this.getParamslistData[this.indexdata].forEach(el => {
console.log(row[el.paramKey], 'row[el.paramKey]----------') console.log(row[el.paramKey], 'row[el.paramKey]----------')
el.paramValue = row[el.paramKey] el.paramValue = row[el.paramKey]
@ -767,12 +884,29 @@ export default {
this.Sportshow = false this.Sportshow = false
this.Dieshow = false this.Dieshow = false
this.Nursingshow = false this.Nursingshow = false
}, },
// //
TemporaryStorage() { TemporaryStorage() {
console.log(this.getParamslistData, 'getParamslistData') var emptyItems = []
emptyItems = this.getParamslistData.flat().filter(f => f.paramValue == "")
this.getParamslistData.forEach(e => {
e.forEach(el => {
el.routeId = this.itemdata.routeId
el.routeName = this.itemdata.routeName
el.routeNodeId = this.querytParams.id
el.routeNodeName = this.itemdata.routeNodeName
el.taskPartitionCode = this.itemdata.taskPartitionCode
el.taskPartitionDictId = this.itemdata.taskPartitionDictId
el.taskPartitionDictName = this.itemdata.taskPartitionDictName
el.taskTypeCode = this.itemdata.taskTypeCode
el.taskTypeId = this.itemdata.taskTypeId
el.taskTypeName = this.itemdata.taskTypeName
})
})
// return // return
if (emptyItems && emptyItems.length > 0) {
this.$modal.msgError("请填写完整,再进行提交");
} else {
this.$confirm('是否确认提交?', '提示', { this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -783,28 +917,24 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
inserList(this.getParamslistData).then(res => { inserList(this.getParamslistData).then(res => {
this.getAllNodeBy(); this.getAllNodeBy();
loading.close();
this.$modal.msgSuccess("提交成功!"); this.$modal.msgSuccess("提交成功!");
})
setTimeout(() => {
loading.close(); loading.close();
}, 3000);
}) })
})
}
}, },
bottomclickevent(uitem, uindex) { bottomclickevent(ulitem,uindex,ulindex) {
console.log(uitem, 'uitem') console.log(ulitem,uindex,ulindex)
this.taskPartitionCode = uitem.taskPartitionCode this.itemdata = ulitem
// this.$refs.wangeditor.emit()
// this.form = uitem
this.taskPartitionList = [] this.taskPartitionList = []
this.querytParams.id = uitem.routeNodeId this.querytParams.id = ulitem.routeNodeId
this.getParamslistData = [] this.getParamslistData = []
this.getParams() this.getParams()
this.listindex = uindex this.listindex = uindex
this.itemindex = ulindex;
this.taskPartitionCode = ulitem.taskPartitionCode
}, },
// //
taskinfo() { taskinfo() {
@ -870,15 +1000,20 @@ export default {
console.log(item, index) console.log(item, index)
}, },
additem(index) { additem(index) {
// console.log(this.moban,'') console.log(this.moban[0],'打印模版')
// const newVal = JSON.parse(JSON.stringify(this.moban[0])) this.moban[0].forEach(e=>{
const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0])) console.log(e,'099999999999')
e.paramValue=""
})
const newVal = JSON.parse(JSON.stringify(this.moban[0]))
// const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0]))
newVal.forEach(i => { newVal.forEach(i => {
// i.sn = this.getParamslistData.length +1 // i.sn = this.getParamslistData.length +1
i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1 i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1
}) })
this.getParamslistData.push(newVal) this.getParamslistData.push(newVal)
// this.getParamslistData.push(this.getParamslistData[0])
console.log(this.getParamslistData, '00000000000') console.log(this.getParamslistData, '00000000000')
}, },
delitem(index, item) { delitem(index, item) {