pengjun 2 years ago
parent
commit
6fccfe3fb1
  1. 2
      src/App.vue
  2. 36
      src/assets/css/global_dialog.css
  3. 14
      src/components/patientRegister/PatientRegisterList.vue
  4. 4
      src/components/report/AsbitemOCX.vue
  5. 10
      src/components/report/CusOrgOCX.vue
  6. 2
      src/views/report/chargeAsbitem.vue
  7. 42
      src/views/user-list/OrganizationUnits.vue
  8. 11
      src/views/user-list/UserList.vue

2
src/App.vue

@ -63,8 +63,6 @@
} }
.elcard { .elcard {
border-radius: 15px; border-radius: 15px;
margin-left: -12px;
margin-top: -15px;
} }
.commonbutton { .commonbutton {
width: 100px; width: 100px;

36
src/assets/css/global_dialog.css

@ -0,0 +1,36 @@
/* 标题间距 */
.el-dialog__header {
padding: 20px 10px 10px; /*原始: 20px 20px 10px;*/
}
.el-dialog__headerbtn {
right: 10px; /*原始: 20px ;*/
/*
position: absolute;
top: 20px;
padding: 0;
background: 0 0;
border: none;
outline: 0;
cursor: pointer;
font-size: 16px;
*/
}
.el-dialog__body {
padding: 10px 10px 20px; /*原始: 30px 20px;*/
/*
color: #606266;
font-size: 14px;
word-break: break-all;
*/
}
.el-dialog__footer {
padding: 0px 10px 20px; /*原始: 10px 20px 20px*/
/*
text-align: right;
box-sizing: border-box;
*/
}

14
src/components/patientRegister/PatientRegisterList.vue

@ -790,7 +790,7 @@ export default {
let customerOrgId = this.patientRegister.query.customerOrgId; let customerOrgId = this.patientRegister.query.customerOrgId;
if (!customerOrgId) { if (!customerOrgId) {
alert("请选择单位或个人");
this.$message.warning("请选择单位或个人");
return; return;
} }
//console.log('customerOrgId',customerOrgId) //console.log('customerOrgId',customerOrgId)
@ -811,7 +811,7 @@ export default {
btnEdit() { btnEdit() {
if (!this.patientRegister.patientRegisterRd.id) { if (!this.patientRegister.patientRegisterRd.id) {
alert("请选择要操作的记录");
this.$message.warning("请选择要操作的记录");
return; return;
} }
//this.patientRegister.patientRegisterTimes++; //this.patientRegister.patientRegisterTimes++;
@ -824,7 +824,7 @@ export default {
// //
openCamera() { openCamera() {
if (!this.patientRegister.patientRegisterId) { if (!this.patientRegister.patientRegisterId) {
alert("请选择要操作的记录");
this.$message.warning("请选择要操作的记录");
return; return;
} }
this.patientRegister.cameraVisble = true; this.patientRegister.cameraVisble = true;
@ -834,7 +834,7 @@ export default {
// /api/app/patient-register/many?PatientRegisterIds=3a0c2cac-f44c-f407-9504-c1fc5e80a159&PatientRegisterIds=3a0c2cb3-d10c-ed70-db6a-b835e75ce641 // /api/app/patient-register/many?PatientRegisterIds=3a0c2cac-f44c-f407-9504-c1fc5e80a159&PatientRegisterIds=3a0c2cb3-d10c-ed70-db6a-b835e75ce641
del() { del() {
if (this.multipleSelection.length < 1) { if (this.multipleSelection.length < 1) {
alert("请先勾选要操作的记录");
this.$message.warning("请先勾选要操作的记录");
return; return;
} }
let patientRegisterIds = []; let patientRegisterIds = [];
@ -869,7 +869,7 @@ export default {
// //
delBak() { delBak() {
if (!this.patientRegister.patientRegisterId) { if (!this.patientRegister.patientRegisterId) {
alert("请选择要操作的记录");
this.$message.warning("请选择要操作的记录");
return; return;
} }
@ -1048,7 +1048,7 @@ export default {
btnGroupBatch() { btnGroupBatch() {
let customerOrgId = this.patientRegister.query.customerOrgId; let customerOrgId = this.patientRegister.query.customerOrgId;
if (!customerOrgId) { if (!customerOrgId) {
alert("请选择单位");
this.$message.warning("请选择单位");
return; return;
} }
// start // start
@ -1178,7 +1178,7 @@ export default {
asbBatch() { asbBatch() {
let customerOrgId = this.patientRegister.query.customerOrgId; let customerOrgId = this.patientRegister.query.customerOrgId;
if (!customerOrgId) { if (!customerOrgId) {
alert("请选择单位");
this.$message.warning("请选择单位");
return; return;
} }
// start // start

4
src/components/report/AsbitemOCX.vue

@ -1,5 +1,5 @@
<template> <template>
<div style="display: flex; margin-top: -30px;">
<div style="display: flex; ">
<div style="width:230px;"> <div style="width:230px;">
<div style="display: flex;"> <div style="display: flex;">
<span>项目类别</span> <span>项目类别</span>
@ -69,7 +69,7 @@
<el-dialog title="体检套餐" :visible.sync="medicalPackageVisble" width="600px" height="400" <el-dialog title="体检套餐" :visible.sync="medicalPackageVisble" width="600px" height="400"
:show-close="false" :close-on-click-modal="false" :append-to-body="true"> :show-close="false" :close-on-click-modal="false" :append-to-body="true">
<el-table :data="dict.medicalPackage" border height="350" row-key="id" size="small" <el-table :data="dict.medicalPackage" border height="350" row-key="id" size="small"
highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" ref="patientList" style="margin-top: -30px;">
highlight-current-row @row-click="rowClick" @row-dblclick="rowDblclick" ref="patientList" >
<!-- "displayName": "健康体检套餐", <!-- "displayName": "健康体检套餐",
"price": 20.00, "price": 20.00,

10
src/components/report/CusOrgOCX.vue

@ -1,10 +1,10 @@
<template> <template>
<div style="display: flex;"> <div style="display: flex;">
<div style="width: 180px;height:520px;margin-top: -30px;overflow: scroll;border: 1px solid;">
<div style="width: 180px;height:520px;overflow: scroll;border: 1px solid;">
<el-tree :data="patientRegister.customerOrgTreeAll" :props="customerOrg.treeprops" @node-click="handleNode" /> <el-tree :data="patientRegister.customerOrgTreeAll" :props="customerOrg.treeprops" @node-click="handleNode" />
</div> </div>
<div style="display: block;width:620px;margin-top: -30px; margin-left: 5px;">
<el-table :data="dataCusOrgOCX" border height="450" highlight-current-row @row-dblclick="rowDblclick" size="small">
<div style="display: block;width:635px; margin-left: 5px;">
<el-table :data="dataCusOrgOCX" border height="470" highlight-current-row @row-dblclick="rowDblclick" size="small">
<el-table-column prop="customerOrgName" label="体检单位" width="150"/> <el-table-column prop="customerOrgName" label="体检单位" width="150"/>
<el-table-column prop="customerOrgId" label="次数" width="50" align="center"> <el-table-column prop="customerOrgId" label="次数" width="50" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -48,7 +48,7 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="" width="30">
<el-table-column min-width="30" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-delete" @click="dataCusOrgOCX.splice(scope.$index, 1)" <i class="el-icon-delete" @click="dataCusOrgOCX.splice(scope.$index, 1)"
style="font-size: 20px;color: red;cursor:pointer;"></i> style="font-size: 20px;color: red;cursor:pointer;"></i>
@ -389,6 +389,8 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../assets/css/global_dialog.css";
::v-deep .el-input__inner { ::v-deep .el-input__inner {
/*text-align: center;*/ /*text-align: center;*/
padding-left: 2px; padding-left: 2px;

2
src/views/report/chargeAsbitem.vue

@ -105,7 +105,7 @@
<CusOrgOCX/> <CusOrgOCX/>
</el-dialog> </el-dialog>
<!--通用选组合项目的控件--> <!--通用选组合项目的控件-->
<el-dialog title="组合项目选择" :visible.sync="report.dialogAsbitemOCX" :close-on-click-modal="false" width="700px"
<el-dialog title="组合项目选择" :visible.sync="report.dialogAsbitemOCX" :close-on-click-modal="false" width="670px"
height="600px"> height="600px">
<AsbitemOCX /> <AsbitemOCX />
</el-dialog> </el-dialog>

42
src/views/user-list/OrganizationUnits.vue

@ -1,9 +1,18 @@
<template> <template>
<div> <div>
<el-card style="height: 600px">
<el-card class="elcard">
<!-- <el-button type="primary" @click="addorginiztiom">新增组织</el-button> --> <!-- <el-button type="primary" @click="addorginiztiom">新增组织</el-button> -->
<div class="publicfontsize">科室设置</div>
<div class="allC">
<!-- <div class="publicfontsize">科室设置</div> -->
<div class="publiccss">科室设置</div>
<!-- <div class="allC"> -->
<div
:style="
'display: flex; overflow: scroll;width:' +
(window.pageWidth - 85) +
'px; margin-top:20px;height:' + (window.pageHeight < 600 ? 410 : window.pageHeight - 190)+ 'px;'
"
>
<!-- <i <!-- <i
class="el-icon-link" class="el-icon-link"
v-if="natureoptions.length == '0' ? false : true" v-if="natureoptions.length == '0' ? false : true"
@ -74,6 +83,7 @@
>新增组织</el-button >新增组织</el-button
> --> > -->
</div> </div>
<!-- 新增组织弹框 --> <!-- 新增组织弹框 -->
<el-dialog <el-dialog
:title="title == 2 ? '修改组织' : '新增组织'" :title="title == 2 ? '修改组织' : '新增组织'"
@ -83,12 +93,14 @@
:close-on-click-modal="false" :close-on-click-modal="false"
class="el-dialog__title" class="el-dialog__title"
> >
<!--
<div v-if="title == 2"> <div v-if="title == 2">
当前选中的科室<span 当前选中的科室<span
style="margin-left: 20px; font-size: 18px; margin-top: -20px" style="margin-left: 20px; font-size: 18px; margin-top: -20px"
>{{ departmentnames }}</span >{{ departmentnames }}</span
> >
</div> </div>
-->
<div v-if="title == 2"> <div v-if="title == 2">
<span>上级部门</span> <span>上级部门</span>
<el-cascader <el-cascader
@ -99,11 +111,12 @@
:options="selecttable" :options="selecttable"
:props="{ :props="{
checkStrictly: true, checkStrictly: true,
expandTrigger: 'hover',
children: 'treeChildren', children: 'treeChildren',
label: 'displayName', label: 'displayName',
value: 'displayName', value: 'displayName',
}" }"
clearable
clearable size="small"
></el-cascader> ></el-cascader>
<!-- <el-tree <!-- <el-tree
:data="title == 1 ? treedata : selecttable" :data="title == 1 ? treedata : selecttable"
@ -149,6 +162,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapState } from "vuex";
import { import {
organizationtree, organizationtree,
organizationcaeatre, organizationcaeatre,
@ -156,6 +170,8 @@ import {
modifyedit, modifyedit,
} from "../../request/ruquset"; } from "../../request/ruquset";
import { postapi, putapi, getapi } from "@/api/api"; import { postapi, putapi, getapi } from "@/api/api";
import { tcdate, } from "../../utlis/proFunc";
export default { export default {
data() { data() {
return { return {
@ -191,6 +207,9 @@ export default {
mounted() { mounted() {
this.getonorganization(); this.getonorganization();
}, },
computed: {
...mapState(["window"]),
},
methods: { methods: {
checkboxchange(v) { checkboxchange(v) {
if (v == true) { if (v == true) {
@ -211,11 +230,13 @@ export default {
// let a=this.depref.value.togglePoppervisible() // let a=this.depref.value.togglePoppervisible()
// console.log(a); // console.log(a);
}, },
// //
treeclick(data) {
this.departmentname = data.displayName;
console.log(data);
},
// treeclick(data) {
// this.departmentname = data.displayName;
// console.log(data);
// },
//close //close
closethiebox() { closethiebox() {
this.departmentname = ""; this.departmentname = "";
@ -409,6 +430,7 @@ export default {
} else { } else {
this.departmentname = a; this.departmentname = a;
} }
// this.departmentname = a; // this.departmentname = a;
console.log(a); console.log(a);
console.log(this.departmentname); console.log(this.departmentname);
@ -431,11 +453,13 @@ export default {
} }
// console.log(res,''); // console.log(res,'');
}); });
getapi( getapi(
`/api/app/organizationunit/getbycodeparent?OrganizationUnitId=${data.id}` `/api/app/organizationunit/getbycodeparent?OrganizationUnitId=${data.id}`
).then((res) => { ).then((res) => {
this.selecttable = res.data; this.selecttable = res.data;
console.log(res, "res");
tcdate(this.selecttable)
console.log(res, "/api/app/organizationunit/getbycodeparent?OrganizationUnitId");
}); });
// getapi(`/api/app/organization-units?Id=${data.id}`).then((res) => { // getapi(`/api/app/organization-units?Id=${data.id}`).then((res) => {
// this.form = res.data; // this.form = res.data;

11
src/views/user-list/UserList.vue

@ -154,16 +154,19 @@
></el-input> </el-form-item ></el-input> </el-form-item
></el-col> ></el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="组织架构">
<el-form-item label="科室">
<!--
<div style="margin-top: -30px"> <div style="margin-top: -30px">
当前选中的组织<span> {{ orgIds }}</span> 当前选中的组织<span> {{ orgIds }}</span>
</div> </div>
-->
<el-cascader <el-cascader
v-model="orgId" v-model="orgId"
:options="organizationalstructure" :options="organizationalstructure"
:show-all-levels="false" :show-all-levels="false"
@change="cascaderchang" @change="cascaderchang"
:props="{ :props="{
expandTrigger: 'hover',
label: 'displayName', label: 'displayName',
children: 'treeChildren', children: 'treeChildren',
checkStrictly: true, checkStrictly: true,
@ -530,6 +533,7 @@ import {
import { mapState } from "vuex"; import { mapState } from "vuex";
import { isValid } from "@/utlis/validate"; import { isValid } from "@/utlis/validate";
import { getapi, postapi } from "@/api/api"; import { getapi, postapi } from "@/api/api";
import { tcdate, deepCopy ,objCopy } from "../../utlis/proFunc";
// let validatePassword = (rule, value, callback) => { // let validatePassword = (rule, value, callback) => {
// var reg1 = // var reg1 =
@ -884,6 +888,7 @@ export default {
this.newachitecture = res.data; this.newachitecture = res.data;
this.newdepartment = res.data; this.newdepartment = res.data;
this.organizationalstructure = res.data; this.organizationalstructure = res.data;
tcdate(this.organizationalstructure)
console.log(res, "1w"); console.log(res, "1w");
}); });
console.log(this.title); console.log(this.title);
@ -1017,7 +1022,8 @@ export default {
// this.form.roleNames = this.roleNames; // this.form.roleNames = this.roleNames;
if (this.title == 2) { if (this.title == 2) {
// rowroleNames // rowroleNames
const form = JSON.parse(JSON.stringify(row));
//const form = JSON.parse(JSON.stringify(row));
const form = deepCopy(row);
console.log(form, "form"); console.log(form, "form");
this.form = { this.form = {
...form, ...form,
@ -1027,6 +1033,7 @@ export default {
// //
organizationtree().then((res) => { organizationtree().then((res) => {
this.organizationalstructure = res.data; this.organizationalstructure = res.data;
tcdate(this.organizationalstructure)
this.setupdepartments = res.data; this.setupdepartments = res.data;
console.log(res, "sssssss"); console.log(res, "sssssss");
}); });

Loading…
Cancel
Save