forked from kidgrow-microservices-platform

luliqiang
2020-12-31 6fb14149d62199cfcc0448c82eb2f51f9c5181de
kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html
@@ -109,7 +109,6 @@
        });
        // 搜索按钮点击事件
        $('#diagnostic-btn-search').click(function () {
            debugger
            var diagnosticHospitalId = $('#hospitalId').val();
            if (!strUtil.isEmpty(diagnosticHospitalId)) {
                var childName = $('#childName').val();
@@ -131,25 +130,32 @@
                    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
            }
        });
    });