From d3386ce4a4439ee740ca79d33ac7040963a18948 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <913652501@qq.com>
Date: Fri, 24 Apr 2020 11:31:26 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html |   29 +++++------------------------
 1 files changed, 5 insertions(+), 24 deletions(-)

diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html
index b30cde1..ae3a65a 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html
@@ -49,7 +49,7 @@
                     { field: 'hospitalName', width: 300, title: '医院名称' },
                     { field: 'departmentName', width: 100, title: '科室名称' },
                     { field: 'contractNo', width: 150, title: '合同编号' },
-                    { field: 'contractTitle', width: 150, title: '合同名' },
+                    { field: 'contractTitle', width: 260, title: '合同名' },
                     { field: 'contractBeginTime', width: 150, title: '合同生效时间',templet:function(d)
                     {
                         return new Date(d.contractBeginTime).dateFormat("yyyy/MM/dd");
@@ -59,34 +59,15 @@
                         return new Date(d.contractEndTime).dateFormat("yyyy/MM/dd");
                     } },
                     { field: 'contractTime', width: 180, title: '合同签订时间',templet:function(d){
-                        return new Date(d.contractTime).dateFormat("yyyy/MM/dd hh:mm:ss");
+                        return new Date(d.contractTime).dateFormat("yyyy/MM/dd");
                     } },
-                    { field: 'enabled', width: 120, templet: '#contract-tpl-state', sort: true, title: '状态' },
+                    // { field: 'enabled', width: 120, templet: '#contract-tpl-state', sort: true, title: '状态' },
                     { field: 'createTime', width: 160, sort: true, title: '创建时间' },
                     { align: 'center', width: 150, toolbar: '#contract-table-bar', title: '操作' }
                 ]]
             });
         }
         renderTable();
-
-        // 修改状态
-        form.on('switch(contract-tpl-state)', function (obj) {
-            layer.load(2);
-            admin.req('api-opration/contract/updateEnabled', {
-                id: obj.elem.value,
-                enabled: obj.elem.checked ? true : false
-            }, function (data) {
-                layer.closeAll('loading');
-                if (data.code == 0) {
-                    layer.msg(data.msg, { icon: 1, time: 500 });
-                } else {
-                    layer.msg(data.msg, { icon: 2, time: 500 });
-                    $(obj.elem).prop('checked', !obj.elem.checked);
-                    form.render('checkbox');
-                }
-            }, 'GET');
-        });
-
         // 工具条点击事件
         table.on('tool(contract-table)', function (obj) {
             if (obj.event === 'del') { // 删除
@@ -130,7 +111,7 @@
                 where:{'orderId':orderId},
                 headers: { 'Authorization': 'Bearer ' + config.getToken().access_token },
                 page: true,
-                limit:5,
+                limit:10,
                 limits:[5,10],
                 cols: [[
                     { field: 'proName', width: 300, title: '产品名称' },
@@ -148,7 +129,7 @@
                         return new Date(d.proBegintime).dateFormat("yyyy/MM/dd");
                     } },
                     { field: 'proEndtime', width: 180, title: '结束时间',templet:function(d){
-                        return new Date(d.proEndtime).dateFormat("yyyy/MM/dd hh:mm:ss");
+                        return new Date(d.proEndtime).dateFormat("yyyy/MM/dd");
                     } },
                     { field: 'createTime', width: 160, sort: true, title: '创建时间' }
                 ]]

--
Gitblit v1.8.0