Browse Source

重点项目监测

lihong 8 months ago
parent
commit
ca3527fb94

+ 2 - 0
src/main/java/cn/hnthyy/thmz/entity/his/zd/ZdChargeItem.java

@@ -148,4 +148,6 @@ public class ZdChargeItem {
     private String groupNo;
     //病案统计编码
     private String zdChargeBaClass;
+    // 重点监测项目 0:否 1:是
+    private String focusMonitorFlag;
 }

+ 6 - 3
src/main/java/cn/hnthyy/thmz/mapper/his/zd/ZdChargeItemMapper.java

@@ -104,7 +104,7 @@ public interface ZdChargeItemMapper {
             "charge_unit,percent_group_zy,percent_group_mz,rtrim(case  when in_out_flag ='' then null else in_out_flag end) in_out_flag,n_code yn_code,class_code,s_code bz_code,discription,rtrim(del_flag) del_flag, " +
             "rtrim(yp_flag) yp_flag,bill_item_code,rtrim(xnh_flag) xnh_flag,add_date,hnsyb_code,hnsyb_name,xnh_code,xnh_name,xnh_ratio,xnh_quotamoney,rtrim(xnh_status) xnh_status," +
             "yb_flag_new,yb_comment_new,charge_amount_lwg,percent_group_1  percent_group1,yb_name,yb_comment,yb_bl_new,e_code yb_code,cl_code,co,xl_code,effective_time,effective_price,update_id," +
-            "update_time,national_code,national_name,descriptions,exclude_content,connotation,approval_number,selfpay_prop,group_no,zd_charge_ba_class " +
+            "update_time,national_code,national_name,descriptions,exclude_content,connotation,approval_number,selfpay_prop,group_no,zd_charge_ba_class,focus_monitor_flag " +
             " from zd_charge_item  WITH(NOLOCK)  where  code = #{code,jdbcType=VARCHAR} ")
     //     " and (del_flag != 1 or del_flag is null) " )
     ZdChargeItem selectZdChargeItemByCode(@Param("code") String code);
@@ -152,10 +152,10 @@ public interface ZdChargeItemMapper {
      */
     @Insert("INSERT INTO zd_charge_item ( code, name, charge_amount, percentag1, percentag2, percentag3, percentag4, percentag5, self_flag, separate_flag," +
             " suppress_flag, py_code, d_code, del_flag, charge_unit, percent_group_mz, class_code, e_code, s_code, add_date, xnh_code, xnh_name,audit_code," +
-            "bill_item_mz,bill_item_zy,exec_unit,discription,cl_code,co,oper_id,xl_code,yb_comment,national_code,national_name,descriptions,exclude_content,connotation,approval_number,group_no,zd_charge_ba_class ) VALUES (" +
+            "bill_item_mz,bill_item_zy,exec_unit,discription,cl_code,co,oper_id,xl_code,yb_comment,national_code,national_name,descriptions,exclude_content,connotation,approval_number,group_no,zd_charge_ba_class,focus_monitor_flag ) VALUES (" +
             " #{code}, #{name}, #{chargeAmount}, #{percentag1}, #{percentag2}, #{percentag3}, #{percentag4}, #{percentag5}, #{selfFlag}, #{separateFlag}, " +
             "#{suppressFlag}, #{pyCode}, #{wbCode}, #{delFlag}, #{chargeUnit}, #{percentGroupMz}, #{classCode}, #{ybCode}, #{bzCode}, #{addDate}, #{xnhCode}, #{xnhName}" +
-            ",#{auditCode},#{billItemMz},#{billItemZy},#{execUnit} ,#{discription}, #{clCode},#{co},#{operId},#{xlCode},#{ybComment},#{nationalCode},#{nationalName},#{descriptions},#{excludeContent},#{connotation},#{approvalNumber},#{groupNo},#{zdChargeBaClass}  )")
+            ",#{auditCode},#{billItemMz},#{billItemZy},#{execUnit} ,#{discription}, #{clCode},#{co},#{operId},#{xlCode},#{ybComment},#{nationalCode},#{nationalName},#{descriptions},#{excludeContent},#{connotation},#{approvalNumber},#{groupNo},#{zdChargeBaClass},#{focusMonitorFlag}  )")
     int insertZdChargeItem(ZdChargeItem zdChargeItem);
 
 
@@ -288,6 +288,9 @@ public interface ZdChargeItemMapper {
             "<when test='zdChargeBaClass!=null'>",
             ",zd_charge_ba_class =#{zdChargeBaClass}",
             "</when>",
+            "<when test='focusMonitorFlag!=null'>",
+            ",focus_monitor_flag =#{focusMonitorFlag}",
+            "</when>",
             "</trim>",
             "</script>"})
     int updateZdChargeItem(ZdChargeItem zdChargeItem);

+ 5 - 1
src/main/resources/static/js/mz/charge_detail.js

@@ -74,7 +74,7 @@ $(function () {
                 "discription": $("#discriptionParams").val(),"clCode": $("#clCodeParams").val(),"co": $("#coParams").val(),"xlCode": $("#xlCodeParams").val(),
                 "code": $("#code").val(),"ybComment": $("#ybCommentParams").val(),"nationalCode": $("#nationalCodeParams").val(),"nationalName": $("#nationalNameParams").val(),
                 "descriptions": $("#descriptionsParams").val(),"excludeContent": $("#excludeContentParams").val(),"connotation": $("#connotationParams").val(),
-                "approvalNumber": $("#approvalNumberParams").val(),"groupNo":$("#groupNoParams").val(),"zdChargeBaClass":$("#zdChargeBaClassParams").val()}),
+                "approvalNumber": $("#approvalNumberParams").val(),"groupNo":$("#groupNoParams").val(),"zdChargeBaClass":$("#zdChargeBaClassParams").val(),"focusMonitorFlag":$("#focusMonitorFlag").val()}),
             success: function (res) {
                 if (res == '401' || res == 401) {
                     window.location.href = '/thmz/login/view'
@@ -810,6 +810,8 @@ function updateZdChargeItem(code) {
                 $("#code").val(res.data.code);
                 $('#zdChargeBaClassParams').selectpicker('val', res.data.zdChargeBaClass);
                 $('#zdChargeBaClassParams').selectpicker('refresh');
+                $("#focusMonitorFlag").val(!stringNotBlank(res.data.focusMonitorFlag)  ? '0' : res.data.focusMonitorFlag );
+                $('#focusMonitorFlag').selectpicker('refresh');
                 $("#chargeDetailModal").modal();
             } else {
                 errorMesage(res);
@@ -983,6 +985,8 @@ function clearInput() {
     $("#approvalNumberParams").val(null);
     $('#coParams').selectpicker('val', 0);
     $('#coParams').selectpicker('refresh');
+    $('#focusMonitorFlag').selectpicker('val', '0');
+    $('#focusMonitorFlag').selectpicker('refresh');
     $('#groupNoParams').selectpicker('val', '00');
     $('#groupNoParams').selectpicker('refresh');
     $("#xlCodeParams").val(null);

+ 11 - 0
src/main/resources/templates/mz/charge_detail.html

@@ -319,6 +319,17 @@
                                             id="groupNoParams" title="请选择"></select>
                                 </div>
                             </div>
+                            <div class="item form-group">
+                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="focusMonitorFlag">重点监测项目 <span
+                                        class="required">*</span></label>
+                                <div class="col-md-6 col-sm-6 col-xs-12">
+                                    <select class="form-control selectpicker show-tick" required="required"
+                                            id="focusMonitorFlag" title="请选择">
+                                        <option value="0" selected>否</option>
+                                        <option value="1">是</option>
+                                    </select>
+                                </div>
+                            </div>
                         </form>
                     </div>
                     <div class="modal-footer">