Browse Source

代码上传

xtf 7 months ago
parent
commit
54e725a090
2 changed files with 304 additions and 3 deletions
  1. 302 1
      src/js/qcScore.js
  2. 2 2
      webpack.config.js

+ 302 - 1
src/js/qcScore.js

@@ -1350,6 +1350,30 @@ $(function () {
             }
           })
           break
+        case "术后首次病程及谈话记录":
+          console.log("术后首次病程");
+          postOperativeRecordUpdate(function (error, data) {
+            if (error) {
+              if (error.message !== "_Failed") {
+                console.log("11111111", error);
+
+                hideLoading()
+                $.alerModal({ "message": err.message, type: "tip", time: '1000', win: 'default' });
+              }
+            }
+            else {
+              getRecordDetailUpdate().then(res => {
+                hideLoading()
+                $.alerModal({ "message": "保存成功", type: "tip", time: '1000', win: true });
+                isEditing[global_activeTab][index] = false
+
+                $(this).text('编辑');
+              }).catch(err => {
+                hideLoading()
+              })
+            }
+          })
+          break
         default:
           hideLoading()
           isEditing[global_activeTab][index] = false
@@ -1398,6 +1422,65 @@ $(function () {
     return ""
 
   }
+  /**会诊申请单 */
+  function ConsultationRequestUpdate(callback) {
+    validateEdit = true
+    let patientinfo = $(".patient-info").text();
+    /**医院ID*/
+    const hospitalId = global_hid;
+    /**病历号*/
+    const behospitalCode = global_id;
+    /**姓名*/
+    const name = $('#anchor1999 p').text();
+    /**性别*/
+    const sex = $('#anchor2066 p').text();
+    /**年龄*/
+    const age = $('#anchor200 p').text().replace("岁", "");
+    /**床号*/
+    const bedNo = "";
+    /**科别*/
+    const deptName = "";
+    /**病历日期*/
+    const recordDate = "";
+    /**入院日期*/
+    const behospitalDate = "";
+    /**标题*/
+    const recTitle = "";
+    /**申请科室*/
+    const applyDept = "";
+    /**申请医生*/
+    const applyDoctor = "";
+    /**申请日期*/
+    const applyDate = "";
+    /**会诊类别*/
+    const inviteType = "";
+    /**会诊科室*/
+    const inviteDept = "";
+    /**会诊医生*/
+    const inviteDoctor = "";
+    /**简要病情*/
+    const briefNote = "";
+    /**当前诊断*/
+    const diagnosis = "";
+    /**诊疗情况*/
+    const treatmentSituation = "";
+    /**会诊时间*/
+    const consultationDate = "";
+    /**会诊目的*/
+    const consultationPurpose = "";
+    /**会诊意见*/
+    const consultationOpinions = "";
+    /**记录医生*/
+    const recDoctor = "";
+    /**记录时间*/
+    const recDate = "";
+    /**审核医生*/
+    const auditDoctor = "";
+    /**审核时间*/
+    const auditDate = "";
+    /**注意事项*/
+    const notes = "";
+  }
 
   /**手术记录更新 */
   function operationRecordUpdate(callback) {
@@ -1479,7 +1562,7 @@ $(function () {
     /**血小板*/
     const platelet = $('#anchor2091 p').text().replace("袋", "");
     /**血浆*/
-    const Plasma = $('#anchor2093 p').text();
+    const Plasma = $('#anchor2093 p').text().replace("ml", "");
     /**全血*/
     const wholeBlood = $('#anchor2094 p').text().replace("ml", "");
     const param = {
@@ -1539,7 +1622,225 @@ $(function () {
     }
 
   }
+  /*** 术后首次病程及谈话记录 
+   * @param {function}callback
+  */
+  function postOperativeRecordUpdate(callback) {
+    validateEdit = true
+    let patientinfo = $(".patient-info").text();
+    /**
+   * 医院ID
+   */
+    const hospitalId = global_hid;
+
+    /**
+     * 病历号
+     */
+    const behospitalCode = global_id;
+
+    /**
+     * 姓名
+     */
+    const name = $("#anchor2166 p").text();
 
+    /**
+     * 性别
+     */
+    const sex = $("#anchor2167 p").text();
+
+    /**
+     * 年龄
+     */
+    const age = $("#anchor2169 p").text().replace("岁", "");
+
+    /**
+     * 床号
+     */
+    const bedNo = "";
+
+    /**
+     * 科别
+     */
+    const deptName = patientinfo.split("科室:")[1].split("")[0];
+
+    /**
+     * 病历日期
+     */
+    const recordDate = dateFormat("病例日期", "");
+
+    /**
+     * 标题
+     */
+    const recTitle = "术后首次病程及谈话记录";
+
+    /**
+     * 手术日期
+     */
+    const operationDate = dateFormat("手术日期", $("#anchor2171 p").text());
+
+    /**
+     * 开始时间
+     */
+    const startTime = dateFormat("开始时间", $("#anchor2200 p").text());
+
+    /**
+     * 结束时间
+     */
+    const endTime = dateFormat("结束时间", "");
+
+    /**
+     * 麻醉方式
+     */
+    const narcosisType = $("#anchor2176 p").text();
+
+    /**
+     * 麻醉医师
+     */
+    const narcosisDoctor = "";
+
+    /**
+     * 术前诊断
+     */
+    const preoperationDiagnosis = $("#anchor2173 p").text();
+
+    /**
+     * 术(中)后诊断
+     */
+    const postoperativeDiagnosis = $("#anchor2174 p").text();
+
+    /**
+     * 手术人员
+     */
+    const operationMan = "";
+
+    /**
+     * 手术名称方式
+     */
+    const operationName = $("#anchor2175 p").text();
+
+    /**
+     * 手术简要经过
+     */
+    const operationProcess = $("#anchor2179 p").text();
+
+    /**
+     * 患者术后情况(病人出手术室时一般情况)
+     */
+    const postoperativeSituation = $("#anchor2214 p").text();
+
+    /**
+     * 术后处理措施
+     */
+    const postoperativeTreatment = $("#anchor2182 p").text();
+
+    /**
+     * 术后注意事项
+     */
+    const postoperativeNotice = $("#anchor2184 p").text();
+
+    /**
+     * 术后可能出现的并发症及预防措施
+     */
+    const postoperativeComplication = "";
+
+    /**
+     * 手术切除标本
+     */
+    const operationSpecimen = "";
+
+    /**
+     * 术中出血量
+     */
+    const operationBleed = "";
+
+    /**
+     * 术中输血量
+     */
+    const operationBloodTransfusion = "";
+
+    /**
+     * 术中并发症
+     */
+    const operationComplication = "";
+
+    /**
+     * 记录医生
+     */
+    const recDoctor = $("#anchor2185 p").text();
+
+    /**
+     * 记录时间
+     */
+    const recDate = dateFormat("记录时间", $("#anchor2195 p").text());
+
+    /**
+     * 审核医生
+     */
+    const auditDoctor = $("#anchor2202 p").text();
+
+    /**
+     * 审核时间
+     */
+    const auditDate = dateFormat("审核时间", $("#anchor2205 p").text());
+
+    /**
+     * 主刀医生
+     */
+    const chiefDoctor = $("#anchor2197 p").text();
+
+    /**
+     * 患者/家属签名
+     */
+    const patientSign = $("#anchor2210 p").text();
+    const param = {
+      "behospitalCode": behospitalCode,
+      "hospitalId": hospitalId,
+      "name": name,
+      "sex": sex,
+      "age": age,
+      "bedNo": bedNo,
+      "deptName": deptName,
+      "recordDate": recordDate,
+      "recTitle": recTitle,
+      "operationDate": operationDate,
+      "startTime": startTime,
+      "endTime": endTime,
+      "narcosisType": narcosisType,
+      "narcosisDoctor": narcosisDoctor,
+      "preoperationDiagnosis": preoperationDiagnosis,
+      "postoperativeDiagnosis": postoperativeDiagnosis,
+      "operationMan": operationMan,
+      "operationName": operationName,
+      "operationProcess": operationProcess,
+      "postoperativeSituation": postoperativeSituation,
+      "postoperativeTreatment": postoperativeTreatment,
+      "postoperativeNotice": postoperativeNotice,
+      "postoperativeComplication": postoperativeComplication,
+      "operationSpecimen": operationSpecimen,
+      "operationBleed": operationBleed,
+      "operationBloodTransfusion": operationBloodTransfusion,
+      "operationComplication": operationComplication,
+      "recDoctor": recDoctor,
+      "recDate": recDate,
+      "auditDoctor": auditDoctor,
+      "auditDate": auditDate,
+      "chiefDoctor": chiefDoctor,
+      "patientSign": patientSign
+    }
+    if (validateEdit) {
+      post1(api.editOperativeFirstRecordInfos, param).then(res => {
+        if (res.data.code === '0') {
+          callback(null, "成功")
+        } else {
+          callback(new Error(res.data.msg))
+        }
+      }).catch((err) => {
+        callback(new Error(err.msg))
+      })
+    } else {
+      callback(new Error("_Failed"))
+    }
+  }
   /**术前讨论、术前小节更新
    * @param {function}callback
    */

+ 2 - 2
webpack.config.js

@@ -7,9 +7,9 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
 const glob = require('glob');
-// const proxyHost = "http://173.18.12.195:5858";
+const proxyHost = "http://173.18.12.195:5858";
 // const proxyHost = "http://172.16.8.60:5858";
-const proxyHost = "http://172.16.8.64:5858";
+// const proxyHost = "http://172.16.8.64:5858";
 // const proxyHost = "http://173.18.12.195:5656";
 // const proxyHost = "http://192.168.2.241:5858";
 // const proxyHost = "http://192.168.4.222:5858";