Commit a70c4882 by wangshuangqing

1.提交修改的数据

2.修改展示时间
parent 6195faa5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wsq * @Author: wsq
* @Date: 2022-04-22 15:20:58 * @Date: 2022-04-22 15:20:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2023-02-27 16:24:33 * @LastEditTime: 2023-02-28 23:07:56
* @Description: * @Description:
--> -->
<template> <template>
...@@ -156,18 +156,18 @@ ...@@ -156,18 +156,18 @@
show-overflow-tooltip show-overflow-tooltip
property="advice_name" property="advice_name"
label="路径名称" label="路径名称"
width="120" width="150"
/> />
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
property="tickTime" property="tickTime"
label="当前时间" label="当前时间"
width="90" width="145"
> >
<template #default="scope"> <template #default="scope">
<span <span
v-if="scope.row.advice_name == null && scope.row.ischeck == 1" v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
>{{ transformTime() }}</span >{{ scope.row.tickTime }}</span
> >
</template> </template>
</el-table-column> </el-table-column>
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
show-overflow-tooltip show-overflow-tooltip
property="medicalPurpose" property="medicalPurpose"
label="用药目的" label="用药目的"
width="125" width="135"
> >
<template #default="scope"> <template #default="scope">
<el-select <el-select
...@@ -306,16 +306,6 @@ ...@@ -306,16 +306,6 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="dropNumber" label="滴数" width="60">
<template #default="scope">
<el-input
v-if="scope.row.advice_name == null && scope.row.ischeck == 1"
v-model="scope.row.dropNumber"
size="mini"
></el-input>
<span v-else>{{ scope.row.dropNumber }}</span>
</template>
</el-table-column> -->
<el-table-column prop="medicQuantity" label="用药总量" width="80"> <el-table-column prop="medicQuantity" label="用药总量" width="80">
<template #default="scope"> <template #default="scope">
<el-input <el-input
...@@ -336,7 +326,7 @@ ...@@ -336,7 +326,7 @@
show-overflow-tooltip show-overflow-tooltip
property="remark" property="remark"
label="嘱托" label="嘱托"
width="90'" width="150'"
> >
<template #default="scope"> <template #default="scope">
<el-input <el-input
...@@ -350,91 +340,55 @@ ...@@ -350,91 +340,55 @@
<span v-else>{{ scope.row.remark }}</span> <span v-else>{{ scope.row.remark }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="chiefComplaint" label="主诉" width="90">
<template #default="scope"> <el-table-column prop="description" label="诊断描述" width="150">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.chiefComplaint"
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
></el-input>
</template>
</el-table-column>
<el-table-column prop="inspectionPurpose" label="检查目的" width="90">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.inspectionPurpose"
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
></el-input>
</template>
</el-table-column>
<el-table-column prop="symptom" label="症状及体征" width="100">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.symptom"
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
></el-input>
</template>
</el-table-column>
<el-table-column prop="pastHistory" label="既往史" width="90">
<template #default="scope">
<el-input
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.pastHistory"
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
></el-input>
</template>
</el-table-column>
<el-table-column
prop="auxiliaryItems"
label="其他辅助项目"
width="110"
>
<template #default="scope"> <template #default="scope">
<el-input <div
v-if=" style="
scope.row.advice_name == null && display: flex;
scope.row.ischeck == 1 && height: 100%;
scope.row.isShow == true flex-direction: column;
justify-content: center;
align-items: center;
" "
v-model="scope.row.auxiliaryItems" >
size="mini" <div style="display: flex">
type="textarea" <span
:autosize="{ minRows: 2 }" v-if="
placeholder="请输入内容" scope.row.advice_name == null &&
></el-input> scope.row.ischeck == 1 &&
scope.row.type == 2
"
style="color: red"
>*</span
>
<el-input
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type != 1
"
v-model="scope.row.description"
></el-input>
</div>
<span
style="font-size: 12px; color: red"
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2 &&
scope.row.description == ''
"
>请输入内容</span
>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="description" label="诊断描述" width="100"> <el-table-column prop="symptom" label="症状及体征" width="150">
<template #default="scope"> <template #default="scope">
<div <div
style=" style="
...@@ -450,7 +404,7 @@ ...@@ -450,7 +404,7 @@
v-if=" v-if="
scope.row.advice_name == null && scope.row.advice_name == null &&
scope.row.ischeck == 1 && scope.row.ischeck == 1 &&
scope.row.isShow == true scope.row.type == 2
" "
style="color: red" style="color: red"
>*</span >*</span
...@@ -463,9 +417,9 @@ ...@@ -463,9 +417,9 @@
v-if=" v-if="
scope.row.advice_name == null && scope.row.advice_name == null &&
scope.row.ischeck == 1 && scope.row.ischeck == 1 &&
scope.row.isShow == true scope.row.type != 1
" "
v-model="scope.row.description" v-model="scope.row.symptom"
></el-input> ></el-input>
</div> </div>
<span <span
...@@ -473,33 +427,92 @@ ...@@ -473,33 +427,92 @@
v-if=" v-if="
scope.row.advice_name == null && scope.row.advice_name == null &&
scope.row.ischeck == 1 && scope.row.ischeck == 1 &&
scope.row.isShow == true && scope.row.type == 2 &&
scope.row.description == '' scope.row.symptom == ''
" "
>请输入内容</span >请输入内容</span
> >
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="inspectRemarks" label="备注" width="90">
<el-table-column label="操作" width="80">
<template #default="scope"> <template #default="scope">
<el-input <el-button
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
v-if=" v-if="
scope.row.advice_name == null && scope.row.advice_name == null &&
scope.row.ischeck == 1 && scope.row.ischeck == 1 &&
scope.row.isShow == true scope.row.type != 1
" "
v-model="scope.row.inspectRemarks" size="mini"
></el-input> type="primary"
@click="goSeeScore(scope.row, scope.$index, scope)"
>更多</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
<!-- 更多弹框开始 -->
<el-dialog :visible.sync="goSeeScoredialogFormVisible" width="30%">
<el-form
ref="goSeefromRef"
:model="goSeeform"
:label-position="labelPosition"
label-width="100px"
>
<el-form-item label="主诉:">
<el-input
v-model="goSeeform.chiefComplaint"
:autosize="{ minRows: 2 }"
type="textarea"
placeholder="请输入内容"
/>
</el-form-item>
<el-form-item label="检查目的:">
<el-input
v-model="goSeeform.inspectionPurpose"
:autosize="{ minRows: 2 }"
type="textarea"
placeholder="请输入内容"
:disabled="distype == 3 ? true : false"
/>
</el-form-item>
<el-form-item label="既往史:">
<el-input
v-model="goSeeform.pastHistory"
:autosize="{ minRows: 2 }"
type="textarea"
placeholder="请输入内容"
/>
</el-form-item>
<el-form-item label="其他辅助项目:">
<el-input
v-model="goSeeform.auxiliaryItems"
:autosize="{ minRows: 2 }"
type="textarea"
placeholder="请输入内容"
:disabled="distype == 3 ? true : false"
/>
</el-form-item>
<el-form-item label="备注:">
<el-input
v-model="goSeeform.inspectRemarks"
:autosize="{ minRows: 2 }"
type="textarea"
placeholder="请输入内容"
/>
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button size="mini" @click="goSeecolse()">取消</el-button>
<el-button size="mini" @click="goSeeok()">确定 </el-button>
</span>
</template>
</el-dialog>
<!-- 更多弹框结束 -->
</div> </div>
</template> </template>
<script> <script>
...@@ -520,6 +533,7 @@ import { setItem, getItem } from "../utils/auth"; ...@@ -520,6 +533,7 @@ import { setItem, getItem } from "../utils/auth";
import { Loading } from "element-ui"; import { Loading } from "element-ui";
import _ from "lodash"; import _ from "lodash";
import { transformTimestampnow } from "../utils/formatTime"; import { transformTimestampnow } from "../utils/formatTime";
import { format } from "echarts";
export default { export default {
name: "outClinicalpathway", name: "outClinicalpathway",
setup() { setup() {
...@@ -527,6 +541,7 @@ export default { ...@@ -527,6 +541,7 @@ export default {
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const fromRef = ref(); const fromRef = ref();
const goSeefromRef = ref();
function tableLayout() { function tableLayout() {
nextTick(() => { nextTick(() => {
fromRef.value.doLayout(); fromRef.value.doLayout();
...@@ -537,6 +552,11 @@ export default { ...@@ -537,6 +552,11 @@ export default {
const transformTime = computed(() => { const transformTime = computed(() => {
return transformTimestampnow; return transformTimestampnow;
}); });
// const transformTime = (row) => {
// console.log(2222);
// row.tickTime = transformTimestampnow();
// console.log(row.tickTime);
// };
let state = reactive({ let state = reactive({
//患者信息 //患者信息
topdata: { topdata: {
...@@ -589,7 +609,54 @@ export default { ...@@ -589,7 +609,54 @@ export default {
newtable1: [], newtable1: [],
newtable2: [], newtable2: [],
objtable: { route1: [], route2: [] }, objtable: { route1: [], route2: [] },
goSeeScoredialogFormVisible: false, //更多弹框
goSeeform: {
//更多表单
// chiefComplaint: "", //主诉
// inspectionPurpose: "",
// pastHistory: "",
// auxiliaryItems: "",
// inspectRemarks: "",
},
oldRowObj: {},
goSeeIndex: "",
goSeeIndexPid: "",
distype: 1,
}); });
//更多
const goSeeScore = (row) => {
console.log("state.tableData", state.tableData);
console.log("row", row);
state.distype = row.type;
state.goSeeScoredialogFormVisible = true;
state.oldRowObj = { ...row };
state.goSeeform = { ...row };
state.tableData.forEach((item, index) => {
let childIndex = item.children.findIndex((v) => v.id == row.id);
if (childIndex !== -1) {
state.goSeeIndexPid = index;
state.goSeeIndex = childIndex;
}
});
};
//更多-取消
const goSeecolse = () => {
state.goSeeform = {};
let childrenList = [...state.tableData[state.goSeeIndexPid].children];
childrenList.splice(state.goSeeIndex, 1, state.oldRowObj);
state.tableData[state.goSeeIndexPid].children = childrenList;
state.goSeeScoredialogFormVisible = false;
toggleSelection(state.oldRowObj, true);
};
//更多--确定
const goSeeok = () => {
let childrenList = [...state.tableData[state.goSeeIndexPid].children];
childrenList.splice(state.goSeeIndex, 1, state.goSeeform);
state.tableData[state.goSeeIndexPid].children = childrenList;
console.log(state.tableData, 999);
state.goSeeScoredialogFormVisible = false;
toggleSelection(state.goSeeform, true);
};
//获取途径,频率的下拉数据 //获取途径,频率的下拉数据
const gemedicUseModeoptions = () => { const gemedicUseModeoptions = () => {
http http
...@@ -656,6 +723,7 @@ export default { ...@@ -656,6 +723,7 @@ export default {
// 选中父节点时,子节点一起选中取消 // 选中父节点时,子节点一起选中取消
const select = (selection, row) => { const select = (selection, row) => {
console.log("row--父节点", row); console.log("row--父节点", row);
row.tickTime = transformTimestampnow();
// 选中 // 选中
if ( if (
selection.some((el) => { selection.some((el) => {
...@@ -794,7 +862,6 @@ export default { ...@@ -794,7 +862,6 @@ export default {
.then((data) => { .then((data) => {
if (state.radio == 1) { if (state.radio == 1) {
state.tableData = data.route1; state.tableData = data.route1;
state.tableData.map((el) => { state.tableData.map((el) => {
// console.log(" el",el); // console.log(" el",el);
if (el.children) { if (el.children) {
...@@ -954,6 +1021,10 @@ export default { ...@@ -954,6 +1021,10 @@ export default {
radiochange, radiochange,
getmedicalPurposeoptions, getmedicalPurposeoptions,
transformTime, transformTime,
goSeeok,
goSeeScore,
goSeefromRef,
goSeecolse,
}; };
}, },
}; };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-06-07 00:31:25 * @Date: 2022-06-07 00:31:25
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2023-02-21 11:11:23 * @LastEditTime: 2023-02-28 09:38:48
* @Description: * @Description:
*/ */
const path = require('path') const path = require('path')
...@@ -21,7 +21,7 @@ module.exports = { ...@@ -21,7 +21,7 @@ module.exports = {
proxy: { proxy: {
'/api': { '/api': {
//target: 'http://192.168.18.166:8099/', //target: 'http://192.168.18.166:8099/',
//target: 'http://192.168.18.166:8100/',//drg测试站点 //target: 'http://192.168.18.166:8100/', //drg测试站点
target: 'http://192.168.18.166:8033/', //dip测试站点 target: 'http://192.168.18.166:8033/', //dip测试站点
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
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