修改 详情

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="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_ADMISSION" />
<el-option label="就诊后" value="AFTER_CONSULTATION" />
@ -25,6 +25,7 @@
<el-option label="术后" value="POSTOPERATIVE" />
</el-select>
<el-input
disabled
v-model="uitem.routeNodeDay"
style="width: 70px"
type="number"
@ -34,17 +35,19 @@
<div></div>
</div>
<el-card
@click.native="bottomclickevent(uitem, uindex)"
:class="listindex == uindex ? 'cards' : ''"
v-for="(ulitem, ulindex) in uitem.list"
: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
v-if="uitem.routeCheckStatus == 'AGREE'"
v-if="ulitem.routeCheckStatus == 'AGREE'"
class="routeCheckStatus"
>已审核</el-tag
>
<el-tag
v-else-if="uitem.routeCheckStatus == 'DISAGREE'"
v-else-if="ulitem.routeCheckStatus == 'DISAGREE'"
type="danger"
class="routeCheckStatus"
>不同意</el-tag
@ -52,7 +55,7 @@
<el-tag v-else type="warning" class="routeCheckStatus"
>未审核</el-tag
>
<p style="height: 16px">{{ uitem.taskPartitionDictName }}</p>
<p style="height: 16px">{{ ulitem.taskPartitionDictName }}</p>
</el-card>
</el-timeline-item>
</el-timeline>
@ -73,6 +76,7 @@
label-width="100px"
v-for="(ite, ind) in item"
:key="ind"
:rules="rules"
>
<el-form-item :label="ite.paramName" :key="ind">
<el-input
@ -444,14 +448,49 @@
></el-button>
</template>
</el-table-column>
<el-table-column label="饮食建议名称" align="center" prop="dietName" :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-column
label="饮食建议名称"
align="center"
prop="dietName"
: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>
<pagination
v-show="Dietotal > 0"
@ -522,11 +561,36 @@
></el-button>
</template>
</el-table-column>
<el-table-column label="护理知识名称" align="center" prop="nursingName" :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-column
label="护理知识名称"
align="center"
prop="nursingName"
: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>
<pagination
v-show="Nursingtotal > 0"
@ -542,9 +606,9 @@
<script>
import {
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode,
selectTaskTypeList, taskPartitionList, taskStatusDictList,
} 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 { listBaseSport } from "@/api/system/baseSport";
import { listBaseDiet } from "@/api/system/baseDiet";
@ -563,7 +627,6 @@ export default {
pageSize: 10,
drugName: null,
},
//
baseSportList: [],
Sporttotal: 0,
@ -594,6 +657,7 @@ export default {
pageSize: 10,
nursingName: null,
},
itemdata: {},
// infolist: [],
taskPartitionCode: "",
@ -633,7 +697,7 @@ export default {
taskStatusDictList: [],
//
taskPartitionList: [],
moban:[],
moban: [],
};
},
created() {
@ -647,7 +711,6 @@ export default {
mounted() {
},
methods: {
//
getAllNodeBy() {
const loading = this.$loading({
@ -656,27 +719,88 @@ export default {
spinner: 'el-icon-loading',
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();
}, 1500);
getAllNodeByPatient(this.qurelist).then(res => {
this.getAllNodeByPatientlist = res.data
})
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(this.querytParams).then(res => {
res.data.forEach(e => {
e.forEach(el => {
el.patientId=this.$route.query.patientId
el.patientName=this.$route.query.patientName
el.patientId = this.$route.query.patientId
el.patientName = this.$route.query.patientName
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
})
},
//
informationInfoinfo() {
// this.informationqueryParams.pageNum = 1;
@ -735,17 +859,13 @@ export default {
},
this.DiegetList()
} else if (this.taskPartitionCode == 'TPC202405200006') {//
this.NursingParams = {
pageNum: 1,
pageSize: 10,
nursingName: null,
}
this.NursinggetList()
}
},
//
innerVisiblecancel() {
@ -756,55 +876,65 @@ export default {
},
//
nurseclick(row) {
console.log(row)
console.log(this.getParamslistData,'.---666666')
// const newdata=JSON.parse(JSON.stringify(this.getParamslistData))
this.getParamslistData[this.indexdata].forEach(el => {
console.log(row[el.paramKey], 'row[el.paramKey]----------')
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.Sportshow = false
this.Dieshow = false
this.Nursingshow = false
},
//
TemporaryStorage() {
console.log(this.getParamslistData, 'getParamslistData')
// return
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();
loading.close();
this.$modal.msgSuccess("提交成功!");
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
})
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) {
console.log(uitem, 'uitem')
this.taskPartitionCode = uitem.taskPartitionCode
// this.$refs.wangeditor.emit()
// this.form = uitem
bottomclickevent(ulitem,uindex,ulindex) {
console.log(ulitem,uindex,ulindex)
this.itemdata = ulitem
this.taskPartitionList = []
this.querytParams.id = uitem.routeNodeId
this.querytParams.id = ulitem.routeNodeId
this.getParamslistData = []
this.getParams()
this.listindex = uindex
this.itemindex = ulindex;
this.taskPartitionCode = ulitem.taskPartitionCode
},
//
taskinfo() {
@ -865,20 +995,25 @@ export default {
this.Nursingshow = true
this.NursinggetList()
}
this.indexdata=index
this.indexdata = index
console.log(item, index)
},
additem(index) {
// console.log(this.moban,'')
// const newVal = JSON.parse(JSON.stringify(this.moban[0]))
const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0]))
console.log(this.moban[0],'打印模版')
this.moban[0].forEach(e=>{
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 => {
// i.sn = this.getParamslistData.length +1
i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1
})
this.getParamslistData.push(newVal)
// this.getParamslistData.push(this.getParamslistData[0])
console.log(this.getParamslistData, '00000000000')
},
delitem(index, item) {