| | |
| | | List<SysBeauticianState> beauticianStateList = beauticianStateDao.selectBySerIds(id); |
| | | if (CollUtil.isNotEmpty(beauticianStateList)) { |
| | | for (SysBeauticianState sysBeauticianState : beauticianStateList) { |
| | | SysProjUse item = sysBeauticianState.getProjUse(); |
| | | |
| | | // 若项目/套餐无效,则打印时,不显示余次 |
| | | if ("无效".equals(item.getStatus())) { |
| | | item.setRemainCount(item.getSurplusCount()); |
| | | } else { |
| | | item.setRemainCount(null); |
| | | } |
| | | |
| | | if (sysBeauticianState.getProjUse().getTaocanId() != null) { |
| | | SysProjUse sysProjUse = projUseService.findById(sysBeauticianState.getProjUse().getTaocanId()); |
| | | if ("无效".equals(sysProjUse.getStatus())) { |
| | | item.setRemainCount(sysProjUse.getSurplusCount()); |
| | | } else { |
| | | item.setRemainCount(null); |
| | | } |
| | | |
| | | sysBeauticianState.getProjInfo().setName(sysProjUse.getProjName()+"--"+sysBeauticianState.getProjInfo().getName()); |
| | | if ("Y".equals(sysProjUse.getIsCourse()) && "Y".equals(sysProjUse.getIsInfinite())) { |
| | | int count = projUseService.findTaocanCountForCourseAndInfinite(sysBeauticianState.getProjUse().getTaocanId(), projServices.getVipId()); |
| | | item.setRemainCount(count); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | @Extend |
| | | private String updateRemark; |
| | | |
| | | /** |
| | | * 套餐/项目剩余次数 |
| | | */ |
| | | private Integer remainCount; |
| | | |
| | | public Integer getRemainCount() { |
| | | return remainCount; |
| | | } |
| | | |
| | | public void setRemainCount(Integer remainCount) { |
| | | this.remainCount = remainCount; |
| | | } |
| | | |
| | | public Long getOrderId() { |
| | | return orderId; |
| | |
| | | Integer selectProjUseFlowTotal(@Param("record") SysProjUseFlow projUseFlow); |
| | | |
| | | List<SysProjUse> selectTaoCanListWithProj(@Param("record") SysProjUse sysProjUse); |
| | | |
| | | int selectTaocanCountForCourseAndInfinite(@Param("taocanId") Long taocanId, @Param("vipId") Long vipId); |
| | | } |
| | |
| | | public List<SysProjUse> selectTaocanProjUse(Long id, String status); |
| | | |
| | | public List<SysProjUse> findTaocaoProjUseWithProj(SysProjUse sysProjUse); |
| | | |
| | | int findTaocanCountForCourseAndInfinite(Long taocanId, Long vipId); |
| | | } |
| | |
| | | public List<SysProjUse> findTaocaoProjUseWithProj(SysProjUse sysProjUse) { |
| | | return sysProjUseDao.selectTaoCanListWithProj(sysProjUse); |
| | | } |
| | | |
| | | @Override |
| | | public int findTaocanCountForCourseAndInfinite(Long taocanId, Long vipId) { |
| | | return sysProjUseDao.selectTaocanCountForCourseAndInfinite(taocanId, vipId); |
| | | } |
| | | } |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectTaocanCountForCourseAndInfinite" resultType="java.lang.Integer"> |
| | | select count(1) from sys_proj_use |
| | | where taocan_id=#{taocanId} and vip_id=#{vipId} |
| | | </select> |
| | | </mapper> |
| | |
| | | userList: [], |
| | | treeSelect : [], |
| | | payMoneys : [], |
| | | order:{}, |
| | | printPaper : false, |
| | | }, |
| | | created : function() { |
| | |
| | | data: _this.cardInfo, |
| | | url: url, |
| | | callback: function (data) { |
| | | _this.order.id = data.mapInfo.orderId; |
| | | |
| | | if (_this.printPaper) { |
| | | _this.$message.success(data.info); |
| | | _this.print(); |
| | | } else { |
| | | _this.$message.success({ |
| | | message : data.info, |
| | | duration : 1000, |
| | | onClose() { |
| | | _this.closeFrame(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | if(parent.myGrid) { |
| | |
| | | parent.app.vipInfoFn(); |
| | | } |
| | | |
| | | _this.closeFrame(); |
| | | // _this.closeFrame(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | maxmin: true, |
| | | content: [basePath + '/admin/order/printOrder?id=' + this.order.id], |
| | | cancel: function (index, layero) { |
| | | _this.closeFram(); |
| | | _this.closeFrame(); |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | //结算打印提示 |
| | | if (submitType == 1) { |
| | | if (_this.printPaper) { |
| | | _this.$message.success(data.info); |
| | | _this.print(); |
| | | } else { |
| | | _this.$message.success({ |
| | |
| | | <h1 style="text-align: center;font-size: 18px;margin: 20px auto;"> |
| | | {{order.shopName}} |
| | | </h1> |
| | | <table style="width: 100%; font-size:12px;line-height: 20px;"> |
| | | <table style="width: 100%; font-size:12px;"> |
| | | |
| | | <tr> |
| | | <td colspan="2"> |
| | |
| | | </tr> |
| | | </table> |
| | | <p>--------------------------------</p> |
| | | <table style="width: 80%;font-size:12px;margin-top: 20px;text-align: left"> |
| | | <table style="width: 80%;font-size:12px;margin-top: 10px;text-align: left; margin-bottom: 5px;"> |
| | | |
| | | <tr> |
| | | <th style="text-align: left;" colspan="4">产品</th> |
| | |
| | | </tr> |
| | | </table> |
| | | <p>--------------------------------</p> |
| | | <table style="width: 100%;font-size: 10px;line-height: 30px;"> |
| | | <table style="width: 100%;font-size: 10px; margin-bottom: 5px;"> |
| | | <tr > |
| | | <td> |
| | | <b >储值卡余额:</b><span >{{totalMoney}}</span> |
| | |
| | | <h1 style="text-align: center;font-size:18px;margin: 20px auto;"> |
| | | {{projService.shopName}} |
| | | </h1> |
| | | <table style="width: 100%; font-size:10px;line-height: 20px;"> |
| | | <table style="width: 100%; font-size:10px;"> |
| | | |
| | | <tr> |
| | | <td colspan="2"> |
| | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | <table style="width: 80%;font-size:10px;margin-top: 20px;text-align: left"> |
| | | <table style="width: 80%;font-size:10px;margin-top: 10px;text-align: left; margin-bottom: 5px;"> |
| | | <tr> |
| | | <th style="text-align: left;" colspan="4">产品</th> |
| | | </tr> |
| | |
| | | <tr > |
| | | <td>{{item.count }}</td> |
| | | <td>{{item.projUse.price }}</td> |
| | | <td >{{item.projUse.surplusCount }}</td> |
| | | <td >{{item.projUse.remainCount == null ? "-" : item.projUse.remainCount}}</td> |
| | | <td>{{item.beautiStaffInfo?item.beautiStaffInfo.suName:''}}</td> |
| | | </tr> |
| | | </template> |
| | | </table> |
| | | <table style="width: 100%;font-size: 10px;line-height: 30px;"> |
| | | <table style="width: 100%;font-size: 10px; margin-bottom: 5px;"> |
| | | <tr> |
| | | <td> |
| | | <b>本次划扣:</b> <span >{{projService.money}}</span> |