Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
czx 2020-12-04 15:55:05 +08:00
commit 0b9a5baf7a
12 changed files with 172 additions and 65 deletions

View File

@ -17,13 +17,6 @@
<dependencies> <dependencies>
<!-- spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional> <!-- 表示依赖不会传递 -->
</dependency>
<!-- swagger2--> <!-- swagger2-->
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>

View File

@ -37,8 +37,7 @@ public class FtFoodDemandDaoController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('fantang:foodDemand:list')") @PreAuthorize("@ss.hasPermi('fantang:foodDemand:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(FtFoodDemandDao ftFoodDemandDao) public TableDataInfo list(FtFoodDemandDao ftFoodDemandDao) {
{
startPage(); startPage();
LambdaQueryWrapper<FtFoodDemandDao> lqw = Wrappers.lambdaQuery(ftFoodDemandDao); LambdaQueryWrapper<FtFoodDemandDao> lqw = Wrappers.lambdaQuery(ftFoodDemandDao);
if (ftFoodDemandDao.getFlag() != null) { if (ftFoodDemandDao.getFlag() != null) {
@ -77,6 +76,7 @@ public class FtFoodDemandDaoController extends BaseController {
@Log(title = "病人报餐", businessType = BusinessType.INSERT) @Log(title = "病人报餐", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody FtFoodDemandDao ftFoodDemandDao) { public AjaxResult add(@RequestBody FtFoodDemandDao ftFoodDemandDao) {
ftFoodDemandDao.setFlag(true);
return toAjax(iFtFoodDemandDaoService.save(ftFoodDemandDao) ? 1 : 0); return toAjax(iFtFoodDemandDaoService.save(ftFoodDemandDao) ? 1 : 0);
} }

View File

@ -57,6 +57,12 @@ public class FtStaffInfoDaoController extends BaseController {
return getDataTable(list); return getDataTable(list);
} }
@GetMapping("/staffListWithDepart")
public AjaxResult staffListWithDepart() {
return AjaxResult.success(null);
}
/** /**
* 查询护工管理列表 * 查询护工管理列表
*/ */

View File

@ -1,16 +1,16 @@
package com.ruoyi.system.fantang.domain; package com.ruoyi.system.fantang.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.fantang.vo.FtStaffInfoVo;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.ToString; import lombok.ToString;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
@ -22,11 +22,11 @@ import java.util.Date;
*/ */
@Data @Data
@ToString @ToString
@EqualsAndHashCode @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor @NoArgsConstructor
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ft_staff_info") @TableName("ft_staff_info")
public class FtStaffInfoDao { public class FtStaffInfoDao extends FtStaffInfoVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -2,6 +2,9 @@ package com.ruoyi.system.fantang.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.fantang.domain.FtStaffInfoDao; import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/** /**
* 员工管理Mapper接口 * 员工管理Mapper接口
@ -11,4 +14,6 @@ import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
*/ */
public interface FtStaffInfoDaoMapper extends BaseMapper<FtStaffInfoDao> { public interface FtStaffInfoDaoMapper extends BaseMapper<FtStaffInfoDao> {
@Select("")
List<FtStaffInfoDao> selectStaffInfoWithDepart();
} }

View File

@ -3,6 +3,8 @@ package com.ruoyi.system.fantang.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.fantang.domain.FtStaffInfoDao; import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
import java.util.List;
/** /**
* 员工管理Service接口 * 员工管理Service接口
* *
@ -11,4 +13,6 @@ import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
*/ */
public interface IFtStaffInfoDaoService extends IService<FtStaffInfoDao> { public interface IFtStaffInfoDaoService extends IService<FtStaffInfoDao> {
List<FtStaffInfoDao> selectStaffInfoWithDepart();
} }

View File

@ -6,6 +6,8 @@ import com.ruoyi.system.fantang.mapper.FtStaffInfoDaoMapper;
import com.ruoyi.system.fantang.service.IFtStaffInfoDaoService; import com.ruoyi.system.fantang.service.IFtStaffInfoDaoService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* 员工管理Service业务层处理 * 员工管理Service业务层处理
* *
@ -15,4 +17,9 @@ import org.springframework.stereotype.Service;
@Service @Service
public class FtStaffInfoDaoServiceImpl extends ServiceImpl<FtStaffInfoDaoMapper, FtStaffInfoDao> implements IFtStaffInfoDaoService { public class FtStaffInfoDaoServiceImpl extends ServiceImpl<FtStaffInfoDaoMapper, FtStaffInfoDao> implements IFtStaffInfoDaoService {
@Override
public List<FtStaffInfoDao> selectStaffInfoWithDepart() {
return this.baseMapper.selectStaffInfoWithDepart();
}
} }

View File

@ -0,0 +1,12 @@
package com.ruoyi.system.fantang.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FtStaffInfoVo {
private String departName;
}

View File

@ -93,7 +93,7 @@
<el-table-column label="加菜" align="center" prop="vegetables" width="80px" :formatter="formatVegetables"/> <el-table-column label="加菜" align="center" prop="vegetables" width="80px" :formatter="formatVegetables"/>
<el-table-column label="加肉" align="center" prop="meat" width="80px" :formatter="formatMeat"/> <el-table-column label="加肉" align="center" prop="meat" width="80px" :formatter="formatMeat"/>
<el-table-column label="加饭" align="center" prop="rice" width="80px" :formatter="formatRice"/> <el-table-column label="加饭" align="center" prop="rice" width="80px" :formatter="formatRice"/>
<el-table-column label="加蛋" align="center" prop="egg" width="80px" :formatter="formatEgg"/> <el-table-column label="加蛋" align="center" prop="egg" width="80px" />
<el-table-column label="营养配餐" align="center" prop="nutritionFood" width="120px"/> <el-table-column label="营养配餐" align="center" prop="nutritionFood" width="120px"/>
<!-- <el-table-column label="更新日期" align="center" prop="updateAt" width="180">--> <!-- <el-table-column label="更新日期" align="center" prop="updateAt" width="180">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
@ -126,8 +126,50 @@
<!-- 添加或修改病人报餐对话框 --> <!-- 添加或修改病人报餐对话框 -->
<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="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="姓名"> <el-form-item label="姓名" prop="name">
<el-input label="姓名"></el-input> <el-input v-model="form.name" :disabled="true"/>
</el-form-item>
<el-form-item label="床号" prop="bedId">
<el-input v-model="form.bedId" :disabled="true"/>
</el-form-item>
<el-form-item label="正餐" prop="type">
<el-input v-model="form.type" :disabled="true"/>
</el-form-item>
<el-form-item label="正餐清单" prop="foods">
<el-input v-model="form.foods"/>
</el-form-item>
<el-form-item label="加菜" prop="vegetables">
<el-select v-model="form.vegetables" placeholder="是否加菜">
<el-option
v-for="item in vegetablesOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="加肉" prop="meat">
<el-select v-model="form.meat" placeholder="是否加肉">
<el-option
v-for="item in vegetablesOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="加饭" prop="rice">
<el-select v-model="form.rice" placeholder="是否加饭">
<el-option
v-for="item in vegetablesOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="加蛋" prop="egg">
<el-input-number v-model="form.egg" :min="0"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -141,24 +183,30 @@
<script> <script>
import { import {
addFoodDemand, addFoodDemand,
delFoodDemand,
exportFoodDemand, exportFoodDemand,
getFoodDemand, getFoodDemand,
listFoodDemand, listFoodDemand,
updateFoodDemand updateFoodDemand
} from "@/api/fantang/foodDemand"; } from "@/api/fantang/foodDemand";
import {listFood} from "../../../api/fantang/food"; import {listFood} from "@/api/fantang/food";
export default { export default {
name: "FoodDemand", name: "FoodDemand",
components: {}, components: {},
data() { data() {
return { return {
vegetablesOptions: [{
value: 1,
label: '是'
}, {
value: 0,
label: '否'
}],
flagOptions: [{ flagOptions: [{
value: 1, value: 1,
label: '启用' label: '启用'
}, { }, {
value: 2, value: 0,
label: '禁用' label: '禁用'
}], }],
// //

View File

@ -259,10 +259,9 @@
<script> <script>
import {addSettle, delSettle, exportSettle, getSettle, listSettle, updateSettle} from "@/api/fantang/settle"; import {addSettle, delSettle, exportSettle, getSettle, listSettle, updateSettle} from "@/api/fantang/settle";
import {listAll, listNoPay, listPayoff} from "@/api/fantang/meals"; import {listAll, listNoPay, listPayoff} from "@/api/fantang/meals";
import {getUserProfile} from "../../../api/system/user"; import {getUserProfile} from "@/api/system/user";
import {getPrepaymentByPatientId} from "../../../api/fantang/prepayment"; import {getPrepaymentByPatientId} from "@/api/fantang/prepayment";
import {getLastSettlementDate} from "../../../api/fantang/meals"; import {getLastSettlementDate} from "@/api/fantang/meals";
import { dateFormat } from 'vux'
export default { export default {
name: "Settle", name: "Settle",

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px" v-if="false">
<el-form-item label="补贴类型" prop="type"> <el-form-item label="补贴类型" prop="type">
<el-select v-model="queryParams.type" placeholder="请选择补贴类型" clearable size="small"> <el-select v-model="queryParams.type" placeholder="请选择补贴类型" clearable size="small">
<el-option <el-option
@ -54,7 +54,7 @@
>新增 >新增
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5" v-if="false">
<el-button <el-button
type="success" type="success"
icon="el-icon-edit" icon="el-icon-edit"
@ -65,7 +65,7 @@
>修改 >修改
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5" v-if="false">
<el-button <el-button
type="danger" type="danger"
icon="el-icon-delete" icon="el-icon-delete"
@ -76,7 +76,7 @@
>删除 >删除
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5" v-if="false">
<el-button <el-button
type="warning" type="warning"
icon="el-icon-download" icon="el-icon-download"
@ -86,11 +86,11 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" v-if="false"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="subsidyList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="subsidyList" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center" v-if="false"/>
<el-table-column label="补贴 id" align="center" prop="subsidyId" v-if="false"/> <el-table-column label="补贴 id" align="center" prop="subsidyId" v-if="false"/>
<el-table-column label="补贴类型" align="center" prop="type" :formatter="typeFormat"/> <el-table-column label="补贴类型" align="center" prop="type" :formatter="typeFormat"/>
<el-table-column label="金额" align="center" prop="price"/> <el-table-column label="金额" align="center" prop="price"/>
@ -102,6 +102,14 @@
<el-table-column label="启用标志" align="center" prop="flag" :formatter="formatFlag"/> <el-table-column label="启用标志" align="center" prop="flag" :formatter="formatFlag"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-money"
@click="clickSubsidyGiveOut(scope.row)"
v-hasPermi="['fantang:subsidy:edit']"
>发放
</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -130,6 +138,18 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 补贴发放弹出层-->
<el-dialog title="选择发放员工" :visible.sync="showPopupSubsidyGiveOut" width="500px" align="center">
<el-table :data="staffData">
<el-table-column type="selection" width="55" align="center" />
<el-table-column property="departId" label="科室" width="200"></el-table-column>
<el-table-column property="name" label="姓名" width="150"></el-table-column>
</el-table>
<br>
<el-button type="primary">发放</el-button>
</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="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
@ -166,12 +186,16 @@
<script> <script>
import {addSubsidy, delSubsidy, exportSubsidy, getSubsidy, listSubsidy, updateSubsidy} from "@/api/fantang/subsidy"; import {addSubsidy, delSubsidy, exportSubsidy, getSubsidy, listSubsidy, updateSubsidy} from "@/api/fantang/subsidy";
import {listStaffInfo} from "@/api/fantang/staffInfo";
export default { export default {
name: "Subsidy", name: "Subsidy",
components: {}, components: {},
data() { data() {
return { return {
staffData: [],
//
showPopupSubsidyGiveOut: false,
// //
loading: true, loading: true,
// //
@ -224,6 +248,15 @@ export default {
}); });
}, },
methods: { methods: {
//
clickSubsidyGiveOut(row) {
listStaffInfo().then(response => {
this.staffData = response.rows;
this.showPopupSubsidyGiveOut = true;
})
},
// //
formatFlag(row) { formatFlag(row) {
if (row.flag) if (row.flag)

View File

@ -8,7 +8,7 @@ function resolve(dir) {
const name = defaultSettings.title || '食堂管理系统' // 标题 const name = defaultSettings.title || '食堂管理系统' // 标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 9001 // 端口
// vue.config.js 配置说明 // vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions