| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">开通服务</label> |
| | | <label class="layui-form-label">服务类型</label> |
| | | <div class="layui-input-block" style="width: 150px;"> |
| | | <select id="service" name="service" lay-filter="service" placeholder="请选择服务" |
| | | lay-verify="required" required> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 80px;">客服渠道</label> |
| | | <div class="layui-input-block" style="width: 150px;"> |
| | | <input name="price" id="channel" lay-verify="required" required placeholder="客服渠道地址" class="layui-input" maxlength="50"/> |
| | | <input name="price" id="channel" placeholder="客服渠道地址" class="layui-input" maxlength="50"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | var form = layui.form; |
| | | var config = layui.config; |
| | | var layer = layui.layer; |
| | | var util = layui.util; |
| | | var admin = layui.admin; |
| | | var autocomplete = layui.autocomplete; |
| | | var formSelects = layui.formSelects; |
| | |
| | | getdepartment(adisoryDoctor.hospitalId,adisoryDoctor.deptId); |
| | | |
| | | form.val('app-form-add', adisoryDoctor); |
| | | |
| | | $("#price").val(adisoryDoctor.price / 100); |
| | | $("#doctorName").val(adisoryDoctor.doctorName); |
| | | $("#bindPhone").attr("Readonly",true); |
| | | form.render(); |
| | | |
| | | admin.req('api-opration/appointment/queryByAdvisoryId/'+$("#id").val(), { |
| | | |
| | | }, function (data) { |
| | | layer.closeAll('loading'); |
| | | if (0 === data.code) { |
| | |
| | | }); |
| | | } |
| | | }, 'get'); |
| | | |
| | | |
| | | form.render(); |
| | | } |
| | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <select id="type" lay-filter="role_clients"> |
| | | <option value="">咨询类型</option> |
| | | <option value="">服务类型</option> |
| | | <option value="1">图文</option> |
| | | <option value="2">电话</option> |
| | | <option value="3">图文/电话</option> |
| | | </select> |
| | | <select id="status" lay-filter="role_clients"> |
| | | <option value="">咨询状态</option> |
| | |
| | | },{ |
| | | field: 'type', |
| | | width: "90", |
| | | title: '类型', |
| | | title: '服务类型', |
| | | fixed: 'left', |
| | | templet: function (d) { |
| | | if (d.type == 1) { |
| | |
| | | <div class="layui-input-block" id="createTime" style="width: 245px;"/> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">开通服务</label> |
| | | <label class="layui-form-label">咨询状态</label> |
| | | <div class="layui-input-block" id="service"/> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 10px;"></label> |
| | | <div style="width: 450px;height:100px; padding-left: 40px; text-align: left" id="img"/> |
| | | <div style="width: 450px;max-height:100px; min-height: 10px; padding-left: 40px; text-align: left" id="img"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | $("#createTime").html(adisory.createTime); |
| | | |
| | | if (adisory.type == 1) { |
| | | if (adisory.consultationStatus == 1) { |
| | | $("#service").html("待咨询"); |
| | | } else if (adisory.type == 2) { |
| | | } else if (adisory.consultationStatus == 2) { |
| | | $("#service").html("咨询中"); |
| | | } else if (adisory.type == 3) { |
| | | } else if (adisory.consultationStatus == 3) { |
| | | $("#service").html("待完成"); |
| | | } else if (adisory.type == 4) { |
| | | } else if (adisory.consultationStatus == 4) { |
| | | $("#service").html("已完成"); |
| | | } else if (adisory.consultationStatus == -1) { |
| | | $("#service").html("已取消"); |
| | | } |
| | | |
| | | $("#doctor").html(adisory.doctorName); |
| | |
| | | if (adisory.img !== null) { |
| | | var url = adisory.img.split(","); |
| | | for (var i = 0; i < url.length; i++) { |
| | | if(url[i] != ''){ |
| | | content += "<img src='" + url[i] + "' style='width: 25%;height: 100%;cursor:pointer;' onclick='tipImg(this,1)'/> "; |
| | | } |
| | | } |
| | | } |
| | | $("#img").html(content); |
| | | |
| | | $("#one").html(adisory.age + "/" + adisory.childSex == 0 ? "女" : "男"); |
| | | $("#two").html(adisory.targetHeight + "/" + adisory.targetHeightPer); |
| | | $("#three").html(adisory.height + "/" + adisory.heightPer); |
| | | $("#four").html(adisory.weight + "/" + adisory.bmi); |
| | | $("#five").html(adisory.foreastHeight); |
| | | $("#two").html(keepOneDecimal(adisory.targetHeight) + "/" + keepOneDecimal(adisory.targetHeightPer)); |
| | | $("#three").html(keepOneDecimal(adisory.height) + "/" + keepOneDecimal(adisory.heightPer)); |
| | | $("#four").html(keepOneDecimal(adisory.weight) + "/" + keepOneDecimal(adisory.bmi)); |
| | | $("#five").html(keepOneDecimal(adisory.foreastHeight)); |
| | | |
| | | if(adisory.type == 2) { |
| | | $("#appointmentTime").html(adisory.appointmentTime); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | function keepOneDecimal(obj){ |
| | | if(obj == '' || obj == null){ |
| | | return ""; |
| | | } |
| | | if(isNaN(obj)){ |
| | | return obj; |
| | | } |
| | | return parseFloat(obj).toFixed(1); |
| | | } |
| | | </script> |
| | |
| | | }, { |
| | | field: 'graphicAdvisoryCount', |
| | | width: "150", |
| | | title: '图文咨询当日创建', |
| | | title: '图文当日创建', |
| | | align: 'center', |
| | | fixed: 'left' |
| | | }, { |
| | | field: 'graphicAdvisoryDoneCount', |
| | | width: "100", |
| | | title: '当日完成', |
| | | width: "150", |
| | | title: '图文当日完成', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | }, { |
| | | field: 'phoneAdvisoryCount', |
| | | width: "150", |
| | | title: '电话咨询当日创建', |
| | | title: '电话当日创建', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | }, { |
| | | field: 'phoneAdvisoryConnectCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日通话', |
| | | title: '电话当日通话', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | field: 'phoneAdvisoryDoneCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日完成', |
| | | title: '电话当日完成', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | field: 'phoneAdvisoryCanncelCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日取消', |
| | | title: '电话当日取消', |
| | | fixed: 'left' |
| | | } |
| | | ] |
| | |
| | | }, { |
| | | field: 'graphicAdvisoryCount', |
| | | width: "150", |
| | | title: '图文咨询当日创建', |
| | | title: '图文当日创建', |
| | | align: 'center', |
| | | fixed: 'left' |
| | | }, { |
| | | field: 'graphicAdvisoryDoneCount', |
| | | width: "100", |
| | | title: '当日完成', |
| | | width: "150", |
| | | title: '图文当日完成', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | }, { |
| | | field: 'phoneAdvisoryCount', |
| | | width: "150", |
| | | title: '电话咨询当日创建', |
| | | title: '电话当日创建', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | }, { |
| | | field: 'phoneAdvisoryConnectCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日通话', |
| | | title: '电话当日通话', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | field: 'phoneAdvisoryDoneCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日完成', |
| | | title: '电话当日完成', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | field: 'phoneAdvisoryCanncelCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日取消', |
| | | title: '电话当日取消', |
| | | fixed: 'left' |
| | | } |
| | | ] |
| | |
| | | }, { |
| | | field: 'graphicAdvisoryCount', |
| | | width: "150", |
| | | title: '图文咨询当日创建', |
| | | title: '图文当日创建', |
| | | align: 'center', |
| | | fixed: 'left' |
| | | }, { |
| | | field: 'graphicAdvisoryDoneCount', |
| | | width: "100", |
| | | title: '当日完成', |
| | | width: "150", |
| | | title: '图文当日完成', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | }, { |
| | | field: 'phoneAdvisoryCount', |
| | | width: "150", |
| | | title: '电话咨询当日创建', |
| | | title: '电话当日创建', |
| | | align: 'center', |
| | | fixed: 'left', |
| | | }, { |
| | | field: 'phoneAdvisoryConnectCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日通话', |
| | | title: '电话当日通话', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | field: 'phoneAdvisoryDoneCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日完成', |
| | | title: '电话当日完成', |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | field: 'phoneAdvisoryCanncelCount', |
| | | width: "100", |
| | | width: "150", |
| | | align: 'center', |
| | | title: '当日取消', |
| | | title: '电话当日取消', |
| | | fixed: 'left' |
| | | } |
| | | ] |