| | |
| | | <div class="layui-form toolbar"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <input type="text" name="date" id="datebegin" lay-verify="date" autocomplete="off" |
| | | <input type="text" name="date" id="datebegin" lay-verify="date" |
| | | class="layui-input search-input" /> 至  |
| | | <input type="text" name="date" id="dateend" lay-verify="date" autocomplete="off" |
| | | <input type="text" name="date" id="dateend" lay-verify="date" |
| | | class="layui-input search-input" />  |
| | | <input id="childName" class="layui-input search-input" type="text" placeholder="按患者名" />  |
| | | <input id="diagnosticDoctorName" class="layui-input search-input" type="text" |
| | | <input id="childName" class="layui-input search-input" type="text" placeholder="按患者名" />  |
| | | <input id="diagnosticDoctorName" class="layui-input search-input" autocomplete="off" type="text" |
| | | placeholder="按诊断医生名" />  |
| | | <input id="hospitalName" class="layui-input search-input" type="text" placeholder="按医院名,必选条件!" |
| | | <input id="hospitalName" class="layui-input search-input" type="text" placeholder="按医院名,必选条件!" |
| | | autocomplete="off" /></div>  |
| | | <button id="diagnostic-btn-search" class="layui-btn icon-btn permissions" permissions="diagnostic-get"> |
| | | <i class="layui-icon"></i>搜索</button> |
| | |
| | | headers: { 'Authorization': 'Bearer ' + config.getToken().access_token }, |
| | | page: true, |
| | | cols: [[ |
| | | { field: 'diagnosticHospitalName', width: 300, title: '医院名称' }, |
| | | { field: 'diagnosticDepartName', width: 100, title: '科室名称' }, |
| | | { field: 'diagnosticDoctorName', width: 100, title: '医生姓名' }, |
| | | { field: 'childName', width: 100, title: '患者姓名' }, |
| | | { field: 'childSex', width: 80, title: '性别' }, |
| | | { field: 'childBirthday', width: 120, title: '出生日期',templet:function(d){ |
| | | { field: 'diagnosticHospitalName',width: "10%", title: '医院名称' }, |
| | | { field: 'diagnosticDepartName', width: "10%", title: '科室名称' }, |
| | | { field: 'diagnosticDoctorName', width: "10%", title: '医生姓名' }, |
| | | { field: 'childName', width: "10%", title: '患者姓名' }, |
| | | { field: 'childSex', width: "10%", title: '性别' }, |
| | | { field: 'childBirthday', width: "10%", title: '出生日期',templet:function(d){ |
| | | return new Date(d.createTime).dateFormat("yyyy-MM-dd"); |
| | | }}, |
| | | { field: 'childPhone', width: 150, title: '联系电话' }, |
| | | { field: 'childPhone', width: "10%", title: '联系电话' }, |
| | | { |
| | | field: 'isDelete', sort: true, align: 'center', width: 100, templet: function (d) { |
| | | if (d.proType === 0) |
| | | field: 'isDeleted', sort: true, align: 'center', width: 100, templet: function (d) { |
| | | if (!d.isDeleted) |
| | | return "正常" |
| | | else |
| | | return "已删除" |
| | | }, title: '状态' |
| | | }, |
| | | { |
| | | field: 'createTime', width: 170, sort: true, title: '创建时间', templet: function (d) { |
| | | field: 'createTime', width: "10%", sort: true, title: '创建时间', templet: function (d) { |
| | | return new Date(d.createTime).dateFormat("yyyy-MM-dd hh:mm"); |
| | | } |
| | | },{ |
| | | field: 'diagnosticDiagnoseTime', width: 120, sort: true, title: '诊断时间', templet: function (d) { |
| | | field: 'diagnosticDiagnoseTime',width: "10%", sort: true, title: '诊断时间', templet: function (d) { |
| | | return new Date(d.diagnosticDiagnoseTime).dateFormat("yyyy-MM-dd"); |
| | | } |
| | | }, |
| | | { |
| | | field: 'updateTime', width: 170, sort: true, title: '修改时间', templet: function (d) { |
| | | field: 'updateTime', width: "10%", sort: true, title: '修改时间', templet: function (d) { |
| | | return new Date(d.createTime).dateFormat("yyyy-MM-dd hh:mm"); |
| | | } |
| | | }, |
| | | { field: 'enabled', width: 100, templet: '#diagnostic-table-bar', title: '查看' } |
| | | { field: 'enabled', width: "10%", templet: '#diagnostic-table-bar', title: '查看' } |
| | | ]], |
| | | done:function(res){ |
| | | permissionsInput(res,config); |
| | |
| | | startTime: datebegin, |
| | | endTime: dateend |
| | | }; |
| | | table.reload('diagnostic-table', { where: whereData }); |
| | | table.reload('diagnostic-table', { where: whereData,page: {curr: 1 }}); |
| | | }else{ |
| | | layer.msg('请输入医院'); |
| | | return false; |
| | | } |
| | | }); |
| | | //获取软件的服务周期 |
| | | var getCycleTime = function (departmentId) { |
| | | |
| | | } |
| | | // 工具条点击事件 |
| | | table.on('tool(diagnostic-table)', function (obj) { |
| | | var data = obj.data; |
| | | var layEvent = obj.event; |
| | | if (layEvent === "select") { |
| | | //查看报告 报告列数据缓存起来 |
| | | admin.putTempData("t_diagnosis", data); |
| | | admin.popupCenter({ |
| | | title: '查看报告', |
| | | path: 'pages/opration/recordNote.html', |
| | | area: '1200px', |
| | | offset: '10px', |
| | | finish: function () { |
| | | admin.putTempData("t_diagnosis", ""); |
| | | admin.req('api-opration/productorderrecord/pdfname/'+data.diagnosticId+"/0/"+data.diagnosticHospitalId+"/"+data.diagnosticDepartId, {}, |
| | | function (data) { |
| | | if (data.code == 0) { |
| | | //打开新的窗口 |
| | | window.open(data.data) |
| | | }else{ |
| | | layer.msg("查询报告失败") |
| | | } |
| | | }); |
| | | |
| | | }, "post") |
| | | admin.re |
| | | } |
| | | }); |
| | | }); |