From d6c989a5d9122e5cf969dd640a92b8e12caf8aa6 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Thu, 22 Apr 2021 11:18:28 +0800
Subject: [PATCH] Merge branch 'dev' of ssh://192.168.2.240:29418/kidgrow-microservices-platform into dev

---
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html |   87 ++++++++++++++++++++++++++++---------------
 1 files changed, 57 insertions(+), 30 deletions(-)

diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html
index bec3632..27ae8b8 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html
@@ -26,7 +26,7 @@
                 <option value="1">-已开通-</option>
                 <option value="0">-未开通-</option>
             </select>
-            <input id="hosName" class="layui-input search-input" type="text" placeholder="按医院名" />
+            <input id="hosName" class="layui-input search-input" type="text" autocomplete="off" placeholder="按医院名" />
             <button id="hospita-btn-search" class="layui-btn icon-btn"><i class="layui-icon permissions"
                     permissions="hospital-get">&#xe615;</i>搜索</button>&emsp;
             <button id="hospital-btn-add" class="layui-btn icon-btn"><i class="layui-icon permissions"
@@ -77,27 +77,25 @@
             page: true,
             cols: [
                 [
-                    {
-                        field: 'hospitalId',
-                        width: 80,
-                        title: '医院编号',
-                        fixed: 'left'
-                    },
+                   
                     {
                         field: 'hospitalName',
-                        width: 100,
+                        width: "10%",
                         title: '医院名称',
                         fixed: 'left'
                     },
                     {
                         field: 'departmentName',
-                        width: 100,
+                        width: "6%",
                         title: '科室/部门',
                         fixed: 'left'
                     },
                     {
+                        field: 'hospitalId',width: '12%',title: '医院编号',
+                    },
+                    {
                         field: 'hospitalArea',
-                        width: 200,
+                        width: "10%",
                         title: '所在地区',
                         templet: function (d) {
                             return ((d.hospitalProvince == null) ? "" : d.hospitalProvince) +
@@ -108,22 +106,35 @@
                     },
                     {
                         field: 'hospitalLink',
-                        width: 100,
+                        width: "7%",
                         title: '联系人'
                     },
                     {
                         field: 'hospitalTel',
-                        width: 150,
+                        width: "8%",
                         title: '联系方式'
                     },
-                    // {
-                    //     field: 'enabled', width: 80,  title: '状态', templet: function (d) {
-                    //         return d.hospitalState == 0 ? "试用" : "正式"
-                    //     }
-                    // },
+                    {
+                        field: 'departmentLink',
+                        width: "6%",
+                        title: '科室联系人'
+                    },
+                    {
+                        field: 'departmentTel',
+                        width: "8%",
+                        title: '科室联系方式'
+                    },
+                    {
+                        field: 'orderType', width: 80,  title: '状态', templet: function (d) {
+                            if(d.orderType==null){
+                                return "";
+                            }
+                            return d.orderType ? "正式" : "试用"
+                        }
+                    },
                     {
                         field: 'isScreen',
-                        width: 80,
+                        width: "4%",
                         title: '筛查',
                         templet: function (d) {
                             return d.isScreen ? "是" : "否"
@@ -134,12 +145,12 @@
                     // } },
                     {
                         field: 'serverUserName',
-                        width: 100,
+                        width: "6%",
                         title: '服务人员'
                     },
                     {
                         field: 'createTime',
-                        width: 150,
+                        width: "10%",
                         title: '创建时间',
                         templet: function (d) {
                             return new Date(d.createTime).dateFormat("yyyy-MM-dd hh:mm");
@@ -147,15 +158,15 @@
                     },
                     {
                         field: 'enabled',
-                        width: 80,
+                        width: "7%",
                         templet: '#hospital-tpl-state',
                         title: '状态',
                         align: 'center',
                         fixed: 'right'
                     },
                     {
-                        field: 'hospitalId',
-                        width: 240,
+                        // field: 'hospitalId',
+                        width: "20%",
                         align: 'center',
                         toolbar: '#businessRecords-table-bar',
                         title: '操作',
@@ -225,7 +236,7 @@
                     }
                 });
             } else if(layEvent=="health"){
-                //充值
+                //运动处方服务
                 admin.putTempData("t_hospital", data);
                 admin.popupCenter({
                     title: '运动处方服务',
@@ -259,10 +270,14 @@
                 hospitalName: hospitalName,
                 hospitalProvince: hospitalProvince,
                 hospitalCity: hospitalCity,
-                hospitalArea: hospitalArea
+                hospitalArea: hospitalArea,
+                // page: 1,
             };
             table.reload('hospital-table', {
-                where: whereModel
+                where: whereModel,
+                page: {
+                    curr: 1 
+                }
             });
         });
 
@@ -335,7 +350,8 @@
                         method: 'GET',
                         where: {
                             'hospitalId': data.hospitalId,
-                            'departmentId': data.departmentId
+                            'departmentId': data.departmentId,
+                            'enabled': true
                         },
                         headers: {
                             'Authorization': 'Bearer ' + config.getToken().access_token
@@ -353,6 +369,14 @@
                                     field: 'ailightCount',
                                     width: 150,
                                     title: '读片量(剩余)'
+                                },
+                                {
+                                    field: 'ailightCount',
+                                    width: 150,
+                                    title: '读片使用量',
+                                    templet: function (d) {
+                                        return d.orderAilightCount-d.ailightCount;
+                                    }
                                 },
                                 {
                                     field: 'recordCount',
@@ -376,7 +400,7 @@
                                     title: '开始时间',
                                     templet: function (d) {
                                         return new Date(d.proBegintime)
-                                            .dateFormat("yyyy/MM/dd");
+                                            .dateFormat("yyyy/MM/dd hh:mm:ss");
                                     }
                                 },
                                 {
@@ -384,8 +408,11 @@
                                     width: 180,
                                     title: '结束时间',
                                     templet: function (d) {
-                                        return new Date(d.proEndtime)
-                                            .dateFormat("yyyy/MM/dd");
+                                        var dateTime=new Date(d.proEndtime);
+                                         dateTime=dateTime.setDate(dateTime.getDate()-1);
+                                        dateTime=new Date(dateTime);
+                                        return dateTime
+                                            .dateFormat("yyyy/MM/dd")+" 24:00:00";
                                     }
                                 },
                                 {

--
Gitblit v1.8.0