mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
自动生成 CRUD
This commit is contained in:
parent
212b781352
commit
3d3188e399
@ -0,0 +1,107 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtCareStaffInfoDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtCareStaffInfoDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 护工信息Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/careStaffInfo")
|
||||||
|
public class FtCareStaffInfoDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtCareStaffInfoDaoService iFtCareStaffInfoDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询护工信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:careStaffInfo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtCareStaffInfoDao ftCareStaffInfoDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtCareStaffInfoDao> lqw = Wrappers.lambdaQuery(ftCareStaffInfoDao);
|
||||||
|
if (StringUtils.isNotBlank(ftCareStaffInfoDao.getName())) {
|
||||||
|
lqw.like(FtCareStaffInfoDao::getName, ftCareStaffInfoDao.getName());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftCareStaffInfoDao.getCorpName())) {
|
||||||
|
lqw.like(FtCareStaffInfoDao::getCorpName, ftCareStaffInfoDao.getCorpName());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftCareStaffInfoDao.getDepartList())) {
|
||||||
|
lqw.eq(FtCareStaffInfoDao::getDepartList, ftCareStaffInfoDao.getDepartList());
|
||||||
|
}
|
||||||
|
List<FtCareStaffInfoDao> list = iFtCareStaffInfoDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出护工信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:careStaffInfo:export')")
|
||||||
|
@Log(title = "护工信息", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtCareStaffInfoDao ftCareStaffInfoDao) {
|
||||||
|
LambdaQueryWrapper<FtCareStaffInfoDao> lqw = new LambdaQueryWrapper<FtCareStaffInfoDao>(ftCareStaffInfoDao);
|
||||||
|
List<FtCareStaffInfoDao> list = iFtCareStaffInfoDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtCareStaffInfoDao> util = new ExcelUtil<FtCareStaffInfoDao>(FtCareStaffInfoDao.class);
|
||||||
|
return util.exportExcel(list, "careStaffInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取护工信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:careStaffInfo:query')")
|
||||||
|
@GetMapping(value = "/{careStaffId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("careStaffId") Long careStaffId) {
|
||||||
|
return AjaxResult.success(iFtCareStaffInfoDaoService.getById(careStaffId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增护工信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:careStaffInfo:add')")
|
||||||
|
@Log(title = "护工信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtCareStaffInfoDao ftCareStaffInfoDao) {
|
||||||
|
return toAjax(iFtCareStaffInfoDaoService.save(ftCareStaffInfoDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改护工信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:careStaffInfo:edit')")
|
||||||
|
@Log(title = "护工信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtCareStaffInfoDao ftCareStaffInfoDao) {
|
||||||
|
return toAjax(iFtCareStaffInfoDaoService.updateById(ftCareStaffInfoDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除护工信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:careStaffInfo:remove')")
|
||||||
|
@Log(title = "护工信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{careStaffIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] careStaffIds) {
|
||||||
|
return toAjax(iFtCareStaffInfoDaoService.removeByIds(Arrays.asList(careStaffIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,101 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtDepartDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtDepartDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/depart")
|
||||||
|
public class FtDepartDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtDepartDaoService iFtDepartDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询科室管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:depart:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtDepartDao ftDepartDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtDepartDao> lqw = Wrappers.lambdaQuery(ftDepartDao);
|
||||||
|
if (StringUtils.isNotBlank(ftDepartDao.getDepartName())) {
|
||||||
|
lqw.like(FtDepartDao::getDepartName, ftDepartDao.getDepartName());
|
||||||
|
}
|
||||||
|
List<FtDepartDao> list = iFtDepartDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出科室管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:depart:export')")
|
||||||
|
@Log(title = "科室管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtDepartDao ftDepartDao) {
|
||||||
|
LambdaQueryWrapper<FtDepartDao> lqw = new LambdaQueryWrapper<FtDepartDao>(ftDepartDao);
|
||||||
|
List<FtDepartDao> list = iFtDepartDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtDepartDao> util = new ExcelUtil<FtDepartDao>(FtDepartDao.class);
|
||||||
|
return util.exportExcel(list, "depart");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取科室管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:depart:query')")
|
||||||
|
@GetMapping(value = "/{departId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("departId") Long departId) {
|
||||||
|
return AjaxResult.success(iFtDepartDaoService.getById(departId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增科室管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:depart:add')")
|
||||||
|
@Log(title = "科室管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtDepartDao ftDepartDao) {
|
||||||
|
return toAjax(iFtDepartDaoService.save(ftDepartDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改科室管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:depart:edit')")
|
||||||
|
@Log(title = "科室管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtDepartDao ftDepartDao) {
|
||||||
|
return toAjax(iFtDepartDaoService.updateById(ftDepartDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除科室管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:depart:remove')")
|
||||||
|
@Log(title = "科室管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{departIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] departIds) {
|
||||||
|
return toAjax(iFtDepartDaoService.removeByIds(Arrays.asList(departIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,107 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtFoodDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtFoodDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/food")
|
||||||
|
public class FtFoodDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtFoodDaoService iFtFoodDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询食品管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:food:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtFoodDao ftFoodDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtFoodDao> lqw = Wrappers.lambdaQuery(ftFoodDao);
|
||||||
|
if (StringUtils.isNotBlank(ftFoodDao.getName())) {
|
||||||
|
lqw.like(FtFoodDao::getName, ftFoodDao.getName());
|
||||||
|
}
|
||||||
|
if (ftFoodDao.getPrice() != null) {
|
||||||
|
lqw.eq(FtFoodDao::getPrice, ftFoodDao.getPrice());
|
||||||
|
}
|
||||||
|
if (ftFoodDao.getType() != null) {
|
||||||
|
lqw.eq(FtFoodDao::getType, ftFoodDao.getType());
|
||||||
|
}
|
||||||
|
List<FtFoodDao> list = iFtFoodDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出食品管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:food:export')")
|
||||||
|
@Log(title = "食品管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtFoodDao ftFoodDao) {
|
||||||
|
LambdaQueryWrapper<FtFoodDao> lqw = new LambdaQueryWrapper<FtFoodDao>(ftFoodDao);
|
||||||
|
List<FtFoodDao> list = iFtFoodDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtFoodDao> util = new ExcelUtil<FtFoodDao>(FtFoodDao.class);
|
||||||
|
return util.exportExcel(list, "food");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取食品管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:food:query')")
|
||||||
|
@GetMapping(value = "/{foodId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("foodId") Long foodId) {
|
||||||
|
return AjaxResult.success(iFtFoodDaoService.getById(foodId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增食品管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:food:add')")
|
||||||
|
@Log(title = "食品管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtFoodDao ftFoodDao) {
|
||||||
|
return toAjax(iFtFoodDaoService.save(ftFoodDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改食品管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:food:edit')")
|
||||||
|
@Log(title = "食品管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtFoodDao ftFoodDao) {
|
||||||
|
return toAjax(iFtFoodDaoService.updateById(ftFoodDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除食品管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:food:remove')")
|
||||||
|
@Log(title = "食品管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{foodIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] foodIds) {
|
||||||
|
return toAjax(iFtFoodDaoService.removeByIds(Arrays.asList(foodIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,125 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtOrderDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtOrderDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/order")
|
||||||
|
public class FtOrderDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtOrderDaoService iFtOrderDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询订单管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:order:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtOrderDao ftOrderDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtOrderDao> lqw = Wrappers.lambdaQuery(ftOrderDao);
|
||||||
|
if (StringUtils.isNotBlank(ftOrderDao.getOrderType())) {
|
||||||
|
lqw.eq(FtOrderDao::getOrderType, ftOrderDao.getOrderType());
|
||||||
|
}
|
||||||
|
if (ftOrderDao.getTotalPrice() != null) {
|
||||||
|
lqw.eq(FtOrderDao::getTotalPrice, ftOrderDao.getTotalPrice());
|
||||||
|
}
|
||||||
|
if (ftOrderDao.getDiscount() != null) {
|
||||||
|
lqw.eq(FtOrderDao::getDiscount, ftOrderDao.getDiscount());
|
||||||
|
}
|
||||||
|
if (ftOrderDao.getReceipts() != null) {
|
||||||
|
lqw.eq(FtOrderDao::getReceipts, ftOrderDao.getReceipts());
|
||||||
|
}
|
||||||
|
if (ftOrderDao.getCreateAt() != null) {
|
||||||
|
lqw.eq(FtOrderDao::getCreateAt, ftOrderDao.getCreateAt());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftOrderDao.getOrderSrc())) {
|
||||||
|
lqw.eq(FtOrderDao::getOrderSrc, ftOrderDao.getOrderSrc());
|
||||||
|
}
|
||||||
|
if (ftOrderDao.getCurrentPrice() != null) {
|
||||||
|
lqw.eq(FtOrderDao::getCurrentPrice, ftOrderDao.getCurrentPrice());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftOrderDao.getPayType())) {
|
||||||
|
lqw.eq(FtOrderDao::getPayType, ftOrderDao.getPayType());
|
||||||
|
}
|
||||||
|
if (ftOrderDao.getWriteOffAt() != null) {
|
||||||
|
lqw.eq(FtOrderDao::getWriteOffAt, ftOrderDao.getWriteOffAt());
|
||||||
|
}
|
||||||
|
List<FtOrderDao> list = iFtOrderDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出订单管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:order:export')")
|
||||||
|
@Log(title = "订单管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtOrderDao ftOrderDao) {
|
||||||
|
LambdaQueryWrapper<FtOrderDao> lqw = new LambdaQueryWrapper<FtOrderDao>(ftOrderDao);
|
||||||
|
List<FtOrderDao> list = iFtOrderDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtOrderDao> util = new ExcelUtil<FtOrderDao>(FtOrderDao.class);
|
||||||
|
return util.exportExcel(list, "order");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取订单管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:order:query')")
|
||||||
|
@GetMapping(value = "/{orderId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("orderId") Long orderId) {
|
||||||
|
return AjaxResult.success(iFtOrderDaoService.getById(orderId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增订单管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:order:add')")
|
||||||
|
@Log(title = "订单管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtOrderDao ftOrderDao) {
|
||||||
|
return toAjax(iFtOrderDaoService.save(ftOrderDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改订单管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:order:edit')")
|
||||||
|
@Log(title = "订单管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtOrderDao ftOrderDao) {
|
||||||
|
return toAjax(iFtOrderDaoService.updateById(ftOrderDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除订单管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:order:remove')")
|
||||||
|
@Log(title = "订单管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{orderIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] orderIds) {
|
||||||
|
return toAjax(iFtOrderDaoService.removeByIds(Arrays.asList(orderIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPatientDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtPatientDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/patient")
|
||||||
|
public class FtPatientDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtPatientDaoService iFtPatientDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询病人管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:patient:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtPatientDao ftPatientDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtPatientDao> lqw = Wrappers.lambdaQuery(ftPatientDao);
|
||||||
|
if (StringUtils.isNotBlank(ftPatientDao.getName())) {
|
||||||
|
lqw.like(FtPatientDao::getName, ftPatientDao.getName());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftPatientDao.getBedId())) {
|
||||||
|
lqw.eq(FtPatientDao::getBedId, ftPatientDao.getBedId());
|
||||||
|
}
|
||||||
|
List<FtPatientDao> list = iFtPatientDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出病人管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:patient:export')")
|
||||||
|
@Log(title = "病人管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtPatientDao ftPatientDao) {
|
||||||
|
LambdaQueryWrapper<FtPatientDao> lqw = new LambdaQueryWrapper<FtPatientDao>(ftPatientDao);
|
||||||
|
List<FtPatientDao> list = iFtPatientDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtPatientDao> util = new ExcelUtil<FtPatientDao>(FtPatientDao.class);
|
||||||
|
return util.exportExcel(list, "patient");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取病人管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:patient:query')")
|
||||||
|
@GetMapping(value = "/{patientId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("patientId") Long patientId) {
|
||||||
|
return AjaxResult.success(iFtPatientDaoService.getById(patientId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增病人管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:patient:add')")
|
||||||
|
@Log(title = "病人管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtPatientDao ftPatientDao) {
|
||||||
|
return toAjax(iFtPatientDaoService.save(ftPatientDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改病人管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:patient:edit')")
|
||||||
|
@Log(title = "病人管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtPatientDao ftPatientDao) {
|
||||||
|
return toAjax(iFtPatientDaoService.updateById(ftPatientDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除病人管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:patient:remove')")
|
||||||
|
@Log(title = "病人管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{patientIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] patientIds) {
|
||||||
|
return toAjax(iFtPatientDaoService.removeByIds(Arrays.asList(patientIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,106 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPrepaymentDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtPrepaymentDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收费管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/prepayment")
|
||||||
|
public class FtPrepaymentDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtPrepaymentDaoService iFtPrepaymentDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询收费管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtPrepaymentDao ftPrepaymentDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtPrepaymentDao> lqw = Wrappers.lambdaQuery(ftPrepaymentDao);
|
||||||
|
if (ftPrepaymentDao.getCollectAt() != null) {
|
||||||
|
lqw.eq(FtPrepaymentDao::getCollectAt, ftPrepaymentDao.getCollectAt());
|
||||||
|
}
|
||||||
|
if (ftPrepaymentDao.getSettlementAt() != null) {
|
||||||
|
lqw.eq(FtPrepaymentDao::getSettlementAt, ftPrepaymentDao.getSettlementAt());
|
||||||
|
}
|
||||||
|
if (ftPrepaymentDao.getSettlementFlag() != null) {
|
||||||
|
lqw.eq(FtPrepaymentDao::getSettlementFlag, ftPrepaymentDao.getSettlementFlag());
|
||||||
|
}
|
||||||
|
List<FtPrepaymentDao> list = iFtPrepaymentDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出收费管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:export')")
|
||||||
|
@Log(title = "收费管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtPrepaymentDao ftPrepaymentDao) {
|
||||||
|
LambdaQueryWrapper<FtPrepaymentDao> lqw = new LambdaQueryWrapper<FtPrepaymentDao>(ftPrepaymentDao);
|
||||||
|
List<FtPrepaymentDao> list = iFtPrepaymentDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtPrepaymentDao> util = new ExcelUtil<FtPrepaymentDao>(FtPrepaymentDao.class);
|
||||||
|
return util.exportExcel(list, "prepayment");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取收费管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:query')")
|
||||||
|
@GetMapping(value = "/{prepaymentId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("prepaymentId") Long prepaymentId) {
|
||||||
|
return AjaxResult.success(iFtPrepaymentDaoService.getById(prepaymentId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增收费管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:add')")
|
||||||
|
@Log(title = "收费管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtPrepaymentDao ftPrepaymentDao) {
|
||||||
|
return toAjax(iFtPrepaymentDaoService.save(ftPrepaymentDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改收费管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:edit')")
|
||||||
|
@Log(title = "收费管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtPrepaymentDao ftPrepaymentDao) {
|
||||||
|
return toAjax(iFtPrepaymentDaoService.updateById(ftPrepaymentDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除收费管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:remove')")
|
||||||
|
@Log(title = "收费管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{prepaymentIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] prepaymentIds) {
|
||||||
|
return toAjax(iFtPrepaymentDaoService.removeByIds(Arrays.asList(prepaymentIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,109 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtReportMealsDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtReportMealsDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/meals")
|
||||||
|
public class FtReportMealsDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtReportMealsDaoService iFtReportMealsDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询报餐管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:meals:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtReportMealsDao ftReportMealsDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtReportMealsDao> lqw = Wrappers.lambdaQuery(ftReportMealsDao);
|
||||||
|
if (ftReportMealsDao.getCreateAt() != null) {
|
||||||
|
lqw.eq(FtReportMealsDao::getCreateAt, ftReportMealsDao.getCreateAt());
|
||||||
|
}
|
||||||
|
if (ftReportMealsDao.getType() != null) {
|
||||||
|
lqw.eq(FtReportMealsDao::getType, ftReportMealsDao.getType());
|
||||||
|
}
|
||||||
|
if (ftReportMealsDao.getCreateBy() != null) {
|
||||||
|
lqw.eq(FtReportMealsDao::getCreateBy, ftReportMealsDao.getCreateBy());
|
||||||
|
}
|
||||||
|
if (ftReportMealsDao.getPrice() != null) {
|
||||||
|
lqw.eq(FtReportMealsDao::getPrice, ftReportMealsDao.getPrice());
|
||||||
|
}
|
||||||
|
List<FtReportMealsDao> list = iFtReportMealsDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出报餐管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:meals:export')")
|
||||||
|
@Log(title = "报餐管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtReportMealsDao ftReportMealsDao) {
|
||||||
|
LambdaQueryWrapper<FtReportMealsDao> lqw = new LambdaQueryWrapper<FtReportMealsDao>(ftReportMealsDao);
|
||||||
|
List<FtReportMealsDao> list = iFtReportMealsDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtReportMealsDao> util = new ExcelUtil<FtReportMealsDao>(FtReportMealsDao.class);
|
||||||
|
return util.exportExcel(list, "meals");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取报餐管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:meals:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
|
return AjaxResult.success(iFtReportMealsDaoService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增报餐管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:meals:add')")
|
||||||
|
@Log(title = "报餐管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtReportMealsDao ftReportMealsDao) {
|
||||||
|
return toAjax(iFtReportMealsDaoService.save(ftReportMealsDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改报餐管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:meals:edit')")
|
||||||
|
@Log(title = "报餐管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtReportMealsDao ftReportMealsDao) {
|
||||||
|
return toAjax(iFtReportMealsDaoService.updateById(ftReportMealsDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除报餐管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:meals:remove')")
|
||||||
|
@Log(title = "报餐管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(iFtReportMealsDaoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,116 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSettleDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtSettleDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算报Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/settle")
|
||||||
|
public class FtSettleDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtSettleDaoService iFtSettleDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询结算报列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:settle:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtSettleDao ftSettleDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtSettleDao> lqw = Wrappers.lambdaQuery(ftSettleDao);
|
||||||
|
if (ftSettleDao.getSettleAt() != null) {
|
||||||
|
lqw.eq(FtSettleDao::getSettleAt, ftSettleDao.getSettleAt());
|
||||||
|
}
|
||||||
|
if (ftSettleDao.getPrice() != null) {
|
||||||
|
lqw.eq(FtSettleDao::getPrice, ftSettleDao.getPrice());
|
||||||
|
}
|
||||||
|
if (ftSettleDao.getPayable() != null) {
|
||||||
|
lqw.eq(FtSettleDao::getPayable, ftSettleDao.getPayable());
|
||||||
|
}
|
||||||
|
if (ftSettleDao.getReceipts() != null) {
|
||||||
|
lqw.eq(FtSettleDao::getReceipts, ftSettleDao.getReceipts());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftSettleDao.getType())) {
|
||||||
|
lqw.eq(FtSettleDao::getType, ftSettleDao.getType());
|
||||||
|
}
|
||||||
|
if (ftSettleDao.getRefund() != null) {
|
||||||
|
lqw.eq(FtSettleDao::getRefund, ftSettleDao.getRefund());
|
||||||
|
}
|
||||||
|
List<FtSettleDao> list = iFtSettleDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出结算报列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:settle:export')")
|
||||||
|
@Log(title = "结算报", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtSettleDao ftSettleDao) {
|
||||||
|
LambdaQueryWrapper<FtSettleDao> lqw = new LambdaQueryWrapper<FtSettleDao>(ftSettleDao);
|
||||||
|
List<FtSettleDao> list = iFtSettleDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtSettleDao> util = new ExcelUtil<FtSettleDao>(FtSettleDao.class);
|
||||||
|
return util.exportExcel(list, "settle");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取结算报详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:settle:query')")
|
||||||
|
@GetMapping(value = "/{settleId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("settleId") Long settleId) {
|
||||||
|
return AjaxResult.success(iFtSettleDaoService.getById(settleId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增结算报
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:settle:add')")
|
||||||
|
@Log(title = "结算报", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtSettleDao ftSettleDao) {
|
||||||
|
return toAjax(iFtSettleDaoService.save(ftSettleDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改结算报
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:settle:edit')")
|
||||||
|
@Log(title = "结算报", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtSettleDao ftSettleDao) {
|
||||||
|
return toAjax(iFtSettleDaoService.updateById(ftSettleDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除结算报
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:settle:remove')")
|
||||||
|
@Log(title = "结算报", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{settleIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] settleIds) {
|
||||||
|
return toAjax(iFtSettleDaoService.removeByIds(Arrays.asList(settleIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,109 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSpecialDemandDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtSpecialDemandDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特殊用餐管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/demand")
|
||||||
|
public class FtSpecialDemandDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtSpecialDemandDaoService iFtSpecialDemandDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询特殊用餐管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:demand:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtSpecialDemandDao ftSpecialDemandDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtSpecialDemandDao> lqw = Wrappers.lambdaQuery(ftSpecialDemandDao);
|
||||||
|
if (ftSpecialDemandDao.getType() != null) {
|
||||||
|
lqw.eq(FtSpecialDemandDao::getType, ftSpecialDemandDao.getType());
|
||||||
|
}
|
||||||
|
if (ftSpecialDemandDao.getCreateAt() != null) {
|
||||||
|
lqw.eq(FtSpecialDemandDao::getCreateAt, ftSpecialDemandDao.getCreateAt());
|
||||||
|
}
|
||||||
|
if (ftSpecialDemandDao.getPrice() != null) {
|
||||||
|
lqw.eq(FtSpecialDemandDao::getPrice, ftSpecialDemandDao.getPrice());
|
||||||
|
}
|
||||||
|
if (ftSpecialDemandDao.getTerm() != null) {
|
||||||
|
lqw.eq(FtSpecialDemandDao::getTerm, ftSpecialDemandDao.getTerm());
|
||||||
|
}
|
||||||
|
List<FtSpecialDemandDao> list = iFtSpecialDemandDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出特殊用餐管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:demand:export')")
|
||||||
|
@Log(title = "特殊用餐管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtSpecialDemandDao ftSpecialDemandDao) {
|
||||||
|
LambdaQueryWrapper<FtSpecialDemandDao> lqw = new LambdaQueryWrapper<FtSpecialDemandDao>(ftSpecialDemandDao);
|
||||||
|
List<FtSpecialDemandDao> list = iFtSpecialDemandDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtSpecialDemandDao> util = new ExcelUtil<FtSpecialDemandDao>(FtSpecialDemandDao.class);
|
||||||
|
return util.exportExcel(list, "demand");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取特殊用餐管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:demand:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
|
return AjaxResult.success(iFtSpecialDemandDaoService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增特殊用餐管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:demand:add')")
|
||||||
|
@Log(title = "特殊用餐管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtSpecialDemandDao ftSpecialDemandDao) {
|
||||||
|
return toAjax(iFtSpecialDemandDaoService.save(ftSpecialDemandDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改特殊用餐管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:demand:edit')")
|
||||||
|
@Log(title = "特殊用餐管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtSpecialDemandDao ftSpecialDemandDao) {
|
||||||
|
return toAjax(iFtSpecialDemandDaoService.updateById(ftSpecialDemandDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除特殊用餐管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:demand:remove')")
|
||||||
|
@Log(title = "特殊用餐管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(iFtSpecialDemandDaoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,107 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtStaffInfoDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/staffInfo")
|
||||||
|
public class FtStaffInfoDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtStaffInfoDaoService iFtStaffInfoDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询员工管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffInfo:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtStaffInfoDao ftStaffInfoDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtStaffInfoDao> lqw = Wrappers.lambdaQuery(ftStaffInfoDao);
|
||||||
|
if (StringUtils.isNotBlank(ftStaffInfoDao.getName())) {
|
||||||
|
lqw.like(FtStaffInfoDao::getName, ftStaffInfoDao.getName());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftStaffInfoDao.getPost())) {
|
||||||
|
lqw.eq(FtStaffInfoDao::getPost, ftStaffInfoDao.getPost());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftStaffInfoDao.getRole())) {
|
||||||
|
lqw.eq(FtStaffInfoDao::getRole, ftStaffInfoDao.getRole());
|
||||||
|
}
|
||||||
|
List<FtStaffInfoDao> list = iFtStaffInfoDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出员工管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffInfo:export')")
|
||||||
|
@Log(title = "员工管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtStaffInfoDao ftStaffInfoDao) {
|
||||||
|
LambdaQueryWrapper<FtStaffInfoDao> lqw = new LambdaQueryWrapper<FtStaffInfoDao>(ftStaffInfoDao);
|
||||||
|
List<FtStaffInfoDao> list = iFtStaffInfoDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtStaffInfoDao> util = new ExcelUtil<FtStaffInfoDao>(FtStaffInfoDao.class);
|
||||||
|
return util.exportExcel(list, "staffInfo");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取员工管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffInfo:query')")
|
||||||
|
@GetMapping(value = "/{staffId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("staffId") Long staffId) {
|
||||||
|
return AjaxResult.success(iFtStaffInfoDaoService.getById(staffId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增员工管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffInfo:add')")
|
||||||
|
@Log(title = "员工管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtStaffInfoDao ftStaffInfoDao) {
|
||||||
|
return toAjax(iFtStaffInfoDaoService.save(ftStaffInfoDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改员工管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffInfo:edit')")
|
||||||
|
@Log(title = "员工管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtStaffInfoDao ftStaffInfoDao) {
|
||||||
|
return toAjax(iFtStaffInfoDaoService.updateById(ftStaffInfoDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除员工管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffInfo:remove')")
|
||||||
|
@Log(title = "员工管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{staffIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] staffIds) {
|
||||||
|
return toAjax(iFtStaffInfoDaoService.removeByIds(Arrays.asList(staffIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,110 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffSubsidyDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtStaffSubsidyDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴流水查看Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/staffSubsidy")
|
||||||
|
public class FtStaffSubsidyDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtStaffSubsidyDaoService iFtStaffSubsidyDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询补贴流水查看列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffSubsidy:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtStaffSubsidyDao ftStaffSubsidyDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtStaffSubsidyDao> lqw = Wrappers.lambdaQuery(ftStaffSubsidyDao);
|
||||||
|
if (StringUtils.isNotBlank(ftStaffSubsidyDao.getSubsidyType())) {
|
||||||
|
lqw.eq(FtStaffSubsidyDao::getSubsidyType, ftStaffSubsidyDao.getSubsidyType());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftStaffSubsidyDao.getIncomeType())) {
|
||||||
|
lqw.eq(FtStaffSubsidyDao::getIncomeType, ftStaffSubsidyDao.getIncomeType());
|
||||||
|
}
|
||||||
|
if (ftStaffSubsidyDao.getPrice() != null) {
|
||||||
|
lqw.eq(FtStaffSubsidyDao::getPrice, ftStaffSubsidyDao.getPrice());
|
||||||
|
}
|
||||||
|
if (ftStaffSubsidyDao.getConsumAt() != null) {
|
||||||
|
lqw.eq(FtStaffSubsidyDao::getConsumAt, ftStaffSubsidyDao.getConsumAt());
|
||||||
|
}
|
||||||
|
List<FtStaffSubsidyDao> list = iFtStaffSubsidyDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出补贴流水查看列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffSubsidy:export')")
|
||||||
|
@Log(title = "补贴流水查看", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtStaffSubsidyDao ftStaffSubsidyDao) {
|
||||||
|
LambdaQueryWrapper<FtStaffSubsidyDao> lqw = new LambdaQueryWrapper<FtStaffSubsidyDao>(ftStaffSubsidyDao);
|
||||||
|
List<FtStaffSubsidyDao> list = iFtStaffSubsidyDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtStaffSubsidyDao> util = new ExcelUtil<FtStaffSubsidyDao>(FtStaffSubsidyDao.class);
|
||||||
|
return util.exportExcel(list, "staffSubsidy");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取补贴流水查看详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffSubsidy:query')")
|
||||||
|
@GetMapping(value = "/{subsidyId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("subsidyId") Long subsidyId) {
|
||||||
|
return AjaxResult.success(iFtStaffSubsidyDaoService.getById(subsidyId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增补贴流水查看
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffSubsidy:add')")
|
||||||
|
@Log(title = "补贴流水查看", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtStaffSubsidyDao ftStaffSubsidyDao) {
|
||||||
|
return toAjax(iFtStaffSubsidyDaoService.save(ftStaffSubsidyDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改补贴流水查看
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffSubsidy:edit')")
|
||||||
|
@Log(title = "补贴流水查看", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtStaffSubsidyDao ftStaffSubsidyDao) {
|
||||||
|
return toAjax(iFtStaffSubsidyDaoService.updateById(ftStaffSubsidyDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除补贴流水查看
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:staffSubsidy:remove')")
|
||||||
|
@Log(title = "补贴流水查看", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{subsidyIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] subsidyIds) {
|
||||||
|
return toAjax(iFtStaffSubsidyDaoService.removeByIds(Arrays.asList(subsidyIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,116 @@
|
|||||||
|
package com.ruoyi.system.fantang.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSubsidyDao;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtSubsidyDaoService;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴管理Controller
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/fantang/subsidy")
|
||||||
|
public class FtSubsidyDaoController extends BaseController {
|
||||||
|
|
||||||
|
private final IFtSubsidyDaoService iFtSubsidyDaoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询补贴管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:subsidy:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(FtSubsidyDao ftSubsidyDao) {
|
||||||
|
startPage();
|
||||||
|
LambdaQueryWrapper<FtSubsidyDao> lqw = Wrappers.lambdaQuery(ftSubsidyDao);
|
||||||
|
if (StringUtils.isNotBlank(ftSubsidyDao.getType())) {
|
||||||
|
lqw.eq(FtSubsidyDao::getType, ftSubsidyDao.getType());
|
||||||
|
}
|
||||||
|
if (ftSubsidyDao.getPrice() != null) {
|
||||||
|
lqw.eq(FtSubsidyDao::getPrice, ftSubsidyDao.getPrice());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftSubsidyDao.getRange())) {
|
||||||
|
lqw.eq(FtSubsidyDao::getRange, ftSubsidyDao.getRange());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftSubsidyDao.getCycle())) {
|
||||||
|
lqw.eq(FtSubsidyDao::getCycle, ftSubsidyDao.getCycle());
|
||||||
|
}
|
||||||
|
if (ftSubsidyDao.getCreateAt() != null) {
|
||||||
|
lqw.eq(FtSubsidyDao::getCreateAt, ftSubsidyDao.getCreateAt());
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(ftSubsidyDao.getCreateBy())) {
|
||||||
|
lqw.eq(FtSubsidyDao::getCreateBy, ftSubsidyDao.getCreateBy());
|
||||||
|
}
|
||||||
|
List<FtSubsidyDao> list = iFtSubsidyDaoService.list(lqw);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出补贴管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:subsidy:export')")
|
||||||
|
@Log(title = "补贴管理", businessType = BusinessType.EXPORT)
|
||||||
|
@GetMapping("/export")
|
||||||
|
public AjaxResult export(FtSubsidyDao ftSubsidyDao) {
|
||||||
|
LambdaQueryWrapper<FtSubsidyDao> lqw = new LambdaQueryWrapper<FtSubsidyDao>(ftSubsidyDao);
|
||||||
|
List<FtSubsidyDao> list = iFtSubsidyDaoService.list(lqw);
|
||||||
|
ExcelUtil<FtSubsidyDao> util = new ExcelUtil<FtSubsidyDao>(FtSubsidyDao.class);
|
||||||
|
return util.exportExcel(list, "subsidy");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取补贴管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:subsidy:query')")
|
||||||
|
@GetMapping(value = "/{subsidyId}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("subsidyId") Long subsidyId) {
|
||||||
|
return AjaxResult.success(iFtSubsidyDaoService.getById(subsidyId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增补贴管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:subsidy:add')")
|
||||||
|
@Log(title = "补贴管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody FtSubsidyDao ftSubsidyDao) {
|
||||||
|
return toAjax(iFtSubsidyDaoService.save(ftSubsidyDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改补贴管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:subsidy:edit')")
|
||||||
|
@Log(title = "补贴管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody FtSubsidyDao ftSubsidyDao) {
|
||||||
|
return toAjax(iFtSubsidyDaoService.updateById(ftSubsidyDao) ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除补贴管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('fantang:subsidy:remove')")
|
||||||
|
@Log(title = "补贴管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{subsidyIds}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] subsidyIds) {
|
||||||
|
return toAjax(iFtSubsidyDaoService.removeByIds(Arrays.asList(subsidyIds)) ? 1 : 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,71 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 护工信息对象 ft_care_staff_info
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_care_staff_info")
|
||||||
|
public class FtCareStaffInfoDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 护工 id
|
||||||
|
*/
|
||||||
|
@TableId(value = "care_staff_id")
|
||||||
|
private Long careStaffId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 姓名
|
||||||
|
*/
|
||||||
|
@Excel(name = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属公司名称
|
||||||
|
*/
|
||||||
|
@Excel(name = "所属公司名称")
|
||||||
|
private String corpName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属科室清单
|
||||||
|
*/
|
||||||
|
@Excel(name = "所属科室清单")
|
||||||
|
private String departList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启用标志
|
||||||
|
*/
|
||||||
|
private Integer flag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 照片
|
||||||
|
*/
|
||||||
|
@Excel(name = "照片")
|
||||||
|
private String photo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 二维码
|
||||||
|
*/
|
||||||
|
@Excel(name = "二维码")
|
||||||
|
private String qrCode;
|
||||||
|
}
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室管理对象 ft_depart
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_depart")
|
||||||
|
public class FtDepartDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室编号
|
||||||
|
*/
|
||||||
|
@TableId(value = "depart_id")
|
||||||
|
private Long departId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室名称
|
||||||
|
*/
|
||||||
|
@Excel(name = "科室名称")
|
||||||
|
private String departName;
|
||||||
|
}
|
||||||
@ -0,0 +1,66 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品管理对象 ft_food
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_food")
|
||||||
|
public class FtFoodDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品id
|
||||||
|
*/
|
||||||
|
@TableId(value = "food_id")
|
||||||
|
private Long foodId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
@Excel(name = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图片地址
|
||||||
|
*/
|
||||||
|
@Excel(name = "图片地址")
|
||||||
|
private String pictureUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 售价
|
||||||
|
*/
|
||||||
|
@Excel(name = "售价")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启用标志
|
||||||
|
*/
|
||||||
|
private Long flag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品分类
|
||||||
|
*/
|
||||||
|
@Excel(name = "食品分类")
|
||||||
|
private Long type;
|
||||||
|
}
|
||||||
@ -0,0 +1,137 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单管理对象 ft_order
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_order")
|
||||||
|
public class FtOrderDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单 id
|
||||||
|
*/
|
||||||
|
@TableId(value = "order_id")
|
||||||
|
private Long orderId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "订单类型")
|
||||||
|
private String orderType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工 id
|
||||||
|
*/
|
||||||
|
private Long workerId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 清单
|
||||||
|
*/
|
||||||
|
@Excel(name = "清单")
|
||||||
|
private String orderList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 总价
|
||||||
|
*/
|
||||||
|
@Excel(name = "总价")
|
||||||
|
private BigDecimal totalPrice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 折扣
|
||||||
|
*/
|
||||||
|
@Excel(name = "折扣")
|
||||||
|
private BigDecimal discount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实收
|
||||||
|
*/
|
||||||
|
@Excel(name = "实收")
|
||||||
|
private BigDecimal receipts;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单来源
|
||||||
|
*/
|
||||||
|
@Excel(name = "订单来源")
|
||||||
|
private String orderSrc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单现售
|
||||||
|
*/
|
||||||
|
@Excel(name = "订单现售")
|
||||||
|
private BigDecimal currentPrice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付方式
|
||||||
|
*/
|
||||||
|
@Excel(name = "支付方式")
|
||||||
|
private String payType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 支付标志
|
||||||
|
*/
|
||||||
|
private Integer payFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过期标志
|
||||||
|
*/
|
||||||
|
private Integer expiredFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 核销标志
|
||||||
|
*/
|
||||||
|
private Integer writeOffFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 核销时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date writeOffAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否过期
|
||||||
|
*/
|
||||||
|
@Excel(name = "是否过期")
|
||||||
|
private Integer isExpired;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 核销设备 id
|
||||||
|
*/
|
||||||
|
private Long deviceId;
|
||||||
|
}
|
||||||
@ -0,0 +1,53 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人管理对象 ft_patient
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_patient")
|
||||||
|
public class FtPatientDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人id
|
||||||
|
*/
|
||||||
|
@TableId(value = "patient_id")
|
||||||
|
private Long patientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 姓名
|
||||||
|
*/
|
||||||
|
@Excel(name = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属部门id
|
||||||
|
*/
|
||||||
|
private Long departId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 床号
|
||||||
|
*/
|
||||||
|
@Excel(name = "床号")
|
||||||
|
private String bedId;
|
||||||
|
}
|
||||||
@ -0,0 +1,78 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收费管理对象 ft_prepayment
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_prepayment")
|
||||||
|
public class FtPrepaymentDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预付费id
|
||||||
|
*/
|
||||||
|
@TableId(value = "prepayment_id")
|
||||||
|
private Long prepaymentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人id
|
||||||
|
*/
|
||||||
|
private Long patientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收款时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "收款时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date collectAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收款员
|
||||||
|
*/
|
||||||
|
private Long collectBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "结算时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date settlementAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算员
|
||||||
|
*/
|
||||||
|
private Long settlementBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算报表id
|
||||||
|
*/
|
||||||
|
private Long settlementId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算标志
|
||||||
|
*/
|
||||||
|
@Excel(name = "结算标志")
|
||||||
|
private Long settlementFlag;
|
||||||
|
}
|
||||||
@ -0,0 +1,80 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐管理对象 ft_report_meals
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_report_meals")
|
||||||
|
public class FtReportMealsDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $column.columnComment
|
||||||
|
*/
|
||||||
|
@TableId(value = "id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐日期
|
||||||
|
*/
|
||||||
|
@Excel(name = "报餐日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "报餐类型")
|
||||||
|
private Long type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人id
|
||||||
|
*/
|
||||||
|
private Long patientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐人
|
||||||
|
*/
|
||||||
|
@Excel(name = "报餐人")
|
||||||
|
private Long createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单列表
|
||||||
|
*/
|
||||||
|
@Excel(name = "订单列表")
|
||||||
|
private String foods;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 总价
|
||||||
|
*/
|
||||||
|
@Excel(name = "总价")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算标志
|
||||||
|
*/
|
||||||
|
private Long settlementFlag;
|
||||||
|
}
|
||||||
@ -0,0 +1,97 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算报对象 ft_settle
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_settle")
|
||||||
|
public class FtSettleDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算 id
|
||||||
|
*/
|
||||||
|
@TableId(value = "settle_id")
|
||||||
|
private Long settleId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人 id
|
||||||
|
*/
|
||||||
|
private Long patientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算日期
|
||||||
|
*/
|
||||||
|
@Excel(name = "结算日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date settleAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 操作员
|
||||||
|
*/
|
||||||
|
private String opera;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 记录清单
|
||||||
|
*/
|
||||||
|
@Excel(name = "记录清单")
|
||||||
|
private String list;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算总价
|
||||||
|
*/
|
||||||
|
@Excel(name = "结算总价")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应收
|
||||||
|
*/
|
||||||
|
@Excel(name = "应收")
|
||||||
|
private BigDecimal payable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实收
|
||||||
|
*/
|
||||||
|
@Excel(name = "实收")
|
||||||
|
private BigDecimal receipts;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "结算类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退押金标志
|
||||||
|
*/
|
||||||
|
private Integer flag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退款总额
|
||||||
|
*/
|
||||||
|
@Excel(name = "退款总额")
|
||||||
|
private BigDecimal refund;
|
||||||
|
}
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特殊用餐管理对象 ft_special_demand
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_special_demand")
|
||||||
|
public class FtSpecialDemandDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(value = "id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人id
|
||||||
|
*/
|
||||||
|
private Long patientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单详情
|
||||||
|
*/
|
||||||
|
@Excel(name = "订单详情")
|
||||||
|
private String foods;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用餐类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "用餐类型")
|
||||||
|
private Long type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private Long createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 总价
|
||||||
|
*/
|
||||||
|
@Excel(name = "总价")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 有效期
|
||||||
|
*/
|
||||||
|
@Excel(name = "有效期")
|
||||||
|
private Long term;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新日期
|
||||||
|
*/
|
||||||
|
private Date updateAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新操作人 id
|
||||||
|
*/
|
||||||
|
private Long updateBy;
|
||||||
|
}
|
||||||
@ -0,0 +1,87 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工管理对象 ft_staff_info
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_staff_info")
|
||||||
|
public class FtStaffInfoDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工 id
|
||||||
|
*/
|
||||||
|
@TableId(value = "staff_id")
|
||||||
|
private Long staffId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室 id
|
||||||
|
*/
|
||||||
|
private Long departId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 姓名
|
||||||
|
*/
|
||||||
|
@Excel(name = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 岗位
|
||||||
|
*/
|
||||||
|
@Excel(name = "岗位")
|
||||||
|
private String post;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色
|
||||||
|
*/
|
||||||
|
@Excel(name = "角色")
|
||||||
|
private String role;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 密码
|
||||||
|
*/
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建日期
|
||||||
|
*/
|
||||||
|
private Date createAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启用标志
|
||||||
|
*/
|
||||||
|
private Integer flag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴余额
|
||||||
|
*/
|
||||||
|
@Excel(name = "补贴余额")
|
||||||
|
private BigDecimal balance;
|
||||||
|
}
|
||||||
@ -0,0 +1,74 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴流水查看对象 ft_staff_subsidy
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_staff_subsidy")
|
||||||
|
public class FtStaffSubsidyDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴流水 id
|
||||||
|
*/
|
||||||
|
@TableId(value = "subsidy_id")
|
||||||
|
private Long subsidyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工 id
|
||||||
|
*/
|
||||||
|
private Long staffId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "补贴类型")
|
||||||
|
private String subsidyType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收支类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "收支类型")
|
||||||
|
private String incomeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 金额
|
||||||
|
*/
|
||||||
|
@Excel(name = "金额")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 消费日期
|
||||||
|
*/
|
||||||
|
@Excel(name = "消费日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date consumAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 消费订单 id
|
||||||
|
*/
|
||||||
|
private Long orderId;
|
||||||
|
}
|
||||||
@ -0,0 +1,81 @@
|
|||||||
|
package com.ruoyi.system.fantang.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴管理对象 ft_subsidy
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("ft_subsidy")
|
||||||
|
public class FtSubsidyDao implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴 id
|
||||||
|
*/
|
||||||
|
@TableId(value = "subsidy_id")
|
||||||
|
private Long subsidyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴类型
|
||||||
|
*/
|
||||||
|
@Excel(name = "补贴类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 金额
|
||||||
|
*/
|
||||||
|
@Excel(name = "金额")
|
||||||
|
private BigDecimal price;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 范围
|
||||||
|
*/
|
||||||
|
@Excel(name = "范围")
|
||||||
|
private String range;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 周期
|
||||||
|
*/
|
||||||
|
@Excel(name = "周期")
|
||||||
|
private String cycle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启用标志
|
||||||
|
*/
|
||||||
|
private Integer flag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建日期
|
||||||
|
*/
|
||||||
|
@Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
@Excel(name = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtCareStaffInfoDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 护工信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtCareStaffInfoDaoMapper extends BaseMapper<FtCareStaffInfoDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtDepartDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtDepartDaoMapper extends BaseMapper<FtDepartDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtFoodDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtFoodDaoMapper extends BaseMapper<FtFoodDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtOrderDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtOrderDaoMapper extends BaseMapper<FtOrderDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPatientDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtPatientDaoMapper extends BaseMapper<FtPatientDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPrepaymentDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收费管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtPrepaymentDaoMapper extends BaseMapper<FtPrepaymentDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtReportMealsDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtReportMealsDaoMapper extends BaseMapper<FtReportMealsDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSettleDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算报Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtSettleDaoMapper extends BaseMapper<FtSettleDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSpecialDemandDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特殊用餐管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtSpecialDemandDaoMapper extends BaseMapper<FtSpecialDemandDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtStaffInfoDaoMapper extends BaseMapper<FtStaffInfoDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffSubsidyDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴流水查看Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtStaffSubsidyDaoMapper extends BaseMapper<FtStaffSubsidyDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSubsidyDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface FtSubsidyDaoMapper extends BaseMapper<FtSubsidyDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtCareStaffInfoDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 护工信息Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtCareStaffInfoDaoService extends IService<FtCareStaffInfoDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtDepartDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtDepartDaoService extends IService<FtDepartDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtFoodDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtFoodDaoService extends IService<FtFoodDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtOrderDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtOrderDaoService extends IService<FtOrderDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPatientDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtPatientDaoService extends IService<FtPatientDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPrepaymentDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收费管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtPrepaymentDaoService extends IService<FtPrepaymentDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtReportMealsDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtReportMealsDaoService extends IService<FtReportMealsDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSettleDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算报Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtSettleDaoService extends IService<FtSettleDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSpecialDemandDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特殊用餐管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtSpecialDemandDaoService extends IService<FtSpecialDemandDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtStaffInfoDaoService extends IService<FtStaffInfoDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffSubsidyDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴流水查看Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtStaffSubsidyDaoService extends IService<FtStaffSubsidyDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.ruoyi.system.fantang.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSubsidyDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴管理Service接口
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
public interface IFtSubsidyDaoService extends IService<FtSubsidyDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtCareStaffInfoDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtCareStaffInfoDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtCareStaffInfoDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 护工信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtCareStaffInfoDaoServiceImpl extends ServiceImpl<FtCareStaffInfoDaoMapper, FtCareStaffInfoDao> implements IFtCareStaffInfoDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtDepartDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtDepartDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtDepartDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 科室管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtDepartDaoServiceImpl extends ServiceImpl<FtDepartDaoMapper, FtDepartDao> implements IFtDepartDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtFoodDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtFoodDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtFoodDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 食品管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtFoodDaoServiceImpl extends ServiceImpl<FtFoodDaoMapper, FtFoodDao> implements IFtFoodDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtOrderDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtOrderDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtOrderDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtOrderDaoServiceImpl extends ServiceImpl<FtOrderDaoMapper, FtOrderDao> implements IFtOrderDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPatientDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtPatientDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtPatientDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 病人管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtPatientDaoServiceImpl extends ServiceImpl<FtPatientDaoMapper, FtPatientDao> implements IFtPatientDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtPrepaymentDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtPrepaymentDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtPrepaymentDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收费管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtPrepaymentDaoServiceImpl extends ServiceImpl<FtPrepaymentDaoMapper, FtPrepaymentDao> implements IFtPrepaymentDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtReportMealsDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtReportMealsDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtReportMealsDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报餐管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtReportMealsDaoServiceImpl extends ServiceImpl<FtReportMealsDaoMapper, FtReportMealsDao> implements IFtReportMealsDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSettleDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtSettleDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtSettleDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算报Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtSettleDaoServiceImpl extends ServiceImpl<FtSettleDaoMapper, FtSettleDao> implements IFtSettleDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSpecialDemandDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtSpecialDemandDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtSpecialDemandDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特殊用餐管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtSpecialDemandDaoServiceImpl extends ServiceImpl<FtSpecialDemandDaoMapper, FtSpecialDemandDao> implements IFtSpecialDemandDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffInfoDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtStaffInfoDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtStaffInfoDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtStaffInfoDaoServiceImpl extends ServiceImpl<FtStaffInfoDaoMapper, FtStaffInfoDao> implements IFtStaffInfoDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtStaffSubsidyDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtStaffSubsidyDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtStaffSubsidyDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴流水查看Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtStaffSubsidyDaoServiceImpl extends ServiceImpl<FtStaffSubsidyDaoMapper, FtStaffSubsidyDao> implements IFtStaffSubsidyDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ruoyi.system.fantang.domain.FtSubsidyDao;
|
||||||
|
import com.ruoyi.system.fantang.mapper.FtSubsidyDaoMapper;
|
||||||
|
import com.ruoyi.system.fantang.service.IFtSubsidyDaoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 补贴管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ft
|
||||||
|
* @date 2020-11-19
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FtSubsidyDaoServiceImpl extends ServiceImpl<FtSubsidyDaoMapper, FtSubsidyDao> implements IFtSubsidyDaoService {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtCareStaffInfoDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtCareStaffInfoDao" id="FtCareStaffInfoDaoResult">
|
||||||
|
<result property="careStaffId" column="care_staff_id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="corpName" column="corp_name" />
|
||||||
|
<result property="departList" column="depart_list" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="photo" column="photo" />
|
||||||
|
<result property="qrCode" column="qr_code" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtDepartDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtDepartDao" id="FtDepartDaoResult">
|
||||||
|
<result property="departId" column="depart_id" />
|
||||||
|
<result property="departName" column="depart_name" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtFoodDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtFoodDao" id="FtFoodDaoResult">
|
||||||
|
<result property="foodId" column="food_id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="pictureUrl" column="picture_url" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtOrderDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtOrderDao" id="FtOrderDaoResult">
|
||||||
|
<result property="orderId" column="order_id" />
|
||||||
|
<result property="orderType" column="order_type" />
|
||||||
|
<result property="workerId" column="worker_id" />
|
||||||
|
<result property="orderList" column="order_list" />
|
||||||
|
<result property="totalPrice" column="total_price" />
|
||||||
|
<result property="discount" column="discount" />
|
||||||
|
<result property="receipts" column="receipts" />
|
||||||
|
<result property="createAt" column="create_at" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="orderSrc" column="order_src" />
|
||||||
|
<result property="currentPrice" column="current_price" />
|
||||||
|
<result property="payType" column="pay_type" />
|
||||||
|
<result property="payFlag" column="pay_flag" />
|
||||||
|
<result property="expiredFlag" column="expired_flag" />
|
||||||
|
<result property="writeOffFlag" column="write_off_flag" />
|
||||||
|
<result property="writeOffAt" column="write_off_at" />
|
||||||
|
<result property="isExpired" column="is_expired" />
|
||||||
|
<result property="deviceId" column="device_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtPatientDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtPatientDao" id="FtPatientDaoResult">
|
||||||
|
<result property="patientId" column="patient_id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="departId" column="depart_id" />
|
||||||
|
<result property="bedId" column="bed_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtPrepaymentDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtPrepaymentDao" id="FtPrepaymentDaoResult">
|
||||||
|
<result property="prepaymentId" column="prepayment_id" />
|
||||||
|
<result property="patientId" column="patient_id" />
|
||||||
|
<result property="collectAt" column="collect_at" />
|
||||||
|
<result property="collectBy" column="collect_by" />
|
||||||
|
<result property="settlementAt" column="settlement_at" />
|
||||||
|
<result property="settlementBy" column="settlement_by" />
|
||||||
|
<result property="settlementId" column="settlement_id" />
|
||||||
|
<result property="settlementFlag" column="settlement_flag" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtReportMealsDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtReportMealsDao" id="FtReportMealsDaoResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="createAt" column="create_at" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="patientId" column="patient_id" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="foods" column="foods" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="settlementFlag" column="settlement_flag" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtSettleDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtSettleDao" id="FtSettleDaoResult">
|
||||||
|
<result property="settleId" column="settle_id" />
|
||||||
|
<result property="patientId" column="patient_id" />
|
||||||
|
<result property="settleAt" column="settle_at" />
|
||||||
|
<result property="opera" column="opera" />
|
||||||
|
<result property="list" column="list" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="payable" column="payable" />
|
||||||
|
<result property="receipts" column="receipts" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="refund" column="refund" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtSpecialDemandDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtSpecialDemandDao" id="FtSpecialDemandDaoResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="patientId" column="patient_id" />
|
||||||
|
<result property="foods" column="foods" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="createAt" column="create_at" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="term" column="term" />
|
||||||
|
<result property="updateAt" column="update_at" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtStaffInfoDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtStaffInfoDao" id="FtStaffInfoDaoResult">
|
||||||
|
<result property="staffId" column="staff_id" />
|
||||||
|
<result property="departId" column="depart_id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="post" column="post" />
|
||||||
|
<result property="role" column="role" />
|
||||||
|
<result property="password" column="password" />
|
||||||
|
<result property="createAt" column="create_at" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="balance" column="balance" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtStaffSubsidyDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtStaffSubsidyDao" id="FtStaffSubsidyDaoResult">
|
||||||
|
<result property="subsidyId" column="subsidy_id" />
|
||||||
|
<result property="staffId" column="staff_id" />
|
||||||
|
<result property="subsidyType" column="subsidy_type" />
|
||||||
|
<result property="incomeType" column="income_type" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="consumAt" column="consum_at" />
|
||||||
|
<result property="orderId" column="order_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.fantang.mapper.FtSubsidyDaoMapper">
|
||||||
|
|
||||||
|
<resultMap type="FtSubsidyDao" id="FtSubsidyDaoResult">
|
||||||
|
<result property="subsidyId" column="subsidy_id" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="range" column="range" />
|
||||||
|
<result property="cycle" column="cycle" />
|
||||||
|
<result property="flag" column="flag" />
|
||||||
|
<result property="createAt" column="create_at" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
53
ruoyi-ui/src/api/fantang/careStaffInfo.js
Normal file
53
ruoyi-ui/src/api/fantang/careStaffInfo.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询护工信息列表
|
||||||
|
export function listCareStaffInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/careStaffInfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询护工信息详细
|
||||||
|
export function getCareStaffInfo(careStaffId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/careStaffInfo/' + careStaffId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增护工信息
|
||||||
|
export function addCareStaffInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/careStaffInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改护工信息
|
||||||
|
export function updateCareStaffInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/careStaffInfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除护工信息
|
||||||
|
export function delCareStaffInfo(careStaffId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/careStaffInfo/' + careStaffId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出护工信息
|
||||||
|
export function exportCareStaffInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/careStaffInfo/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/demand.js
Normal file
53
ruoyi-ui/src/api/fantang/demand.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询特殊用餐管理列表
|
||||||
|
export function listDemand(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/demand/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询特殊用餐管理详细
|
||||||
|
export function getDemand(id) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/demand/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增特殊用餐管理
|
||||||
|
export function addDemand(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/demand',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改特殊用餐管理
|
||||||
|
export function updateDemand(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/demand',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除特殊用餐管理
|
||||||
|
export function delDemand(id) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/demand/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出特殊用餐管理
|
||||||
|
export function exportDemand(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/demand/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/depart.js
Normal file
53
ruoyi-ui/src/api/fantang/depart.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询科室管理列表
|
||||||
|
export function listDepart(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/depart/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询科室管理详细
|
||||||
|
export function getDepart(departId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/depart/' + departId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增科室管理
|
||||||
|
export function addDepart(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/depart',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改科室管理
|
||||||
|
export function updateDepart(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/depart',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除科室管理
|
||||||
|
export function delDepart(departId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/depart/' + departId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出科室管理
|
||||||
|
export function exportDepart(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/depart/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/food.js
Normal file
53
ruoyi-ui/src/api/fantang/food.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询食品管理列表
|
||||||
|
export function listFood(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/food/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询食品管理详细
|
||||||
|
export function getFood(foodId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/food/' + foodId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增食品管理
|
||||||
|
export function addFood(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/food',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改食品管理
|
||||||
|
export function updateFood(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/food',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除食品管理
|
||||||
|
export function delFood(foodId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/food/' + foodId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出食品管理
|
||||||
|
export function exportFood(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/food/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/meals.js
Normal file
53
ruoyi-ui/src/api/fantang/meals.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询报餐管理列表
|
||||||
|
export function listMeals(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/meals/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询报餐管理详细
|
||||||
|
export function getMeals(id) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/meals/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增报餐管理
|
||||||
|
export function addMeals(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/meals',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改报餐管理
|
||||||
|
export function updateMeals(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/meals',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除报餐管理
|
||||||
|
export function delMeals(id) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/meals/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出报餐管理
|
||||||
|
export function exportMeals(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/meals/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/order.js
Normal file
53
ruoyi-ui/src/api/fantang/order.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询订单管理列表
|
||||||
|
export function listOrder(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/order/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询订单管理详细
|
||||||
|
export function getOrder(orderId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/order/' + orderId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增订单管理
|
||||||
|
export function addOrder(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/order',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改订单管理
|
||||||
|
export function updateOrder(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/order',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除订单管理
|
||||||
|
export function delOrder(orderId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/order/' + orderId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出订单管理
|
||||||
|
export function exportOrder(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/order/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/patient.js
Normal file
53
ruoyi-ui/src/api/fantang/patient.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询病人管理列表
|
||||||
|
export function listPatient(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/patient/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询病人管理详细
|
||||||
|
export function getPatient(patientId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/patient/' + patientId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增病人管理
|
||||||
|
export function addPatient(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/patient',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改病人管理
|
||||||
|
export function updatePatient(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/patient',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除病人管理
|
||||||
|
export function delPatient(patientId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/patient/' + patientId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出病人管理
|
||||||
|
export function exportPatient(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/patient/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/prepayment.js
Normal file
53
ruoyi-ui/src/api/fantang/prepayment.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询收费管理列表
|
||||||
|
export function listPrepayment(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询收费管理详细
|
||||||
|
export function getPrepayment(prepaymentId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment/' + prepaymentId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增收费管理
|
||||||
|
export function addPrepayment(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改收费管理
|
||||||
|
export function updatePrepayment(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除收费管理
|
||||||
|
export function delPrepayment(prepaymentId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment/' + prepaymentId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出收费管理
|
||||||
|
export function exportPrepayment(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/settle.js
Normal file
53
ruoyi-ui/src/api/fantang/settle.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询结算报列表
|
||||||
|
export function listSettle(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/settle/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询结算报详细
|
||||||
|
export function getSettle(settleId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/settle/' + settleId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增结算报
|
||||||
|
export function addSettle(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/settle',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改结算报
|
||||||
|
export function updateSettle(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/settle',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除结算报
|
||||||
|
export function delSettle(settleId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/settle/' + settleId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出结算报
|
||||||
|
export function exportSettle(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/settle/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/staffInfo.js
Normal file
53
ruoyi-ui/src/api/fantang/staffInfo.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询员工管理列表
|
||||||
|
export function listStaffInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffInfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询员工管理详细
|
||||||
|
export function getStaffInfo(staffId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffInfo/' + staffId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增员工管理
|
||||||
|
export function addStaffInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改员工管理
|
||||||
|
export function updateStaffInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffInfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除员工管理
|
||||||
|
export function delStaffInfo(staffId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffInfo/' + staffId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出员工管理
|
||||||
|
export function exportStaffInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffInfo/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/staffSubsidy.js
Normal file
53
ruoyi-ui/src/api/fantang/staffSubsidy.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询补贴流水查看列表
|
||||||
|
export function listStaffSubsidy(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffSubsidy/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询补贴流水查看详细
|
||||||
|
export function getStaffSubsidy(subsidyId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffSubsidy/' + subsidyId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增补贴流水查看
|
||||||
|
export function addStaffSubsidy(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffSubsidy',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改补贴流水查看
|
||||||
|
export function updateStaffSubsidy(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffSubsidy',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除补贴流水查看
|
||||||
|
export function delStaffSubsidy(subsidyId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffSubsidy/' + subsidyId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出补贴流水查看
|
||||||
|
export function exportStaffSubsidy(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/staffSubsidy/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
ruoyi-ui/src/api/fantang/subsidy.js
Normal file
53
ruoyi-ui/src/api/fantang/subsidy.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询补贴管理列表
|
||||||
|
export function listSubsidy(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/subsidy/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询补贴管理详细
|
||||||
|
export function getSubsidy(subsidyId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/subsidy/' + subsidyId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增补贴管理
|
||||||
|
export function addSubsidy(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/subsidy',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改补贴管理
|
||||||
|
export function updateSubsidy(data) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/subsidy',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除补贴管理
|
||||||
|
export function delSubsidy(subsidyId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/subsidy/' + subsidyId,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 导出补贴管理
|
||||||
|
export function exportSubsidy(query) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/subsidy/export',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
305
ruoyi-ui/src/views/fantang/careStaffInfo/index.vue
Normal file
305
ruoyi-ui/src/views/fantang/careStaffInfo/index.vue
Normal file
@ -0,0 +1,305 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="姓名" prop="name">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.name"
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属公司名称" prop="corpName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.corpName"
|
||||||
|
placeholder="请输入所属公司名称"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属科室清单" prop="departList">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.departList"
|
||||||
|
placeholder="请输入所属科室清单"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:careStaffInfo:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:careStaffInfo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:careStaffInfo:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:careStaffInfo:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="careStaffInfoList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="护工 id" align="center" prop="careStaffId" v-if="false"/>
|
||||||
|
<el-table-column label="姓名" align="center" prop="name" />
|
||||||
|
<el-table-column label="所属公司名称" align="center" prop="corpName" />
|
||||||
|
<el-table-column label="所属科室清单" align="center" prop="departList" />
|
||||||
|
<el-table-column label="照片" align="center" prop="photo" />
|
||||||
|
<el-table-column label="二维码" align="center" prop="qrCode" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:careStaffInfo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:careStaffInfo:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改护工信息对话框 -->
|
||||||
|
<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-item label="姓名" prop="name">
|
||||||
|
<el-input v-model="form.name" placeholder="请输入姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属公司名称" prop="corpName">
|
||||||
|
<el-input v-model="form.corpName" placeholder="请输入所属公司名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属科室清单" prop="departList">
|
||||||
|
<el-input v-model="form.departList" placeholder="请输入所属科室清单" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="照片" prop="photo">
|
||||||
|
<el-input v-model="form.photo" placeholder="请输入照片" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="二维码" prop="qrCode">
|
||||||
|
<el-input v-model="form.qrCode" placeholder="请输入二维码" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listCareStaffInfo, getCareStaffInfo, delCareStaffInfo, addCareStaffInfo, updateCareStaffInfo, exportCareStaffInfo } from "@/api/fantang/careStaffInfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "CareStaffInfo",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 护工信息表格数据
|
||||||
|
careStaffInfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
name: null,
|
||||||
|
corpName: null,
|
||||||
|
departList: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
name: [
|
||||||
|
{ required: true, message: "姓名不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
corpName: [
|
||||||
|
{ required: true, message: "所属公司名称不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
departList: [
|
||||||
|
{ required: true, message: "所属科室清单不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询护工信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listCareStaffInfo(this.queryParams).then(response => {
|
||||||
|
this.careStaffInfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
careStaffId: null,
|
||||||
|
name: null,
|
||||||
|
corpName: null,
|
||||||
|
departList: null,
|
||||||
|
flag: null,
|
||||||
|
photo: null,
|
||||||
|
qrCode: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.careStaffId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加护工信息";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const careStaffId = row.careStaffId || this.ids
|
||||||
|
getCareStaffInfo(careStaffId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改护工信息";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.careStaffId != null) {
|
||||||
|
updateCareStaffInfo(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addCareStaffInfo(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const careStaffIds = row.careStaffId || this.ids;
|
||||||
|
this.$confirm('是否确认删除护工信息编号为"' + careStaffIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delCareStaffInfo(careStaffIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有护工信息数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportCareStaffInfo(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
319
ruoyi-ui/src/views/fantang/demand/index.vue
Normal file
319
ruoyi-ui/src/views/fantang/demand/index.vue
Normal file
@ -0,0 +1,319 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="用餐类型" prop="type">
|
||||||
|
<el-select v-model="queryParams.type" placeholder="请选择用餐类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建时间" prop="createAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.createAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择创建时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总价" prop="price">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.price"
|
||||||
|
placeholder="请输入总价"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="有效期" prop="term">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.term"
|
||||||
|
placeholder="请输入有效期"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:demand:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:demand:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:demand:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:demand:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="demandList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" v-if="false"/>
|
||||||
|
<el-table-column label="订单详情" align="center" prop="foods" />
|
||||||
|
<el-table-column label="用餐类型" align="center" prop="type" />
|
||||||
|
<el-table-column label="创建时间" align="center" prop="createAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.createAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="总价" align="center" prop="price" />
|
||||||
|
<el-table-column label="有效期" align="center" prop="term" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:demand:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:demand:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改特殊用餐管理对话框 -->
|
||||||
|
<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-item label="订单详情" prop="foods">
|
||||||
|
<el-input v-model="form.foods" placeholder="请输入订单详情" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用餐类型" prop="type">
|
||||||
|
<el-select v-model="form.type" placeholder="请选择用餐类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总价" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入总价" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="有效期" prop="term">
|
||||||
|
<el-input v-model="form.term" placeholder="请输入有效期" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listDemand, getDemand, delDemand, addDemand, updateDemand, exportDemand } from "@/api/fantang/demand";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Demand",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 特殊用餐管理表格数据
|
||||||
|
demandList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
type: null,
|
||||||
|
createAt: null,
|
||||||
|
price: null,
|
||||||
|
term: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
foods: [
|
||||||
|
{ required: true, message: "订单详情不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
type: [
|
||||||
|
{ required: true, message: "用餐类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "总价不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
term: [
|
||||||
|
{ required: true, message: "有效期不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询特殊用餐管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listDemand(this.queryParams).then(response => {
|
||||||
|
this.demandList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
patientId: null,
|
||||||
|
foods: null,
|
||||||
|
type: null,
|
||||||
|
createAt: null,
|
||||||
|
createBy: null,
|
||||||
|
price: null,
|
||||||
|
term: null,
|
||||||
|
updateAt: null,
|
||||||
|
updateBy: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加特殊用餐管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids
|
||||||
|
getDemand(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改特殊用餐管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateDemand(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addDemand(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$confirm('是否确认删除特殊用餐管理编号为"' + ids + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delDemand(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有特殊用餐管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportDemand(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
258
ruoyi-ui/src/views/fantang/depart/index.vue
Normal file
258
ruoyi-ui/src/views/fantang/depart/index.vue
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="科室名称" prop="departName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.departName"
|
||||||
|
placeholder="请输入科室名称"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:depart:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:depart:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:depart:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:depart:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="departList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="科室编号" align="center" prop="departId" v-if="false"/>
|
||||||
|
<el-table-column label="科室名称" align="center" prop="departName" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:depart:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:depart:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改科室管理对话框 -->
|
||||||
|
<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-item label="科室名称" prop="departName">
|
||||||
|
<el-input v-model="form.departName" placeholder="请输入科室名称" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listDepart, getDepart, delDepart, addDepart, updateDepart, exportDepart } from "@/api/fantang/depart";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Depart",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 科室管理表格数据
|
||||||
|
departList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
departName: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
departName: [
|
||||||
|
{ required: true, message: "科室名称不能为空", trigger: "blur" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询科室管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listDepart(this.queryParams).then(response => {
|
||||||
|
this.departList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
departId: null,
|
||||||
|
departName: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.departId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加科室管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const departId = row.departId || this.ids
|
||||||
|
getDepart(departId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改科室管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.departId != null) {
|
||||||
|
updateDepart(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addDepart(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const departIds = row.departId || this.ids;
|
||||||
|
this.$confirm('是否确认删除科室管理编号为"' + departIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delDepart(departIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有科室管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportDepart(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
298
ruoyi-ui/src/views/fantang/food/index.vue
Normal file
298
ruoyi-ui/src/views/fantang/food/index.vue
Normal file
@ -0,0 +1,298 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="名称" prop="name">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.name"
|
||||||
|
placeholder="请输入名称"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="售价" prop="price">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.price"
|
||||||
|
placeholder="请输入售价"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="食品分类" prop="type">
|
||||||
|
<el-select v-model="queryParams.type" placeholder="请选择食品分类" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:food:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:food:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:food:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:food:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="foodList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="食品id" align="center" prop="foodId" v-if="false"/>
|
||||||
|
<el-table-column label="名称" align="center" prop="name" />
|
||||||
|
<el-table-column label="图片地址" align="center" prop="pictureUrl" />
|
||||||
|
<el-table-column label="售价" align="center" prop="price" />
|
||||||
|
<el-table-column label="食品分类" align="center" prop="type" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:food:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:food:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改食品管理对话框 -->
|
||||||
|
<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-item label="名称" prop="name">
|
||||||
|
<el-input v-model="form.name" placeholder="请输入名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="图片地址" prop="pictureUrl">
|
||||||
|
<el-input v-model="form.pictureUrl" placeholder="请输入图片地址" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="售价" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入售价" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="食品分类" prop="type">
|
||||||
|
<el-select v-model="form.type" placeholder="请选择食品分类">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listFood, getFood, delFood, addFood, updateFood, exportFood } from "@/api/fantang/food";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Food",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 食品管理表格数据
|
||||||
|
foodList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
name: null,
|
||||||
|
price: null,
|
||||||
|
type: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
name: [
|
||||||
|
{ required: true, message: "名称不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "售价不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
type: [
|
||||||
|
{ required: true, message: "食品分类不能为空", trigger: "change" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询食品管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listFood(this.queryParams).then(response => {
|
||||||
|
this.foodList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
foodId: null,
|
||||||
|
name: null,
|
||||||
|
pictureUrl: null,
|
||||||
|
price: null,
|
||||||
|
flag: null,
|
||||||
|
type: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.foodId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加食品管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const foodId = row.foodId || this.ids
|
||||||
|
getFood(foodId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改食品管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.foodId != null) {
|
||||||
|
updateFood(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addFood(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const foodIds = row.foodId || this.ids;
|
||||||
|
this.$confirm('是否确认删除食品管理编号为"' + foodIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delFood(foodIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有食品管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportFood(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
325
ruoyi-ui/src/views/fantang/meals/index.vue
Normal file
325
ruoyi-ui/src/views/fantang/meals/index.vue
Normal file
@ -0,0 +1,325 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="报餐日期" prop="createAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.createAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择报餐日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报餐类型" prop="type">
|
||||||
|
<el-select v-model="queryParams.type" placeholder="请选择报餐类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报餐人" prop="createBy">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.createBy"
|
||||||
|
placeholder="请输入报餐人"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总价" prop="price">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.price"
|
||||||
|
placeholder="请输入总价"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:meals:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:meals:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:meals:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:meals:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="mealsList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="总价" align="center" prop="id" v-if="false"/>
|
||||||
|
<el-table-column label="报餐日期" align="center" prop="createAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.createAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="报餐类型" align="center" prop="type" />
|
||||||
|
<el-table-column label="报餐人" align="center" prop="createBy" />
|
||||||
|
<el-table-column label="订单列表" align="center" prop="foods" />
|
||||||
|
<el-table-column label="总价" align="center" prop="price" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:meals:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:meals:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改报餐管理对话框 -->
|
||||||
|
<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-item label="报餐日期" prop="createAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="form.createAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择报餐日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报餐类型" prop="type">
|
||||||
|
<el-select v-model="form.type" placeholder="请选择报餐类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="订单列表" prop="foods">
|
||||||
|
<el-input v-model="form.foods" placeholder="请输入订单列表" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总价" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入总价" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listMeals, getMeals, delMeals, addMeals, updateMeals, exportMeals } from "@/api/fantang/meals";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Meals",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 报餐管理表格数据
|
||||||
|
mealsList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
createAt: null,
|
||||||
|
type: null,
|
||||||
|
createBy: null,
|
||||||
|
price: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
createAt: [
|
||||||
|
{ required: true, message: "报餐日期不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
type: [
|
||||||
|
{ required: true, message: "报餐类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
createBy: [
|
||||||
|
{ required: true, message: "报餐人不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
foods: [
|
||||||
|
{ required: true, message: "订单列表不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "总价不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询报餐管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listMeals(this.queryParams).then(response => {
|
||||||
|
this.mealsList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
createAt: null,
|
||||||
|
type: null,
|
||||||
|
patientId: null,
|
||||||
|
createBy: null,
|
||||||
|
foods: null,
|
||||||
|
price: null,
|
||||||
|
settlementFlag: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加报餐管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids
|
||||||
|
getMeals(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改报餐管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateMeals(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addMeals(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$confirm('是否确认删除报餐管理编号为"' + ids + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delMeals(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有报餐管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportMeals(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
413
ruoyi-ui/src/views/fantang/order/index.vue
Normal file
413
ruoyi-ui/src/views/fantang/order/index.vue
Normal file
@ -0,0 +1,413 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="订单类型" prop="orderType">
|
||||||
|
<el-select v-model="queryParams.orderType" placeholder="请选择订单类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总价" prop="totalPrice">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.totalPrice"
|
||||||
|
placeholder="请输入总价"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="折扣" prop="discount">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.discount"
|
||||||
|
placeholder="请输入折扣"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实收" prop="receipts">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.receipts"
|
||||||
|
placeholder="请输入实收"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建时间" prop="createAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.createAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择创建时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="订单来源" prop="orderSrc">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.orderSrc"
|
||||||
|
placeholder="请输入订单来源"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="订单现售" prop="currentPrice">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.currentPrice"
|
||||||
|
placeholder="请输入订单现售"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="支付方式" prop="payType">
|
||||||
|
<el-select v-model="queryParams.payType" placeholder="请选择支付方式" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="核销时间" prop="writeOffAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.writeOffAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择核销时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:order:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:order:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:order:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:order:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="orderList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="订单 id" align="center" prop="orderId" v-if="false"/>
|
||||||
|
<el-table-column label="订单类型" align="center" prop="orderType" />
|
||||||
|
<el-table-column label="清单" align="center" prop="orderList" />
|
||||||
|
<el-table-column label="总价" align="center" prop="totalPrice" />
|
||||||
|
<el-table-column label="折扣" align="center" prop="discount" />
|
||||||
|
<el-table-column label="实收" align="center" prop="receipts" />
|
||||||
|
<el-table-column label="创建时间" align="center" prop="createAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.createAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="订单来源" align="center" prop="orderSrc" />
|
||||||
|
<el-table-column label="订单现售" align="center" prop="currentPrice" />
|
||||||
|
<el-table-column label="支付方式" align="center" prop="payType" />
|
||||||
|
<el-table-column label="核销时间" align="center" prop="writeOffAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.writeOffAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="是否过期" align="center" prop="isExpired" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:order:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:order:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改订单管理对话框 -->
|
||||||
|
<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-item label="订单类型" prop="orderType">
|
||||||
|
<el-select v-model="form.orderType" placeholder="请选择订单类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="清单" prop="orderList">
|
||||||
|
<el-input v-model="form.orderList" placeholder="请输入清单" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总价" prop="totalPrice">
|
||||||
|
<el-input v-model="form.totalPrice" placeholder="请输入总价" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="折扣" prop="discount">
|
||||||
|
<el-input v-model="form.discount" placeholder="请输入折扣" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实收" prop="receipts">
|
||||||
|
<el-input v-model="form.receipts" placeholder="请输入实收" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="订单来源" prop="orderSrc">
|
||||||
|
<el-input v-model="form.orderSrc" placeholder="请输入订单来源" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="订单现售" prop="currentPrice">
|
||||||
|
<el-input v-model="form.currentPrice" placeholder="请输入订单现售" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="支付方式" prop="payType">
|
||||||
|
<el-select v-model="form.payType" placeholder="请选择支付方式">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="是否过期" prop="isExpired">
|
||||||
|
<el-select v-model="form.isExpired" placeholder="请选择是否过期">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listOrder, getOrder, delOrder, addOrder, updateOrder, exportOrder } from "@/api/fantang/order";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Order",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 订单管理表格数据
|
||||||
|
orderList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
orderType: null,
|
||||||
|
totalPrice: null,
|
||||||
|
discount: null,
|
||||||
|
receipts: null,
|
||||||
|
createAt: null,
|
||||||
|
orderSrc: null,
|
||||||
|
currentPrice: null,
|
||||||
|
payType: null,
|
||||||
|
writeOffAt: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
orderType: [
|
||||||
|
{ required: true, message: "订单类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
orderList: [
|
||||||
|
{ required: true, message: "清单不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
totalPrice: [
|
||||||
|
{ required: true, message: "总价不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
discount: [
|
||||||
|
{ required: true, message: "折扣不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
receipts: [
|
||||||
|
{ required: true, message: "实收不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
orderSrc: [
|
||||||
|
{ required: true, message: "订单来源不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
currentPrice: [
|
||||||
|
{ required: true, message: "订单现售不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
isExpired: [
|
||||||
|
{ required: true, message: "是否过期不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询订单管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listOrder(this.queryParams).then(response => {
|
||||||
|
this.orderList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
orderId: null,
|
||||||
|
orderType: null,
|
||||||
|
workerId: null,
|
||||||
|
orderList: null,
|
||||||
|
totalPrice: null,
|
||||||
|
discount: null,
|
||||||
|
receipts: null,
|
||||||
|
createAt: null,
|
||||||
|
createBy: null,
|
||||||
|
orderSrc: null,
|
||||||
|
currentPrice: null,
|
||||||
|
payType: null,
|
||||||
|
payFlag: null,
|
||||||
|
expiredFlag: null,
|
||||||
|
writeOffFlag: null,
|
||||||
|
writeOffAt: null,
|
||||||
|
isExpired: null,
|
||||||
|
deviceId: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.orderId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加订单管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const orderId = row.orderId || this.ids
|
||||||
|
getOrder(orderId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改订单管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.orderId != null) {
|
||||||
|
updateOrder(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addOrder(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const orderIds = row.orderId || this.ids;
|
||||||
|
this.$confirm('是否确认删除订单管理编号为"' + orderIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delOrder(orderIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有订单管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportOrder(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
277
ruoyi-ui/src/views/fantang/patient/index.vue
Normal file
277
ruoyi-ui/src/views/fantang/patient/index.vue
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="姓名" prop="name">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.name"
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="床号" prop="bedId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.bedId"
|
||||||
|
placeholder="请输入床号"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:patient:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:patient:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:patient:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:patient:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="patientList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="病人id" align="center" prop="patientId" v-if="false"/>
|
||||||
|
<el-table-column label="姓名" align="center" prop="name" />
|
||||||
|
<el-table-column label="床号" align="center" prop="bedId" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:patient:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:patient:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改病人管理对话框 -->
|
||||||
|
<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-item label="姓名" prop="name">
|
||||||
|
<el-input v-model="form.name" placeholder="请输入姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="床号" prop="bedId">
|
||||||
|
<el-input v-model="form.bedId" placeholder="请输入床号" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listPatient, getPatient, delPatient, addPatient, updatePatient, exportPatient } from "@/api/fantang/patient";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Patient",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 病人管理表格数据
|
||||||
|
patientList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
name: null,
|
||||||
|
bedId: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
name: [
|
||||||
|
{ required: true, message: "姓名不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
bedId: [
|
||||||
|
{ required: true, message: "床号不能为空", trigger: "blur" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询病人管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listPatient(this.queryParams).then(response => {
|
||||||
|
this.patientList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
patientId: null,
|
||||||
|
name: null,
|
||||||
|
departId: null,
|
||||||
|
bedId: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.patientId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加病人管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const patientId = row.patientId || this.ids
|
||||||
|
getPatient(patientId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改病人管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.patientId != null) {
|
||||||
|
updatePatient(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addPatient(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const patientIds = row.patientId || this.ids;
|
||||||
|
this.$confirm('是否确认删除病人管理编号为"' + patientIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delPatient(patientIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有病人管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportPatient(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
286
ruoyi-ui/src/views/fantang/prepayment/index.vue
Normal file
286
ruoyi-ui/src/views/fantang/prepayment/index.vue
Normal file
@ -0,0 +1,286 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="收款时间" prop="collectAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.collectAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择收款时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结算时间" prop="settlementAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.settlementAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择结算时间">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结算标志" prop="settlementFlag">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.settlementFlag"
|
||||||
|
placeholder="请输入结算标志"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:prepayment:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:prepayment:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:prepayment:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:prepayment:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="prepaymentList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="预付费id" align="center" prop="prepaymentId" v-if="false"/>
|
||||||
|
<el-table-column label="收款时间" align="center" prop="collectAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.collectAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="结算时间" align="center" prop="settlementAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.settlementAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="结算标志" align="center" prop="settlementFlag" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:prepayment:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:prepayment:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改收费管理对话框 -->
|
||||||
|
<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>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listPrepayment, getPrepayment, delPrepayment, addPrepayment, updatePrepayment, exportPrepayment } from "@/api/fantang/prepayment";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Prepayment",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 收费管理表格数据
|
||||||
|
prepaymentList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
collectAt: null,
|
||||||
|
settlementAt: null,
|
||||||
|
settlementFlag: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询收费管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listPrepayment(this.queryParams).then(response => {
|
||||||
|
this.prepaymentList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
prepaymentId: null,
|
||||||
|
patientId: null,
|
||||||
|
collectAt: null,
|
||||||
|
collectBy: null,
|
||||||
|
settlementAt: null,
|
||||||
|
settlementBy: null,
|
||||||
|
settlementId: null,
|
||||||
|
settlementFlag: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.prepaymentId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加收费管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const prepaymentId = row.prepaymentId || this.ids
|
||||||
|
getPrepayment(prepaymentId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改收费管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.prepaymentId != null) {
|
||||||
|
updatePrepayment(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addPrepayment(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const prepaymentIds = row.prepaymentId || this.ids;
|
||||||
|
this.$confirm('是否确认删除收费管理编号为"' + prepaymentIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delPrepayment(prepaymentIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有收费管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportPrepayment(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
354
ruoyi-ui/src/views/fantang/settle/index.vue
Normal file
354
ruoyi-ui/src/views/fantang/settle/index.vue
Normal file
@ -0,0 +1,354 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="结算日期" prop="settleAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.settleAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择结算日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结算总价" prop="price">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.price"
|
||||||
|
placeholder="请输入结算总价"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="应收" prop="payable">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.payable"
|
||||||
|
placeholder="请输入应收"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实收" prop="receipts">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.receipts"
|
||||||
|
placeholder="请输入实收"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结算类型" prop="type">
|
||||||
|
<el-select v-model="queryParams.type" placeholder="请选择结算类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="退款总额" prop="refund">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.refund"
|
||||||
|
placeholder="请输入退款总额"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:settle:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:settle:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:settle:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:settle:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="settleList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="结算 id" align="center" prop="settleId" v-if="false"/>
|
||||||
|
<el-table-column label="结算日期" align="center" prop="settleAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.settleAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="记录清单" align="center" prop="list" />
|
||||||
|
<el-table-column label="结算总价" align="center" prop="price" />
|
||||||
|
<el-table-column label="应收" align="center" prop="payable" />
|
||||||
|
<el-table-column label="实收" align="center" prop="receipts" />
|
||||||
|
<el-table-column label="结算类型" align="center" prop="type" />
|
||||||
|
<el-table-column label="退款总额" align="center" prop="refund" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:settle:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:settle:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改结算报对话框 -->
|
||||||
|
<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-item label="记录清单" prop="list">
|
||||||
|
<el-input v-model="form.list" placeholder="请输入记录清单" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结算总价" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入结算总价" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="应收" prop="payable">
|
||||||
|
<el-input v-model="form.payable" placeholder="请输入应收" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="实收" prop="receipts">
|
||||||
|
<el-input v-model="form.receipts" placeholder="请输入实收" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结算类型" prop="type">
|
||||||
|
<el-select v-model="form.type" placeholder="请选择结算类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="退款总额" prop="refund">
|
||||||
|
<el-input v-model="form.refund" placeholder="请输入退款总额" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listSettle, getSettle, delSettle, addSettle, updateSettle, exportSettle } from "@/api/fantang/settle";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Settle",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 结算报表格数据
|
||||||
|
settleList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
settleAt: null,
|
||||||
|
price: null,
|
||||||
|
payable: null,
|
||||||
|
receipts: null,
|
||||||
|
type: null,
|
||||||
|
refund: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
list: [
|
||||||
|
{ required: true, message: "记录清单不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "结算总价不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
payable: [
|
||||||
|
{ required: true, message: "应收不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
receipts: [
|
||||||
|
{ required: true, message: "实收不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
type: [
|
||||||
|
{ required: true, message: "结算类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
refund: [
|
||||||
|
{ required: true, message: "退款总额不能为空", trigger: "blur" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询结算报列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listSettle(this.queryParams).then(response => {
|
||||||
|
this.settleList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
settleId: null,
|
||||||
|
patientId: null,
|
||||||
|
settleAt: null,
|
||||||
|
opera: null,
|
||||||
|
list: null,
|
||||||
|
price: null,
|
||||||
|
payable: null,
|
||||||
|
receipts: null,
|
||||||
|
type: null,
|
||||||
|
flag: null,
|
||||||
|
refund: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.settleId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加结算报";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const settleId = row.settleId || this.ids
|
||||||
|
getSettle(settleId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改结算报";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.settleId != null) {
|
||||||
|
updateSettle(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addSettle(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const settleIds = row.settleId || this.ids;
|
||||||
|
this.$confirm('是否确认删除结算报编号为"' + settleIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delSettle(settleIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有结算报数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportSettle(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
313
ruoyi-ui/src/views/fantang/staffInfo/index.vue
Normal file
313
ruoyi-ui/src/views/fantang/staffInfo/index.vue
Normal file
@ -0,0 +1,313 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="姓名" prop="name">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.name"
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="岗位" prop="post">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.post"
|
||||||
|
placeholder="请输入岗位"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="角色" prop="role">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.role"
|
||||||
|
placeholder="请输入角色"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:staffInfo:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:staffInfo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:staffInfo:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:staffInfo:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="staffInfoList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="员工 id" align="center" prop="staffId" v-if="false"/>
|
||||||
|
<el-table-column label="姓名" align="center" prop="name" />
|
||||||
|
<el-table-column label="岗位" align="center" prop="post" />
|
||||||
|
<el-table-column label="角色" align="center" prop="role" />
|
||||||
|
<el-table-column label="补贴余额" align="center" prop="balance" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:staffInfo:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:staffInfo:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改员工管理对话框 -->
|
||||||
|
<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-item label="姓名" prop="name">
|
||||||
|
<el-input v-model="form.name" placeholder="请输入姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="岗位" prop="post">
|
||||||
|
<el-input v-model="form.post" placeholder="请输入岗位" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="角色" prop="role">
|
||||||
|
<el-input v-model="form.role" placeholder="请输入角色" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="密码" prop="password">
|
||||||
|
<el-input v-model="form.password" placeholder="请输入密码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="补贴余额" prop="balance">
|
||||||
|
<el-input v-model="form.balance" placeholder="请输入补贴余额" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listStaffInfo, getStaffInfo, delStaffInfo, addStaffInfo, updateStaffInfo, exportStaffInfo } from "@/api/fantang/staffInfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "StaffInfo",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 员工管理表格数据
|
||||||
|
staffInfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
name: null,
|
||||||
|
post: null,
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
name: [
|
||||||
|
{ required: true, message: "姓名不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
post: [
|
||||||
|
{ required: true, message: "岗位不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
role: [
|
||||||
|
{ required: true, message: "角色不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
password: [
|
||||||
|
{ required: true, message: "密码不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
balance: [
|
||||||
|
{ required: true, message: "补贴余额不能为空", trigger: "blur" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询员工管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listStaffInfo(this.queryParams).then(response => {
|
||||||
|
this.staffInfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
staffId: null,
|
||||||
|
departId: null,
|
||||||
|
name: null,
|
||||||
|
post: null,
|
||||||
|
role: null,
|
||||||
|
password: null,
|
||||||
|
createAt: null,
|
||||||
|
createBy: null,
|
||||||
|
flag: null,
|
||||||
|
balance: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.staffId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加员工管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const staffId = row.staffId || this.ids
|
||||||
|
getStaffInfo(staffId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改员工管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.staffId != null) {
|
||||||
|
updateStaffInfo(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addStaffInfo(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const staffIds = row.staffId || this.ids;
|
||||||
|
this.$confirm('是否确认删除员工管理编号为"' + staffIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delStaffInfo(staffIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有员工管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportStaffInfo(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
307
ruoyi-ui/src/views/fantang/staffSubsidy/index.vue
Normal file
307
ruoyi-ui/src/views/fantang/staffSubsidy/index.vue
Normal file
@ -0,0 +1,307 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="补贴类型" prop="subsidyType">
|
||||||
|
<el-select v-model="queryParams.subsidyType" placeholder="请选择补贴类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="收支类型" prop="incomeType">
|
||||||
|
<el-select v-model="queryParams.incomeType" placeholder="请选择收支类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="金额" prop="price">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.price"
|
||||||
|
placeholder="请输入金额"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="消费日期" prop="consumAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.consumAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择消费日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:staffSubsidy:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:staffSubsidy:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:staffSubsidy:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:staffSubsidy:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="staffSubsidyList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="补贴流水 id" align="center" prop="subsidyId" v-if="false"/>
|
||||||
|
<el-table-column label="补贴类型" align="center" prop="subsidyType" />
|
||||||
|
<el-table-column label="收支类型" align="center" prop="incomeType" />
|
||||||
|
<el-table-column label="金额" align="center" prop="price" />
|
||||||
|
<el-table-column label="消费日期" align="center" prop="consumAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.consumAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:staffSubsidy:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:staffSubsidy:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改补贴流水查看对话框 -->
|
||||||
|
<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-item label="补贴类型" prop="subsidyType">
|
||||||
|
<el-select v-model="form.subsidyType" placeholder="请选择补贴类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="收支类型" prop="incomeType">
|
||||||
|
<el-select v-model="form.incomeType" placeholder="请选择收支类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="金额" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入金额" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listStaffSubsidy, getStaffSubsidy, delStaffSubsidy, addStaffSubsidy, updateStaffSubsidy, exportStaffSubsidy } from "@/api/fantang/staffSubsidy";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "StaffSubsidy",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 补贴流水查看表格数据
|
||||||
|
staffSubsidyList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
subsidyType: null,
|
||||||
|
incomeType: null,
|
||||||
|
price: null,
|
||||||
|
consumAt: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
subsidyType: [
|
||||||
|
{ required: true, message: "补贴类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
incomeType: [
|
||||||
|
{ required: true, message: "收支类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "金额不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询补贴流水查看列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listStaffSubsidy(this.queryParams).then(response => {
|
||||||
|
this.staffSubsidyList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
subsidyId: null,
|
||||||
|
staffId: null,
|
||||||
|
subsidyType: null,
|
||||||
|
incomeType: null,
|
||||||
|
price: null,
|
||||||
|
consumAt: null,
|
||||||
|
orderId: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.subsidyId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加补贴流水查看";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const subsidyId = row.subsidyId || this.ids
|
||||||
|
getStaffSubsidy(subsidyId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改补贴流水查看";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.subsidyId != null) {
|
||||||
|
updateStaffSubsidy(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addStaffSubsidy(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const subsidyIds = row.subsidyId || this.ids;
|
||||||
|
this.$confirm('是否确认删除补贴流水查看编号为"' + subsidyIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delStaffSubsidy(subsidyIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有补贴流水查看数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportStaffSubsidy(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
338
ruoyi-ui/src/views/fantang/subsidy/index.vue
Normal file
338
ruoyi-ui/src/views/fantang/subsidy/index.vue
Normal file
@ -0,0 +1,338 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="补贴类型" prop="type">
|
||||||
|
<el-select v-model="queryParams.type" placeholder="请选择补贴类型" clearable size="small">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="金额" prop="price">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.price"
|
||||||
|
placeholder="请输入金额"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="范围" prop="range">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.range"
|
||||||
|
placeholder="请输入范围"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="周期" prop="cycle">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.cycle"
|
||||||
|
placeholder="请输入周期"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建日期" prop="createAt">
|
||||||
|
<el-date-picker clearable size="small" style="width: 200px"
|
||||||
|
v-model="queryParams.createAt"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="选择创建日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="创建人" prop="createBy">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.createBy"
|
||||||
|
placeholder="请输入创建人"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['fantang:subsidy:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['fantang:subsidy:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['fantang:subsidy:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['fantang:subsidy:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="subsidyList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="补贴 id" align="center" prop="subsidyId" v-if="false"/>
|
||||||
|
<el-table-column label="补贴类型" align="center" prop="type" />
|
||||||
|
<el-table-column label="金额" align="center" prop="price" />
|
||||||
|
<el-table-column label="范围" align="center" prop="range" />
|
||||||
|
<el-table-column label="周期" align="center" prop="cycle" />
|
||||||
|
<el-table-column label="创建日期" align="center" prop="createAt" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.createAt, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['fantang:subsidy:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['fantang:subsidy:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改补贴管理对话框 -->
|
||||||
|
<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-item label="补贴类型" prop="type">
|
||||||
|
<el-select v-model="form.type" placeholder="请选择补贴类型">
|
||||||
|
<el-option label="请选择字典生成" value="" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="金额" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入金额" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="范围" prop="range">
|
||||||
|
<el-input v-model="form.range" placeholder="请输入范围" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="周期" prop="cycle">
|
||||||
|
<el-input v-model="form.cycle" placeholder="请输入周期" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listSubsidy, getSubsidy, delSubsidy, addSubsidy, updateSubsidy, exportSubsidy } from "@/api/fantang/subsidy";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Subsidy",
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 补贴管理表格数据
|
||||||
|
subsidyList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
type: null,
|
||||||
|
price: null,
|
||||||
|
range: null,
|
||||||
|
cycle: null,
|
||||||
|
createAt: null,
|
||||||
|
createBy: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
type: [
|
||||||
|
{ required: true, message: "补贴类型不能为空", trigger: "change" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "金额不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
range: [
|
||||||
|
{ required: true, message: "范围不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
cycle: [
|
||||||
|
{ required: true, message: "周期不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询补贴管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listSubsidy(this.queryParams).then(response => {
|
||||||
|
this.subsidyList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
subsidyId: null,
|
||||||
|
type: null,
|
||||||
|
price: null,
|
||||||
|
range: null,
|
||||||
|
cycle: null,
|
||||||
|
flag: null,
|
||||||
|
createAt: null,
|
||||||
|
createBy: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.subsidyId)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加补贴管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const subsidyId = row.subsidyId || this.ids
|
||||||
|
getSubsidy(subsidyId).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改补贴管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.subsidyId != null) {
|
||||||
|
updateSubsidy(this.form).then(response => {
|
||||||
|
this.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addSubsidy(this.form).then(response => {
|
||||||
|
this.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const subsidyIds = row.subsidyId || this.ids;
|
||||||
|
this.$confirm('是否确认删除补贴管理编号为"' + subsidyIds + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return delSubsidy(subsidyIds);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm('是否确认导出所有补贴管理数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning"
|
||||||
|
}).then(function() {
|
||||||
|
return exportSubsidy(queryParams);
|
||||||
|
}).then(response => {
|
||||||
|
this.download(response.msg);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user