Browse Source

医技科室费用录入

lihong 1 month ago
parent
commit
441e88d9d4

+ 15 - 0
src/main/java/cn/hnthyy/thmz/controller/NavigationController.java

@@ -1510,4 +1510,19 @@ public class NavigationController {
         }
         return "charge/shareholder_card";
     }
+    /**
+     * @description: 医技项目录入
+     * @author: lihong
+     * @date: 2025/6/26 11:06
+     * @param: httpServletRequest
+     * @return: java.lang.String
+     **/
+    @RequestMapping("/yj-item-entry")
+    public String yjItemEntry(HttpServletRequest httpServletRequest) throws Exception {
+        List<String> urls = getRoleUrls(httpServletRequest);
+        if (!urls.contains("/thmz/yj-item-entry")) {
+            throw new Exception("您没有此模块的权限,请联系管理员开通!");
+        }
+        return "mz/yj_item_entry";
+    }
 }

+ 137 - 0
src/main/resources/static/js/mz/yj_item_entry.js

@@ -0,0 +1,137 @@
+//@ sourceURL=refund_medicine.js
+$(function () {
+
+    initSearchList('<div id="yjksPopoverContent"><table id="tb_table_yjksItem"></table></div>',
+        'yjksItem', 800, 400);
+    $('#yjksItem').on('input focus', function (e) {
+        loadItemTbale(null)
+    });
+
+});
+
+
+function loadItemTbale(event) {
+    if (event != null) {
+        if (event.keyCode == 38 || event.keyCode == 40 || event.keyCode == 13) {
+            //上下键不刷新表格
+            return;
+        }
+    }
+    $('#yjksItem').webuiPopover('show');
+    $('#tb_table_yjksItem').bootstrapTable('refresh');
+    $('#tb_table_yjksItem').bootstrapTable({
+        url: '/thmz/getZlItemByCommonParams',         //请求后台的URL(*)
+        method: 'GET',                      //请求方式(*)
+        toolbar: '#toolbar',                //工具按钮用哪个容器
+        striped: true,                      //是否显示行间隔色
+        cache: true,                       //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+        pagination: false,                   //是否显示分页(*)
+        sortable: true,                     //是否启用排序
+        sortOrder: "asc",                   //排序方式
+        queryParams: function (params) {
+            var temp = {
+                commonParams: $("#yjksItem").val()
+            };
+            return temp;
+        },           //传递参数(*)
+        sidePagination: "server",           //分页方式:client客户端分页,server服务端分页(*)
+        pageNumber: 1,                       //初始化加载第一页,默认第一页
+        pageSize: 5,                       //每页的记录行数(*)
+        pageList: [5, 10, 25, 50, 100],        //可供选择的每页的行数(*)
+        search: false,                       //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+        strictSearch: true,
+        showColumns: false,                  //是否显示所有的列
+        showRefresh: false,                  //是否显示刷新按钮
+        minimumCountColumns: 2,             //最少允许的列数
+        clickToSelect: true,                //是否启用点击选中行
+        uniqueId: "ID",                     //每一行的唯一标识,一般为主键列
+        showToggle: false,                    //是否显示详细视图和列表视图的切换按钮
+        cardView: false,                    //是否显示详细视图
+        detailView: false,
+        //rowStyle:rowStyle,//通过自定义函数设置行样式
+        ajaxOptions: {
+            headers: {
+                'Accept': 'application/json',
+                'Authorization': 'Bearer ' + localStorage.getItem("token")
+            }
+        },
+        columns: [
+            {
+                field: 'code',
+                title: '编码',
+                align: "center",
+                valign: 'middle',
+                // sortable: true
+            }, {
+                field: 'name',
+                title: '名称',
+                align: "center",
+                valign: 'middle',
+                //  sortable: true
+            }
+            , {
+                field: 'execUnitName',
+                title: '执行科室',
+                align: "center",
+                valign: 'middle',
+                // sortable: true
+            }
+            , {
+                field: 'chargeAmount',
+                title: '价格',
+                align: "center",
+                valign: 'middle',
+                // sortable: true
+                formatter: function (value, row, index) {
+                    if (value == null) {
+                        return "0.00元";
+                    }
+                    return value.toFixed(2) + "元";
+                }
+            }, {
+                field: 'descriptions',
+                title: '规格',
+                align: "center",
+                valign: 'middle',
+                // sortable: true
+            }, {
+                field: 'connotation',
+                title: '医保说明',
+                align: "center",
+                valign: 'middle',
+                //  sortable: true
+            }, {
+                field: 'nationalCode',
+                title: '医保编码',
+                align: "left",
+                valign: 'middle',
+                //  sortable: true
+            }
+        ],
+        responseHandler: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            var ress = eval(res);
+            if (ress.code == -1) {
+                errorMesage(res);
+                return {
+                    "total": 0,//总页数
+                    "rows": {}   //数据
+                };
+            }
+            $("#yjksPopoverContent").parent().css("background", "#EBEBE4");
+            return {
+                "total": ress.data.length,//总页数
+                "rows": ress.data   //数据
+            };
+        },
+        onClickRow: function (row, $element) {
+
+            return;
+        }
+    });
+}
+
+

+ 129 - 0
src/main/resources/templates/mz/yj_item_entry.html

@@ -0,0 +1,129 @@
+<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
+<link rel="stylesheet" href="/thmz/css/jquery.webui-popover.min.css">
+<link rel="stylesheet" href="/thmz/css/custom.min.css">
+<link rel="stylesheet" href="/thmz/css/toll_administration.css">
+<script src="/thmz/js/dependent/daterangepicker.js"></script>
+<script src="/thmz/js/dependent/bootstrap-select.js"></script>
+<script src="/thmz/js/dependent/jquery.webui-popover.min.js"></script>
+<script src="/thmz/js/common/pharmacy-com.js"></script>
+<script src="/thmz/js/mz/yj_item_entry.js"></script>
+<title>医技科室项目费用录入</title>
+<style>
+    .my_label {
+        width: 65px;
+        text-align: right;
+        font-weight: 400;
+        line-height: 34px;
+    }
+</style>
+<div class="row" style="height: calc(100% - 60px);overflow-y: auto;">
+    <div class="col-md-12 col-sm-12 col-xs-12">
+        <div class="x_panel">
+            <div class="panel-body">
+                <form id="formSearch" class="form-horizontal" autocomplete="off" onsubmit="return false;">
+                    <div class="form-group col-md-12 col-sm-12 col-xs-12">
+                        <div class="col-md-3 col-sm-3 col-xs-12" style="height: 34px;line-height: 34px;font-size: 18px;font-weight: 600;">医技科室项目费用录入</div>
+                    </div>
+                    <div class="form-group col-md-12 col-sm-12 col-xs-12">
+                        <div class="col-md-3 col-sm-3 col-xs-12"></div>
+                        <div class="col-md-1 col-sm-1 col-xs-12">
+                            <div class="form-group has-feedback" style="float: right;width: 340px;">
+                                <input id="yjksItem" class="form-control col-md-7 col-xs-12"
+                                       placeholder="搜索项目" required="required" type="text" data-placement="bottom-right">
+                            </div>
+                        </div>
+                        <div class="col-md-3 col-sm-3 col-xs-12" style="text-align:left;">
+                            <button type="button" style="margin-left:3px" id="btn_save" class="btn btn-primary"
+                                    title="保存"><i class="fa fa-check-square-o"></i>
+                            </button>
+                        </div>
+                    </div>
+                </form>
+            </div>
+
+            <div class="row">
+                <div class="col-md-6 col-sm-6 col-xs-12">
+                    <div style="width:100%;">
+                       <label class="my_label">规格:</label>
+                        <input type="text" class="form-control "  id="descriptions"
+                               style="padding-left: 10px; width: 100px;display: inline-block" readonly>
+                        &nbsp;
+                        <label class="my_label">单位:</label>
+                        <input type="text" class="form-control "  id="dw"
+                               style="padding-left: 10px; width: 100px;display: inline-block" readonly>
+                    </div>
+                    <div style="width:100%;">
+                        <label class="my_label">单价:</label>
+                        <input type="text" class="form-control "  id="dj"
+                               style="padding-left: 10px; width: 100px;display: inline-block" >
+                        &nbsp;
+                        <label class="my_label">单量:</label>
+                        <input type="text" class="form-control "  id="dl"
+                               style="padding-left: 10px; width: 100px;display: inline-block" >
+                    </div>
+                    <div style="width:100%;">
+                        <label class="my_label">总量:</label>
+                        <input type="text" class="form-control "  id="zl"
+                               style="padding-left: 10px; width: 100px;display: inline-block" >
+                        &nbsp;
+                        <label class="my_label">总价:</label>
+                        <input type="text" class="form-control "  id="zj"
+                               style="padding-left: 10px; width: 100px;display: inline-block" >
+                    </div>
+                    <div style="width:100%;">
+                        <span style="display: inline-block;width: 150px"></span>  <div style="display: inline-block;"><a onclick=""
+                                                                           style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"><i
+                                class="fa fa-trash">&nbsp;&nbsp;清空</i></a>
+                        </div>
+                        <div style="display: inline-block;">
+                            <a
+                                    style="cursor: pointer;font-size: 14px;color: #333333;"
+                                    onclick="">&nbsp;&nbsp;保存到右侧<i
+                                    class="fa fa-long-arrow-right"
+                                    style="font-size: 20px;vertical-align: middle;width: 30px;height: 20px;text-align: center;background-color: #337AB7;color: white;margin-left: 10px"></i></a>
+                        </div>
+                    </div>
+                </div>
+                <div class="col-md-6 col-sm-6 col-xs-12">
+                    <table id="tb_table_right" class="table table-striped table-bordered">
+                        <thead>
+                            <tr>
+                                <td>序号</td>
+                                <td>项目编码</td>
+                                <td>项目名称</td>
+                                <td>规格</td>
+                                <td>单位</td>
+                                <td>单价</td>
+                                <td>单量</td>
+                                <td>天数</td>
+                                <td>总量</td>
+                                <td>总价</td>
+                                <td>执行科室</td>
+                                <td>操作</td>
+                            </tr>
+                        </thead>
+                        <tbody>
+                            <tr>
+                                <td>1</td>
+                                <td>123</td>
+                                <td>456</td>
+                                <td>规格</td>
+                                <td>单位</td>
+                                <td>单价</td>
+                                <td>单量</td>
+                                <td>天数</td>
+                                <td>总量</td>
+                                <td>总价</td>
+                                <td>执行科室</td>
+                                <td><button type="button" class="btn btn-danger" >删除</button></td>
+                            </tr>
+                        </tbody>
+                    </table>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+</div>
+
+