From 1a50269b1d072fe2da7e70ae48315ebeb4ef95f4 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Tue, 02 Mar 2021 18:32:55 +0800
Subject: [PATCH] 完善筛查和 input框记录数据得bug

---
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html |    9 ++++++---
 1 files changed, 6 insertions(+), 3 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 22df40e..7a650b2 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
@@ -147,7 +147,6 @@
         });
 
         var showModel = function (data) {
-            console.log(data)
             layer.open({
                 type: 1,
                 title: '查看产品',
@@ -157,9 +156,9 @@
                 success: function () {
                     table.render({
                         elem: '#contract-table-detail',
-                        url: config.base_server + 'api-opration/productorderdetail/alldetail',
+                        url: config.base_server + 'api-opration/productorderdetail/all',
                         method: 'GET',
-                        where: { hospitalId: data.hospitalId,departmentId:data.departmentId},
+                        where: { orderId: data.id,enabled: 1},
                         headers: { 'Authorization': 'Bearer ' + config.getToken().access_token },
                         page: true,
                         limit: 10,
@@ -167,6 +166,10 @@
                         cols: [[
                             { field: 'proName', width: 300, title: '产品名称' },
                             { field: 'ailightCount', width: 150, title: '读片量' },
+                            { field: 'ailightCount', width: 150, title: '读片使用量' ,templet: function (d) {
+                                    return d.orderAilightCount-d.ailightCount;
+                                }
+                            },
                             { field: 'recordCount', width: 100, title: '报告量' },
                             {
                                 field: 'isShare', width: 150, title: '是否共享', templet: function (d) {

--
Gitblit v1.8.0