Browse Source

Merge branch 'messagePass220412' into test

1178232204@qq.com 3 years ago
parent
commit
e58d056f84

+ 9 - 0
src/css/appealUserPage.less

@@ -1075,3 +1075,12 @@
 .required {
   color: #e3505b;
 }
+.refreshBtn{
+  width: 80px;
+  height: 36px;
+  color: #fff;
+  background: #00A1FF;
+  border-radius: 4px;
+  padding: 7px 26px;
+  margin-right: 20px;
+}

+ 9 - 0
src/css/qcScore.less

@@ -1041,4 +1041,13 @@
 }
 .modal-box{
   width: 470px;
+}
+.refreshBtn{
+  width: 80px;
+  height: 36px;
+  color: #fff;
+  background: #00A1FF;
+  border-radius: 4px;
+  padding: 7px 26px;
+  margin-right: 20px;
 }

+ 1 - 0
src/html/appealUserPage.html

@@ -39,6 +39,7 @@
         </li>
     </script>
     <script type="text/html" id="infoTmpl">
+        <button class="refreshBtn">刷新</button>
         <span>病案号:${fileCode}</span>
         <span>姓名:${name}</span>
         <span>性别:${sex}</span>

+ 1 - 0
src/html/qcScore.html

@@ -39,6 +39,7 @@
         </li>
     </script>
     <script type="text/html" id="infoTmpl">
+        <button class="refreshBtn">刷新</button>
         <span>病案号:${fileCode}</span>
         <span>姓名:${name}</span>
         <span>性别:${sex}</span>

+ 23 - 1
src/js/appealUserPage.js

@@ -45,7 +45,9 @@ $(function () {
   $(".add-flaw").click(function () {
     showModal('2');
   });
-
+  $("body").on("click", ".refreshBtn", function () {
+    getRecordDetailUpdate2();
+  });
   function showAppealDetailEvent() {
     //申诉状态点击事件
     $(".flaw-item").off("click").on("click", ".title .btn", function () {
@@ -214,6 +216,26 @@ $(function () {
       }
     });
   }
+  function getRecordDetailUpdate2() {
+    post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {
+      if (res.data.code === '0') {
+        const data = res.data.data;
+        const { beHospital, result, msg, checkStatus, drgs } = data;
+        // global_check = checkStatus
+        // const info=Object.assign(beHospital,result);
+        // initMenu(JSON.parse(result.menuData));
+        // $(".subMenu >li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
+        // global_activeTab=$(".sub-menu .page.active").attr("code");
+        // initPatientInfo(info);
+        // initContent(result.pageData);
+        initScoreItem(msg);
+        global_flawData = msg;
+        global_flawDataPay = drgs;
+        // setBoxHeight();
+        // changePay()
+      }
+    });
+  }
   function changePay() {
     $(document).on('click', ".titleSpecial span", function () {
       let type = $(this).attr("data-type")

+ 23 - 1
src/js/qcScore.js

@@ -44,7 +44,9 @@ $(function () {
       getQcCasesEntry();
     });
   }
-
+  $("body").on("click", ".refreshBtn", function () {
+    getRecordDetailUpdate2();
+  });
   function showAppealDetailEvent() {
     //申诉状态点击事件
     $(".flaw-item").off("click").on("click", ".title .btn", function () {
@@ -224,6 +226,26 @@ $(function () {
       }
     });
   }
+  function getRecordDetailUpdate2() {
+    post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {
+      if (res.data.code === '0') {
+        const data = res.data.data;
+        const { beHospital, result, msg, checkStatus, drgs } = data;
+        // global_check = checkStatus
+        // const info=Object.assign(beHospital,result);
+        // initMenu(JSON.parse(result.menuData));
+        // $(".subMenu >li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
+        // global_activeTab=$(".sub-menu .page.active").attr("code");
+        // initPatientInfo(info);
+        // initContent(result.pageData);
+        initScoreItem(msg);
+        global_flawData = msg;
+        global_flawDataPay = drgs;
+        // setBoxHeight();
+        // changePay()
+      }
+    });
+  }
   function changePay() {
     $(document).on('click', ".titleSpecial span", function () {
       let type = $(this).attr("data-type")