Merge remote-tracking branch 'origin/score_shop' into score_shop
1 files deleted
41 files modified
| | |
| | | |
| | | import com.matrix.core.constance.MatrixConstance; |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.pojo.PaginationVO; |
| | | import com.matrix.core.tools.EncrypUtil; |
| | | import com.matrix.core.tools.StringUtils; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.app.dto.AddVipDto; |
| | |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.dao.CustomerDataDictionaryDao; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.common.tools.PasswordUtil; |
| | | import com.matrix.system.hive.action.BaseController; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | | import com.matrix.system.hive.bean.*; |
| | | import com.matrix.system.hive.dao.MoneyCardUseDao; |
| | | import com.matrix.system.hive.dao.VipAnswerDao; |
| | | import com.matrix.system.hive.plugin.util.CollectionUtils; |
| | | import com.matrix.system.hive.service.MoneyCardUseService; |
| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | int limit = vipInfoListDto.getPageSize(); |
| | | vipInfoListDto.setOffset(offset); |
| | | vipInfoListDto.setLimit(limit); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return AjaxResult.buildSuccessInstance(sysVipInfoService.findVipAddressBook(vipInfoListDto)); |
| | | } |
| | | |
| | |
| | | |
| | | import java.util.*; |
| | | import java.util.Map.Entry; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * DefaultAuthorityManager 实现了权限控制接口 |
| | |
| | | // 普通员工账号只拥有自己所拥有的权限 |
| | | List<SysFunction> userFunctionList = sysFunctionService.findFunctionByRoleIds(sysUser.getRoleIds()); |
| | | for (SysFunction sysFunction : userFunctionList) { |
| | | |
| | | sysFunction.setSysFnBtnRel( |
| | | sysFunction.getSysFnBtnRel().stream().filter(item->StringUtils.isContentSet(item.getBtnValue(),sysFunction.getRpfBns())).collect(Collectors.toList()) |
| | | ); |
| | | |
| | | // TODO注册访问路径 |
| | | registerUrlMapping(userUrlMapping, sysFunction,false); |
| | | if (userFunctionMap.containsKey(sysFunction.getFnCode())) { |
| | | // 如果功能已经被添加到集合中则追加权限按钮 |
| | | SysFunction oneFunctionInMap = userFunctionMap.get(sysFunction.getFnCode()); |
| | | |
| | | // 为了方便判断所以用字符串记录一下 |
| | | if (StringUtils.isBlank(oneFunctionInMap.getRpfBns())) { |
| | | oneFunctionInMap.setRpfBns(sysFunction.getRpfBns()); |
| | |
| | | @ApiModelProperty(value = "会员ID") |
| | | private Long vipId; |
| | | |
| | | @NotNull(message = "请选择美疗师") |
| | | // @NotNull(message = "请选择美疗师") |
| | | @ApiModelProperty(value = "美疗师ID") |
| | | private Long beautyId; |
| | | |
| | |
| | | @ApiModelProperty(value = "会员姓名") |
| | | private String vipName; |
| | | |
| | | @ApiModelProperty(value = "会员编号") |
| | | private String vipNo; |
| | | |
| | | @ApiModelProperty(value = "会员手机号") |
| | | private String phone; |
| | | |
| | |
| | | public void setVipLevel(String vipLevel) { |
| | | this.vipLevel = vipLevel; |
| | | } |
| | | |
| | | public String getVipNo() { |
| | | return vipNo; |
| | | } |
| | | |
| | | public void setVipNo(String vipNo) { |
| | | this.vipNo = vipNo; |
| | | } |
| | | } |
| | |
| | | private String plates; |
| | | |
| | | /** |
| | | * 所有客户权限 |
| | | */ |
| | | private String coustomer; |
| | | |
| | | /** |
| | | * 功能集合 |
| | | */ |
| | | @Extend |
| | |
| | | @Extend |
| | | private String menuKeys; |
| | | |
| | | public String getCoustomer() { |
| | | return coustomer; |
| | | } |
| | | |
| | | public void setCoustomer(String coustomer) { |
| | | this.coustomer = coustomer; |
| | | } |
| | | |
| | | public Integer getIsDefault() { |
| | | return isDefault; |
| | | } |
| | |
| | | private String shopName; |
| | | |
| | | |
| | | private String allCustomer; |
| | | |
| | | private String roleName; |
| | | |
| | |
| | | private String departName; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 入职时间区域查询 |
| | | **/ |
| | |
| | | @Extend |
| | | private SysCompany company; |
| | | |
| | | public String getAllCustomer() { |
| | | return allCustomer; |
| | | } |
| | | |
| | | public void setAllCustomer(String allCustomer) { |
| | | this.allCustomer = allCustomer; |
| | | } |
| | | |
| | | public Long getSuId() { |
| | | return suId; |
| | | } |
| | |
| | | public Set<IProcessor> getProcessors(final String dialectPrefix) { |
| | | final Set<IProcessor> processors = new HashSet<IProcessor>(); |
| | | processors.add(new ButtonRoleAttributeTagProcessor(dialectPrefix)); |
| | | processors.add(new ButtonRoleJsTagProcessor(dialectPrefix)); |
| | | processors.add(new ButtonRoleFnTagProcessor(dialectPrefix)); |
| | | // This will remove the xmlns:matrix attributes we might add for IDE validation |
| | | processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix)); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 可以查询所有会员 |
| | | * @return |
| | | */ |
| | | public static boolean hasAllCustomerAuth() { |
| | | SysUsers user = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | return user.getShopRole().equals(Dictionary.FLAG_YES_Y) || user.getSuUserType().equals(AppConstance.USER_TYPE_ADMIN); |
| | | |
| | | } |
| | | } |
| | |
| | | public AjaxResult importVipInfo(HttpServletResponse response, HttpServletRequest request, @RequestParam(value = "file", required = false) MultipartFile file) throws IOException { |
| | | |
| | | String fileName = file.getOriginalFilename(); |
| | | // String dirPath = "E:"; |
| | | String dirPath = PropertiesUtil.getString(AppConstance.FILES_TORAGE_PATH); |
| | | // String dirPath = "E:"; |
| | | String dirPath = PropertiesUtil.getString(AppConstance.FILES_TORAGE_PATH); |
| | | |
| | | File saveFile = new File(dirPath + "/" + fileName); |
| | | file.transferTo(saveFile); |
| | |
| | | import com.matrix.system.common.dao.CustomerDataDictionaryDao; |
| | | import com.matrix.system.common.service.SysUsersService; |
| | | import com.matrix.system.common.service.SystemDictionaryService; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.common.tools.ResponseHeadUtil; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | |
| | | import com.matrix.system.score.dao.ScoreVipDetailDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.OutputStream; |
| | | import java.net.URLDecoder; |
| | | import java.net.URLEncoder; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportExcel") |
| | | public void report(ModelMap model, HttpServletRequest request, HttpServletResponse response, |
| | | public void report( HttpServletResponse response, |
| | | SysVipInfo vipInfo) throws IOException { |
| | | |
| | | if (vipInfo.getVipType() != null && !(vipInfo.getVipType().equals(""))) { |
| | | vipInfo.setVipType(URLDecoder.decode(vipInfo.getVipType(), "UTF-8")); |
| | | } |
| | | if (vipInfo.getVipName() != null && !"".equals(vipInfo.getVipName())) { |
| | | vipInfo.setVipName(URLDecoder.decode(vipInfo.getVipName(), "UTF-8")); |
| | | } |
| | | if (vipInfo.getArrivalWay() != null && !"".equals(vipInfo.getArrivalWay())) { |
| | | vipInfo.setArrivalWay(URLDecoder.decode(vipInfo.getArrivalWay(), "UTF-8")); |
| | | } |
| | | if (vipInfo.getVipState() != null && !"".equals(vipInfo.getVipState())) { |
| | | vipInfo.setVipState(URLDecoder.decode(vipInfo.getVipState(), "UTF-8")); |
| | | SysUsers sysUsers = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | vipInfo.setShopId(sysUsers.getShopId()); |
| | | } |
| | | |
| | | List<ExcelSheetPO> res = new ArrayList<>(); |
| | | ExcelSheetPO orderSheet = new ExcelSheetPO(); |
| | | String title = "每日单据明细"; |
| | | String title = "会员资料"; |
| | | orderSheet.setSheetName(title); |
| | | orderSheet.setTitle(title); |
| | | String[] header = {"会员编号", "姓名", "性别", "手机号码", "会员类型", "会员活跃度", "到店途径", "健康顾问", "所属门店"}; |
| | |
| | | //检查交易限制调整 |
| | | checkSealLimit(pageOrder); |
| | | |
| | | //交易业绩设置是否合理 |
| | | checkAchieveIsOk(pageOrder); |
| | | |
| | | |
| | | // 更新收款时间 |
| | | pageOrder.setPayTime(new Date()); |
| | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 交易业绩设置是否合理 |
| | | * @param pageOrder |
| | | */ |
| | | private void checkAchieveIsOk(SysOrder pageOrder) { |
| | | double huakouSum = pageOrder.getItems().stream() |
| | | .mapToDouble( |
| | | item -> |
| | | item.getAchieveList().stream() |
| | | .filter(achieveNew -> "划扣".equals(achieveNew.getPayMethod())) |
| | | .mapToDouble(achieve -> achieve.getGoodsCash()).sum() |
| | | ).sum(); |
| | | |
| | | double czkPay= pageOrder.getFlows().stream() |
| | | .filter(sysOrderFlow -> "储值卡".equals(sysOrderFlow.getPayMethod())) |
| | | .mapToDouble(sysOrderFlow ->sysOrderFlow.getAmount().doubleValue()).sum(); |
| | | |
| | | if(czkPay!=huakouSum){ |
| | | throw new GlobleException("划扣业绩不等于储值卡扣款金额,请修改业绩设置!"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 设置会员消费积分 |
| | |
| | | |
| | | import com.matrix.core.constance.MatrixConstance; |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.DateUtil; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.core.tools.excl.ExcelSheetPO; |
| | | import com.matrix.core.tools.excl.ExcelVersion; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.common.tools.ResponseHeadUtil; |
| | | import com.matrix.system.hive.dao.SysOrderItemDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.OutputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @RequestMapping(value = "/showList") |
| | | public @ResponseBody |
| | | AjaxResult showList( @RequestParam Map<String , Object> param) { |
| | | AjaxResult showList(@RequestParam Map<String, Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(orderItemDao.selectItemDetail(param), |
| | | orderItemDao.selectItemDetailTotal(param)); |
| | | } |
| | | @RequestMapping(value = "/exportShowList") |
| | | public void exportShowList(@RequestParam Map<String, Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "产品销售明细统计"; |
| | | String[] header = {"门店", "销售日期", "订单号", "商品名称", "分类", "客户名", "购买数量", "单价", "健康顾问", "支付方式", "状态"}; |
| | | String[] column = {"SHOP_NAME", "pay_time", "ORDER_NO", "goodsName", "cateName", "VIP_NAME", "COUNT", "ZK_PRICE", "su_name", "pay_method", "status"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = orderItemDao.selectItemDetail(param); |
| | | exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 产品销售明细统计 |
| | | */ |
| | | @RequestMapping(value = "/summaryItemDetail") |
| | | public @ResponseBody |
| | | AjaxResult summaryItemDetail( @RequestParam Map<String , Object> param) { |
| | | AjaxResult summaryItemDetail(@RequestParam Map<String, Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(orderItemDao.summaryItemDetail(param), |
| | | orderItemDao.summaryItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportSummaryItemDetail") |
| | | public void exportSummaryItemDetail(@RequestParam Map<String, Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "产品销售明细统计"; |
| | | String[] header = {"门店", "商品名称", "分类", "销售数量", "销售总额"}; |
| | | String[] column = {"SHOP_NAME", "goodsName", "cateName", "COUNT", "ZK_PRICE"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = orderItemDao.summaryItemDetail(param); |
| | | exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | public static void exportExcel(String title, String[] header,String[] column, List<Map<String, Object>> dataList, HttpServletResponse response) throws Exception { |
| | | //这里是从数据库里查数据并组装成我们想要的数据结构的过程 |
| | | List<ExcelSheetPO> res = new ArrayList<>(); |
| | | ExcelSheetPO orderSheet = new ExcelSheetPO(); |
| | | orderSheet.setSheetName(title); |
| | | orderSheet.setTitle(title); |
| | | orderSheet.setHeaders(header); |
| | | List<List<Object>> list = new ArrayList<>(); |
| | | if (dataList.size() > 0) { |
| | | for (Map<String, Object> item : dataList) { |
| | | List<Object> temp = new ArrayList<>(); |
| | | Arrays.stream(column).forEach(key-> temp.add(item.get(key))); |
| | | list.add(temp); |
| | | } |
| | | } |
| | | orderSheet.setDataList(list); |
| | | res.add(orderSheet); |
| | | response = ResponseHeadUtil.setExcelHead(response); |
| | | response.setHeader("Content-Disposition", |
| | | "attachment;filename=" + java.net.URLEncoder.encode(title + DateUtil.getTimeMark() + ".xlsx".trim(), "UTF-8")); |
| | | OutputStream os = response.getOutputStream(); |
| | | com.matrix.core.tools.excl.ExcelUtil.createWorkbookAtOutStream(ExcelVersion.V2007, res, os, true); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.dao.SysProjUseDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult showList( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(projUseDao.selectItemDetail(param), |
| | | projUseDao.selectItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportShowList") |
| | | public void exportShowList( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "项目剩余次数明细"; |
| | | String[] header = {"客户名", "服务名称", "到期日期", "剩余次数", "单价", "项目类型", "套餐类型", "是否使用完成", "备注", "来源", "订单号"}; |
| | | String[] column = {"VIP_NAME", "PROJ_NAME", "FAIL_TIME", "SURPLUS_COUNT", "PRICE", "TYPE_NAME", "type", "IS_OVER", "remark", "SOURCE", "ORDER_NO"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = projUseDao.selectItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 项目剩余次数统计 |
| | |
| | | public @ResponseBody |
| | | AjaxResult summaryItemDetail( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(projUseDao.summaryItemDetail(param), |
| | | projUseDao.summaryItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportSummaryItemDetail") |
| | | public void exportSummaryItemDetail( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "项目剩余次数统计"; |
| | | String[] header = {"服务名称", "项目类型", "剩余次数", "剩余消耗总额"}; |
| | | String[] column = {"PROJ_NAME", "TYPE_NAME", "SURPLUS_COUNT", "PRICE"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = projUseDao.summaryItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.dao.SysBeauticianStateDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult showList( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | |
| | | return AjaxResult.buildSuccessInstance(beauticianStateDao.selectItemDetail(param), |
| | | beauticianStateDao.selectItemDetailTotal(param)); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/exportShowList") |
| | | public void exportShowList( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "项目服务明细"; |
| | | String[] header = {"门店", "预约时间","划扣时间","服务单号","服务名称","分类","客户名","次数","划扣单价","提成","美疗师","来源"}; |
| | | String[] column = {"SHOP_NAME", "yy_time", "consume_time", "SERVICE_NO", "PROJ_NAME", "TYPE_NAME", "VIP_NAME", "COUNT", "PRICE", "extract", "su_name", "SOURCE"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = beauticianStateDao.selectItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目服务明细统计 |
| | |
| | | public @ResponseBody |
| | | AjaxResult summaryItemDetail( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(beauticianStateDao.summaryItemDetail(param), |
| | | beauticianStateDao.summaryItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportSummaryItemDetail") |
| | | public void exportSummaryItemDetail( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "项目服务明细统计"; |
| | | String[] header = {"门店", "服务名称","分类","总次数","消耗金额"}; |
| | | String[] column = {"SHOP_NAME", "PROJ_NAME", "TYPE_NAME", "COUNT", "PRICE"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = beauticianStateDao.summaryItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.hive.dao.MoneyCardUseDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult showList( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(moneyCardUseDao.selectItemDetail(param), |
| | | moneyCardUseDao.selectItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportShowList") |
| | | public void exportShowList( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "客户充值卡明细"; |
| | | String[] header = {"客户名", "充值卡名称","到期日期","剩余本金","剩余赠送金额","是否使用完成","是否为会籍卡","备注","来源","订单号"}; |
| | | String[] column = {"VIP_NAME", "card_name","FAIL_TIME","real_money","gift_money","isOver","is_vip_car","remark","SOURCE","ORDER_NO"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = moneyCardUseDao.selectItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | /** |
| | |
| | | public @ResponseBody |
| | | AjaxResult summaryItemDetail( @RequestParam Map<String , Object> param) { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | if(!AppConstance.ZONGDIAN.equals(sysUsers.getShopName())){ |
| | | param.put("shopId",sysUsers.getShopId()); |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | return AjaxResult.buildSuccessInstance(moneyCardUseDao.summaryItemDetail(param), |
| | | moneyCardUseDao.summaryItemDetailTotal(param)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportSummaryItemDetail") |
| | | public void exportSummaryItemDetail( @RequestParam Map<String , Object> param, HttpServletResponse response) throws Exception { |
| | | SysUsers sysUsers = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | String title = "客户充值卡统计"; |
| | | String[] header = {"充值卡名称", "剩余总本金", "剩余总赠送金额"}; |
| | | String[] column = {"card_name", "real_money", "gift_money"}; |
| | | |
| | | if(!DataAuthUtil.hasAllShopAuth()){ |
| | | param.put("shopId", sysUsers.getShopId()); |
| | | } |
| | | List<Map<String, Object>> dataList = moneyCardUseDao.summaryItemDetail(param); |
| | | OrderStatisticsAction.exportExcel(title, header,column, dataList, response); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import com.matrix.system.hive.service.SysVipLevelService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | |
| | | import java.io.IOException; |
| | | import java.io.OutputStream; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.net.URLEncoder; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.util.ArrayList; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/exportExcel") |
| | | public void report(ModelMap model, HttpServletRequest request, HttpServletResponse response, |
| | | public void report(HttpServletResponse response, |
| | | SysVipInfo vipInfo) |
| | | throws IOException { |
| | | |
| | | QueryUtil.setQueryLimitCom(vipInfo ); |
| | | if (vipInfo.getVipType() != null && !(vipInfo.getVipType().equals(""))) { |
| | | vipInfo.setVipType(URLDecoder.decode(vipInfo.getVipType(), "UTF-8")); |
| | | } |
| | | if (vipInfo.getVipName() != null && !"".equals(vipInfo.getVipName())) { |
| | | vipInfo.setVipName(URLDecoder.decode(vipInfo.getVipName(), "UTF-8")); |
| | | } |
| | | if (vipInfo.getArrivalWay() != null && !"".equals(vipInfo.getArrivalWay())) { |
| | | vipInfo.setArrivalWay(URLDecoder.decode(vipInfo.getArrivalWay(), "UTF-8")); |
| | | } |
| | | if (vipInfo.getVipState() != null && !"".equals(vipInfo.getVipState())) { |
| | | vipInfo.setVipState(URLDecoder.decode(vipInfo.getVipState(), "UTF-8")); |
| | | } |
| | | |
| | | |
| | | List<ExcelSheetPO> res = new ArrayList<>(); |
| | | ExcelSheetPO orderSheet = new ExcelSheetPO(); |
| | | String title = "每日单据明细"; |
| | | String title = "会员资料"; |
| | | orderSheet.setSheetName(title); |
| | | orderSheet.setTitle(title); |
| | | String[] header = {"会员编号", "姓名", "性别", "手机号码", "会员类型", "会员活跃度", "到店途径", "健康顾问", "所属门店"}; |
| | |
| | | #\u5982\u679C\u6709\u5BC6\u7801 |
| | | redis.password=xcong123 |
| | | #\u5BA2\u6237\u7AEF\u8D85\u65F6\u65F6\u95F4\u5355\u4F4D\u662F\u6BEB\u79D2 \u9ED8\u8BA4\u662F2000 |
| | | redis.timeout=10000 |
| | | redis.timeout=10000 |
| | | redis.database=1 |
| | | redis_time_out=1800000 |
| | | |
| | |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="plates" column="plates" /> |
| | | <result property="shopAble" column="shop_able" /> |
| | | <result property="coustomer" column="coustomer" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | shop_able |
| | | ) |
| | | VALUES ( |
| | |
| | | #{companyId}, |
| | | #{plates}, |
| | | #{isDefault}, |
| | | #{coustomer}, |
| | | #{shopAble} |
| | | ) |
| | | </insert> |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | shop_able |
| | | ) |
| | | VALUES |
| | |
| | | #{item.companyId}, |
| | | #{item.plates}, |
| | | #{item.isDefault}, |
| | | #{item.coustomer}, |
| | | #{item.shopAble} |
| | | ) |
| | | </foreach> |
| | |
| | | <if test="_parameter.containsKey('shopAble')"> |
| | | shop_able = #{shopAble}, |
| | | </if> |
| | | <if test="_parameter.containsKey('coustomer')"> |
| | | coustomer = #{coustomer}, |
| | | </if> |
| | | </set> |
| | | WHERE role_id=#{roleId} |
| | | </update> |
| | |
| | | </if> |
| | | <if test="(shopAble!=null and shopAble!='') or (shopAble!='' and shopAble==0)"> |
| | | shop_able = #{shopAble}, |
| | | </if> |
| | | <if test="(coustomer!=null and coustomer!='') or (coustomer!='' and coustomer==0)"> |
| | | coustomer = #{coustomer}, |
| | | </if> |
| | | </set> |
| | | WHERE role_id=#{roleId} |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | shop_able |
| | | from sys_role |
| | | <where> |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | shop_able |
| | | from sys_role |
| | | where role_id=#{roleId} |
| | |
| | | company_id, |
| | | plates, |
| | | is_default, |
| | | coustomer, |
| | | shop_able |
| | | from sys_role |
| | | <where> |
| | |
| | | <result property="signOrder" column="SIGN_ORDER"/> |
| | | <result property="signDate" column="SIGN_DATE"/> |
| | | <result property="salarGrad" column="salarGrad"/> |
| | | <result property="allCustomer" column="allCustomer"/> |
| | | |
| | | <!-- 扩展属性 --> |
| | | <result property="shopName" column="SHOP_NAME"/> |
| | |
| | | select *, |
| | | (SELECT IF(COUNT(1)>0,'Y','N') FROM sys_role a WHERE FIND_IN_SET(a.role_id,role_ids) AND role_remark ='是') |
| | | shopRole, |
| | | (SELECT IF(COUNT(1)>0,'Y','N') FROM sys_role a WHERE FIND_IN_SET(a.role_id,role_ids) AND customer ='是') |
| | | allCustomer, |
| | | (select GROUP_CONCAT(role_name separator ',') from sys_role where find_in_set(role_id,role_ids) ) roleName, |
| | | (select com_name from sys_company where com_id=company_id) as company_name, |
| | | (select shop_name from sys_shop_info where shop_id=id) as SHOP_NAME |
| | |
| | | <select id="selectById" resultMap="SysUsersMap"> |
| | | select *, |
| | | (SELECT IF(COUNT(1)>0,'Y','N') FROM sys_role a WHERE FIND_IN_SET(a.role_id,role_ids) AND role_remark ='是') shopRole, |
| | | (SELECT IF(COUNT(1)>0,'Y','N') FROM sys_role a WHERE FIND_IN_SET(a.role_id,role_ids) AND customer ='是') |
| | | allCustomer, |
| | | (select GROUP_CONCAT(role_name separator ',') from sys_role where find_in_set(role_id,role_ids) ) roleName, |
| | | role_ids |
| | | from sys_users |
| | |
| | | select *, |
| | | (SELECT IF(COUNT(1)>0,'Y','N') FROM sys_role a WHERE FIND_IN_SET(a.role_id,role_ids) AND role_remark ='是') |
| | | shopRole, |
| | | (SELECT IF(COUNT(1)>0,'Y','N') FROM sys_role a WHERE FIND_IN_SET(a.role_id,role_ids) AND customer ='是') |
| | | allCustomer, |
| | | (select GROUP_CONCAT(role_name separator ',') from sys_role where find_in_set(role_id,role_ids) ) roleName, |
| | | role_ids |
| | | from sys_users |
| | |
| | | and a.orderType = #{record.orderType} |
| | | </if> |
| | | <if test="record.beginTimeVo != null "> |
| | | and a.ORDER_TIME >= #{record.beginTimeVo} |
| | | and a.pay_time >= #{record.beginTimeVo} |
| | | </if> |
| | | <if test="record.endTimeVo != null "> |
| | | <![CDATA[and a.ORDER_TIME <= #{record.endTimeVo}]]> |
| | | <![CDATA[and a.pay_time <= #{record.endTimeVo}]]> |
| | | </if> |
| | | |
| | | </if> |
| | |
| | | and a.SHOP_ID = #{record.shopId} |
| | | </if> |
| | | <if test="record.beginTimeVo != null "> |
| | | and a.ORDER_TIME >= #{record.beginTimeVo} |
| | | and a.pay_time >= #{record.beginTimeVo} |
| | | </if> |
| | | <if test="record.endTimeVo != null "> |
| | | <![CDATA[and a.ORDER_TIME <= #{record.endTimeVo}]]> |
| | | <![CDATA[and a.pay_time <= #{record.endTimeVo}]]> |
| | | </if> |
| | | </if> |
| | | </select> |
| | |
| | | select |
| | | a.ID id, |
| | | a.VIP_NAME vipName, |
| | | a.VIP_NO vipNo, |
| | | a.PHONE phone, |
| | | a.photo photo, |
| | | b.arriveCnt arriveCnt, |
| | |
| | | </select> |
| | | </div> |
| | | <div class="form-group mr-20"> |
| | | <label>订单日期</label> |
| | | <label>付款日期</label> |
| | | <input autocomplete="off" name="beginTimeVo" type="text" class="form-control datetimepicker" id="beginTime">- |
| | | <input autocomplete="off" name="endTimeVo" type="text" class="form-control datetimepicker" id="endTime"> |
| | | </div> |
| | |
| | | <th data-field="vipPhone">客户手机号</th> |
| | | <th data-field="orderTime" data-formatter="MGrid.getTime" |
| | | data-sortable="true">下单时间</th> |
| | | <th data-field="payTime" data-formatter="MGrid.getTime" |
| | | data-sortable="true">支付时间</th> |
| | | <th data-field="statu">订单状态</th> |
| | | <th data-field="total">订单总价</th> |
| | | <th data-field="zkTotal">折后价</th> |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/orderStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn? "+param; |
| | | window.location.href=basePath+"/admin/orderStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | |
| | | sortOrder:"desc" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/serviceStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/projUseStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/projUseStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |
| | | a: false, |
| | | c: false, |
| | |
| | | url:basePath+"/admin/projUseStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/projUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | |
| | | <!-- 功能按钮部分 --> |
| | | <div id="option-bar" > |
| | | <button matrix:fn="mdhyzl-edit" onclick="openEdit()" type="button" class="btn btn-success btn-sm "><i |
| | | <button matrix:btn="mdhyzl-edit" onclick="openEdit()" type="button" class="btn btn-success btn-sm "><i |
| | | class="fa fa-edit"></i>编辑 |
| | | </button> |
| | | <button matrix:fn="mdhyzl-gjjl" onclick="openFollow()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 跟进记录</button> |
| | | <button matrix:fn="mdhyzl-khda" onclick="openArchieves()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 客户档案</button> |
| | | <button matrix:btn="mdhyzl-excelOut" onclick="exportExcel()" type="button" class="btn btn-info btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | <button matrix:btn="mdhyzl-gjjl" onclick="openFollow()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 跟进记录</button> |
| | | <button matrix:btn="mdhyzl-khda" onclick="openArchieves()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 客户档案</button> |
| | | <button matrix:btn="mdhyzl-exportExcel" onclick="exportExcel()" type="button" class="btn btn-info btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | </div> |
| | | |
| | | <!-- 数据表格部分 --> |
| | |
| | | |
| | | //导出 |
| | | function exportExcel() { |
| | | var name = $("#search-text").attr("name"); |
| | | var value = $("#search-text").val(); |
| | | var vipType = $("#vipType").val(); |
| | | var arrivalWay = $("#arrivalWay").val(); |
| | | var vipState = $("#vipState").val(); |
| | | var staffId = $("#staffId").val(); |
| | | var shopId = $("#shopId").val(); |
| | | window.location.href = basePath+"/admin/vipInfo/exportExcel?vipType=" |
| | | + encodeURI(encodeURI(vipType)) + "&arrivalWay=" |
| | | + encodeURI(encodeURI(arrivalWay)) + "&"+name+"=" |
| | | + encodeURI(encodeURI(value)) + "&vipState=" |
| | | + encodeURI(encodeURI(vipState)) + "&shopId=" + shopId |
| | | + "&staffId=" + staffId; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/hiveErp/vipInfo/exportExcel?"+param; |
| | | } |
| | | |
| | | //打开编辑界面 |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | | |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |
| | | a: false, |
| | | c: false, |
| | |
| | | url:basePath+"/admin/moneyCardUseStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/moneyCardUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/orderStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/orderStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/orderStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/projUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |
| | | a: false, |
| | |
| | | sortOrder:"desc" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | url:basePath+"/admin/serviceStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/serviceStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |
| | |
| | | url:basePath+"/admin/projUseStatistics/showList" |
| | | }); |
| | | }); |
| | | |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/projUseStatistics/exportShowList?"+param; |
| | | } |
| | | |
| | | |
| | | |
| | | function initFunctionList() { |
| | | $.AjaxProxy({ |
| | | a: false, |
| | |
| | | url:basePath+"/admin/projUseStatistics/summaryItemDetail" |
| | | }); |
| | | }); |
| | | |
| | | function exportExcel(){ |
| | | var select_begin = $("#select_begin").val(); |
| | | var select_end = $("#select_end").val(); |
| | | var select_id = $("#select_id").val(); |
| | | var goodsName = $("#goodsName").val(); |
| | | var guwen = $("#goodsName").val(); |
| | | window.location.href=basePath+"/form/furnsale/exportFurn?startTime="+select_begin+"&endTime="+select_end+"&goodsName="+goodsName+"&shopId="+select_id+"&guwen="+guwen; |
| | | } |
| | | |
| | | |
| | | function exportExcel(){ |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/projUseStatistics/exportSummaryItemDetail?"+param; |
| | | } |
| | | |
| | | |
| | | function initFunctionList() { |
| | |
| | | <button matrix:fn="orderClub" onclick="openOrder()" type="button" class="btn btn-info btn-sm"><i class="fa fa-history"></i> 消费订单</button> |
| | | <button matrix:fn="serviceClub" onclick="openServiceOrder()" type="button" class="btn btn-info btn-sm"><i class="fa fa-history"></i> 服务单</button> |
| | | <button matrix:btn="vipInfo-add" onclick="openAdd()" type="button" class="btn btn-info btn-sm"><i class="fa fa-plus" ></i> 新增</button> |
| | | <button matrix:btn="vipInfo-excelOut" onclick="exportExcel()" type="button" class="btn btn-info btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | <button matrix:btn="vipInfo-exportExcel" onclick="exportExcel()" type="button" class="btn btn-info btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | <button matrix:btn="vipInfo-allot" onclick="updateVipInfos()" type="button" class="btn btn-info btn-sm"><i class="" ></i>批量设置健康顾问</button> |
| | | <button onclick="skinCheck()" type="button" class="btn btn-info btn-sm"><i class="" ></i>皮肤检测管理</button> |
| | | <button onclick="importVipInfo()" type="button" class="btn btn-info btn-sm"><i class="" ></i>导入会员</button> |
| | |
| | | } |
| | | |
| | | //导出 |
| | | function exportExcel() { |
| | | var name = $("#search-text").attr("name"); |
| | | var value = $("#search-text").val(); |
| | | var vipType = $("#vipType").val(); |
| | | var arrivalWay = $("#arrivalWay").val(); |
| | | var vipState = $("#vipState").val(); |
| | | var staffId = $("#staffId").val(); |
| | | window.location.href = basePath+"/admin/vipInfo/exportExcel?vipType=" |
| | | + encodeURI(encodeURI(vipType)) + "&arrivalWay=" |
| | | + encodeURI(encodeURI(arrivalWay)) + "&"+name+"=" |
| | | + encodeURI(encodeURI(value)) + "&vipState=" |
| | | + encodeURI(encodeURI(vipState)) |
| | | + "&staffId=" + staffId; |
| | | } |
| | | function exportExcel() { |
| | | var param=MForm.toUrlParam("#serchform"); |
| | | window.location.href=basePath+"/admin/vipInfo/exportExcel?"+param; |
| | | } |
| | | |
| | | </script> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | |
| | | <label class="col-sm-2 control-label">可查询所有门店客户</label> |
| | | <div class="col-sm-4"> |
| | | <select class="form-control" name="coustomer"> |
| | | <option th:selected="${obj?.coustomer == '是'}" >是</option> |
| | | <option th:selected="${obj?.coustomer == '否'}" >否</option> |
| | | </select> |
| | | </div> |
| | | <label class="col-sm-2 control-label">是否允许门店分配本角色</label> |
| | | <div class="col-sm-4"> |
| | | <select class="form-control" name="shopAble"> |