forked from kidgrow-microservices-platform

zhaoxiaohao
2020-11-27 0fe02f3eace81653ae47cf89ea019010df8b3423
kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html
@@ -80,8 +80,8 @@
                }},
                { 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 "已删除"
@@ -130,25 +130,33 @@
                    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", "");
                console.log(data,"333333")
                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
            }
        });
    });