浏览代码

添加字段

XMLWAN 4 年前
父节点
当前提交
12e170ddca

+ 23 - 9
src/xt_pages/data/printTemplate.vue 查看文件

@@ -52,6 +52,20 @@
52 52
           </div>
53 53
           <el-radio v-model="radio" label="5" @change="change">模版三</el-radio>
54 54
         </el-col>
55
+          <el-col :span="6" style="text-align: center">
56
+          <div class="demo-image__preview">
57
+            <el-tooltip class="item" effect="dark" content="点击查看大图" placement="top-start" :hide-after='2000'>
58
+
59
+              <el-image
60
+                style="width: 200px; height: 200px"
61
+                :src="require('@/assets/home/4.png')"
62
+                :preview-src-list="imgs_seven"
63
+              ></el-image>
64
+            </el-tooltip>
65
+
66
+          </div>
67
+          <el-radio v-model="radio" label="7" @change="change">模版四</el-radio>
68
+        </el-col>
55 69
       </el-row>
56 70
     </div>
57 71
     </div>
@@ -61,9 +75,9 @@
61 75
 <script>
62 76
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
63 77
   import { getPrintTemplate, postPrintTemplate } from '@/api/data'
64
-  import store from "@/store";
78
+  import store from '@/store'
65 79
 
66
-  export default {
80
+export default {
67 81
     name: 'printTemplate',
68 82
     components: { BreadCrumb },
69 83
     data() {
@@ -87,17 +101,19 @@
87 101
         ],
88 102
         imgs_five: [
89 103
           'https://images.shengws.com/template_five.jpg'
90
-
91 104
         ],
92
-        delay:500,
105
+        imgs_seven: [
106
+          'http://images.shengws.com/7.png'
107
+        ],
108
+        delay: 500,
93 109
         radio: 0,
94 110
         tempRadio: 0,
95
-        loading:false,
111
+        loading: false
96 112
 
97 113
       }
98 114
     }, methods: {
99 115
       change: function(val) {
100
-
116
+        console.log('val是什么', val)
101 117
         this.$confirm('是否切换模版', '提示', {
102 118
           confirmButtonText: '确定',
103 119
           cancelButtonText: '取消',
@@ -109,7 +125,7 @@
109 125
               var template_id = response.data.data.template_id
110 126
               this.radio = template_id.toString()
111 127
               this.tempRadio = template_id.toString()
112
-              //同步
128
+              // 同步
113 129
               this.loading = false
114 130
 
115 131
               // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
@@ -117,13 +133,11 @@
117 133
                 type: 'success',
118 134
                 message: '切换成功'
119 135
               })
120
-
121 136
             }
122 137
           })
123 138
         }).catch(() => {
124 139
           this.radio = this.tempRadio
125 140
         })
126
-
127 141
       }
128 142
     }, created() {
129 143
       getPrintTemplate().then(response => {

+ 137 - 138
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

@@ -1861,14 +1861,14 @@
1861 1861
 </template>
1862 1862
 
1863 1863
 <script>
1864
-import CheckBox from "./option_check_box";
1865
-import { GetBatchPrintDialysisData } from "@/api/print_data";
1866
-import { jsGetAge, uParseTime } from "@/utils/tools";
1867
-import { getDataConfig } from "@/utils/data";
1868
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
1869
-import print from "print-js";
1864
+import CheckBox from './option_check_box'
1865
+import { GetBatchPrintDialysisData } from '@/api/print_data'
1866
+import { jsGetAge, uParseTime } from '@/utils/tools'
1867
+import { getDataConfig } from '@/utils/data'
1868
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
1869
+import print from 'print-js'
1870 1870
 export default {
1871
-  name: "BatchPrintOrder",
1871
+  name: 'BatchPrintOrder',
1872 1872
   components: {
1873 1873
     CheckBox,
1874 1874
     BreadCrumb
@@ -1876,8 +1876,8 @@ export default {
1876 1876
   data() {
1877 1877
     return {
1878 1878
       crumbs: [
1879
-        { path: false, name: "透析管理" },
1880
-        { path: false, name: "批量打印" }
1879
+        { path: false, name: '透析管理' },
1880
+        { path: false, name: '批量打印' }
1881 1881
       ],
1882 1882
       records: [
1883 1883
         // 模拟有多条数据
@@ -1891,7 +1891,7 @@ export default {
1891 1891
         // },
1892 1892
       ],
1893 1893
       loading: false,
1894
-      orgname: "",
1894
+      orgname: '',
1895 1895
       org_template_info: {},
1896 1896
 
1897 1897
       bloodAccessParOpera: {},
@@ -1901,45 +1901,44 @@ export default {
1901 1901
       operators: [],
1902 1902
       adminUser: [],
1903 1903
       complications: [
1904
-        "低血压",
1905
-        "高血压",
1906
-        "心律失常",
1907
-        "头晕",
1908
-        "头痛",
1909
-        "呕吐",
1910
-        "抽搐",
1911
-        "出血",
1912
-        "心衰",
1913
-        "腹痛"
1904
+        '低血压',
1905
+        '高血压',
1906
+        '心律失常',
1907
+        '头晕',
1908
+        '头痛',
1909
+        '呕吐',
1910
+        '抽搐',
1911
+        '出血',
1912
+        '心衰',
1913
+        '腹痛'
1914 1914
       ]
1915
-    };
1915
+    }
1916 1916
   },
1917 1917
   created() {
1918
-    console.log("触发了没有啊情人");
1919
-    var xtuser = this.$store.getters.xt_user;
1920
-    this.orgname = xtuser.org.org_name;
1918
+    var xtuser = this.$store.getters.xt_user
1919
+    this.orgname = xtuser.org.org_name
1921 1920
     //   this.orgname = "遂溪方济医院";
1922
-    this.modeOptions = this.$store.getters.treatment_mode;
1921
+    this.modeOptions = this.$store.getters.treatment_mode
1923 1922
     //   this.replacementWays = this.$store.getters.replacement_ways;
1924 1923
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
1925
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1924
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1926 1925
 
1927 1926
     var bloodAccessParOpera = getDataConfig(
1928
-      "hemodialysis",
1929
-      "vascular_access_desc"
1930
-    );
1927
+      'hemodialysis',
1928
+      'vascular_access_desc'
1929
+    )
1931 1930
     for (var key in bloodAccessParOpera) {
1932 1931
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1933
-        bloodAccessParOpera[key];
1932
+        bloodAccessParOpera[key]
1934 1933
     }
1935 1934
 
1936 1935
     var dialysateFormulationOptions = getDataConfig(
1937
-      "hemodialysis",
1938
-      "dialysate_formulation"
1939
-    );
1936
+      'hemodialysis',
1937
+      'dialysate_formulation'
1938
+    )
1940 1939
     for (var key in dialysateFormulationOptions) {
1941 1940
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1942
-        dialysateFormulationOptions[key];
1941
+        dialysateFormulationOptions[key]
1943 1942
     }
1944 1943
 
1945 1944
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
@@ -1954,51 +1953,51 @@ export default {
1954 1953
     //   }
1955 1954
   },
1956 1955
   mounted() {
1957
-    this.loading = true;
1958
-    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
1956
+    this.loading = true
1957
+    var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
1959 1958
     if (ids.length == 0) {
1960
-      this.$router.back(-1);
1961
-      return;
1959
+      this.$router.back(-1)
1960
+      return
1962 1961
     }
1963
-    GetBatchPrintDialysisData(ids.join(","))
1962
+    GetBatchPrintDialysisData(ids.join(','))
1964 1963
       .then(rs => {
1965
-        var resp = rs.data;
1964
+        var resp = rs.data
1966 1965
         if (resp.state == 1) {
1967
-          this.org_template_info = resp.data.templateInfo;
1966
+          this.org_template_info = resp.data.templateInfo
1968 1967
 
1969
-          this.records = this.records.concat(resp.data.schedules);
1968
+          this.records = this.records.concat(resp.data.schedules)
1970 1969
           for (const recordIndex in this.records) {
1971
-            var dlegh = 0;
1970
+            var dlegh = 0
1972 1971
             if (
1973 1972
               this.records[recordIndex].monitor_records &&
1974 1973
               this.records[recordIndex].monitor_records.length < 8
1975 1974
             ) {
1976
-              dlegh = 8 - this.records[recordIndex].monitor_records.length;
1975
+              dlegh = 8 - this.records[recordIndex].monitor_records.length
1977 1976
             } else {
1978
-              dlegh = 0;
1977
+              dlegh = 0
1979 1978
             }
1980 1979
             if (dlegh > 0) {
1981 1980
               if (
1982 1981
                 typeof this.records[recordIndex].monitor_records ===
1983
-                  "undefined" ||
1982
+                  'undefined' ||
1984 1983
                 this.records[recordIndex].monitor_records == null
1985 1984
               ) {
1986
-                this.records[recordIndex].monitor_records = [];
1985
+                this.records[recordIndex].monitor_records = []
1987 1986
               }
1988 1987
               for (let index = 0; index < dlegh; index++) {
1989
-                this.records[recordIndex].monitor_records.push([]);
1988
+                this.records[recordIndex].monitor_records.push([])
1990 1989
               }
1991 1990
             }
1992 1991
 
1993
-            this.records[recordIndex].isShowZero = false;
1992
+            this.records[recordIndex].isShowZero = false
1994 1993
             if (this.records[recordIndex].patient.user_org_id == 9535) {
1995
-              this.records[recordIndex].isShowZero = true;
1994
+              this.records[recordIndex].isShowZero = true
1996 1995
             }
1997 1996
 
1998
-            var childMap = {};
1997
+            var childMap = {}
1999 1998
             for (const index in this.records[recordIndex].advices) {
2000 1999
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2001
-                continue;
2000
+                continue
2002 2001
               }
2003 2002
               if (
2004 2003
                 !(
@@ -2007,228 +2006,228 @@ export default {
2007 2006
               ) {
2008 2007
                 childMap[
2009 2008
                   this.records[recordIndex].advices[index].parent_id
2010
-                ] = [];
2009
+                ] = []
2011 2010
               }
2012 2011
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2013 2012
                 this.records[recordIndex].advices[index]
2014
-              );
2013
+              )
2015 2014
             }
2016 2015
 
2017
-            var advices = [];
2016
+            var advices = []
2018 2017
             for (const index in this.records[recordIndex].advices) {
2019 2018
               if (this.records[recordIndex].advices[index].parent_id > 0) {
2020
-                continue;
2019
+                continue
2021 2020
               }
2022
-              var item = this.records[recordIndex].advices[index];
2021
+              var item = this.records[recordIndex].advices[index]
2023 2022
               if (item.id in childMap) {
2024
-                item.children = childMap[item.id];
2023
+                item.children = childMap[item.id]
2025 2024
               } else {
2026
-                item.children = [];
2025
+                item.children = []
2027 2026
               }
2028
-              advices.push(item);
2027
+              advices.push(item)
2029 2028
             }
2030 2029
 
2031
-            var leftAdvice = [];
2032
-            var rightAdvice = [];
2033
-            var adlen = advices.length;
2030
+            var leftAdvice = []
2031
+            var rightAdvice = []
2032
+            var adlen = advices.length
2034 2033
 
2035
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2034
+            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2036 2035
             for (var i = 0; i < halfLen; i++) {
2037
-              leftAdvice.push(advices[i]);
2038
-              var rightIndex = i + halfLen;
2036
+              leftAdvice.push(advices[i])
2037
+              var rightIndex = i + halfLen
2039 2038
               rightAdvice.push(
2040 2039
                 rightIndex in advices ? advices[i + halfLen] : []
2041
-              );
2040
+              )
2042 2041
             }
2043 2042
             if (halfLen < 5) {
2044
-              var nl = 5 - leftAdvice.length;
2043
+              var nl = 5 - leftAdvice.length
2045 2044
               for (let index = 0; index < nl; index++) {
2046
-                leftAdvice.push([]);
2045
+                leftAdvice.push([])
2047 2046
               }
2048
-              var nl = 5 - rightAdvice.length;
2047
+              var nl = 5 - rightAdvice.length
2049 2048
               for (let index = 0; index < nl; index++) {
2050
-                rightAdvice.push([]);
2049
+                rightAdvice.push([])
2051 2050
               }
2052 2051
             }
2053 2052
 
2054
-            this.records[recordIndex].advices = [];
2053
+            this.records[recordIndex].advices = []
2055 2054
             for (var i = 0; i < halfLen; i++) {
2056
-              var item = [];
2057
-              item.push(leftAdvice[i]);
2058
-              item.push(rightAdvice[i]);
2059
-              this.records[recordIndex].advices.push(item);
2055
+              var item = []
2056
+              item.push(leftAdvice[i])
2057
+              item.push(rightAdvice[i])
2058
+              this.records[recordIndex].advices.push(item)
2060 2059
             }
2061 2060
           }
2062 2061
 
2063
-          console.log(" this.records[recordIndex].advices", this.records);
2064
-          this.operators = resp.data.medical_staffs;
2062
+          console.log(' this.records[recordIndex].advices', this.records)
2063
+          this.operators = resp.data.medical_staffs
2065 2064
           if (this.operators.length > 0) {
2066
-            var operatorsLen = this.operators.length;
2065
+            var operatorsLen = this.operators.length
2067 2066
             for (var index = 0; index < operatorsLen; index++) {
2068 2067
               this.$set(
2069 2068
                 this.operatorMaps,
2070 2069
                 this.operators[index].id,
2071 2070
                 this.operators[index]
2072
-              );
2071
+              )
2073 2072
             }
2074 2073
           }
2075 2074
 
2076
-          this.adminUser = resp.data.users;
2077
-          this.loading = false;
2075
+          this.adminUser = resp.data.users
2076
+          this.loading = false
2078 2077
         } else {
2079
-          this.loading = false;
2080
-          this.$message.error(resp.msg);
2078
+          this.loading = false
2079
+          this.$message.error(resp.msg)
2081 2080
         }
2082 2081
       })
2083 2082
       .catch(err => {
2084
-        this.$message.error(err);
2085
-      });
2083
+        this.$message.error(err)
2084
+      })
2086 2085
   },
2087 2086
   methods: {
2088 2087
     getAge: function(val) {
2089
-      val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2088
+      val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
2090 2089
       if (
2091 2090
         this.org_template_info.template_id == 2 ||
2092 2091
         this.org_template_info.template_id == 0
2093 2092
       ) {
2094 2093
         if (val.age == 0) {
2095
-          return jsGetAge(val.birth, "-");
2094
+          return jsGetAge(val.birth, '-')
2096 2095
         } else {
2097
-          return val.age;
2096
+          return val.age
2098 2097
         }
2099 2098
       } else {
2100
-        return jsGetAge(val.birth, "-");
2099
+        return jsGetAge(val.birth, '-')
2101 2100
       }
2102 2101
     },
2103 2102
     printAction: function() {
2104 2103
       const style =
2105
-        '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}';
2104
+        '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}'
2106 2105
 
2107 2106
       printJS({
2108
-        printable: "print_content",
2109
-        type: "html",
2110
-        documentTitle: "  ",
2107
+        printable: 'print_content',
2108
+        type: 'html',
2109
+        documentTitle: '  ',
2111 2110
         style: style,
2112 2111
         scanStyles: false
2113
-      });
2112
+      })
2114 2113
     },
2115 2114
 
2116 2115
     complicationsOther: function(record) {
2117
-      if (record == null || typeof record === "undefined") {
2118
-        return "";
2116
+      if (record == null || typeof record === 'undefined') {
2117
+        return ''
2119 2118
       }
2120 2119
       if (record.complication.length == 0) {
2121
-        return "";
2120
+        return ''
2122 2121
       }
2123
-      var complications = record.complication.split(",");
2124
-      var complicationOthers = [];
2122
+      var complications = record.complication.split(',')
2123
+      var complicationOthers = []
2125 2124
       for (const index in complications) {
2126 2125
         if (
2127 2126
           this.complications.indexOf(complications[index]) < 0 &&
2128 2127
           complicationOthers.indexOf(complications[index]) < 0
2129 2128
         ) {
2130
-          complicationOthers.push(complications[index]);
2129
+          complicationOthers.push(complications[index])
2131 2130
         }
2132 2131
       }
2133
-      return complicationOthers.join(",");
2132
+      return complicationOthers.join(',')
2134 2133
     },
2135 2134
     modeName(mode_id) {
2136 2135
       if (mode_id in this.modeOptions) {
2137
-        return this.modeOptions[mode_id].name;
2136
+        return this.modeOptions[mode_id].name
2138 2137
       }
2139
-      return "";
2138
+      return ''
2140 2139
     },
2141 2140
     anticoagulantName: function(key) {
2142
-      if (key == null || typeof key === "undefined") {
2143
-        return "";
2141
+      if (key == null || typeof key === 'undefined') {
2142
+        return ''
2144 2143
       }
2145
-      var id = key.anticoagulant;
2144
+      var id = key.anticoagulant
2146 2145
       if (id in this.anticoagulantsConfit) {
2147
-        return this.anticoagulantsConfit[id].name;
2146
+        return this.anticoagulantsConfit[id].name
2148 2147
       }
2149
-      return "";
2148
+      return ''
2150 2149
     },
2151 2150
     isBbloodAccessParOperaCheck(key, value) {
2152
-      if (key == null || typeof key === "undefined") {
2153
-        return false;
2151
+      if (key == null || typeof key === 'undefined') {
2152
+        return false
2154 2153
       }
2155
-      var id = key.blood_access_part_opera_id;
2154
+      var id = key.blood_access_part_opera_id
2156 2155
       if (id in this.bloodAccessParOpera) {
2157
-        return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
2156
+        return this.bloodAccessParOpera[id].name.indexOf(value) > -1
2158 2157
       }
2159
-      return false;
2158
+      return false
2160 2159
     },
2161 2160
     isdialysateFormulatioCheck(key, value) {
2162
-      if (key == null || typeof key === "undefined") {
2163
-        return false;
2161
+      if (key == null || typeof key === 'undefined') {
2162
+        return false
2164 2163
       }
2165
-      var id = key.dialysate_formulation;
2164
+      var id = key.dialysate_formulation
2166 2165
       if (id in this.dialysateFormulationOptions) {
2167
-        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
2166
+        return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
2168 2167
       }
2169
-      return false;
2168
+      return false
2170 2169
     },
2171 2170
     isValueIndexOfCheck: function(record, key, value) {
2172 2171
       if (record == null || record == undefined) {
2173
-        return false;
2172
+        return false
2174 2173
       } else {
2175
-        return record[key].indexOf(value) > -1;
2174
+        return record[key].indexOf(value) > -1
2176 2175
       }
2177 2176
     },
2178 2177
     setAdminUserES(key, id) {
2179 2178
       if (
2180
-        typeof key === "undefined" ||
2179
+        typeof key === 'undefined' ||
2181 2180
         key == null ||
2182
-        typeof key[id] === "undefined"
2181
+        typeof key[id] === 'undefined'
2183 2182
       ) {
2184
-        return "";
2183
+        return ''
2185 2184
       }
2186 2185
       if (key[id] == 0) {
2187
-        return "";
2186
+        return ''
2188 2187
       }
2189 2188
       if (key[id] in this.operatorMaps) {
2190
-        return this.operatorMaps[key[id]].es_url;
2189
+        return this.operatorMaps[key[id]].es_url
2191 2190
       } else {
2192
-        return "";
2191
+        return ''
2193 2192
       }
2194 2193
     },
2195 2194
     getAdminUser(key, id) {
2196 2195
       if (
2197
-        typeof key === "undefined" ||
2196
+        typeof key === 'undefined' ||
2198 2197
         key == null ||
2199
-        typeof key[id] === "undefined"
2198
+        typeof key[id] === 'undefined'
2200 2199
       ) {
2201
-        return "";
2200
+        return ''
2202 2201
       }
2203 2202
       if (key[id] == 0) {
2204
-        return "";
2203
+        return ''
2205 2204
       }
2206 2205
       if (key[id] == undefined) {
2207
-        return "";
2206
+        return ''
2208 2207
       }
2209 2208
       for (let i = 0; i < this.adminUser.length; i++) {
2210 2209
         if (this.adminUser[i].id == key[id]) {
2211
-          return this.adminUser[i].name;
2210
+          return this.adminUser[i].name
2212 2211
         }
2213 2212
       }
2214 2213
     },
2215 2214
     getTime(value, temp) {
2216 2215
       if (value != undefined) {
2217
-        return uParseTime(value, temp);
2216
+        return uParseTime(value, temp)
2218 2217
       }
2219
-      return "";
2218
+      return ''
2220 2219
     },
2221 2220
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2222 2221
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2223 2222
     isCheckBoxChecked: function(record, key, target_value) {
2224 2223
       if (record == null || record == undefined) {
2225
-        return false;
2224
+        return false
2226 2225
       } else {
2227
-        return record[key] == target_value;
2226
+        return record[key] == target_value
2228 2227
       }
2229 2228
     }
2230 2229
   }
2231
-};
2230
+}
2232 2231
 </script>
2233 2232
 
2234 2233
 <style scoped>

+ 29 - 35
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue 查看文件

@@ -689,43 +689,43 @@
689 689
         var resp = rs.data
690 690
         if (resp.state == 1) {
691 691
           this.records = this.records.concat(resp.data.schedules)
692
+         // console.log('hheeeee', this.records)
692 693
           for (const recordIndex in this.records) {
693 694
             this.advice_groups = []
694 695
             this.advice_groups_2 = []
695 696
             var dlegh = 0
696
-            if((this.records[recordIndex].assessment_before_dislysis
697
-            &&this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure != 0
698
-            &&this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure != 0)
699
-            || (this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.remark.length > 0)
700
-            ||(this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.pulse_frequency != 0)
701
-            ||(this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.breathing_rate  != 0)
702
-            ||(this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.temperature  != 0)) {
697
+            if ((this.records[recordIndex].assessment_before_dislysis &&
698
+          this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure != 0 &&
699
+          this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure != 0) ||
700
+          (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.remark.length > 0) ||
701
+          (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.pulse_frequency != 0) ||
702
+          (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.breathing_rate != 0) ||
703
+          (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.temperature != 0)) {
703 704
               var nl = 8
704 705
               this.records[recordIndex].print_length = 8
705
-              if(this.records[recordIndex].length > 8 ){
706
+              if (this.records[recordIndex].length > 8) {
706 707
                 this.records[recordIndex].classname = 'margin-bottom-900'
707
-              }else {
708
+              } else {
708 709
                 this.records[recordIndex].classname = 'margin-bottom-300'
709 710
               }
710
-            } else{
711
+            } else {
711 712
               var nl = 9
712 713
               this.records[recordIndex].print_length = 9
713
-              if(this.records[recordIndex].length > 9 ){
714
+              if (this.records[recordIndex].length > 9) {
714 715
                 this.records[recordIndex].classname = 'margin-bottom-900'
715
-              }else {
716
+              } else {
716 717
                 this.records[recordIndex].classname = 'margin-bottom-300'
717 718
               }
718 719
             }
719 720
 
720
-            if(recordIndex == (this.records.length - 1)){
721
+            if (recordIndex == (this.records.length - 1)) {
721 722
               this.records[recordIndex].classname = ' '
722 723
             }
723 724
 
724
-
725 725
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
726 726
               dlegh = nl - this.records[recordIndex].monitor_records.length
727 727
             }
728
-            if(this.records[recordIndex].monitor_records.length <=0 ){
728
+            if (this.records[recordIndex].monitor_records.length <= 0) {
729 729
               dlegh = nl
730 730
             }
731 731
             if (dlegh > 0) {
@@ -738,7 +738,7 @@
738 738
             }
739 739
 
740 740
             this.records[recordIndex].monitor_records2 = []
741
-            if (this.records[recordIndex].monitor_records.length > 13){
741
+            if (this.records[recordIndex].monitor_records.length > 13) {
742 742
               const tempMonitors = []
743 743
               const tempMonitors2 = []
744 744
 
@@ -749,8 +749,8 @@
749 749
                   tempMonitors2.push(this.records[recordIndex].monitor_records[index])
750 750
                 }
751 751
               }
752
-            this.records[recordIndex].monitor_records = tempMonitors
753
-            this.records[recordIndex].monitor_records2 = tempMonitors2
752
+              this.records[recordIndex].monitor_records = tempMonitors
753
+              this.records[recordIndex].monitor_records2 = tempMonitors2
754 754
             }
755 755
 
756 756
             var childMap = {}
@@ -793,7 +793,6 @@
793 793
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
794 794
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
795 795
 
796
-
797 796
                   var doctor_advice = {
798 797
                     delivery_way: this.doctor_advices[index].delivery_way,
799 798
                     execution_frequency: this.doctor_advices[index].execution_frequency,
@@ -805,8 +804,7 @@
805 804
                     execution_staff: this.doctor_advices[index].execution_staff,
806 805
                     checker: this.doctor_advices[index].checker,
807 806
                     advice_doctor: this.doctor_advices[index].advice_doctor,
808
-                    execution_time: this.doctor_advices[index].execution_time,
809
-
807
+                    execution_time: this.doctor_advices[index].execution_time
810 808
 
811 809
                   }
812 810
                   doctor_advice['isShow'] = 1
@@ -1028,23 +1026,22 @@
1028 1026
         } else {
1029 1027
           return ''
1030 1028
         }
1031
-      },getFloat: function(x) {
1029
+      }, getFloat: function(x) {
1032 1030
         if (x != '.') {
1033
-          var f = Math.round(x * 100) / 100;
1034
-          var s = f.toString();
1035
-          var rs = s.indexOf('.');
1031
+          var f = Math.round(x * 100) / 100
1032
+          var s = f.toString()
1033
+          var rs = s.indexOf('.')
1036 1034
           if (rs <= 0) {
1037
-            rs = s.length;
1038
-            s += '.';
1035
+            rs = s.length
1036
+            s += '.'
1039 1037
           }
1040 1038
           while (s.length <= rs + 1) {
1041
-            s += '0';
1039
+            s += '0'
1042 1040
           }
1043
-          return s;
1041
+          return s
1044 1042
         } else {
1045
-          return '0.0';
1043
+          return '0.0'
1046 1044
         }
1047
-
1048 1045
       },
1049 1046
       getAdminUser(key, id) {
1050 1047
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
@@ -1081,9 +1078,6 @@
1081 1078
           return false
1082 1079
         } else {
1083 1080
           return record[key] == target_value
1084
-
1085
-
1086
-          
1087 1081
         }
1088 1082
       }, getAge: function(val) {
1089 1083
         if (val.age == 0) {
@@ -1102,7 +1096,7 @@
1102 1096
             advices: []
1103 1097
           }
1104 1098
         )
1105
-      },getNumber:function(record) {
1099
+      }, getNumber: function(record) {
1106 1100
         console.log(record)
1107 1101
       }
1108 1102
     }

+ 85 - 89
src/xt_pages/dialysis/details/dialog/MsgTip.vue 查看文件

@@ -5,7 +5,7 @@
5 5
     :modal-append-to-body="false"
6 6
     :append-to-body="true"
7 7
   >
8
-    <div >
8
+    <div>
9 9
       <div class="DialogTit">
10 10
         <div class="back" @click="cancle()">
11 11
           <span class="iconfont">&#xe720; </span>返回
@@ -14,7 +14,8 @@
14 14
           {{ patient_prop.name }} [透析号 {{ patient_prop.dialysis_no }} ]
15 15
         </h1>
16 16
         <span @click="comfirm" class="success" style="visibility: hidden;"
17
-        >确定</span>
17
+          >确定</span
18
+        >
18 19
       </div>
19 20
 
20 21
       <div class="DialogContent">
@@ -33,15 +34,17 @@
33 34
         <div class="item">
34 35
           <label class="name" for="txms">干体重(kg)</label>
35 36
           <div class="content">
36
-            <span class="text" id="txms">{{ last_predialysis.dry_weight }}</span>
37
+            <span class="text" id="txms">{{
38
+              last_predialysis.dry_weight
39
+            }}</span>
37 40
           </div>
38 41
         </div>
39 42
         <div class="item">
40 43
           <label class="name" for="txms">衣物重(kg)</label>
41 44
           <div class="content">
42
-          <span class="text" id="txms">{{
43
-            predialysis.additional_weight
44
-          }}</span>
45
+            <span class="text" id="txms">{{
46
+              predialysis.additional_weight
47
+            }}</span>
45 48
           </div>
46 49
         </div>
47 50
         <div class="item">
@@ -65,9 +68,7 @@
65 68
         <div class="item">
66 69
           <label class="name" for="txms">上次透后体重(kg)</label>
67 70
           <div class="content">
68
-          <span class="text" id="txms">{{
69
-            last_record.weight_after
70
-          }}</span>
71
+            <span class="text" id="txms">{{ last_record.weight_after }}</span>
71 72
           </div>
72 73
         </div>
73 74
       </div>
@@ -75,100 +76,95 @@
75 76
   </el-dialog>
76 77
 </template>
77 78
 
78
-
79 79
 <script>
80
-  import { parseTime } from '@/utils'
80
+import { parseTime } from "@/utils";
81 81
 
82
-  export default {
83
-    name: 'MsgTip',
84
-    created() {
85
-      if (
86
-        this.predialysis.weight_before > 0 &&
87
-        this.last_record.weight_after > 0
88
-      ) {
89
-        this.add_weight = parseFloat(
90
-          this.predialysis.weight_before - this.last_record.weight_after
91
-        ).toFixed(2)
92
-      }
82
+export default {
83
+  name: "MsgTip",
84
+  created() {
85
+    if (
86
+      this.predialysis.weight_before > 0 &&
87
+      this.last_record.weight_after > 0
88
+    ) {
89
+      this.add_weight = parseFloat(
90
+        this.predialysis.weight_before - this.last_record.weight_after
91
+      ).toFixed(2);
92
+    }
93
+  },
94
+  data() {
95
+    return {
96
+      result: [],
97
+      id: 0,
98
+      selectName: "",
99
+      add_weight: 0
100
+    };
101
+  },
102
+  props: {
103
+    predialysis: {
104
+      type: Object
93 105
     },
94
-    data() {
95
-      return {
96
-        result: [],
97
-        id: 0,
98
-        selectName: '',
99
-        add_weight: 0
100
-      }
106
+    visibility: {
107
+      type: Boolean,
108
+      default: false
101 109
     },
102
-    props: {
103
-      predialysis: {
104
-        type: Object
105
-      },
106
-      visibility: {
107
-        type: Boolean,
108
-        default: false
109
-      },
110
-      last_predialysis: {
111
-        type: Object
112
-      },
113
-      record: {
114
-        type: Object
115
-      },
116
-      last_record: {
117
-        type: Object
118
-      },
119
-      patient_prop: {
120
-        type: Object
121
-      },
122
-      prescription_prop: {
123
-        type: Object
124
-      }
110
+    last_predialysis: {
111
+      type: Object
125 112
     },
126
-    computed: {
127
-      dialysis_date: function() {
128
-        return parseTime(this.$route.query.date, '{y}/{m}/{d}')
129
-      }
113
+    record: {
114
+      type: Object
115
+    },
116
+    last_record: {
117
+      type: Object
118
+    },
119
+    patient_prop: {
120
+      type: Object
121
+    },
122
+    prescription_prop: {
123
+      type: Object
124
+    }
125
+  },
126
+  computed: {
127
+    dialysis_date: function() {
128
+      return parseTime(this.$route.query.date, "{y}/{m}/{d}");
129
+    }
130
+  },
131
+  methods: {
132
+    cancle: function() {
133
+      this.$emit("menu-msg-tip");
134
+    },
135
+    comfirm: function() {
136
+      this.$emit("menu-msg-tip");
130 137
     },
131
-    methods: {
132
-      cancle: function() {
133
-        this.$emit('menu-msg-tip')
134
-      },
135
-      comfirm: function() {
136
-        this.$emit('menu-msg-tip')
137
-      },
138
-      getValue: function() {
139
-        let form = {}
138
+    getValue: function() {
139
+      const form = {};
140 140
 
141
-        let results = []
141
+      let results = [];
142 142
 
143
-        for (let i = 0; i < this.propsForm.list.length; i++) {
144
-          for (let a = 0; a < this.propsForm.result.length; a++) {
145
-            if (this.propsForm.list[i].id == this.propsForm.result[a]) {
146
-              results.push(this.propsForm.list[i])
147
-            }
143
+      for (let i = 0; i < this.propsForm.list.length; i++) {
144
+        for (let a = 0; a < this.propsForm.result.length; a++) {
145
+          if (this.propsForm.list[i].id == this.propsForm.result[a]) {
146
+            results.push(this.propsForm.list[i]);
148 147
           }
149 148
         }
149
+      }
150 150
 
151
-        var obj5 = {}
152
-        results = results.reduce((cur, next) => {
153
-          obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
154
-          return cur
155
-        }, [])
151
+      var obj5 = {};
152
+      results = results.reduce((cur, next) => {
153
+        obj5[next.id] ? "" : (obj5[next.id] = true && cur.push(next));
154
+        return cur;
155
+      }, []);
156 156
 
157
-        results
157
+      results;
158 158
 
159
-        return results
160
-      }
161
-    },
162
-    watch: {
163
-      visibility(val) {
164
-        //初始化数据操作
165
-      }
159
+      return results;
160
+    }
161
+  },
162
+  watch: {
163
+    visibility(val) {
164
+      // 初始化数据操作
166 165
     }
167 166
   }
167
+};
168 168
 </script>
169 169
 
170
-<style  scoped>
171
-
172
-
173
-
174
-</style>
170
+<style scoped></style>

文件差异内容过多而无法显示
+ 954 - 585
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue


文件差异内容过多而无法显示
+ 717 - 561
src/xt_pages/dialysis/dialysisPrintOrder.vue


+ 68 - 26
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue 查看文件

@@ -2,7 +2,7 @@
2 2
   <div id="dialysis-print-box">
3 3
     <div class="dialysis-print-order">
4 4
       <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }}血液净化记录表单</div>
5
+      <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
6 6
 
7 7
       <table class="print-table" style="margin-top: 10px;" border="1">
8 8
         <tbody>
@@ -46,12 +46,12 @@
46 46
                 ></label-box>
47 47
                 &nbsp;
48 48
                 <label-box
49
-                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
49
+                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
50 50
                   showValue="模糊"
51 51
                 ></label-box>
52 52
                 &nbsp;
53 53
                 <label-box
54
-                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
54
+                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
55 55
                   showValue="昏迷"
56 56
                 ></label-box>
57 57
               </div>
@@ -177,7 +177,10 @@
177 177
                <td style="text-align:left;">
178 178
             <span style="display:inline-block;margin-left:15px;"
179 179
               >透析液(mmol/L):</span
180
-            >
180
+            >    
181
+            <span v-if="dialysate_formulation == 1">
182
+              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
+            </span>
181 184
             <span v-if="dialysate_formulation == 2">
182 185
               低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183 186
             </span>
@@ -201,26 +204,32 @@
201 204
             >
202 205
             &nbsp;
203 206
              <label-box
204
-              :isChecked="blood_access_part_opera_id == 14 ? true : false"
207
+              :isChecked="blood_access_part_opera_id == vascularId ? true : false"
205 208
               showValue="内瘘"
206 209
             ></label-box>
210
+            
207 211
              &nbsp;
208 212
              <label-box
209
-              :isChecked="blood_access_part_opera_id == 17 || blood_access_part_opera_id == 18 ? true : false"
213
+              :isChecked="blood_access_part_opera_id == vascularId ? true : false"
210 214
               showValue="长期静脉导管"
211 215
             ></label-box>
212 216
             </label-box>
213 217
              &nbsp;
214 218
              <label-box
215
-              :isChecked="blood_access_part_opera_id == 17 || blood_access_part_opera_id == 18 ? true : false"
216
-              showValue="临时(颈、股)静脉导管"
219
+              :isChecked="blood_access_part_opera_id == vascularId ? true : false"
220
+              showValue="临时颈静脉导管"
221
+            ></label-box>
222
+               &nbsp;
223
+               <label-box
224
+              :isChecked="blood_access_part_opera_id == vascularId ? true : false"
225
+              showValue="临时股静脉导管"
217 226
             ></label-box>
218 227
                &nbsp;
219 228
              <label-box
220
-              :isChecked="blood_access_part_opera_id >= 17 ? true : false"
229
+              :isChecked="blood_access_part_opera_id != vascularId ? true : false"
221 230
               showValue="其它"
222 231
             ></label-box>
223
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
232
+            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}{{vascularId}}</span>
224 233
           </td>
225 234
         </tr>
226 235
         <tr>
@@ -235,15 +244,15 @@
235 244
           <th>病情变化及处理</th>
236 245
          </tr>
237 246
          <tr>
238
-          <td>TMP(mmHg)</td>
239
-          <td>静脉压(mmHg)</td>
240
-          <td>血流量(ml/min)</td>
241
-          <td>脱水量(ml)</td>
242
-          <td>T(℃)</td>
243
-          <td>HR(bpm)</td>
244
-          <td>R(bpm)</td>
245
-          <td>BP(mmHg)</td>
246
-          <td>SpO₂(%)</td>
247
+          <td width="60">TMP<br/>(mmHg)</td>
248
+          <td width="60">静脉压<br/>(mmHg)</td>
249
+          <td width="60">血流量<br/>(ml/min)</td>
250
+          <td width="60">脱水量<br/>(ml)</td>
251
+          <td width="50">T<br/>(℃)</td>
252
+          <td width="50">HR<br/>(bpm)</td>
253
+          <td width="50">R<br/>(bpm)</td>
254
+          <td width="60">BP<br/>(mmHg)</td>
255
+          <td width="60">SpO₂<br/>(%)</td>
247 256
           <td>记录</td>
248 257
          </tr>
249 258
          <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
@@ -268,7 +277,7 @@
268 277
               ? monitor.diastolic_blood_pressure
269 278
               : ""
270 279
               }}</td>
271
-           <td></td>
280
+           <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
272 281
            <td style="line-height:16px;padding:0px;">
273 282
               {{ monitor.end }}
274 283
               {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
@@ -335,17 +344,17 @@
335 344
          <td v-if="advice_index==0">透前体重</td>
336 345
          <td v-if="advice_index==0">{{weight_before}}kg</td>
337 346
          <td v-if="advice_index==1">体重增加量</td>
338
-         <td v-if="advice_index==1">{{weight_gain}}kg</td>
347
+         <td v-if="advice_index==1">{{(dryWeight_add).toFixed(2)}}kg</td>
339 348
          <td v-if="advice_index==2">干体重(DW)</td>
340 349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
341 350
          <td v-if="advice_index==3">较干体重增加量</td>
342
-         <td v-if="advice_index==3">{{weight_gain}}kg</td>
351
+         <td v-if="advice_index==3">{{(dryWeight_add).toFixed(2)}}kg</td>
343 352
          <td v-if="advice_index==4">净脱水量</td>
344
-         <td v-if="advice_index==4">{{actual_ultrafiltration}}kg</td>
353
+         <td v-if="advice_index==4">{{actual_ultrafiltration}}ml</td>
345 354
          <td v-if="advice_index==5">透后体重</td>
346 355
          <td v-if="advice_index==5">{{weight_after}}kg</td>
347 356
          <td v-if="advice_index==6">本次透析体重下降量</td>
348
-         <td v-if="advice_index==6">{{weightloss_after}}kg</td>
357
+         <td v-if="advice_index==6">{{(weight_before-weightloss_after).toFixed(1)}}kg</td>
349 358
         </tr>
350 359
         <tr>
351 360
           <td colspan="6" style="text-align:left;min-height:20px">
@@ -537,7 +546,11 @@ export default {
537 546
       target_ultrafiltration: '',
538 547
       blood_access_internal_fistula: '',
539 548
       venous_catheterization: '',
540
-      blood_access_part_opera_id: ''
549
+      blood_access_part_opera_id: '',
550
+      dryWeight_add: '',
551
+      weight: '',
552
+      vascularId: 0
553
+
541 554
     }
542 555
   },
543 556
   methods: {
@@ -689,6 +702,19 @@ export default {
689 702
           this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
690 703
           this.venous_catheterization = predialysis.venous_catheterization
691 704
           this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
705
+          console.log('血管通路', this.blood_access_part_opera_id)
706
+          var arry = []
707
+          arry = getDataConfig('hemodialysis', 'vascular_access_desc')
708
+          console.log('arry', arry)
709
+          // eslint-disable-next-line no-empty
710
+          var id = 0
711
+          for (let i = 0; i < arry.length; i++) {
712
+            console.log(arry[i].id)
713
+            if (arry[i].id === predialysis.blood_access_part_opera_id) {
714
+              id = predialysis.blood_access_part_opera_id
715
+            }
716
+            this.vascularId = id
717
+          }
692 718
           this.predialysis = predialysis
693 719
           console.log('透前评估', this.predialysis)
694 720
 
@@ -879,7 +905,7 @@ export default {
879 905
           // console.log('排班', schedule)
880 906
           this.schedule = schedule
881 907
           var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
882
-          // console.log('接诊评估', receiverTreatmentAccess)
908
+          console.log('接诊评估', receiverTreatmentAccess)
883 909
           this.receiverTreatmentAccess = receiverTreatmentAccess
884 910
           var dialysisway = response.data.data.dialysisway
885 911
           console.log('透析处方2', dialysisway)
@@ -912,6 +938,12 @@ export default {
912 938
           this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
913 939
           var afterWeightLast = response.data.data.assessmentAfterDislysis
914 940
           // console.log('上次透后体重', afterWeightLast)
941
+          // eslint-disable-next-line no-undef
942
+          console.log('透前体重', this.weight_before)
943
+          console.log('干体中', this.dry_weight)
944
+          console.log('什么体重', predialysis.additional_weight)
945
+          this.dryWeight_add = this.weight_before - this.dry_weight - predialysis.additional_weight
946
+          console.log('较干体中增加量', this.dryWeight_add)
915 947
           this.afterWeightLast = afterWeightLast.weight_after
916 948
           this.prescription.mode = this.modeName(this.prescription.mode_id)
917 949
           var rwLen = this.replacementWays.length
@@ -1239,6 +1271,16 @@ export default {
1239 1271
       this.$message.error('参数不齐')
1240 1272
       return false
1241 1273
     }
1274
+
1275
+    this.ways = getDataConfig('hemodialysis', 'way')
1276
+    this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
1277
+    this.appetites = getDataConfig('hemodialysis', 'appetite')
1278
+    this.postures = getDataConfig('hemodialysis', 'posture')
1279
+    this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
1280
+    this.precautions = getDataConfig('hemodialysis', 'precaution')
1281
+    this.intake = getDataConfig('hemodialysis', 'intake')
1282
+    this.nutrition = getDataConfig('hemodialysis', 'nutrition')
1283
+    console.log('nutrition', this.nutrition)
1242 1284
   }
1243 1285
 }
1244 1286
 </script>