修改 详情

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
@ -444,14 +448,49 @@
></el-button> ></el-button>
</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,9 +606,9 @@
<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";
import { listBaseSport } from "@/api/system/baseSport"; import { listBaseSport } from "@/api/system/baseSport";
import { listBaseDiet } from "@/api/system/baseDiet"; import { listBaseDiet } from "@/api/system/baseDiet";
@ -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: "",
@ -633,7 +697,7 @@ export default {
taskStatusDictList: [], taskStatusDictList: [],
// //
taskPartitionList: [], taskPartitionList: [],
moban:[], moban: [],
}; };
}, },
created() { created() {
@ -647,7 +711,6 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
// //
getAllNodeBy() { getAllNodeBy() {
const loading = this.$loading({ const loading = this.$loading({
@ -656,27 +719,88 @@ 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 = []
if (this.$route.query) {
getAllNodeByPatient(this.qurelist).then(res => {
// this.getAllNodeByPatientlist = res.data
loading.close();
this.getAllNodeByPatientlist = this.handleData(res.data, 'routeNodeDay', 'routeNodeName')
console.log(this.getAllNodeByPatientlist, 'this.getAllNodeByPatientlist')
})
} else {
loading.close(); loading.close();
}, 1500); this.getAllNodeByPatientlist.push({
getAllNodeByPatient(this.qurelist).then(res => { routeNodeName: "",
this.getAllNodeByPatientlist = res.data 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 => {
res.data.forEach(e => { res.data.forEach(e => {
e.forEach(el => { e.forEach(el => {
el.patientId=this.$route.query.patientId el.patientId = this.$route.query.patientId
el.patientName=this.$route.query.patientName el.patientName = this.$route.query.patientName
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,55 +876,65 @@ export default {
}, },
// //
nurseclick(row) { nurseclick(row) {
console.log(row) this.getParamslistData[this.indexdata].forEach(el => {
console.log(this.getParamslistData,'.---666666') console.log(row[el.paramKey], 'row[el.paramKey]----------')
// const newdata=JSON.parse(JSON.stringify(this.getParamslistData)) el.paramValue = row[el.paramKey]
this.getParamslistData[this.indexdata].forEach(el => { })
console.log(row[el.paramKey], 'row[el.paramKey]----------')
el.paramValue = row[el.paramKey]
})
this.Drugshow = false this.Drugshow = false
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 = []
// return emptyItems = this.getParamslistData.flat().filter(f => f.paramValue == "")
this.$confirm('是否确认提交?', '提示', { this.getParamslistData.forEach(e => {
confirmButtonText: '确认', e.forEach(el => {
cancelButtonText: '取消', el.routeId = this.itemdata.routeId
}).then(() => { el.routeName = this.itemdata.routeName
const loading = this.$loading({ el.routeNodeId = this.querytParams.id
lock: true, el.routeNodeName = this.itemdata.routeNodeName
text: '提交中', el.taskPartitionCode = this.itemdata.taskPartitionCode
spinner: 'el-icon-loading', el.taskPartitionDictId = this.itemdata.taskPartitionDictId
background: 'rgba(0, 0, 0, 0.7)' el.taskPartitionDictName = this.itemdata.taskPartitionDictName
}); el.taskTypeCode = this.itemdata.taskTypeCode
el.taskTypeId = this.itemdata.taskTypeId
inserList(this.getParamslistData).then(res => { el.taskTypeName = this.itemdata.taskTypeName
this.getAllNodeBy();
loading.close();
this.$modal.msgSuccess("提交成功!");
}) })
setTimeout(() => {
loading.close();
}, 3000);
}) })
// return
if (emptyItems && emptyItems.length > 0) {
this.$modal.msgError("请填写完整,再进行提交");
} else {
this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
}).then(() => {
const loading = this.$loading({
lock: true,
text: '提交中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
inserList(this.getParamslistData).then(res => {
this.getAllNodeBy();
this.$modal.msgSuccess("提交成功!");
loading.close();
})
})
}
}, },
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() {
@ -865,20 +995,25 @@ export default {
this.Nursingshow = true this.Nursingshow = true
this.NursinggetList() this.NursinggetList()
} }
this.indexdata=index this.indexdata = index
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) {