罗斌杰 1 year ago
parent
commit
e265a14b28
  1. 7
      src/components/doctorCheck/CheckItemList.vue
  2. 397
      src/views/fee-settings/CriticalValue.vue
  3. 2
      src/views/fee-settings/Item.vue

7
src/components/doctorCheck/CheckItemList.vue

@ -44,10 +44,7 @@
size="small"
>P</el-button
>
<!-- <el-button style="min-width:23px;padding:2px;margin-left: 2px;"
@click="btnPacsResulst(scope.row, scope.$index)" :disabled="rowResultDisabled(scope.row)"
size="small">S</el-button> -->
<el-popover placement="top-end" width="500" trigger="click" :title="scope.row.itemName">
<!-- <el-popover placement="top-end" width="500" trigger="click" :title="scope.row.itemName">
<el-tabs v-model="activeName">
<el-tab-pane label="文字结果" name="first">
<el-table :data="gridData">
@ -78,7 +75,7 @@
size="small"
>S</el-button
>
</el-popover>
</el-popover> -->
</div>
</template>
</el-table-column>

397
src/views/fee-settings/CriticalValue.vue

@ -6,13 +6,78 @@
基础资料 /
<span class="contenttitleBold">危急值</span>
</div>
<div class="seachinput">
<el-select
v-model="department"
placeholder="请选择危急值"
filterable
:filter-method="remoteMethodes"
default-first-option
@change="quckDepartments"
clearable
size="small"
>
<el-option
v-for="item in quckDepartment"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</div>
</div>
<div style="display: flex; margin-top: 7px">
<div
:style="
'width: 208px;overflow: scroll;height:' +
(window.pageHeight < 600 ? 480 : window.pageHeight - 100) +
'px;background-color: #fff; border-radius: 8px'
"
>
<div style="margin-top: 10px">
<el-tree
:data="criticalFollowValueTypeId"
:props="treeprops"
@node-click="treeclick"
node-key="criticalFollowValueTypeId"
ref="itemType"
highlight-current
auto-expand-parent
>
<span class="custom-tree-node" slot-scope="{ node, data }">
<div>
<span class="treeicons">
<!-- <i
class="el-icon-document-remove"
v-if="data.parentId == null"
></i> -->
<img
style="width: 20px; height: 20px; vertical-align: sub"
src="@/assets/images/order.png"
v-if="!data.parentId"
/>
</span>
<span :class="!data.parentId ? 'maxtitle' : 'mintitle'">{{
node.label
}}</span>
</div>
</span>
</el-tree>
</div>
</div>
<div style="display: block; margin-top: 7px; margin-right: 110px">
<div style="background-color: #fff; padding: 15px; border-radius: 8px">
<div id="printTest">
<div style="display: block">
<div style="margin-left: 15px; display: flex">
<div :style="'width:' +
(window.pageWidth - 200 - 110 - 50 - 14) +
'px;padding: 15px;background-color: #fff;border-radius: 8px;'
">
<div>
<el-table
:data="tableData"
:height="window.pageHeight < 600 ? 480 : window.pageHeight - 130"
:height="
window.pageHeight < 600 ? 450 : window.pageHeight - 130
"
row-key="id"
class="el-table__body-wrapper tbody"
@row-click="rowclick"
@ -23,7 +88,11 @@
</el-table-column>
<el-table-column prop="displayName" label="名称" width="">
</el-table-column>
<el-table-column prop="criticalFollowValueTypeId" label="危急值类别" width="">
<el-table-column
prop="criticalFollowValueTypeId"
label="危急值类别"
width=""
>
<template slot-scope="scope">
<div>
{{
@ -35,21 +104,40 @@
</div>
</template>
</el-table-column>
<el-table-column prop="criticalFollowValueFlag" label="危急随访值标志" width="">
<el-table-column
prop="criticalFollowValueFlag"
label="危急随访值标志"
width="120"
>
<template slot-scope="scope">
<div>
{{ dddw(criticalFollowValueFlag, "id", scope.row.criticalFollowValueFlag, "displayName") }}
{{
dddw(
criticalFollowValueFlag,
"id",
scope.row.criticalFollowValueFlag,
"displayName"
)
}}
</div>
</template>
</el-table-column>
<el-table-column prop="creatorName" label="创建者" width="">
</el-table-column>
<el-table-column prop="creationTime" label="创建时间" width="200">
<el-table-column
prop="creationTime"
label="创建时间"
width="200"
>
<template slot-scope="scope">
{{ scope.row.creationTime | dateFormat }}
</template>
</el-table-column>
<el-table-column prop="lastModifierName" label="修改者" width="">
<el-table-column
prop="lastModifierName"
label="修改者"
width=""
>
</el-table-column>
<el-table-column
prop="lastModificationTime"
@ -85,18 +173,11 @@
</el-table>
</div>
</div>
</div>
<!-- 按钮区域 -->
<div
style="
margin-left: 10px;
margin-top: 3%;
position: absolute;
top: 0;
right: 0;
"
<div style="margin-left: 10px">
<el-button type="" @click="add" class="commonbutton"
>新增</el-button
>
<el-button type="" @click="add" class="commonbutton">新增</el-button>
<div style="margin-top: 10px">
<el-button type="" @click="editpopup" class="commonbutton"
>编辑</el-button
@ -137,6 +218,9 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 新增或者编辑弹框 -->
<el-dialog
:title="title == 1 ? '新增' : '编辑'"
@ -168,14 +252,21 @@
</el-col>
<el-col :span="8">
<el-form-item label="危急值类别" prop="criticalFollowValueTypeId">
<el-cascader v-model="form.criticalFollowValueTypeId" :options="criticalFollowValueTypeId" popper-class="example" ref="criticalFollowValueTypeId"
@change="onchange" :props="{
<el-cascader
v-model="form.criticalFollowValueTypeId"
:options="criticalFollowValueTypeId"
popper-class="example"
ref="criticalFollowValueTypeId"
@change="onchange"
:props="{
value: 'criticalFollowValueTypeId',
label: 'displayName',
children: 'treeChildren',
checkStrictly: true,
expandTrigger: 'hover',
}" size="small"></el-cascader>
}"
size="small"
></el-cascader>
<!-- <el-select
v-model="form.itemTypeId"
placeholder="请选择"
@ -200,10 +291,12 @@
placeholder="危急随访值标志"
size="small"
>
<el-option v-for="item in criticalFollowValueFlag"
<el-option
v-for="item in criticalFollowValueFlag"
:key="item.id"
:label="item.displayName"
:value="item.id"></el-option>
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
@ -212,7 +305,11 @@
<el-divider></el-divider>
<el-col :span="4" style="margin-left: 15px">
<el-form-item label="创建者">
<el-input v-model="form.creatorName" disabled size="small"></el-input>
<el-input
v-model="form.creatorName"
disabled
size="small"
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
@ -227,7 +324,11 @@
</el-col>
<el-col :span="4">
<el-form-item label="修改者">
<el-input v-model="form.lastModifierName" disabled size="small"></el-input>
<el-input
v-model="form.lastModifierName"
disabled
size="small"
></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
@ -243,7 +344,9 @@
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false" class="difference"> </el-button>
<el-button @click="dialogVisible = false" class="difference"
> </el-button
>
<el-button type="primary" @click="addoredit" class="commonbutton"
> </el-button
>
@ -268,11 +371,9 @@ import {
tijiandetid,
diagnosticediting,
xiugaijielun,
conclusionacquisition
conclusionacquisition,
} from "../../request/systemapi";
import {
criticalFollowValueType
} from "@/request/commonapi";
import { criticalFollowValueType } from "@/request/commonapi";
export default {
data() {
return {
@ -288,13 +389,16 @@ export default {
selars: "",
value: "",
criticalFollowValueTypeId: [],
criticalFollowValueFlag:[{
criticalFollowValueFlag: [
{
id: "0",
displayName:"危急值"
},{
displayName: "危急值",
},
{
id: "1",
displayName:"随访值"
}],
displayName: "随访值",
},
],
title: 1,
pages: {
TypeId: "",
@ -312,11 +416,18 @@ export default {
initTableData: [],
item: {},
curRow: {},
treeprops: {
label: "displayName",
value: "id",
children: "treeChildren",
},
criticalFollowTypeId:"",
department:"",
quckDepartment:""
};
},
created() {
this.getlist();
// this.getmedicalconclusionlist();
},
computed: {
...mapState(["window"]),
@ -328,6 +439,102 @@ export default {
methods: {
dddw,
treeclick(data) {
if(data){
this.criticalFollowTypeId = data.criticalFollowValueTypeId;
}
postapi("/api/app/CriticalFollowValue/GetList",{
criticalFollowValueTypeId:this.criticalFollowTypeId
}).then((res) => {
if (res.code != -1) {
this.tableData = res.data;
}
});
},
remoteMethodes(keyWords) {
if (keyWords) {
this.quckDepartment = [];
this.initTableData.forEach((item) => {
if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
-1
// ||
// item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) {
this.quckDepartment.push(item);
}
});
} else {
this.quckDepartment = deepCopy(this.initTableData);
}
},
quckDepartments(e) {
if (e) {
let currentKey = "";
this.quckDepartment.forEach((item) => {
if (e == item.id) {
currentKey = item.criticalFollowValueTypeId;
this.initItemTypeId = item.criticalFollowValueTypeId;
}
});
this.$refs["itemType"].setCurrentKey(currentKey);
let selected = this.$refs["itemType"].getCurrentNode();
if (
this.$refs["itemType"].getNode(selected) &&
this.$refs["itemType"].getNode(selected).parent
) {
this.expandParents(this.$refs["itemType"].getNode(selected).parent);
}
postapi("/api/app/CriticalFollowValue/GetList",{
criticalFollowValueTypeId:currentKey
}).then((res) => {
if (res.code != -1) {
this.tableData = res.data;
this.tableData.forEach((item, index) => {
if (e == item.id) {
this.$refs["tableData"].setCurrentRow(item);
this.rowclick(item);
this.tableScrollToRow(this.$refs.tableData, index);
this.searchup(item, index)
}
});
}
});
} else {
this.remoteMethodes();
}
},
tableScrollToRow(tableElement, rowIndex) {
let theTableRows = tableElement.bodyWrapper.querySelectorAll(
".el-table__body tbody .el-table__row"
);
let scrollTop = 0;
for (let i = 0; i < theTableRows.length; i++) {
if (i === rowIndex) {
break;
}
scrollTop += theTableRows[i].offsetHeight;
}
tableElement.bodyWrapper.scrollTop = scrollTop;
},
searchup(data, index) {
this.$nextTick(() => {
if (index == 0) {
index = 1
}
const targetTop = this.$refs["tableData"].$el.querySelectorAll('.el-table__body tr')[index - 1].getBoundingClientRect().top
const containerTop = this.$refs["tableData"].$el.querySelector('.el-table__body').getBoundingClientRect().top
const scrollParent = this.$refs["tableData"].$el.querySelector('.el-table__body-wrapper')
scrollParent.scrollTop = targetTop - containerTop
})
},
expandParents(node) {
node.expanded = true;
if (node.parent) {
this.expandParents(node.parent);
}
},
getTreeName(list, id) {
for (let i = 0; i < list.length; i++) {
if (list[i].criticalFollowValueTypeId === id) {
@ -344,8 +551,10 @@ export default {
criticalFollowValueType().then((res) => {
if (res.code != -1) {
this.criticalFollowValueTypeId = res.data;
this.criticalFollowValueTypeId = this.formatData(this.criticalFollowValueTypeId);
console.log(this.criticalFollowValueTypeId)
this.criticalFollowValueTypeId = this.formatData(
this.criticalFollowValueTypeId
);
console.log(this.criticalFollowValueTypeId);
}
});
},
@ -361,53 +570,14 @@ export default {
},
onchange(v) {
if (v.length > 1) {
this.form.criticalFollowValueTypeId = this.form.criticalFollowValueTypeId.slice(-1)[0];
this.form.criticalFollowValueTypeId =
this.form.criticalFollowValueTypeId.slice(-1)[0];
} else {
this.form.criticalFollowValueTypeId = this.form.criticalFollowValueTypeId[0];
this.form.criticalFollowValueTypeId =
this.form.criticalFollowValueTypeId[0];
}
this.$refs.criticalFollowValueTypeId.toggleDropDownVisible();
},
createFilter(queryString) {
return (tableData) => {
return (
tableData.displayName
.toLowerCase()
.indexOf(queryString.toLowerCase()) != -1
);
};
},
handleSelect(item) {
this.page.Filter = item.displayName;
this.item = item;
this.formid = item.id;
//console.log(item);
// quersmedicalid(item.id).then((res) => {
// console.log(res);
// this.form = res.data;
// });
},
querySearch(queryString, cb) {
var tableData = this.tableData;
var tableDatas = queryString
? tableData.filter(this.createFilter(queryString))
: tableData;
// callback
cb(tableDatas);
},
isselctvalue(v) {
this.form.medicalConclusionTypeId = v;
this.pages.TypeId = v;
this.getlist();
},
getmedicalconclusionlist() {
medicalconclusionlist().then((res) => {
if(res.code!=-1){
this.Selectacategory = res.data;
}
});
},
// this.medicalconclusionlist()
//
delsrts() {
this.form = { ...this.curRow };
@ -419,16 +589,16 @@ export default {
cancelButtonText: "取消",
type: "warning",
cancelButtonClass: "difference",
confirmButtonClass:"commonbutton"
confirmButtonClass: "commonbutton",
})
.then(() => {
postapi("/api/app/CriticalFollowValue/Delete", {
criticalFollowValueId:this.form.id
criticalFollowValueId: this.form.id,
}).then((res) => {
if (res.code != -1) {
//this.$message.success('')
this.getlist();
this.curRow=this.$options.data().curRow
this.treeclick();
this.curRow = this.$options.data().curRow;
}
});
})
@ -439,7 +609,7 @@ export default {
cancellation() {
this.$message.info("取消操作");
this.isshow = true;
this.getlist();
this.treeclick();
},
assertiona() {
@ -458,10 +628,12 @@ export default {
// }
result.push({ id: item.id, displayOrder: index + 1 });
});
postapi("/api/app/CriticalFollowValue/UpdateSortMany",{ itemList: result }).then((res) => {
postapi("/api/app/CriticalFollowValue/UpdateSortMany", {
itemList: result,
}).then((res) => {
if (res.code != -1) {
this.isshow = true;
this.getlist();
this.treeclick();
//this.$message.success('')
}
});
@ -501,10 +673,10 @@ export default {
} else {
postapi("/api/app/CriticalFollowValue/UpdateManySort", {
criticalFollowValueId: this.form.id,
sortType:2
sortType: 2,
}).then((res) => {
if (res.code != -1) {
this.getlist();
this.treeclick();
//this.$message.success('')
}
});
@ -518,10 +690,10 @@ export default {
} else {
postapi("/api/app/CriticalFollowValue/UpdateManySort", {
criticalFollowValueId: this.form.id,
sortType:1
sortType: 1,
}).then((res) => {
if (res.code != -1) {
this.getlist();
this.treeclick();
//this.$message.success('')
}
});
@ -541,12 +713,6 @@ export default {
this.$nextTick(() => {
this.$refs.refinput.focus();
});
medicalconclusionlist().then((res) => {
if(res.code!=-1){
this.ars = res.data;
this.selars = this.form.medicalConclusionTypeId;
}
});
}
},
//id
@ -571,10 +737,10 @@ export default {
postapi("/api/app/CriticalFollowValue/Create", {
displayName: this.form.displayName,
criticalFollowValueTypeId: this.form.criticalFollowValueTypeId,
criticalFollowValueFlag: this.form.criticalFollowValueFlag
criticalFollowValueFlag: this.form.criticalFollowValueFlag,
}).then((res) => {
if (res.code != -1) {
this.getlist();
this.treeclick();
this.dialogVisible = false;
//this.$message.success('')
}
@ -585,10 +751,10 @@ export default {
criticalFollowValueId: this.form.id,
displayName: this.form.displayName,
criticalFollowValueTypeId: this.form.criticalFollowValueTypeId,
criticalFollowValueFlag: this.form.criticalFollowValueFlag
criticalFollowValueFlag: this.form.criticalFollowValueFlag,
}).then((res) => {
if (res.code != -1) {
this.getlist();
this.treeclick();
this.dialogVisible = false;
//this.$message.success('')
}
@ -598,21 +764,20 @@ export default {
},
//
add() {
if (this.criticalFollowTypeId == undefined || this.criticalFollowTypeId == "") {
this.$message.warning("请选择危急类别");
} else {
this.title = 1;
this.dialogVisible = true;
if (this.$refs.form !== undefined) {
this.$refs.form.resetFields();
}
this.form=this.$options.data().form
this.selars = "";
this.form = this.$options.data().form;
this.form.criticalFollowValueTypeId = this.criticalFollowTypeId;
this.$nextTick(() => {
this.$refs.refinput.focus();
});
medicalconclusionlist().then((res) => {
if(res.code!=-1){
this.ars = res.data;
}
});
},
getlist() {
// conclusionacquisition(this.pages).then((res) => {
@ -627,22 +792,10 @@ export default {
postapi("/api/app/CriticalFollowValue/GetList").then((res) => {
if (res.code != -1) {
this.initTableData = [...res.data];
this.tableData = res.data;
if (rowsid != null && rowsid != "") {
var row = this.tableData.filter((item) => item.id == rowsid);
this.$refs.tableData.setCurrentRow(row[0]);
quersmedicalid(rowsid).then((res) => {
this.form = res.data;
});
}
this.quckDepartment = res.data;
}
});
},
selsearch(id, typeid) {
this.Selectvalue = typeid;
this.pages.TypeId = typeid;
this.getlistM(id);
},
},
};
</script>

2
src/views/fee-settings/Item.vue

@ -7,7 +7,7 @@
<span class="contenttitleBold">项目设置</span>
</div>
<div class="seachinput">
<el-select v-model="department" placeholder="请选择项目类别" filterable :filter-method="remoteMethodes"
<el-select v-model="department" placeholder="请选择项目" filterable :filter-method="remoteMethodes"
default-first-option @change="quckDepartments" clearable size="small">
<el-option v-for="item in quckDepartment" :key="item.id" :label="item.displayName" :value="item.id">
</el-option>

Loading…
Cancel
Save