Explorar el Código

药单药品明细增加发药时间,区分不同时间发药记录

WANGJIALIANG hace 2 años
padre
commit
0e1b4b061d

+ 6 - 0
src/main/java/cn/hnthyy/thmz/entity/his/yz/YzYpZyOrder.java

@@ -171,4 +171,10 @@ public class YzYpZyOrder {
    * 执行科室
    */
   private String execUnit;
+  /**
+   * 发药时间
+   */
+  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+  private Date confirmTime;
 }

+ 5 - 3
src/main/java/cn/hnthyy/thmz/mapper/his/zy/YpZyPatientMapper.java

@@ -233,9 +233,10 @@ public interface YpZyPatientMapper {
                     "       group_no=a.group_no,\n" +
                     "       doctor_name=a.doctor_name,\n" +
                     "       page_class=a.page_type,\n" +
-                    "       drug_class=a.drug_class\n" +
+                    "       drug_class=a.drug_class,\n" +
+                    "       confirm_time=a.confirm_time\n" +
                     "from yp_zy_patient a WITH(NOLOCK)" +
-                    " where    a.page_no =#{pageNo} " +
+                    " where  a.page_no =#{pageNo} " +
                     "order by a.inpatient_no,a.occ_time,a.admiss_times,a.charge_code"
     })
     List<YzYpZyOrder> selectYpZyPatientFyDetail(@Param("pageNo") String pageNo);
@@ -253,7 +254,8 @@ public interface YpZyPatientMapper {
                     "       dept_code=max(a.dept_code),\n" +
                     "       ward_code=max(a.ward_code),\n" +
                     "       retprice=max(a.retprice),\n" +
-                    "       group_no =max(a.group_no)\n" +
+                    "       group_no =max(a.group_no),\n" +
+                    "       confirm_time =max(a.confirm_time)\n" +
                     "  from\n" +
                     "  yp_zy_patient a WITH(NOLOCK)\n" +
                     "where\n" +

+ 6 - 0
src/main/java/cn/hnthyy/thmz/vo/YfWardVo.java

@@ -213,4 +213,10 @@ public class YfWardVo {
     private String manuNo;
     //用药频率
     private String comm;
+    /**
+     * 发药时间
+     */
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date confirmTime;
 }

+ 17 - 3
src/main/resources/static/js/yf/ward_prescription.js

@@ -434,7 +434,7 @@ function initColumns() {
         visible: $("#submitFlagSearch").val() === '3' ? true : false
     }, {
         field: 'confirmTime',
-        title: '发药时间',
+        title: '确认时间',
         align: "center",
         valign: 'middle',
         visible: $("#submitFlagSearch").val() === '3' ? true : false,
@@ -609,7 +609,7 @@ function initSummarizingTable() {
             groupCollapse: false,//是否收起
         },
         colNames: ['发药', '拒退', '单号', '批号', '住院号', '床号', '姓名', '代煎剂数', '货位号', '药品编码', '药品名称', '规格', '数量/剂数', '处方金额', '代煎单价',
-            '每天剂数', '煎药说明', '加水量', '煮取量', '复煎次数', '几次服用', '服用说明', '医生', '每剂数量', '发药量', '原发药量', '库存量', '零售价', '金额', '生产厂家', '药单类型', '规格编号', '医保编码','草药医嘱说明'],
+            '每天剂数', '煎药说明', '加水量', '煮取量', '复煎次数', '几次服用', '服用说明', '医生', '每剂数量', '发药量', '原发药量', '库存量', '零售价', '金额', '生产厂家', '药单类型', '确认时间', '规格编号', '医保编码','草药医嘱说明'],
         colModel: [
             {
                 name: 'fybz',
@@ -732,6 +732,13 @@ function initSummarizingTable() {
                 width: 40,
                 hidden: groupNo === '81' ? true : false
             },
+            {   name: 'confirmTime',
+                index: 'confirmTime',
+                align: 'center',
+                width: 40,
+                formatter: "date", formatoptions: {srcformat: 'Y-m-d H:i:s', newformat: 'Y-m-d H:i:s'},
+                hidden: groupNo === '81' ? true : false
+            },
             {name: 'serial', index: 'serial', align: 'center', width: 40, hidden: true},
             {
                 name: 'nationalCode', index: 'nationalCode', align: 'left', width: 40,
@@ -837,7 +844,7 @@ function initDetailTable() {
         rowNum: -1,//取消分页
         caption: '请领单药品明细',
         grouping: true,
-        colNames: ['发药', '拒退', '批号', '单号', '住院号', '床号', '次数', '姓名', '药品名称', '规格', '数量', '原发药量', '零售价', '金额', '执行时间', '医嘱', '给药方式'
+        colNames: ['发药', '拒退', '批号', '单号', '住院号', '床号', '次数', '姓名', '药品名称', '规格', '数量', '原发药量', '零售价', '金额', '执行时间', '医嘱', '给药方式','确认时间'
             , '频率', '剂量', '单位', '医生', '生日', '性别', '身份', '诊断', '科室', '病室', '是否婴儿', '请领人', '长期标志', '药品类型', '给药方式编码', '医嘱号',
             '自费标志', '单列', '贵重', '毒麻', '审批标志', '药房编码', '规格', '医生编码', '药单类别', '药品编码', '口服开始时间', '口服结束时间', '帐页号', '流水号', '医保编码','执行科室(医技药单用)'],
         colModel: [
@@ -925,6 +932,13 @@ function initDetailTable() {
                 width: 40,
                 hidden: pageClass == 'A' ? true : false
             },
+            {
+                name: 'confirmTime',
+                index: 'confirmTime',
+                align: 'center',
+                width: 40,
+                formatter: "date", formatoptions: {srcformat: 'Y-m-d H:i:s', newformat: 'Y-m-d H:i:s'}
+            },
             {name: 'frequCode', index: 'frequCode', align: 'center', width: 40, hidden: true},
             {name: 'dose', index: 'dose', align: 'center', width: 40, hidden: true},
             {name: 'doseUnit', index: 'doseUnit', align: 'center', width: 40, hidden: true},