From e3b950376c5ff4541e28174de819ee8ca8852843 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E6=96=8C=E6=9D=B0?= <>
Date: Tue, 11 Jun 2024 01:44:20 +0800
Subject: [PATCH] ui
---
src/views/fee-settings/Asbitem.vue | 997 ++++++++++++++++++++++-------
1 file changed, 750 insertions(+), 247 deletions(-)
diff --git a/src/views/fee-settings/Asbitem.vue b/src/views/fee-settings/Asbitem.vue
index a7d0aba..168288c 100644
--- a/src/views/fee-settings/Asbitem.vue
+++ b/src/views/fee-settings/Asbitem.vue
@@ -7,21 +7,44 @@
组合项目
-
-
+
+
-
+
-
+
@@ -29,10 +52,15 @@
class="el-icon-document-remove"
v-if="data.parentId == null"
> -->
-
+
-
{{ node.label }}
+
{{
+ node.label
+ }}
@@ -41,59 +69,101 @@
-
-
+
+
-
+
- {{ scope.row.isDisablePreparePregnancy == 'Y' ?
- '√' : '' }}
+
+ {{ dddw(forPregnantFlag, "id", scope.row.forPregnantFlag, "displayName") }}
+
-
+
- {{ scope.row.isDisablePregnancy == 'Y' ? '√' : '' }}
+
+ {{ dddw(dict.forMaritalStatus, "id", scope.row.maritalStatusId, "displayName") }}
-
+
-
+
{{ scope.row.creationTime | dateFormat }}
-
+
{{ scope.row.lastModificationTime | dateFormat }}
-
-
+
+ "
+ >
@@ -102,91 +172,178 @@
-
+
-
+
- 项目类别:
- 项目类别:
+
+ }"
+ size="small"
+ >
-
-
-
+
+
+
-
+
- 搜索选择:
-
-
+ "
+ >搜索选择:
+
+
-
-
-
+
+
+
@@ -194,49 +351,91 @@
-
-
-
+
+
+
-
-
-
+
+
+
-
+
-
+
-
-
+
+
@@ -244,13 +443,28 @@
@@ -263,42 +477,85 @@
-
新增
+
新增
- 编辑
+ 编辑
- 删除
+ 删除
- 置顶
+ 置顶
- 置底
+ 置底
- 排序
+ 排序
- 取消
+ 取消
- 确定项目
+ 确定项目
- 取消项目
+ 取消项目
-
-
+
+
-
+
@@ -312,55 +569,121 @@
>
-->
-
+ }"
+ size="small"
+ >
- changeUpdate($event, 'displayName')" size="small">
+ changeUpdate($event, 'displayName')"
+ size="small"
+ >
- changeUpdate($event, 'shortName')"
- size="small">
+ changeUpdate($event, 'shortName')"
+ size="small"
+ >
-
-
+
+
+
+
+
+
+
+
+
+
- changeUpdate($event, 'price')"
- size="small">
+ changeUpdate($event, 'price')"
+ size="small"
+ >
-
+
-
-
+
+
-
+
-
-
+
+
@@ -379,10 +702,14 @@
>
-->
-
+
-
+
-
+
- changeUpdate($event, 'clinicalMeaning')" />
+ changeUpdate($event, 'clinicalMeaning')"
+ />
- changeUpdate($event, 'warn')" />
+ changeUpdate($event, 'warn')"
+ />
-
+
- changeUpdate($event, 'defaultResult')" />
-
-
+ changeUpdate($event, 'defaultResult')"
+ />
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -445,16 +806,29 @@
>
-->
-
+
-
-
+
+
@@ -472,19 +846,37 @@
>
-->
-
+
- changeUpdate($event, 'queueTime')"
- size="small">
+ changeUpdate($event, 'queueTime')"
+ size="small"
+ >
-
-
+
+
@@ -503,7 +895,11 @@
>
-->
-
+
@@ -517,14 +913,27 @@
>
-->
-
+
-
-
+
+
@@ -540,7 +949,11 @@
>
-->
-
+
@@ -554,7 +967,11 @@
>
-->
-
+
@@ -562,41 +979,79 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
@@ -617,14 +1072,22 @@
-
+
-
+
@@ -635,21 +1098,38 @@
-
+
-
+
@@ -659,7 +1139,7 @@ import { mapState } from "vuex";
import Sortable from "sortablejs";
import { getapi, postapi, deletapi } from "@/api/api";
import { examinationgender, instrumentlist } from "@/request/systemapi";
-import { deepCopy, objCopy } from "../../utlis/proFunc";
+import { deepCopy, objCopy,dddw } from "../../utlis/proFunc";
import {
getporjectlists,
groupsandlist,
@@ -804,10 +1284,24 @@ export default {
warn: "",
diseaseScreeningTypeId: null,
isDiagnosisFunctionBox: false,
- isDisablePreparePregnancy: 'N',
- isDisablePregnancy: 'N',
+ forPregnantFlag: "A",
+ maritalStatusId:"A"
},
forSexId: [], //性别
+ forPregnantFlag: [
+ {
+ id: "A",
+ displayName: "允许",
+ },
+ {
+ id: "0",
+ displayName: "备孕和怀孕期间禁检",
+ },
+ {
+ id: "1",
+ displayName: "怀孕期间禁检",
+ },
+ ],
itemTypeId: [], //项目类别
deviceTypeId: [], //仪器类别
invoiceItemTypeId: [], //发票类别
@@ -964,18 +1458,20 @@ export default {
},
collectItemType: [],
diseaseScreeningType: [],
- barcodeMode: [{
- id: "0",
- displayName: "使用项目类别设置"
- },
- {
- id: "1",
- displayName: "打印人员登记号"
- },
- {
- id: "2",
- displayName: "不打印"
- }]
+ barcodeMode: [
+ {
+ id: "0",
+ displayName: "使用项目类别设置",
+ },
+ {
+ id: "1",
+ displayName: "打印人员登记号",
+ },
+ {
+ id: "2",
+ displayName: "不打印",
+ },
+ ],
};
},
created() {
@@ -989,13 +1485,14 @@ export default {
},
updated() {
this.$nextTick(() => {
- this.$refs.table.doLayout()
- })
+ this.$refs.table.doLayout();
+ });
},
computed: {
- ...mapState(["window"]),
+ ...mapState(["window","dict"]),
},
methods: {
+ dddw,
changeBox(type) {
//赋值
if (this.form[type + "Box"]) {
@@ -1031,7 +1528,7 @@ export default {
this.initfiletelists.forEach((item) => {
if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
- -1 ||
+ -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) {
@@ -1048,7 +1545,7 @@ export default {
this.initprojectid.forEach((item) => {
if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
- -1 ||
+ -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) {
@@ -1109,7 +1606,7 @@ export default {
this.initTableData.forEach((item) => {
if (
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
- -1 ||
+ -1 ||
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
) {
@@ -1148,7 +1645,7 @@ export default {
this.$refs["tableData"].setCurrentRow(item);
this.rowick(item);
this.tableScrollToRow(this.$refs.tableData, index);
- this.searchup(item, index)
+ this.searchup(item, index);
}
});
}
@@ -1160,13 +1657,19 @@ export default {
searchup(data, index) {
this.$nextTick(() => {
if (index == 0) {
- index = 1
+ 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
- })
+ 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;
@@ -1209,7 +1712,7 @@ export default {
cancelButtonText: "否",
type: "warning",
cancelButtonClass: "difference",
- confirmButtonClass: "commonbutton"
+ confirmButtonClass: "commonbutton",
})
.then(() => {
this.formdata.guidanceinformationdata.splice(
@@ -1564,7 +2067,7 @@ export default {
});
postapi("/api/app/DiseaseScreeningType/GetList").then((res) => {
if (res.code != -1) {
- this.diseaseScreeningType = [...res.data]
+ this.diseaseScreeningType = [...res.data];
}
});
// groupsandlist(this.pages).then((res) => {
@@ -1621,7 +2124,7 @@ export default {
}
},
bindidclose() {
- this.form = this.$options.data().form
+ this.form = this.$options.data().form;
},
rowDrop() {
this.$nextTick(() => {
@@ -1650,15 +2153,15 @@ export default {
},
//取消按钮
cancellation() {
- postapi("/api/app/asbitem/getasbitemlist", { itemTypeId: this.initItemTypeId }).then(
- (res) => {
- if (res.code != -1) {
- this.tableData = res.data;
- this.$message.info("操作取消");
- this.isshow = true;
- }
+ postapi("/api/app/asbitem/getasbitemlist", {
+ itemTypeId: this.initItemTypeId,
+ }).then((res) => {
+ if (res.code != -1) {
+ this.tableData = res.data;
+ this.$message.info("操作取消");
+ this.isshow = true;
}
- );
+ });
},
//确定排序
assertion() {
@@ -1716,7 +2219,7 @@ export default {
cancelButtonText: "取消",
type: "warning",
cancelButtonClass: "difference",
- confirmButtonClass: "commonbutton"
+ confirmButtonClass: "commonbutton",
}).then(() => {
deletescombinationprojectid(this.form.id).then((res) => {
if (res.code != -1) {
@@ -1782,7 +2285,7 @@ export default {
// });
postapi("/api/app/CollectItemType/GetList").then((res) => {
if (res.code != -1) {
- this.collectItemType = [...res.data]
+ this.collectItemType = [...res.data];
}
});
}
@@ -1820,8 +2323,8 @@ export default {
isWebAppoint: this.form.isWebAppoint,
warn: this.form.warn,
diseaseScreeningTypeId: this.form.diseaseScreeningTypeId,
- isDisablePreparePregnancy: this.form.isDisablePreparePregnancy,
- isDisablePregnancy: this.form.isDisablePregnancy,
+ forPregnantFlag: this.form.forPregnantFlag,
+ maritalStatusId:this.form.maritalStatusId
};
newcombination(obj).then((res) => {
if (res.code != -1) {
@@ -1860,8 +2363,8 @@ export default {
isWebAppoint: this.form.isWebAppoint,
warn: this.form.warn,
diseaseScreeningTypeId: this.form.diseaseScreeningTypeId,
- isDisablePreparePregnancy: this.form.isDisablePreparePregnancy,
- isDisablePregnancy: this.form.isDisablePregnancy,
+ forPregnantFlag: this.form.forPregnantFlag,
+ maritalStatusId:this.form.maritalStatusId
};
updateombination(this.form.id, obj).then((res) => {
if (res.code != -1) {
@@ -1901,7 +2404,7 @@ export default {
if (this.$refs.ruleForm !== undefined) {
this.$refs.ruleForm.resetFields();
}
- this.form = this.$options.data().form
+ this.form = this.$options.data().form;
this.form.itemTypeId = this.initItemTypeId;
this.$nextTick(() => {
this.$refs.refinput.focus();
@@ -1935,7 +2438,7 @@ export default {
// });
postapi("/api/app/CollectItemType/GetList").then((res) => {
if (res.code != -1) {
- this.collectItemType = [...res.data]
+ this.collectItemType = [...res.data];
}
});
}
@@ -1973,11 +2476,11 @@ export default {
const sums = [];
columns.forEach((column, index) => {
if (index === 0) {
- sums[index] = '合计';
+ sums[index] = "合计";
return;
}
if (index === 1) {
- sums[index] = data.length + '个';
+ sums[index] = data.length + "个";
return;
}
});
@@ -2108,7 +2611,7 @@ export default {
flex-direction: column;
}
-:deep .el-tree-node>.el-tree-node__children {
+:deep .el-tree-node > .el-tree-node__children {
overflow: visible;
}