| | |
| | | */ |
| | | @Override |
| | | public PageResult<ProductAllVo> findAllList(Map<String, Object> params, SysUser sysUser){ |
| | | params.put("idNotIn",Arrays.asList(CommonConstant.PAY_USER_PRODUCT_ID, CommonConstant.REG_USER_PRODUCT_ID)); |
| | | List<ProductAllVo> list = baseMapper.findAllList(params); |
| | | if (list != null) { |
| | | for (int i = 0; i <list.size() ; i++) { |
| | |
| | | if (jsonRs) { |
| | | if (jsonRs.code == 401) { |
| | | config.removeToken(); |
| | | // var json=JSON.stringify(jsonRs) |
| | | // console.log(json,"jsonjsonjsonjsonjsonjsonjson") |
| | | var msg=jsonRs.msg; |
| | | if(msg.includes("Access token expired")){ |
| | | layer.msg('登录过期', {icon: 2, time: 1500}, function () { |
| | |
| | | }); |
| | | |
| | | var showModel = function (data) { |
| | | console.log(data) |
| | | layer.open({ |
| | | type: 1, |
| | | title: '查看产品', |
| | |
| | | var data = obj.data; |
| | | var layEvent = obj.event; |
| | | if (layEvent === "select") { |
| | | console.log(data,"333333") |
| | | admin.req('api-opration/productorderrecord/pdfname/'+data.diagnosticId+"/0/"+data.diagnosticHospitalId+"/"+data.diagnosticDepartId, {}, |
| | | function (data) { |
| | | if (data.code == 0) { |
| | |
| | | $('#sure').hide(); |
| | | } |
| | | form.val('app-form', data); |
| | | console.log(data,"1111111111111") |
| | | //重新装载科室 |
| | | getdepartment(data.hospitalId); |
| | | form.render(); |
| | |
| | | if(listData!=null&&listData.length>0){ |
| | | |
| | | listData.forEach((element,index) => { |
| | | debugger |
| | | if(index==0){ |
| | | max=element.endTime; |
| | | min=element.beginTime; |
| | |
| | | var hospitalProvince = hospitalData.hospitalProvince != null ? hospitalData.hospitalProvince : ""; |
| | | var hospitalCity = hospitalData.hospitalCity != null ? hospitalData.hospitalCity : ""; |
| | | var hospitalArea = hospitalData.hospitalArea != null ? hospitalData.hospitalArea : ""; |
| | | // console.log(hospitalProvince + " " + hospitalCity + " " +hospitalArea) |
| | | $("#hospitalAreas").val(hospitalProvince + " " + hospitalCity + " " + hospitalArea); |
| | | |
| | | //装载产品数据 |
| | |
| | | } |
| | | } |
| | | if (!strUtil.isEmpty(data.endTime)){ |
| | | console.log(contractEndTime,"contractEndTime") |
| | | console.log(data.endTime,"data.endTimedata.endTime") |
| | | if (dateUtil.compareDate(data.endTime,contractEndTime)) { |
| | | layer.msg("结束时间必须小于合同的结束时间!"); |
| | | return false; |
| | |
| | | form.on('submit(recharge-form-submit)', function (data) { |
| | | if (!isRun) { |
| | | layer.load(2); |
| | | debugger |
| | | var listData = admin.getTempData("t_tempProduct"); |
| | | // if (listData != null) { |
| | | var count= 0; |
| | |
| | | listDetailData.push(detailData); |
| | | }) |
| | | |
| | | if (listDetailData.length > 0) { |
| | | if (listDetailData.length <=0) { |
| | | var detailData = { |
| | | orderId: orderData.id + '', |
| | | proId: "0", |
| | | proType: 1, |
| | | proName: "软件服务周期", |
| | | isShare: 0, |
| | | ailightCount: 0, |
| | | recordCount: 0, |
| | | proBegintime: $("#contractBeginTime").val()+' 00:00:00' , |
| | | proEndtime: $("#contractEndTime").val()+' 00:00:00' , |
| | | orderAilightCount: 0, |
| | | orderRecordCount: 0, |
| | | }; |
| | | listDetailData.push(detailData) |
| | | } |
| | | //提交订单数据 |
| | | admin.req( |
| | | 'api-opration/productorderdetail/saveall', |
| | |
| | | }); |
| | | } |
| | | }, 'POST'); |
| | | } else { |
| | | layer.closeAll(); |
| | | layer.msg("充值数据成功!"); |
| | | isRun = false; |
| | | } |
| | | // layer.closeAll(); |
| | | // layer.msg("充值数据成功!"); |
| | | // isRun = false; |
| | | } else { |
| | | layer.msg(data.msg, { |
| | | icon: 2, |
| | |
| | | } |
| | | } |
| | | if (!strUtil.isEmpty(data.endTime)) { |
| | | console.log(contractEndTime, "contractEndTime") |
| | | console.log(data.endTime, "data.endTimedata.endTime") |
| | | if (dateUtil.compareDate(data.endTime, contractEndTime)) { |
| | | layer.msg("结束时间必须小于合同的结束时间!"); |
| | | return false; |
| | |
| | | layer.closeAll('loading'); |
| | | if (0 === data.code) { |
| | | let selected = false; |
| | | console.log(data.data) |
| | | let id = 0; |
| | | $("#departmentId").empty(); |
| | | $.each(data.data, function (index, item) { |
| | |
| | | layer.closeAll('loading'); |
| | | if (0 === data.code) { |
| | | let selected = false; |
| | | console.log(data.data) |
| | | $("#doctorId").empty(); |
| | | $.each(data.data, function (index, item) { |
| | | //往下拉菜单里添加元素 |
| | |
| | | } else { |
| | | selected = false |
| | | } |
| | | console.log(item) |
| | | $('#doctorId').append(new Option(item.doctorName, item.id, |
| | | false, selected)); |
| | | form.render('select', 'doctor_clients'); |