pengjun 2 years ago
parent
commit
f5913071d1
  1. 2
      src/components/customerOrg/customerOrgRegister.vue
  2. 168
      src/views/fee-settings/SysParmSet.vue

2
src/components/customerOrg/customerOrgRegister.vue

@ -4,7 +4,7 @@
<el-table :data="customerOrg.customerOrgRegisterList" border
:height="window.pageHeight < 600 ? 200 : window.pageHeight - 400" size="small" highlight-current-row
@row-click="rowClick" ref="customerOrg.customerOrgRegisterList">
<el-table-column prop="id" label="id" min-width="200" align="center" />
<el-table-column prop="id" label="编号" width="300" align="center" />
<el-table-column prop="medicalTimes" label="体检次数" width="70" align="center" />
<el-table-column prop="beginTime" label="开始日期" min-width="80" align="center">
<template slot-scope="scope">

168
src/views/fee-settings/SysParmSet.vue

@ -1,63 +1,43 @@
<template>
<div class="box">
<div class="middlebox">
<div class="contenttitle"
>
常用设置 /
<span class="contenttitleBold"
>系统参数</span
>
</div>
<div class="contenttitle">
常用设置 /
<span class="contenttitleBold">系统参数</span>
</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="sysParmTypesTree"
:props="treeProps" highlight-current
@node-click="nodeClick"
>
<span class="custom-tree-node" slot-scope="{ node, data }">
<div>
<span class="treeicons">
<!-- <i
<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="sysParmTypesTree" :props="treeProps" highlight-current @node-click="nodeClick">
<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 == null"/>
</span>
<span
:class="data.parentId == null ? 'maxtitle' : 'mintitle'"
>{{ node.label }}</span
>
</div>
<img style="width:20px;height:20px;vertical-align: sub;" src="@/assets/images/order.png"
v-if="data.parentId == null" />
</span>
<span :class="data.parentId == null ? 'maxtitle' : 'mintitle'">{{ node.label }}</span>
</div>
</span>
</el-tree>
</div>
</div>
<div :style="'margin-left: 15px;width:'+ (window.pageWidth - 200 - 45) + 'px;'">
<div>
<el-table
:data="sysParms"
:height="window.pageHeight < 600 ? 418 : window.pageHeight - 162"
size="small" :span-method="spanMethod"
highlight-current-row
border
style="border-radius: 8px;"
>
<el-table-column prop="sysParmId" label="参数ID" min-width="150"/>
<el-table-column
prop="displayName"
label="参数名称"
min-width="150"
/>
<el-table-column prop="medicalCenterId" label="体检中心" min-width="100">
<template slot-scope="scope">
<!--
</div>
<div :style="'margin-left: 15px;width:' + (window.pageWidth - 200 - 45) + 'px;'">
<div>
<el-table :data="sysParms" :height="window.pageHeight < 600 ? 418 : window.pageHeight - 162" size="small"
:span-method="spanMethod" highlight-current-row border style="border-radius: 8px;">
<el-table-column prop="sysParmId" label="参数ID" min-width="150" />
<el-table-column prop="displayName" label="参数名称" min-width="150" />
<el-table-column prop="medicalCenterId" label="体检中心" min-width="100">
<template slot-scope="scope">
<!--
<el-select
v-model="scope.row.medicalCenterId"
placeholder="请选择体检中心"
@ -73,36 +53,26 @@
</el-option>
</el-select>
-->
<div>{{ dddw(organization,'id',scope.row.medicalCenterId,'displayName')}}</div>
</template>
</el-table-column>
<el-table-column prop="sysParmValueName" label="参数值" min-width="80">
<template slot-scope="scope">
<el-input
type="textarea"
v-model="scope.row.sysParmValueName"
:autosize="{ minRows: 1, maxRows: 100 }"
maxlength="100"
size="small"
/>
</template>
</el-table-column>
<el-table-column prop="valueRemark" label="备注" min-width="150">
<template slot-scope="scope">
<el-input
type="textarea"
v-model="scope.row.valueRemark"
:autosize="{ minRows: 1, maxRows: 100 }"
maxlength="500"
size="small"
/>
</template>
</el-table-column>
<el-table-column prop="remark" label="参数说明" min-width="150"/>
</el-table>
</div>
<div style="margin-top:15px; display: flex;justify-content:space-between;">
<!--
<div>{{ dddw(organization, 'id', scope.row.medicalCenterId, 'displayName') }}</div>
</template>
</el-table-column>
<el-table-column prop="sysParmValueName" label="参数值" min-width="80">
<template slot-scope="scope">
<el-input type="textarea" v-model="scope.row.sysParmValueName" :autosize="{ minRows: 1, maxRows: 100 }"
maxlength="100" size="small" />
</template>
</el-table-column>
<el-table-column prop="valueRemark" label="备注" min-width="150">
<template slot-scope="scope">
<el-input type="textarea" v-model="scope.row.valueRemark" :autosize="{ minRows: 1, maxRows: 100 }"
maxlength="500" size="small" />
</template>
</el-table-column>
<el-table-column prop="remark" label="参数说明" min-width="150" />
</el-table>
</div>
<div style="margin-top:15px; display: flex;justify-content:space-between;">
<!--
<div>
<span>体检中心</span>
<el-select
@ -123,12 +93,12 @@
</el-select>
</div>
-->
<div></div>
<div>
<el-button type="success" @click="btnSave" class="commonbutton">保存</el-button>
</div>
<div></div>
<div>
<el-button type="success" @click="btnSave" class="commonbutton">保存</el-button>
</div>
</div>
</div>
</div>
</div>
</template>
@ -149,12 +119,12 @@ export default {
organization: [], //
organizationId: "00000000-0000-0000-0000-000000000000",
sysParmTypeId: "",
spanRow:[],
spanRow: [],
sysParms: [], //
};
},
created() {},
created() { },
//
mounted() {
@ -172,14 +142,14 @@ export default {
getOraniztion() {
getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => {
if(res.code!=-1){
if (res.code != -1) {
this.organization = [
{
displayName: "公共参数",
id: "00000000-0000-0000-0000-000000000000",
},
...res.data,
];
{
displayName: "公共参数",
id: "00000000-0000-0000-0000-000000000000",
},
...res.data,
];
}
}
);
@ -214,14 +184,14 @@ export default {
getapi(`${url}`).then((res) => {
if (res.code != -1) {
this.sysParms = res.data;
this.spanRow = this.parseSpanRow(this.sysParms,'sysParmId')
this.spanRow = this.parseSpanRow(this.sysParms, 'sysParmId')
}
});
},
//
spanMethod({ row, column, rowIndex, columnIndex }) {
if(columnIndex == 0 || columnIndex == 1 || columnIndex == 5){
if (columnIndex == 0 || columnIndex == 1 || columnIndex == 5) {
for (let i = 0; i < this.spanRow.length; i++) {
if (rowIndex == this.spanRow[i].startRow) {
return {
@ -266,7 +236,7 @@ export default {
},
//
parseSpanRow(arrayData,key) {
parseSpanRow(arrayData, key) {
let spanRow = [];
let preVal = '', curVal = '';
let startRow = 0;
@ -281,7 +251,7 @@ export default {
startRow = i;
preVal = arrayData[i][key];
}
if (i == arrayData.length - 1 && preVal === curVal){
if (i == arrayData.length - 1 && preVal === curVal) {
spanRow.push({ startRow, endRow: i });
}
}
@ -292,8 +262,8 @@ export default {
btnSave() {
let body = {
sysParmTypeId:this.sysParmTypeId,
details:[]
sysParmTypeId: this.sysParmTypeId,
details: []
}
if (this.sysParms.length < 1) return;
@ -324,9 +294,9 @@ export default {
@import '../../assets/css/global_input.css';
@import '../../assets/css/global_table.css';
@import '../../assets/css/global.css';
.box {
display: flex;
flex-direction: column;
}
</style>
Loading…
Cancel
Save