This commit is contained in:
闫晓茹 2023-04-27 17:36:20 +08:00
parent 39ab955be4
commit 3aed378a08

View File

@ -8,6 +8,11 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item label="所属护理站" prop="nurseStationName">
<el-button type class="stationbtn" @click="ParamsStation(true)">
{{ queryParams.nurseStationName }}
</el-button>
</el-form-item>
<el-form-item label="护理员姓名" prop="nursePersonName"> <el-form-item label="护理员姓名" prop="nursePersonName">
<el-input <el-input
v-model="queryParams.nursePersonName" v-model="queryParams.nursePersonName"
@ -73,6 +78,12 @@
:data="trainingOrderList" :data="trainingOrderList"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
]
<el-table-column
label="所属护理站"
align="center"
prop="nurseStationName"
/>
<el-table-column <el-table-column
label="护理员姓名" label="护理员姓名"
align="center" align="center"
@ -349,16 +360,30 @@
label-width="130px" label-width="130px"
:model="formlist" :model="formlist"
> >
<el-form-item label="培训课程详情" prop="trainingItemDetails" v-if="formlist.trainingItemType == 'VIDEO_LEARNING'||formlist.trainingItemType == 'LEARNING_ITEM_GROUP'"> <el-form-item
label="培训课程详情"
prop="trainingItemDetails"
v-if="
formlist.trainingItemType == 'VIDEO_LEARNING' ||
formlist.trainingItemType == 'LEARNING_ITEM_GROUP'
"
>
<div class="textdetails">{{ formlist.trainingItemDetails }}</div> <div class="textdetails">{{ formlist.trainingItemDetails }}</div>
</el-form-item> </el-form-item>
<el-form-item :label=" <el-form-item
:label="
formlist.trainingItemType == 'GRAPHIC_LEARNING' formlist.trainingItemType == 'GRAPHIC_LEARNING'
? '培训课程内容' ? '培训课程内容'
: formlist.trainingItemType == 'LEARNING_ITEM_GROUP' : formlist.trainingItemType == 'LEARNING_ITEM_GROUP'
? '培训课程介绍' ? '培训课程介绍'
: '' : ''
" prop="trainingItemContent" v-if="formlist.trainingItemType == 'GRAPHIC_LEARNING'||formlist.trainingItemType == 'LEARNING_ITEM_GROUP'"> "
prop="trainingItemContent"
v-if="
formlist.trainingItemType == 'GRAPHIC_LEARNING' ||
formlist.trainingItemType == 'LEARNING_ITEM_GROUP'
"
>
<editor <editor
@imgs="imgs" @imgs="imgs"
:url="'/common/uploadTrainingItemContentUrl'" :url="'/common/uploadTrainingItemContentUrl'"
@ -412,6 +437,99 @@
</el-table> </el-table>
</el-form> </el-form>
</el-dialog> </el-dialog>
<!-- 护理站 -->
<el-dialog
title="选择护理站"
:visible.sync="nurseStationshow"
width="1100px"
append-to-body
:before-close="clicknurseStationshow"
>
<el-form
ref="form"
:model="getListByUserquery"
label-width="110px"
:inline="true"
>
<el-form-item label="护理站编码" prop="nurseStationCode">
<el-input
v-model="getListByUserquery.nurseStationCode"
placeholder="请输入护理站编码"
/>
</el-form-item>
<el-form-item label="护理站名称" prop="nurseStationName">
<el-input
v-model="getListByUserquery.nurseStationName"
placeholder="请输入护理站名称"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="info"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="stationcancel"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
v-loading="loading"
:data="nurseStationlist"
@cell-dblclick="choicestationid"
>
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
circle
@click="choicestationid(scope.row)"
v-if="queryParams.nurseStationId == scope.row.id"
></el-button>
<el-button
style="width: 15px; height: 15px"
circle
v-else
@click="choicestationid(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column
property="nurseStationCode"
label="护理站编码"
align="center"
></el-table-column>
<el-table-column
property="nurseStationName"
label="护理站名称"
align="center"
></el-table-column>
<el-table-column
property="phone"
label="联系电话"
align="center"
></el-table-column>
<el-table-column
property="address"
label="护理站地址"
align="center"
:show-overflow-tooltip="true"
></el-table-column>
</el-table>
<pagination
v-show="stationtotal > 0"
:total="stationtotal"
:page.sync="getListByUserquery.pageNum"
:limit.sync="getListByUserquery.pageSize"
@pagination="info"
/>
</el-dialog>
</div> </div>
</template> </template>
@ -429,7 +547,7 @@ import {
import baseurl from "@/api/baseurl.js"; import baseurl from "@/api/baseurl.js";
import stationAcatar from "../stationAvatar/index.vue"; import stationAcatar from "../stationAvatar/index.vue";
import editor from "@/components/Editor"; import editor from "@/components/Editor";
import { getListByUser } from "@/api/system/userlist.js";
export default { export default {
name: "TrainingOrder", name: "TrainingOrder",
components: { stationAcatar, editor }, components: { stationAcatar, editor },
@ -458,6 +576,8 @@ export default {
label: "已取消", label: "已取消",
}, },
], ],
nurseStationshow: false,
// //
loading: true, loading: true,
innerrefund: false, innerrefund: false,
@ -504,6 +624,10 @@ export default {
label: "支付宝小程序", label: "支付宝小程序",
}, },
], ],
getListByUserquery: {
pageNum: 1,
pageSize: 10,
},
// //
single: true, single: true,
// //
@ -512,6 +636,7 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
stationtotal: 0,
// //
trainingOrderList: [], trainingOrderList: [],
// //
@ -523,7 +648,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
nurseStationId: null, nurseStationId: null,
trainingOrderAmount:null, trainingOrderAmount: null,
nurseStationPersonId: null, nurseStationPersonId: null,
nursePersonName: null, nursePersonName: null,
trainingOrderNo: null, trainingOrderNo: null,
@ -535,6 +660,7 @@ export default {
// //
form: {}, form: {},
list: [], list: [],
nurseStationlist: [],
trainingOrderDetailsList: [], trainingOrderDetailsList: [],
// //
rules: {}, rules: {},
@ -545,6 +671,35 @@ export default {
this.baseurl = baseurl; this.baseurl = baseurl;
}, },
methods: { methods: {
//
ParamsStation(item) {
this.info();
this.nurseStationshow = true;
},
//list
info() {
getListByUser(this.getListByUserquery).then((res) => {
this.nurseStationlist = res.rows;
this.stationtotal = res.total;
});
},
clicknurseStationshow() {
this.nurseStationshow = false;
},
//
stationcancel() {
this.getListByUserquery = {
pageNum: 1,
pageSize: 10,
};
this.info();
},
//
choicestationid(item) {
this.queryParams.nurseStationName = item.nurseStationName;
this.queryParams.nurseStationId = item.id;
this.nurseStationshow = false;
},
// //
itemDirectoryUrl(item) { itemDirectoryUrl(item) {
let items = JSON.parse(item); let items = JSON.parse(item);
@ -654,6 +809,10 @@ export default {
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.queryParams = {
pageNum: 1,
pageSize: 10,
};
this.handleQuery(); this.handleQuery();
}, },
// //
@ -673,7 +832,7 @@ export default {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getTrainingOrder(id).then((response) => { getTrainingOrder(id).then((response) => {
console.log(response) console.log(response);
this.form = response.data; this.form = response.data;
this.form.trainingOrderDetailsList = this.form.trainingOrderDetailsList =
response.data.trainingOrderDetailsList; response.data.trainingOrderDetailsList;
@ -764,6 +923,13 @@ export default {
padding: 0 15px; padding: 0 15px;
border: 1px solid #e6ebf5; border: 1px solid #e6ebf5;
} }
.stationbtn {
width: 208px;
text-align: left;
height: 32px;
overflow: hidden;
font-size: 14px;
}
.textdetails { .textdetails {
width: 600px; width: 600px;
// height: 300px; // height: 300px;