| | |
| | | coupon.setIllustrate(dataVo.getIllustrate()); |
| | | coupon.setDistributionMethod(dataVo.getDistributionMethod()); |
| | | coupon.setRedemptionMethod(dataVo.getExchangeMethod()); |
| | | if (dataVo.getExchangeMethod() != null) { |
| | | if (dataVo.getExchangeMethod() != null&&dataVo.getDistributionMethod()!=4) { |
| | | switch (dataVo.getExchangeMethod()) { |
| | | case 1: |
| | | coupon.setIntegral(BigDecimal.valueOf(dataVo.getRequiredPoints())); |
| | |
| | | } |
| | | return true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | WHERE storeId = #{storeId} |
| | | UNION ALL |
| | | SELECT DISTINCT couponId |
| | | |
| | | from t_coupon_city |
| | | WHERE provinceCode = #{cityCode}) o) |
| | | WHERE cityCode = #{cityCode}) o) |
| | | </if> |
| | | <if test="name != null"> |
| | | and `name` like concat('%', #{name}, '%') |
| | |
| | | import com.dsh.competition.entity.PaymentCompetition; |
| | | import com.dsh.competition.entity.UserCompetition; |
| | | import com.dsh.competition.feignclient.account.AppUserClient; |
| | | import com.dsh.competition.feignclient.account.StudentClient; |
| | | import com.dsh.competition.feignclient.account.model.AppUser; |
| | | import com.dsh.competition.feignclient.account.model.TStudent; |
| | | import com.dsh.competition.feignclient.course.CoursePackagePaymentClient; |
| | | import com.dsh.competition.feignclient.course.model.PaymentDeductionClassHour; |
| | | import com.dsh.competition.feignclient.model.*; |
| | |
| | | } |
| | | } |
| | | |
| | | @Resource |
| | | private StudentClient studentClient; |
| | | @PostMapping("/base/competition/getPeopleFromId1") |
| | | public List<CompetitionUser> getPeopleFromId1(@RequestBody GetPeopleQuery getPeopleQuery) { |
| | | try { |
| | | Page<UserCompetition> participantPage = new Page<>(getPeopleQuery.getOffset(), getPeopleQuery.getLimit()); |
| | | List<CompetitionUser> page = participantService.getPeopleFromId1(participantPage, getPeopleQuery.getId(), getPeopleQuery.getState()); |
| | | |
| | | List<CompetitionUser> users = new ArrayList<>(); |
| | | List<UserCompetition> coms = userCompetitionService.list(new QueryWrapper<UserCompetition>().eq("competitionId", getPeopleQuery.getId())); |
| | | for (UserCompetition com : coms) { |
| | | int number = com.getParticipantId(); |
| | | String numberString = Integer.toString(number); |
| | | int digitCount = numberString.length(); |
| | | if (digitCount!=9){ |
| | | TStudent tStudent = studentClient.queryById(number); |
| | | CompetitionUser competitionUser = new CompetitionUser(); |
| | | competitionUser.setName(tStudent.getName()); |
| | | competitionUser.setPhone(tStudent.getPhone()); |
| | | competitionUser.setSex(tStudent.getSex()); |
| | | competitionUser.setIdCard(tStudent.getIdCard()); |
| | | competitionUser.setState(tStudent.getState()); |
| | | users.add(competitionUser); |
| | | } |
| | | } |
| | | page.addAll(users); |
| | | |
| | | return page; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/base/competition/getPeoples") |
| | | @ResponseBody |
| | | public List<CompetitionUser> getPeoples(@RequestBody GetPeopleQuery getPeopleQuery) { |
| | |
| | | public interface ParticipantMapper extends BaseMapper<Participant> { |
| | | Page<CompetitionUser> getPeopleFromId(@Param("participantPage") Page<UserCompetition> participantPage, @Param("id") Integer id, @Param("state") Integer state); |
| | | |
| | | |
| | | List<CompetitionUser> getPeopleFromId1(@Param("participantPage") Page<UserCompetition> participantPage, @Param("id") Integer id, @Param("state") Integer state); |
| | | |
| | | List<CompetitionUser> getPeoples(@Param("id") Integer id, @Param("state") Integer state); |
| | | } |
| | |
| | | void saveParticipant(SaveParticipant saveParticipant) throws Exception; |
| | | |
| | | Page<CompetitionUser> getPeopleFromId(Page<UserCompetition> participantPage, Integer id, Integer state); |
| | | List<CompetitionUser> getPeopleFromId1(Page<UserCompetition> participantPage, Integer id, Integer state); |
| | | |
| | | List<CompetitionUser> getPeoples(Integer id, Integer state); |
| | | } |
| | |
| | | public Page<CompetitionUser> getPeopleFromId(Page<UserCompetition> participantPage, Integer id, Integer state) { |
| | | return this.baseMapper.getPeopleFromId(participantPage, id, state); |
| | | } |
| | | @Override |
| | | public List<CompetitionUser> getPeopleFromId1(Page<UserCompetition> participantPage, Integer id, Integer state) { |
| | | return this.baseMapper.getPeopleFromId1(participantPage, id, state); |
| | | } |
| | | |
| | | @Override |
| | | public List<CompetitionUser> getPeoples(Integer id, Integer state) { |
| | |
| | | and t3.payStatus =3 |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getPeopleFromId1" resultType="com.dsh.competition.feignclient.model.CompetitionUser"> |
| | | select t2.name,t2.gender sex,t2.phone ,t2.idcard idCard ,t3.payStatus state |
| | | from t_user_competition t1 left join t_participant t2 on t1.participantId = t2.id |
| | | left join t_payment_competition t3 on t1.paymentCompetitionId = t3.id |
| | | where t1.competitionId =#{id} and t2.id is not null and t3.id is not null |
| | | <if test="state !=null and state !='' and state ==1"> |
| | | and t3.payStatus in (1,2) |
| | | </if> |
| | | <if test="state !=null and state !='' and state ==3"> |
| | | and t3.payStatus =3 |
| | | </if> |
| | | </select> |
| | | <select id="getPeoples" resultType="com.dsh.competition.feignclient.model.CompetitionUser"> |
| | | select t2.id, t2.name,t2.gender sex,t2.phone ,t2.idcard idCard ,t3.payStatus state |
| | | from t_user_competition t1 left join t_participant t2 on t1.participantId = t2.id |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/queryAble") |
| | | public Integer queryAble(@RequestBody Integer id) { |
| | | |
| | | int coursePackageId = orderStudentService.count(new QueryWrapper<CoursePackageOrderStudent>().eq("coursePackageId", id)); |
| | | if (coursePackageId>0){ |
| | | return 1; |
| | | }else { |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | |
| | | //获取学员课时数信息 |
| | | @RequestMapping("/getInfo") |
| | | @ResponseBody |
| | |
| | | studentClassInfo.setHasHours(restHours); |
| | | studentClassInfo.setInDate(minDate); |
| | | System.out.println("===========>" + studentClassInfo); |
| | | |
| | | // appUserClient.queryGift(tStudentId); |
| | | |
| | | return studentClassInfo; |
| | | } |
| | |
| | | |
| | | @RequestMapping("/insertBack") |
| | | @ResponseBody |
| | | public void insertBack(@RequestBody InsertBackDto insertBackDto) { |
| | | public Integer insertBack(@RequestBody InsertBackDto insertBackDto) { |
| | | |
| | | List<MoneyBack> ids = moneyBackService.list(new QueryWrapper<MoneyBack>().eq("ids", insertBackDto.getIds())); |
| | | |
| | | if (ids!=null){ |
| | | return 1 ; |
| | | } |
| | | |
| | | |
| | | MoneyBack moneyBack = new MoneyBack(); |
| | | moneyBack.setStudentId(insertBackDto.getId()); |
| | |
| | | } |
| | | |
| | | orderStudentService.updateBatchById(pays); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | |
| | | if (coursePackage.getType()==1){ |
| | | list = this.baseMapper.queryRegistrationRecord(page, coursePackageId, userIds, studentIds);}else { |
| | | list = this.baseMapper.queryRegistrationRecord(page, coursePackageId, userIds, studentIds); |
| | | }else { |
| | | list = this.baseMapper.queryRegistrationRecord1(page, coursePackageId, userIds, studentIds); |
| | | } |
| | | for (Map<String, Object> map : list) { |
| | |
| | | if (coursePackage.getType()==1) { |
| | | studentId = Integer.valueOf(map.get("studentId").toString()); |
| | | }else { |
| | | studentId = Integer.valueOf(map.get("studentIds").toString()); |
| | | studentId = Integer.valueOf(map.get("studentIds").toString().split(",")[0]); |
| | | } |
| | | |
| | | TAppUser appUser = appuClient.queryAppUser1(appUserId); |
| | |
| | | map.put("studentName", null != student ? student.getName() : ""); |
| | | Integer integer = cpsMapper.selectCount(new QueryWrapper<CoursePackageStudent>().eq("appUserId", appUserId) |
| | | .eq("studentId", studentId).eq("coursePackagePaymentId", id).eq("signInOrNot", 2)); |
| | | |
| | | int count = coursePackageStudentService.count(new QueryWrapper<CoursePackageStudent>().eq("coursePackageId", coursePackageId).eq("studentId", studentId).eq("signInOrNot",2)); |
| | | |
| | | map.put("absencesNumber", count); |
| | | |
| | | map.put("already", integer); |
| | | } |
| | | return list; |
| | |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | | private ICoursePackageOrderStudentService orderStudentService; |
| | | /** |
| | | * 修改数据 |
| | | * |
| | |
| | | coursePackageSchedulingQueryWrapper.notIn("id", collect); |
| | | } |
| | | coursePackageSchedulingService.remove(coursePackageSchedulingQueryWrapper); |
| | | |
| | | int coursePackageId = orderStudentService.count(new QueryWrapper<CoursePackageOrderStudent>().eq("coursePackageId", coursePackage.getId())); |
| | | if (coursePackageId>0) { |
| | | this.baseMapper.updateById(coursePackage); |
| | | |
| | | //生成排课数据 |
| | |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | void cancel(Integer id); |
| | | @PostMapping("/base/competition/getPeopleFromId") |
| | | Page<CompetitionUser> getPeopleFromId(GetPeopleQuery getPeopleQuery); |
| | | |
| | | |
| | | @PostMapping("/base/competition/getPeopleFromId1") |
| | | List<CompetitionUser> getPeopleFromId1(@RequestBody GetPeopleQuery getPeopleQuery); |
| | | @PostMapping("/base/competition/getPeoples") |
| | | List<CompetitionUser> getPeoples(@RequestBody GetPeopleQuery getPeopleQuery); |
| | | @PostMapping("/base/competition/listUser") |
| | |
| | | @PostMapping("/courdent/queryIdsByStore") |
| | | List<Integer> queryIdsByStore(Integer objectId); |
| | | |
| | | |
| | | |
| | | @PostMapping("/courdent/queryAble") |
| | | Integer queryAble(Integer id); |
| | | } |
| | |
| | | |
| | | @PostMapping("/courdent/insertBack") |
| | | |
| | | void insertBack(@RequestBody InsertBackDto insertBackDto); |
| | | Integer insertBack(@RequestBody InsertBackDto insertBackDto); |
| | | |
| | | @RequestMapping("/courdent/changeStatus") |
| | | void changeStatus(@RequestParam("id")Integer id); |
| | |
| | | return coursePackagePaymentConfigClient.queryCoursePackagePaymentConfigList(id); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/getCoursePackageType") |
| | | @ResponseBody |
| | | public Integer getCoursePackageType(Integer id) { |
| | | TCoursePackage coursePackage = coursePackageClient.queryById(id); |
| | | return coursePackage.getType(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import sun.rmi.runtime.Log; |
| | | |
| | | import javax.jws.soap.SOAPBinding; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.OutputStream; |
| | | import java.text.DateFormat; |
| | |
| | | |
| | | @RequestMapping(value = "/listUser/{id}") |
| | | @ResponseBody |
| | | public Object listUser(@PathVariable Integer id,Integer state) { |
| | | public Object listUser(@PathVariable Integer id,Integer state, Integer offset,Integer limit) { |
| | | try { |
| | | Page<Object> page = new PageFactory<>().defaultPage(); |
| | | Page<CompetitionUser> data = competitionClient.getPeopleFromId |
| | | (new GetPeopleQuery(page.getSize(),page.getCurrent(),id,state)); |
| | | return super.packForBT(data); |
| | | // Page<Object> page = new PageFactory<>().defaultPage(); |
| | | // Page<CompetitionUser> data = competitionClient.getPeopleFromId(new GetPeopleQuery(limit,offset,id,state)); |
| | | List <CompetitionUser> data = competitionClient.getPeopleFromId1(new GetPeopleQuery(limit,offset,id,state)); |
| | | return data; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ERROR; |
| | |
| | | System.out.println("=========coursePackagePaymentConfig=============>" + coursePackagePaymentConfig); |
| | | // model.addAttribute("couponIds", "3,2"); |
| | | } |
| | | |
| | | |
| | | Integer able = coursePackageClient.queryAble(id); |
| | | |
| | | model.addAttribute("able",able); |
| | | |
| | | return PREFIX + "coursePackage_edit.html"; |
| | | } |
| | | |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.management.relation.RelationService; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | |
| | | return PREFIX + "tStudentEdit_first.html"; |
| | | } |
| | | |
| | | @Autowired |
| | | private IMenuService menuService; |
| | | |
| | | @Autowired |
| | | private IRelationService relationService; |
| | | @RequestMapping("/tStudent_info/{tStudentId}") |
| | | public String tStudentInfo(@PathVariable("tStudentId") Integer tStudentId, Model model) { |
| | | System.out.println("======>t"+tStudentId); |
| | |
| | | |
| | | |
| | | System.out.println("=======controller====studentClassInfo==="+studentClassInfo); |
| | | |
| | | |
| | | User user = UserExt.getUser(); |
| | | |
| | | List<Relation> list = relationService.list(new QueryWrapper<Relation>().eq("menuid", 391).eq("roleid", user.getRoleid())); |
| | | if (!list.isEmpty()){ |
| | | model.addAttribute("back",false); |
| | | }else { |
| | | model.addAttribute("back",true); |
| | | |
| | | } |
| | | |
| | | return PREFIX + "tStudentEdit.html"; |
| | | } |
| | | |
| | |
| | | insertBackDto.setIds(ids); |
| | | System.out.println("=====insertBackDto========"+insertBackDto); |
| | | |
| | | courseStuddentClient.insertBack(insertBackDto); |
| | | Integer i = courseStuddentClient.insertBack(insertBackDto); |
| | | |
| | | if (i == 1){ |
| | | return ResultUtil.error("当前课程已在退费申请中"); |
| | | } |
| | | //取消排课 |
| | | courseStuddentClient.cancel(ids); |
| | | System.out.println("============学员查询接口========="); |
| | | // courseStuddentClient.cancel(ids); |
| | | // System.out.println("============学员查询接口========="); |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | |
| | | courseStuddentClient.zeroClass(id); |
| | | |
| | | System.out.println("============学员查询接口========="); |
| | | return new ResultUtil<>(0,0,"同意成功",null,null); |
| | | return new ResultUtil<>(0,0,"已同意",null,null); |
| | | } |
| | | |
| | | @RequestMapping("/noStatus/{id}") |
| | |
| | | // courseStuddentClient.zeroClass(id); |
| | | |
| | | System.out.println("============学员查询接口========="); |
| | | return new ResultUtil<>(0,0,"同意成功",null,null); |
| | | return new ResultUtil<>(0,0,"已拒绝",null,null); |
| | | } |
| | | |
| | | /** |
| | |
| | | // CoursePackageScheduling coursePackageScheduling = coursePackageSchedulingClient.queryCoursePackageSchedulingById(id); |
| | | |
| | | List<CoursePackageScheduling> coursePackageSchedulings = coursePackageSchedulingClient.queryCoursePackageSchedulingsById(id); |
| | | CoursePackageScheduling coursePackageScheduling1 = coursePackageSchedulings.get(0); |
| | | Date classDate = coursePackageScheduling1.getEndDate(); |
| | | |
| | | if (new Date().before(classDate)){ |
| | | return ResultUtil.error("课程未结束,无法消课"); |
| | | } |
| | | List<Long> integers = new ArrayList<>(); |
| | | for (CoursePackageScheduling coursePackageScheduling : coursePackageSchedulings) { |
| | | integers.add(coursePackageScheduling.getId()); |
| | |
| | | <input type="hidden" id="id" value="${item.id}"> |
| | | <input type="hidden" id="type" name="type" value="${type}"> |
| | | <input type="hidden" id="objectType" value="${objectType}"> |
| | | <input type="hidden" id="able" value="${able}"> |
| | | @if(objectType==1){ |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*所在省:</label> |
| | |
| | | <div class="col-sm-4"> |
| | | |
| | | @for(obj in classWeeks){ |
| | | <input type="checkbox" name="classWeeks" value="${obj.value}" ${obj.checked ? 'checked' : ''}> ${obj.value} |
| | | <input type="checkbox" name="classWeeks" value="${obj.value}" ${able==1 ? 'disabled' :'' } ${obj.checked ? 'checked' : ''}> ${obj.value} |
| | | @} |
| | | <!-- <input class="form-control" id="classStartTime" name="classStartTime" value="${classTime}" placeholder="请选择">--> |
| | | </div> |
| | |
| | | |
| | | |
| | | <div style="display:flex"> |
| | | <input class="form-control" value="${time1}" id="classStartTime" name="classStartTime" placeholder="请选择" style="width: 200px;"> |
| | | <i class="fa fa-plus-circle" style="font-size: 24px; margin-left: 10px;" onclick="addTime()"></i> |
| | | <input class="form-control" value="${time1}" id="classStartTime" name="classStartTime" placeholder="请选择" style="width: 200px;" ${able==1 ? 'disabled' :'' }> |
| | | <i class="fa fa-plus-circle" style="font-size: 24px; margin-left: 10px;" onclick="${able != 1 ? 'addTime()' : ''}" ${able == 1 ? 'disabled' : ''}></i> |
| | | </div> |
| | | @for(o in times!){ |
| | | |
| | | <div style="display:flex"> |
| | | <input class="form-control" value="${o}" id="classStartTime" name="classStartTime" placeholder="请选择" style="width: 200px;"> |
| | | <i class="fa fa-trash-o" style="font-size:24px" onclick="removePrice1(this)"></i> |
| | | <input class="form-control" value="${o}" id="classStartTime" name="classStartTime" placeholder="请选择" style="width: 200px;" ${able==1 ? 'disabled' :'' }> |
| | | <i class="fa fa-trash-o" style="font-size:24px" onclick="${able != 1 ? 'removePrice1(this)' : ''}" ${able == 1 ? 'disabled' : ''}></i> |
| | | </div> |
| | | @} |
| | | </div> |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <div class="form-group" id="toHidden"> |
| | | <label class="col-sm-3 control-label">*课时规格:</label> |
| | | <div class="col-sm-9"> |
| | | <select style="width: 300px" class="form-control" id="courseTime" name="store" onchange="TQuestion.getCoursePackagePrice(this)"> |
| | |
| | | |
| | | @if(type==1){ |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label">*门店类型:</label> |
| | | <label class="col-sm-3 control-label">*赛事类型:</label> |
| | | <div class="col-sm-9"> |
| | | <input type="radio" name="type" value="1" onclick="updateType(1)" checked > 平台门店 |
| | | <input type="radio" name="type" value="2" onclick="updateType(2)" id="radio1" > 运营商门店 |
| | | <input type="radio" name="type" value="1" onclick="updateType(1)" checked > 平台赛事 |
| | | <input type="radio" name="type" value="2" onclick="updateType(2)" id="radio1" > 运营赛事 |
| | | </div> |
| | | </div> |
| | | <div id="yys" hidden> |
| | |
| | | "type": "images", |
| | | "id": "u:76216a114f2c", |
| | | "name": "images", |
| | | "value":`${images}`, |
| | | "value":`${images!}`, |
| | | "delimiter":";" |
| | | }, |
| | | // { |
| | |
| | | "id": "u:e6a3e106fac0", |
| | | "tpl": "退费申请:", |
| | | "inline": true, |
| | | |
| | | "wrapperComponent": "", |
| | | "style": { |
| | | "paddingBottom": "100", |
| | |
| | | "id": "u:38a6f5402e72", |
| | | "level": "link" |
| | | }, |
| | | @if(shiro.hasPermission("//backpass")){ |
| | | |
| | | { |
| | | "type": "button", |
| | | "label": "同意", |
| | |
| | | }, |
| | | "reload": "pay,crud" |
| | | } |
| | | @} |
| | | |
| | | ], |
| | | "placeholder": "-", |
| | | "label": "操作" |
| | |
| | | "tpl": "        已报名课程:", |
| | | "wrapperComponent": "" |
| | | }, |
| | | @if(shiro.hasPermission("/bback")){ |
| | | |
| | | { |
| | | "type": "button", |
| | | "label": "退费", |
| | | "visible": true, |
| | | "actionType": "ajax", |
| | | "id": "u:38a6f5402e72", |
| | | "onEvent": { |
| | |
| | | } |
| | | } |
| | | } |
| | | @} |
| | | |
| | | ], |
| | | "itemActions": [ |
| | | ], |
| | |
| | | }; |
| | | TQuestion.close = function() { |
| | | parent.layer.close(window.parent.TQuestion.layerIndex); |
| | | window.close(); |
| | | } |
| | | /** |
| | | * 检查是否选中 |
| | |
| | | layer.closeAll('page'); |
| | | TQuestion.close(); |
| | | Feng.success("添加成功"); |
| | | window.close(); |
| | | } |
| | | |
| | | }, |
| | |
| | | {title: '所在省', field: 'province', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '所在市', field: 'city', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '预约门店', field: 'name', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '预约场地', field: 'nextName', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '预约场地', field: 'siteName', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '姓名', field: 'booker', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '联系电话', field: 'phone', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '预约时间段', field: 'times', visible: true, align: 'center', valign: 'middle'}, |
| | |
| | | align: 'center', |
| | | valign: 'middle', |
| | | formatter: function(value, row) { |
| | | if (row.status === 0 ) { |
| | | if (value) { |
| | | var moneyValues = value.split(','); |
| | | |
| | | var moneyText = moneyValues[0] + '元/' + moneyValues[1] + '币'; |
| | | return moneyText;} |
| | | } else { |
| | | // if (row.status === 0 ) { |
| | | // if (value) { |
| | | // var moneyValues = value.split(','); |
| | | // |
| | | // var moneyText = moneyValues[0] + '元/' + moneyValues[1] + '币'; |
| | | // return moneyText;} |
| | | // } else { |
| | | console.log("看看支付方式") |
| | | console.log(row.payType) |
| | | if (row.payType == "手动支付"){ |
| | |
| | | } |
| | | |
| | | |
| | | } |
| | | // } |
| | | |
| | | } |
| | | }, |
| | |
| | | if (!window.parent.document.getElementById("cityCode")== null){ |
| | | cityCode = window.parent.document.getElementById("cityCode").value; |
| | | } |
| | | table.queryParams = {'cityCode': cityCode, |
| | | table.queryParams = {'cityCode': window.parent.document.getElementById("cityCode").value, |
| | | 'storeId': window.parent.document.getElementById("storeId").value} |
| | | table.height=600 |
| | | TCoupon.table = table.init(); |
| | |
| | | } |
| | | ajax.set("id",oneId); |
| | | ajax.start(); |
| | | |
| | | |
| | | |
| | | var ajax1 = new $ax(Feng.ctxPath + "/cpPayment/getCoursePackageType", function(data){ |
| | | if(data!=null){ |
| | | console.log("data ===="+data) |
| | | if (data != 1){ |
| | | document.getElementById("toHidden").style.display = "none"; |
| | | |
| | | var selectElement = document.getElementById('courseTime'); |
| | | var selectedOption = selectElement.options[1]; |
| | | console.log("插入") |
| | | var cashPayment = selectedOption.getAttribute('data-cashpayment'); |
| | | var playPaiCoin = selectedOption.getAttribute('data-playpaicoin'); |
| | | console.log(cashPayment) |
| | | console.log(playPaiCoin) |
| | | $("#cashPayment").val(cashPayment); |
| | | $("#playPaiCoin").val(playPaiCoin); |
| | | |
| | | |
| | | }else { |
| | | document.getElementById("toHidden").style.display = "block"; |
| | | |
| | | } |
| | | |
| | | } |
| | | }); |
| | | |
| | | ajax1.set("id",oneId); |
| | | ajax1.start(); |
| | | |
| | | }; |
| | | TQuestion.getCoursePackagePrice = function (e) { |
| | | var c1 = document.getElementById("c1"); |
| | |
| | | * 初始化表格的列 |
| | | */ |
| | | TCompetition.initColumn = function () { |
| | | var index = 0 |
| | | |
| | | return [ |
| | | {field: 'selectItem', radio: true}, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '序号', field: 'id', visible: false, align: 'center', valign: 'middle',value:index+1}, |
| | | {title: '序号', valign: 'middle', formatter: function (value, row, index) { |
| | | return index + 1; // 使用行索引作为序号值 |
| | | }}, |
| | | {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | }, |
| | | {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle', |
| | |
| | | $(function () { |
| | | var defaultColunms = TCompetition.initColumn(); |
| | | var table = new BSTable(TCompetition.id, "/tCompetition/listUser/"+$("#id").val(), defaultColunms); |
| | | table.setPaginationType("server"); |
| | | table.setPaginationType("client"); |
| | | TCompetition.table = table.init(); |
| | | }); |
| | | |
| | |
| | | var marker; |
| | | //搜索地图 |
| | | TCarInfoDlg.searchByStationName = function(e,type){ |
| | | var keyword="成都"; |
| | | var keyword=""; |
| | | if(type==2){ |
| | | keyword = $(e).parent().prev().find("input").val(); |
| | | }else { |
| | |
| | | var marker; |
| | | //搜索地图 |
| | | TCarInfoDlg.searchByStationName = function(e,type){ |
| | | var keyword="成都"; |
| | | var keyword=""; |
| | | if(type==2){ |
| | | keyword = $(e).parent().prev().find("input").val(); |
| | | }else { |