护理人员
This commit is contained in:
parent
4209e930d5
commit
378b37f4b6
@ -40,7 +40,7 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="商品用途" prop="goodsPurpose">
|
<el-form-item label="商品用途" prop="goodsPurpose">
|
||||||
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途">
|
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途">
|
||||||
<el-option
|
<el-option
|
||||||
@ -597,7 +597,7 @@ export default {
|
|||||||
goodsCategoryId: [
|
goodsCategoryId: [
|
||||||
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
|
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
|
||||||
goodsPurpose: [
|
goodsPurpose: [
|
||||||
{ required: true, message: "请选择商品用途", trigger: "blur" },
|
{ required: true, message: "请选择商品用途", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -730,7 +730,7 @@ export default {
|
|||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
console.log(row);
|
console.log(row);
|
||||||
this.form.nurseStationId = row.id;
|
this.nurseStationId = row.id;
|
||||||
this.StationName = row.nurseStationName;
|
this.StationName = row.nurseStationName;
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -23,14 +23,14 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="客户" prop="patientName">
|
<el-form-item label="会员名称" prop="patientName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.patientName"
|
v-model="queryParams.patientName"
|
||||||
placeholder="请输入客户"
|
placeholder="请输入会员名称"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单编号" prop="orderNo">
|
<el-form-item label="订单编号" prop="orderNo">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.orderNo"
|
v-model="queryParams.orderNo"
|
||||||
@ -192,6 +192,8 @@
|
|||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
<!-- 查看弹框 -->
|
<!-- 查看弹框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="查看订单信息"
|
title="查看订单信息"
|
||||||
|
|||||||
@ -125,6 +125,17 @@
|
|||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<!-- <el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['system:person:export']"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</el-col> -->
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
@ -226,7 +237,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
@click="clickinnerVisible(item, index)"
|
@click="clickinnerVisible(item, index)"
|
||||||
v-if="item.nurseStationName == '请选择所属护理站'"
|
v-if="item.nurseStationName == '请选择护理站名称'"
|
||||||
style="
|
style="
|
||||||
width: 200px;
|
width: 200px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -254,8 +265,8 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="所属科室"
|
label="所属科室"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
:rules="rules.nurseStationPersonList.departmentCode"
|
:rules="rules.nurseStationPersonList.departmentName"
|
||||||
:prop="`nurseStationPersonList.${index}.departmentCode`"
|
:prop="`nurseStationPersonList.${index}.departmentName`"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
@ -386,30 +397,39 @@
|
|||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 新增护理站名称弹框 -->
|
<!-- 新增护理站名称弹框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="title2"
|
:title="title2"
|
||||||
:visible.sync="innerVisible"
|
:visible.sync="innerVisible"
|
||||||
width="1000px"
|
width="1000px"
|
||||||
append-to-body
|
append-to-body
|
||||||
:before-close="addcancel"
|
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
:model="StationqueryParams"
|
:model="queryParams2"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
|
<!-- <el-form
|
||||||
|
:model="queryParams2"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="90px"
|
||||||
|
> -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="护理站编码"
|
label="护理站编码"
|
||||||
prop="nurseStationCode"
|
prop="nurseStationCode"
|
||||||
label-width="120"
|
label-width="120"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="StationqueryParams.nurseStationCode"
|
v-model="queryParams2.nurseStationCode"
|
||||||
placeholder="请输入护理站编码"
|
placeholder="请输入护理站编码"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -418,9 +438,10 @@
|
|||||||
label-width="120"
|
label-width="120"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="StationqueryParams.nurseStationName"
|
v-model="queryParams2.nurseStationName"
|
||||||
placeholder="请输入护理站名称"
|
placeholder="请输入护理站名称"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -436,8 +457,8 @@
|
|||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick">
|
<el-table :data="stationLists" @cell-dblclick="nurseclick">
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -457,33 +478,55 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="nurseStationCode"
|
property="nurseStationCode"
|
||||||
label="护理站编码"
|
label="护理站编码"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="nurseStationName"
|
property="nurseStationName"
|
||||||
label="护理站名称"
|
label="护理站名称"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="护理站类型"
|
||||||
|
align="center"
|
||||||
|
prop="nurseStationType"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
scope.row.nurseStationType == "LX202209140018" ? "生活护理" : ""
|
||||||
|
}}
|
||||||
|
{{
|
||||||
|
scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : ""
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column property="phone" label="联系电话" align="center">
|
<el-table-column
|
||||||
|
property="phone"
|
||||||
|
label="联系电话"
|
||||||
|
width="150"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="address"
|
property="address"
|
||||||
label="护理站地址"
|
label="护理地址"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="nursetotal > 0"
|
v-show="total2 > 0"
|
||||||
:total="nursetotal"
|
:total="total2"
|
||||||
:page.sync="StationqueryParams.pageNum"
|
:page.sync="queryParams2.pageNum"
|
||||||
:limit.sync="StationqueryParams.pageSize"
|
:limit.sync="queryParams2.pageSize"
|
||||||
@pagination="getList2"
|
@pagination="handleQuery2"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 修改护理站名称弹框 -->
|
<!-- 修改护理站名称弹框 -->
|
||||||
@ -492,24 +535,32 @@
|
|||||||
:visible.sync="innerVisiblexg"
|
:visible.sync="innerVisiblexg"
|
||||||
width="1000px"
|
width="1000px"
|
||||||
append-to-body
|
append-to-body
|
||||||
:before-close="addcancel"
|
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
:model="StationqueryParams"
|
:model="queryParams2"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
|
<!-- <el-form
|
||||||
|
:model="queryParams2"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="90px"
|
||||||
|
> -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="护理站编码"
|
label="护理站编码"
|
||||||
prop="nurseStationCode"
|
prop="nurseStationCode"
|
||||||
label-width="120"
|
label-width="120"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="StationqueryParams.nurseStationCode"
|
v-model="queryParams2.nurseStationCode"
|
||||||
placeholder="请输入护理站编码"
|
placeholder="请输入护理站编码"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -518,9 +569,10 @@
|
|||||||
label-width="120"
|
label-width="120"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="StationqueryParams.nurseStationName"
|
v-model="queryParams2.nurseStationName"
|
||||||
placeholder="请输入护理站名称"
|
placeholder="请输入护理站名称"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -528,16 +580,16 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleQuery4"
|
@click="handleQuery2"
|
||||||
>搜索</el-button
|
>搜索</el-button
|
||||||
>
|
>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery4"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery2"
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick2">
|
<el-table :data="stationLists" @cell-dblclick="nurseclick2">
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -557,26 +609,53 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="nurseStationCode"
|
property="nurseStationCode"
|
||||||
label="护理站编码"
|
label="护理站编码"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="nurseStationName"
|
property="nurseStationName"
|
||||||
label="护理站名称"
|
label="护理站名称"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="phone" label="联系电话" align="center">
|
<el-table-column
|
||||||
|
label="护理站类型"
|
||||||
|
align="center"
|
||||||
|
prop="nurseStationType"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
scope.row.nurseStationType == "LX202209140018" ? "生活护理" : ""
|
||||||
|
}}
|
||||||
|
{{
|
||||||
|
scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : ""
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="address" label="护理站地址" align="center">
|
|
||||||
|
<el-table-column
|
||||||
|
property="phone"
|
||||||
|
label="联系电话"
|
||||||
|
width="150"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="address"
|
||||||
|
label="护理地址"
|
||||||
|
width="150"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="nursetotal > 0"
|
v-show="total2 > 0"
|
||||||
:total="nursetotal"
|
:total="total2"
|
||||||
:page.sync="StationqueryParams.pageNum"
|
:page.sync="queryParams2.pageNum"
|
||||||
:limit.sync="StationqueryParams.pageSize"
|
:limit.sync="queryParams2.pageSize"
|
||||||
@pagination="getList2"
|
@pagination="handleQuery2"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 所属科室弹框 -->
|
<!-- 所属科室弹框 -->
|
||||||
@ -585,7 +664,6 @@
|
|||||||
:visible.sync="innerVisible2"
|
:visible.sync="innerVisible2"
|
||||||
width="1000px"
|
width="1000px"
|
||||||
append-to-body
|
append-to-body
|
||||||
:before-close="departcancel"
|
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
@ -599,6 +677,7 @@
|
|||||||
v-model="queryParams3.departmentCode"
|
v-model="queryParams3.departmentCode"
|
||||||
placeholder="请输入科室编码"
|
placeholder="请输入科室编码"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科室名称" prop="" label-width="120">
|
<el-form-item label="科室名称" prop="" label-width="120">
|
||||||
@ -606,6 +685,7 @@
|
|||||||
v-model="queryParams3.departmentName"
|
v-model="queryParams3.departmentName"
|
||||||
placeholder="请输入科室名称"
|
placeholder="请输入科室名称"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -625,7 +705,7 @@
|
|||||||
:data="StationDepartmentLists"
|
:data="StationDepartmentLists"
|
||||||
@cell-dblclick="StationDepartmentclick"
|
@cell-dblclick="StationDepartmentclick"
|
||||||
>
|
>
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -645,12 +725,14 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentCode"
|
property="departmentCode"
|
||||||
label="科室编码"
|
label="科室编码"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentName"
|
property="departmentName"
|
||||||
label="科室名称"
|
label="科室名称"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -658,18 +740,24 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentPerson"
|
property="departmentPerson"
|
||||||
label="科室负责人"
|
label="科室负责人"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="phone" label="联系电话" align="center">
|
<el-table-column
|
||||||
|
property="phone"
|
||||||
|
label="联系电话"
|
||||||
|
width="150"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="departtotal > 0"
|
v-show="total3 > 0"
|
||||||
:total="departtotal"
|
:total="total3"
|
||||||
:page.sync="queryParams3.pageNum"
|
:page.sync="queryParams3.pageNum"
|
||||||
:limit.sync="queryParams3.pageSize"
|
:limit.sync="queryParams3.pageSize"
|
||||||
@pagination="getList3"
|
@pagination="handleQuery3"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 修改所属科室弹框 -->
|
<!-- 修改所属科室弹框 -->
|
||||||
@ -678,7 +766,6 @@
|
|||||||
:visible.sync="innerVisiblexg2"
|
:visible.sync="innerVisiblexg2"
|
||||||
width="1000px"
|
width="1000px"
|
||||||
append-to-body
|
append-to-body
|
||||||
:before-close="departcancel"
|
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
@ -687,11 +774,20 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
|
<!-- <el-form
|
||||||
|
:model="queryParams2"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="90px"
|
||||||
|
> -->
|
||||||
<el-form-item label="科室编码" prop="departmentCode" label-width="120">
|
<el-form-item label="科室编码" prop="departmentCode" label-width="120">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams3.departmentCode"
|
v-model="queryParams3.departmentCode"
|
||||||
placeholder="请输入科室编码"
|
placeholder="请输入科室编码"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科室名称" prop="" label-width="120">
|
<el-form-item label="科室名称" prop="" label-width="120">
|
||||||
@ -699,6 +795,7 @@
|
|||||||
v-model="queryParams3.departmentName"
|
v-model="queryParams3.departmentName"
|
||||||
placeholder="请输入科室名称"
|
placeholder="请输入科室名称"
|
||||||
clearable
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -718,7 +815,7 @@
|
|||||||
:data="StationDepartmentLists"
|
:data="StationDepartmentLists"
|
||||||
@cell-dblclick="StationDepartmentclick2"
|
@cell-dblclick="StationDepartmentclick2"
|
||||||
>
|
>
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -738,12 +835,14 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentCode"
|
property="departmentCode"
|
||||||
label="科室编码"
|
label="科室编码"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentName"
|
property="departmentName"
|
||||||
label="科室名称"
|
label="科室名称"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -751,20 +850,27 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="departmentPerson"
|
property="departmentPerson"
|
||||||
label="科室负责人"
|
label="科室负责人"
|
||||||
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="phone" label="联系电话" align="center">
|
<el-table-column
|
||||||
|
property="phone"
|
||||||
|
label="联系电话"
|
||||||
|
width="150"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="departtotal > 0"
|
v-show="total3 > 0"
|
||||||
:total="departtotal"
|
:total="total3"
|
||||||
:page.sync="queryParams3.pageNum"
|
:page.sync="queryParams3.pageNum"
|
||||||
:limit.sync="queryParams3.pageSize"
|
:limit.sync="queryParams3.pageSize"
|
||||||
@pagination="getList3"
|
@pagination="handleQuery3"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改 -->
|
<!-- 修改 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||||
@ -775,15 +881,17 @@
|
|||||||
style="margin-left: -20px"
|
style="margin-left: -20px"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
|
disabled
|
||||||
type=""
|
type=""
|
||||||
@click="departclickxg"
|
@click="clickinnerVisible2"
|
||||||
v-if="nurseStationName == '请选择所属护理站'"
|
v-if="nurseStationName == '请选择护理站名称'"
|
||||||
style="width: 362px; text-align: left; height: 36px; color: #c0c4cc"
|
style="width: 362px; text-align: left; height: 36px; color: #c0c4cc"
|
||||||
>{{ nurseStationName }}</el-button
|
>{{ nurseStationName }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
|
disabled
|
||||||
type=""
|
type=""
|
||||||
@click="departclickxg()"
|
@click="clickinnerVisible2"
|
||||||
v-else
|
v-else
|
||||||
style="
|
style="
|
||||||
width: 362px;
|
width: 362px;
|
||||||
@ -821,14 +929,19 @@
|
|||||||
>{{ departmentName }}</el-button
|
>{{ departmentName }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="姓名" prop="nursePersonName">
|
<el-form-item label="姓名" prop="nursePersonName" >
|
||||||
<el-input
|
<el-input
|
||||||
maxlength="15"
|
maxlength="15"
|
||||||
v-model="form.nursePersonName"
|
v-model="form.nursePersonName"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理人职称" prop="nursePersonType">
|
<el-form-item
|
||||||
|
label="护理人职称"
|
||||||
|
prop="nursePersonType"
|
||||||
|
label-width="120px"
|
||||||
|
style="margin-left: -22px"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.nursePersonType"
|
v-model="form.nursePersonType"
|
||||||
clearable
|
clearable
|
||||||
@ -1011,9 +1124,12 @@ export default {
|
|||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
|
// total:null,
|
||||||
total: 0,
|
total: 0,
|
||||||
departtotal: 0,
|
total2: 0,
|
||||||
nursetotal: 0,
|
total3: 0,
|
||||||
|
total4: 0,
|
||||||
|
total5: 0,
|
||||||
// 护理站人员信息表格数据
|
// 护理站人员信息表格数据
|
||||||
nurseStationPersonList: [],
|
nurseStationPersonList: [],
|
||||||
// 护理站名称
|
// 护理站名称
|
||||||
@ -1024,15 +1140,14 @@ export default {
|
|||||||
stationid: "",
|
stationid: "",
|
||||||
stationid2: "",
|
stationid2: "",
|
||||||
departid: "",
|
departid: "",
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择护理站名称",
|
||||||
departmentName: "请选择所属科室",
|
departmentName: "请选择所属科室",
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
title2: "",
|
title2: "",
|
||||||
title3: "",
|
title3: "",
|
||||||
// 修改弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
// 添加弹出层
|
|
||||||
open2: false,
|
open2: false,
|
||||||
//权限查询
|
//权限查询
|
||||||
// 查询参数
|
// 查询参数
|
||||||
@ -1071,25 +1186,15 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
StationqueryParams: {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
},
|
|
||||||
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
index: "",
|
index: "",
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
nurseStationId: [
|
|
||||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
|
||||||
],
|
|
||||||
departmentName: [
|
|
||||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
|
||||||
],
|
|
||||||
|
|
||||||
nursePersonName: [
|
nursePersonName: [
|
||||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
{ required: true, message: "姓名不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
nursePersonType: [
|
nursePersonType: [
|
||||||
{ required: true, message: "护理人职称不能为空", trigger: "blur" },
|
{ required: true, message: "护理人职称不能为空", trigger: "blur" },
|
||||||
@ -1110,15 +1215,15 @@ export default {
|
|||||||
nursePersonName: [
|
nursePersonName: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请选择所属护理站",
|
message: "护理站人员名称不能为空",
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
departmentCode: [
|
departmentName: [
|
||||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
nurseStationId: [
|
nurseStationId: [
|
||||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
{ required: true, message: "所属护理站不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
nursePersonName: [
|
nursePersonName: [
|
||||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
||||||
@ -1138,18 +1243,28 @@ export default {
|
|||||||
address: [
|
address: [
|
||||||
{ required: true, message: "居住地址不能为空", trigger: "blur" },
|
{ required: true, message: "居住地址不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
// nurseStationPersonList: {
|
||||||
|
// nursePersonName: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: "请输入护理站人员名称",
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getList2();
|
||||||
|
// this.nurselist();
|
||||||
this.info();
|
this.info();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// // 新增所属科室按钮
|
// // 新增所属科室按钮
|
||||||
departclick(item, index) {
|
departclick(item, index) {
|
||||||
this.getList3();
|
|
||||||
console.log(item);
|
console.log(item);
|
||||||
this.departid = item.departmentCode;
|
this.departid = item.departmentCode;
|
||||||
this.innerVisible2 = true;
|
this.innerVisible2 = true;
|
||||||
@ -1157,33 +1272,61 @@ export default {
|
|||||||
},
|
},
|
||||||
// // 修改所属科室按钮
|
// // 修改所属科室按钮
|
||||||
departclick2() {
|
departclick2() {
|
||||||
this.getList3();
|
StationDepartmentList(this.queryParams3).then((res) => {
|
||||||
|
this.StationDepartmentLists = res.rows;
|
||||||
|
this.total3 = res.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
// console.log(item);
|
||||||
this.departid2 = this.form.departmentCode;
|
this.departid2 = this.form.departmentCode;
|
||||||
this.innerVisiblexg2 = true;
|
this.innerVisiblexg2 = true;
|
||||||
// this.index = index;
|
// this.index = index;
|
||||||
},
|
},
|
||||||
//修改护理站按钮
|
|
||||||
departclickxg() {
|
|
||||||
this.getList2();
|
|
||||||
this.stationid2 = this.form.nurseStationId;
|
|
||||||
this.innerVisiblexg = true;
|
|
||||||
this.index = index;
|
|
||||||
},
|
|
||||||
// 新增护理站按钮
|
// 新增护理站按钮
|
||||||
clickinnerVisible(item, index) {
|
clickinnerVisible(item, index) {
|
||||||
this.getList2();
|
// console.log(item);
|
||||||
this.stationid = item.nurseStationId;
|
this.stationid = item.nurseStationId;
|
||||||
this.innerVisible = true;
|
this.innerVisible = true;
|
||||||
this.index = index;
|
this.index = index;
|
||||||
},
|
},
|
||||||
// 修改护理站
|
// 修改护理站按钮
|
||||||
nurseclick2(row) {
|
clickinnerVisible2() {
|
||||||
console.log(row);
|
stationList(this.queryParams2).then((res) => {
|
||||||
this.nurseStationName = row.nurseStationName;
|
this.stationLists = res.rows;
|
||||||
this.stationid2 = row.id;
|
this.total2 = res.total;
|
||||||
this.form.nurseStationId = row.id;
|
this.loading = false;
|
||||||
this.innerVisiblexg = false;
|
});
|
||||||
this.form.nursename = row.nurseStationName;
|
// console.log(item);
|
||||||
|
this.stationid2 = this.form.nurseStationId;
|
||||||
|
this.innerVisiblexg = true;
|
||||||
|
// this.index = index;
|
||||||
|
},
|
||||||
|
//xialakuang
|
||||||
|
// loadMore() {
|
||||||
|
// console.log("1");
|
||||||
|
// var a = Math.ceil(this.total4 / 10);
|
||||||
|
// console.log(this.nurseStationlist.length);
|
||||||
|
// if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||||
|
// } else {
|
||||||
|
// if (this.nurseStationqueryParams.pageNum >= a) {
|
||||||
|
// } else {
|
||||||
|
// this.nurseStationqueryParams.pageNum++;
|
||||||
|
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// res.rows.forEach((e) => {
|
||||||
|
// this.nurseStationlist.push(e);
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
nurselist() {
|
||||||
|
stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.total4 = res.total;
|
||||||
|
console.log(this.nurseStationlist);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
//删除deldisease
|
//删除deldisease
|
||||||
deldisease(index) {
|
deldisease(index) {
|
||||||
@ -1192,6 +1335,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
adddisease() {
|
adddisease() {
|
||||||
|
// this.nurseStationName = "请选择护理站名称";
|
||||||
|
// this.departmentName=""
|
||||||
var obj = {
|
var obj = {
|
||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
@ -1201,6 +1346,7 @@ export default {
|
|||||||
address: "",
|
address: "",
|
||||||
sex: "",
|
sex: "",
|
||||||
nurseStationId: "",
|
nurseStationId: "",
|
||||||
|
|
||||||
departmentName: "请选择所属科室",
|
departmentName: "请选择所属科室",
|
||||||
// departname: "",
|
// departname: "",
|
||||||
nurseStationName: "请选择护理站名称",
|
nurseStationName: "请选择护理站名称",
|
||||||
@ -1224,7 +1370,16 @@ export default {
|
|||||||
row.nurseStationName;
|
row.nurseStationName;
|
||||||
this.form.nurseStationPersonList[this.index].nurseStationId = row.id;
|
this.form.nurseStationPersonList[this.index].nurseStationId = row.id;
|
||||||
},
|
},
|
||||||
|
// 修改护理站
|
||||||
|
nurseclick2(row) {
|
||||||
|
console.log(row);
|
||||||
|
this.nurseStationName = row.nurseStationName;
|
||||||
|
this.stationid2 = row.id;
|
||||||
|
this.form.nurseStationId = row.id;
|
||||||
|
console.log(this.form);
|
||||||
|
this.innerVisiblexg = false;
|
||||||
|
this.form.nursename = row.nurseStationName;
|
||||||
|
},
|
||||||
// 所属科室
|
// 所属科室
|
||||||
StationDepartmentclick(row) {
|
StationDepartmentclick(row) {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
@ -1261,18 +1416,16 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getList2() {
|
getList2() {
|
||||||
|
// 护理站名称
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getListByUser(this.StationqueryParams).then((res) => {
|
stationList(this.queryParams2).then((res) => {
|
||||||
this.nursetotal = res.total;
|
this.stationLists = res.rows;
|
||||||
this.nurseStationlist = res.rows;
|
this.total2 = res.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
|
||||||
getList3() {
|
|
||||||
this.loading = true;
|
|
||||||
StationDepartmentList(this.queryParams3).then((res) => {
|
StationDepartmentList(this.queryParams3).then((res) => {
|
||||||
this.StationDepartmentLists = res.rows;
|
this.StationDepartmentLists = res.rows;
|
||||||
this.departtotal = res.total;
|
this.total3 = res.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1280,7 +1433,7 @@ export default {
|
|||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.open2 = false;
|
this.open2 = false;
|
||||||
this.nurseStationName = "请选择所属护理站";
|
this.nurseStationName = "请选择护理站名称";
|
||||||
this.departmentName = "请选择所属科室";
|
this.departmentName = "请选择所属科室";
|
||||||
// this.upload.open=false;
|
// this.upload.open=false;
|
||||||
this.reset();
|
this.reset();
|
||||||
@ -1301,7 +1454,7 @@ export default {
|
|||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
updateTime: null,
|
updateTime: null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择护理站名称",
|
||||||
departmentName: "请选择所属科室",
|
departmentName: "请选择所属科室",
|
||||||
nurseStationPersonList: [
|
nurseStationPersonList: [
|
||||||
{
|
{
|
||||||
@ -1311,7 +1464,7 @@ export default {
|
|||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
nursePersonName: "",
|
nursePersonName: "",
|
||||||
nursePersonType: "",
|
nursePersonType: "",
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择护理站名称",
|
||||||
phone: "",
|
phone: "",
|
||||||
address: "",
|
address: "",
|
||||||
sex: "",
|
sex: "",
|
||||||
@ -1321,52 +1474,54 @@ export default {
|
|||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery2() {
|
handleQuery2() {
|
||||||
this.StationqueryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList2();
|
stationList(this.queryParams2).then((res) => {
|
||||||
|
this.stationLists = res.rows;
|
||||||
|
this.total2 = res.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
this.innerVisible = true;
|
||||||
},
|
},
|
||||||
// 修改护理站弹框的搜索
|
|
||||||
handleQuery4() {
|
|
||||||
this.StationqueryParams.pageNum = 1;
|
|
||||||
this.getList2();
|
|
||||||
},
|
|
||||||
//修改所属科室
|
|
||||||
handleQuery3() {
|
handleQuery3() {
|
||||||
this.queryParams3.pageNum = 1;
|
console.log(this.queryParams3);
|
||||||
this.getList3();
|
StationDepartmentList(this.queryParams3).then((response) => {
|
||||||
},
|
this.StationDepartmentLists = response.rows;
|
||||||
handleQuery() {
|
this.total3 = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
handleQuery() {
|
||||||
|
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// this.nurseStationlist = res.rows;
|
||||||
|
// this.total4 = res.total;
|
||||||
|
// console.log(this.nurseStationlist);
|
||||||
|
// });
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
// this.nurselist()
|
||||||
|
// this.stationList();
|
||||||
|
// this.nurseStationlist()
|
||||||
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
addcancel() {
|
|
||||||
this.innerVisible = false;
|
|
||||||
this.innerVisiblexg = false;
|
|
||||||
this.resetQuery2();
|
|
||||||
},
|
|
||||||
departcancel() {
|
|
||||||
this.innerVisible2 = false;
|
|
||||||
this.innerVisiblexg2 = false;
|
|
||||||
this.resetQuery3();
|
|
||||||
},
|
|
||||||
resetQuery2() {
|
resetQuery2() {
|
||||||
this.resetForm("queryForm");
|
this.queryParams2 = {
|
||||||
this.StationqueryParams = {
|
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
nurseStationName: null,
|
||||||
|
id: null,
|
||||||
|
nurseStationId: null,
|
||||||
};
|
};
|
||||||
this.handleQuery2();
|
stationList(this.queryParams2).then((res) => {
|
||||||
},
|
this.stationLists = res.rows;
|
||||||
resetQuery4() {
|
this.total2 = res.total;
|
||||||
this.resetForm("queryForm");
|
});
|
||||||
this.StationqueryParams = {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
};
|
|
||||||
this.handleQuery4();
|
|
||||||
},
|
},
|
||||||
resetQuery3() {
|
resetQuery3() {
|
||||||
this.queryParams3 = {
|
this.queryParams3 = {
|
||||||
@ -1378,8 +1533,13 @@ export default {
|
|||||||
departmentName: null,
|
departmentName: null,
|
||||||
nurseStationId: null,
|
nurseStationId: null,
|
||||||
};
|
};
|
||||||
this.handleQuery3();
|
StationDepartmentList(this.queryParams3).then((response) => {
|
||||||
|
this.StationDepartmentLists = response.rows;
|
||||||
|
this.total3 = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
if (this.nurseStationlist[0].isAdmin == "1") {
|
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
@ -1395,6 +1555,7 @@ export default {
|
|||||||
phone: null,
|
phone: null,
|
||||||
address: null,
|
address: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
} else {
|
} else {
|
||||||
console.log(1);
|
console.log(1);
|
||||||
@ -1417,14 +1578,16 @@ export default {
|
|||||||
this.reset();
|
this.reset();
|
||||||
this.open2 = true;
|
this.open2 = true;
|
||||||
this.title = "添加护理站人员信息";
|
this.title = "添加护理站人员信息";
|
||||||
this.title2 = "请选择所属护理站";
|
this.title2 = "请选择护理站";
|
||||||
this.title3 = "请选择科室";
|
this.title3 = "请选择科室";
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
// this.reset();
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getPerson(id).then((response) => {
|
getPerson(id).then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
// this.departmentName="请选择科室"
|
||||||
this.departmentName = response.data.departmentName;
|
this.departmentName = response.data.departmentName;
|
||||||
this.nurseStationName = response.data.nurseStationName;
|
this.nurseStationName = response.data.nurseStationName;
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
@ -1441,6 +1604,9 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
|
// this.form.nursename = null;
|
||||||
|
// this.form.nurseStationId = null;
|
||||||
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updatePerson(this.form).then((response) => {
|
updatePerson(this.form).then((response) => {
|
||||||
@ -1453,7 +1619,7 @@ export default {
|
|||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open2 = false;
|
this.open2 = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.nurseStationName = "请选择所属护理站";
|
this.nurseStationName = "请选择护理站名称";
|
||||||
this.departmentName = "请选择所属科室";
|
this.departmentName = "请选择所属科室";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1529,9 +1695,9 @@ export default {
|
|||||||
if (res.rows[0].isAdmin == "1") {
|
if (res.rows[0].isAdmin == "1") {
|
||||||
console.log(true);
|
console.log(true);
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist = res.rows;
|
||||||
this.nursetotal = res.total;
|
this.total5 = res.total;
|
||||||
} else {
|
} else {
|
||||||
this.nursetotal = res.total;
|
this.total5 = res.total;
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist = res.rows;
|
||||||
this.queryParams.nurseStationId = res.rows[0].id;
|
this.queryParams.nurseStationId = res.rows[0].id;
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
@ -1540,8 +1706,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//滑动下拉框
|
//滑动下拉框
|
||||||
loadMore() {
|
loadMore() {
|
||||||
var a = Math.ceil(this.nursetotal / 10);
|
var a = Math.ceil(this.total5 / 10);
|
||||||
if (this.nurseStationlist.length + 1 >= this.nursetotal) {
|
if (this.nurseStationlist.length + 1 >= this.total5) {
|
||||||
} else {
|
} else {
|
||||||
if (this.nurseStationqueryParams.pageNum >= a) {
|
if (this.nurseStationqueryParams.pageNum >= a) {
|
||||||
} else {
|
} else {
|
||||||
@ -1556,6 +1722,24 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// loadMore() {
|
||||||
|
// console.log("1");
|
||||||
|
// var a = Math.ceil(this.total4 / 10);
|
||||||
|
// console.log(this.nurseStationlist.length);
|
||||||
|
// if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||||
|
// } else {
|
||||||
|
// if (this.nurseStationqueryParams.pageNum >= a) {
|
||||||
|
// } else {
|
||||||
|
// this.nurseStationqueryParams.pageNum++;
|
||||||
|
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// res.rows.forEach((e) => {
|
||||||
|
// this.nurseStationlist.push(e);
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user