增加判断是否已经支付预付伙食费(未完)
This commit is contained in:
parent
43b05b9781
commit
e2ad86e682
@ -33,6 +33,13 @@ public class FtPrepaymentDaoController extends BaseController {
|
|||||||
|
|
||||||
private final IFtPrepaymentDaoService iFtPrepaymentDaoService;
|
private final IFtPrepaymentDaoService iFtPrepaymentDaoService;
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("/getCountById/{patientId}")
|
||||||
|
public AjaxResult getCountById(@PathVariable("patientId") Long patiendId) {
|
||||||
|
return AjaxResult.success(iFtPrepaymentDaoService.getCountById(patiendId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 查询所有待缴费列表
|
// 查询所有待缴费列表
|
||||||
@PreAuthorize("@ss.hasPermi('fantang:prepayment:list')")
|
@PreAuthorize("@ss.hasPermi('fantang:prepayment:list')")
|
||||||
@GetMapping("/listNoPrepay")
|
@GetMapping("/listNoPrepay")
|
||||||
|
@ -18,4 +18,6 @@ public interface IFtPrepaymentDaoService extends IService<FtPrepaymentVo> {
|
|||||||
List<com.ruoyi.system.fantang.vo.FtPrepaymentVo> listPrepay();
|
List<com.ruoyi.system.fantang.vo.FtPrepaymentVo> listPrepay();
|
||||||
|
|
||||||
List<com.ruoyi.system.fantang.vo.FtPrepaymentVo> listAllPrepay();
|
List<com.ruoyi.system.fantang.vo.FtPrepaymentVo> listAllPrepay();
|
||||||
|
|
||||||
|
int getCountById(Long patiendId);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.ruoyi.system.fantang.service.impl;
|
package com.ruoyi.system.fantang.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.ruoyi.system.fantang.domain.FtPrepaymentVo;
|
import com.ruoyi.system.fantang.domain.FtPrepaymentVo;
|
||||||
import com.ruoyi.system.fantang.mapper.FtPrepaymentDaoMapper;
|
import com.ruoyi.system.fantang.mapper.FtPrepaymentDaoMapper;
|
||||||
@ -31,4 +32,12 @@ public class FtPrepaymentDaoServiceImpl extends ServiceImpl<FtPrepaymentDaoMappe
|
|||||||
public List<com.ruoyi.system.fantang.vo.FtPrepaymentVo> listAllPrepay() {
|
public List<com.ruoyi.system.fantang.vo.FtPrepaymentVo> listAllPrepay() {
|
||||||
return this.baseMapper.listAllPrepay();
|
return this.baseMapper.listAllPrepay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getCountById(Long patiendId) {
|
||||||
|
QueryWrapper<FtPrepaymentVo> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.eq("patiendId",patiendId);
|
||||||
|
return this.baseMapper.selectCount(queryWrapper);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,13 @@ export function listAllPrepay() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询该用户是否已经收取预付伙食费
|
||||||
|
export function getCountById(patientId) {
|
||||||
|
return request({
|
||||||
|
url: '/fantang/prepayment/getCountById/' + patientId,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 查询收费管理列表
|
// 查询收费管理列表
|
||||||
export function listPrepayment(query) {
|
export function listPrepayment(query) {
|
||||||
|
@ -196,13 +196,18 @@
|
|||||||
updatePrepayment
|
updatePrepayment
|
||||||
} from "@/api/fantang/prepayment";
|
} from "@/api/fantang/prepayment";
|
||||||
import {listAllPrepay, listPrepay} from "../../../api/fantang/prepayment";
|
import {listAllPrepay, listPrepay} from "../../../api/fantang/prepayment";
|
||||||
|
import {getUserProfile} from "../../../api/system/user";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Prepayment",
|
name: "Prepayment",
|
||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
// 权限相关的参数
|
||||||
userName: null,
|
userName: null,
|
||||||
|
roleGroup: null,
|
||||||
|
postGroup: null,
|
||||||
|
|
||||||
settlementFlagOptions: [{
|
settlementFlagOptions: [{
|
||||||
value: null,
|
value: null,
|
||||||
label: '未交费'
|
label: '未交费'
|
||||||
@ -261,12 +266,20 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getDefaultNoPrepayment();
|
this.getDefaultNoPrepayment();
|
||||||
this.getUser();
|
this.myGetUser();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取用户相关信息
|
||||||
|
myGetUser() {
|
||||||
|
getUserProfile().then(response => {
|
||||||
|
this.userName = response.data;
|
||||||
|
this.roleGroup = response.roleGroup;
|
||||||
|
this.postGroup = response.postGroup;
|
||||||
|
});
|
||||||
|
},
|
||||||
// 处理筛选结算标志
|
// 处理筛选结算标志
|
||||||
selectSettlementFlag(value) {
|
selectSettlementFlag(value) {
|
||||||
console.log("value", value)
|
console.log("value", value)
|
||||||
@ -376,6 +389,7 @@
|
|||||||
prepaidAt: new Date(),
|
prepaidAt: new Date(),
|
||||||
hospitalId: null,
|
hospitalId: null,
|
||||||
name: null,
|
name: null,
|
||||||
|
userName:null,
|
||||||
};
|
};
|
||||||
this.resetForm("formAddPrepayment");
|
this.resetForm("formAddPrepayment");
|
||||||
},
|
},
|
||||||
@ -414,6 +428,7 @@
|
|||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitformAddPrepayment() {
|
submitformAddPrepayment() {
|
||||||
let hospitalId = this.formAddPrepayment.hospitalId;
|
let hospitalId = this.formAddPrepayment.hospitalId;
|
||||||
|
this.formAddPrepayment.collectBy = this.userName;
|
||||||
this.$refs["formAddPrepayment"].validate(valid => {
|
this.$refs["formAddPrepayment"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (!this.NoPrepayments.find(function(x) {
|
if (!this.NoPrepayments.find(function(x) {
|
||||||
@ -423,6 +438,7 @@
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.formAddPrepayment.prepaidAt = null;
|
this.formAddPrepayment.prepaidAt = null;
|
||||||
console.log("form -->", this.formAddPrepayment)
|
console.log("form -->", this.formAddPrepayment)
|
||||||
addPrepayment(this.formAddPrepayment).then(response => {
|
addPrepayment(this.formAddPrepayment).then(response => {
|
||||||
|
@ -239,6 +239,10 @@ export default {
|
|||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
// 权限相关的参数
|
||||||
|
userName: null,
|
||||||
|
roleGroup: null,
|
||||||
|
postGroup: null,
|
||||||
// 出院结算状态显示标志位
|
// 出院结算状态显示标志位
|
||||||
flagAddPrepaymentShow: false,
|
flagAddPrepaymentShow: false,
|
||||||
// 费用结算弹出层控制标志位
|
// 费用结算弹出层控制标志位
|
||||||
@ -256,6 +260,7 @@ export default {
|
|||||||
netPeceipt: null,
|
netPeceipt: null,
|
||||||
prepayment: null,
|
prepayment: null,
|
||||||
settlementDate: null,
|
settlementDate: null,
|
||||||
|
userName: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
// 结算类型字典
|
// 结算类型字典
|
||||||
@ -329,6 +334,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
this.myGetUser();
|
||||||
listNoPay(this.queryParams).then(response => {
|
listNoPay(this.queryParams).then(response => {
|
||||||
this.settleList = response.rows;
|
this.settleList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
@ -336,6 +342,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取用户相关信息
|
||||||
|
myGetUser() {
|
||||||
|
getUserProfile().then(response => {
|
||||||
|
this.userName = response.data;
|
||||||
|
this.roleGroup = response.roleGroup;
|
||||||
|
this.postGroup = response.postGroup;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
// 日常伙食费结算操作按钮
|
// 日常伙食费结算操作按钮
|
||||||
clickAddNewSettlement(row) {
|
clickAddNewSettlement(row) {
|
||||||
@ -349,6 +363,7 @@ export default {
|
|||||||
this.formAddNewSettlement.price = row.price;
|
this.formAddNewSettlement.price = row.price;
|
||||||
this.formAddNewSettlement.prepayment = row.prepayment;
|
this.formAddNewSettlement.prepayment = row.prepayment;
|
||||||
this.formAddNewSettlement.netPeceipt = null;
|
this.formAddNewSettlement.netPeceipt = null;
|
||||||
|
this.formAddNewSettlement.userName = this.userName;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 出院伙食费结算按钮
|
// 出院伙食费结算按钮
|
||||||
|
Loading…
x
Reference in New Issue
Block a user