Browse Source

添加字段

XMLWAN 4 years ago
parent
commit
12e170ddca

+ 23 - 9
src/xt_pages/data/printTemplate.vue View File

52
           </div>
52
           </div>
53
           <el-radio v-model="radio" label="5" @change="change">模版三</el-radio>
53
           <el-radio v-model="radio" label="5" @change="change">模版三</el-radio>
54
         </el-col>
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
       </el-row>
69
       </el-row>
56
     </div>
70
     </div>
57
     </div>
71
     </div>
61
 <script>
75
 <script>
62
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
76
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
63
   import { getPrintTemplate, postPrintTemplate } from '@/api/data'
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
     name: 'printTemplate',
81
     name: 'printTemplate',
68
     components: { BreadCrumb },
82
     components: { BreadCrumb },
69
     data() {
83
     data() {
87
         ],
101
         ],
88
         imgs_five: [
102
         imgs_five: [
89
           'https://images.shengws.com/template_five.jpg'
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
         radio: 0,
109
         radio: 0,
94
         tempRadio: 0,
110
         tempRadio: 0,
95
-        loading:false,
111
+        loading: false
96
 
112
 
97
       }
113
       }
98
     }, methods: {
114
     }, methods: {
99
       change: function(val) {
115
       change: function(val) {
100
-
116
+        console.log('val是什么', val)
101
         this.$confirm('是否切换模版', '提示', {
117
         this.$confirm('是否切换模版', '提示', {
102
           confirmButtonText: '确定',
118
           confirmButtonText: '确定',
103
           cancelButtonText: '取消',
119
           cancelButtonText: '取消',
109
               var template_id = response.data.data.template_id
125
               var template_id = response.data.data.template_id
110
               this.radio = template_id.toString()
126
               this.radio = template_id.toString()
111
               this.tempRadio = template_id.toString()
127
               this.tempRadio = template_id.toString()
112
-              //同步
128
+              // 同步
113
               this.loading = false
129
               this.loading = false
114
 
130
 
115
               // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
131
               // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
117
                 type: 'success',
133
                 type: 'success',
118
                 message: '切换成功'
134
                 message: '切换成功'
119
               })
135
               })
120
-
121
             }
136
             }
122
           })
137
           })
123
         }).catch(() => {
138
         }).catch(() => {
124
           this.radio = this.tempRadio
139
           this.radio = this.tempRadio
125
         })
140
         })
126
-
127
       }
141
       }
128
     }, created() {
142
     }, created() {
129
       getPrintTemplate().then(response => {
143
       getPrintTemplate().then(response => {

+ 137 - 138
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

1861
 </template>
1861
 </template>
1862
 
1862
 
1863
 <script>
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
 export default {
1870
 export default {
1871
-  name: "BatchPrintOrder",
1871
+  name: 'BatchPrintOrder',
1872
   components: {
1872
   components: {
1873
     CheckBox,
1873
     CheckBox,
1874
     BreadCrumb
1874
     BreadCrumb
1876
   data() {
1876
   data() {
1877
     return {
1877
     return {
1878
       crumbs: [
1878
       crumbs: [
1879
-        { path: false, name: "透析管理" },
1880
-        { path: false, name: "批量打印" }
1879
+        { path: false, name: '透析管理' },
1880
+        { path: false, name: '批量打印' }
1881
       ],
1881
       ],
1882
       records: [
1882
       records: [
1883
         // 模拟有多条数据
1883
         // 模拟有多条数据
1891
         // },
1891
         // },
1892
       ],
1892
       ],
1893
       loading: false,
1893
       loading: false,
1894
-      orgname: "",
1894
+      orgname: '',
1895
       org_template_info: {},
1895
       org_template_info: {},
1896
 
1896
 
1897
       bloodAccessParOpera: {},
1897
       bloodAccessParOpera: {},
1901
       operators: [],
1901
       operators: [],
1902
       adminUser: [],
1902
       adminUser: [],
1903
       complications: [
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
   created() {
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
     //   this.orgname = "遂溪方济医院";
1920
     //   this.orgname = "遂溪方济医院";
1922
-    this.modeOptions = this.$store.getters.treatment_mode;
1921
+    this.modeOptions = this.$store.getters.treatment_mode
1923
     //   this.replacementWays = this.$store.getters.replacement_ways;
1922
     //   this.replacementWays = this.$store.getters.replacement_ways;
1924
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
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
     var bloodAccessParOpera = getDataConfig(
1926
     var bloodAccessParOpera = getDataConfig(
1928
-      "hemodialysis",
1929
-      "vascular_access_desc"
1930
-    );
1927
+      'hemodialysis',
1928
+      'vascular_access_desc'
1929
+    )
1931
     for (var key in bloodAccessParOpera) {
1930
     for (var key in bloodAccessParOpera) {
1932
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1931
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
1933
-        bloodAccessParOpera[key];
1932
+        bloodAccessParOpera[key]
1934
     }
1933
     }
1935
 
1934
 
1936
     var dialysateFormulationOptions = getDataConfig(
1935
     var dialysateFormulationOptions = getDataConfig(
1937
-      "hemodialysis",
1938
-      "dialysate_formulation"
1939
-    );
1936
+      'hemodialysis',
1937
+      'dialysate_formulation'
1938
+    )
1940
     for (var key in dialysateFormulationOptions) {
1939
     for (var key in dialysateFormulationOptions) {
1941
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1940
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
1942
-        dialysateFormulationOptions[key];
1941
+        dialysateFormulationOptions[key]
1943
     }
1942
     }
1944
 
1943
 
1945
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
1944
     //   const xtdate = this.$route.query && this.$route.query.xtdate;
1954
     //   }
1953
     //   }
1955
   },
1954
   },
1956
   mounted() {
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
     if (ids.length == 0) {
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
       .then(rs => {
1963
       .then(rs => {
1965
-        var resp = rs.data;
1964
+        var resp = rs.data
1966
         if (resp.state == 1) {
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
           for (const recordIndex in this.records) {
1969
           for (const recordIndex in this.records) {
1971
-            var dlegh = 0;
1970
+            var dlegh = 0
1972
             if (
1971
             if (
1973
               this.records[recordIndex].monitor_records &&
1972
               this.records[recordIndex].monitor_records &&
1974
               this.records[recordIndex].monitor_records.length < 8
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
             } else {
1976
             } else {
1978
-              dlegh = 0;
1977
+              dlegh = 0
1979
             }
1978
             }
1980
             if (dlegh > 0) {
1979
             if (dlegh > 0) {
1981
               if (
1980
               if (
1982
                 typeof this.records[recordIndex].monitor_records ===
1981
                 typeof this.records[recordIndex].monitor_records ===
1983
-                  "undefined" ||
1982
+                  'undefined' ||
1984
                 this.records[recordIndex].monitor_records == null
1983
                 this.records[recordIndex].monitor_records == null
1985
               ) {
1984
               ) {
1986
-                this.records[recordIndex].monitor_records = [];
1985
+                this.records[recordIndex].monitor_records = []
1987
               }
1986
               }
1988
               for (let index = 0; index < dlegh; index++) {
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
             if (this.records[recordIndex].patient.user_org_id == 9535) {
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
             for (const index in this.records[recordIndex].advices) {
1998
             for (const index in this.records[recordIndex].advices) {
2000
               if (this.records[recordIndex].advices[index].parent_id == 0) {
1999
               if (this.records[recordIndex].advices[index].parent_id == 0) {
2001
-                continue;
2000
+                continue
2002
               }
2001
               }
2003
               if (
2002
               if (
2004
                 !(
2003
                 !(
2007
               ) {
2006
               ) {
2008
                 childMap[
2007
                 childMap[
2009
                   this.records[recordIndex].advices[index].parent_id
2008
                   this.records[recordIndex].advices[index].parent_id
2010
-                ] = [];
2009
+                ] = []
2011
               }
2010
               }
2012
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2011
               childMap[this.records[recordIndex].advices[index].parent_id].push(
2013
                 this.records[recordIndex].advices[index]
2012
                 this.records[recordIndex].advices[index]
2014
-              );
2013
+              )
2015
             }
2014
             }
2016
 
2015
 
2017
-            var advices = [];
2016
+            var advices = []
2018
             for (const index in this.records[recordIndex].advices) {
2017
             for (const index in this.records[recordIndex].advices) {
2019
               if (this.records[recordIndex].advices[index].parent_id > 0) {
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
               if (item.id in childMap) {
2022
               if (item.id in childMap) {
2024
-                item.children = childMap[item.id];
2023
+                item.children = childMap[item.id]
2025
               } else {
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
             for (var i = 0; i < halfLen; i++) {
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
               rightAdvice.push(
2038
               rightAdvice.push(
2040
                 rightIndex in advices ? advices[i + halfLen] : []
2039
                 rightIndex in advices ? advices[i + halfLen] : []
2041
-              );
2040
+              )
2042
             }
2041
             }
2043
             if (halfLen < 5) {
2042
             if (halfLen < 5) {
2044
-              var nl = 5 - leftAdvice.length;
2043
+              var nl = 5 - leftAdvice.length
2045
               for (let index = 0; index < nl; index++) {
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
               for (let index = 0; index < nl; index++) {
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
             for (var i = 0; i < halfLen; i++) {
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
           if (this.operators.length > 0) {
2064
           if (this.operators.length > 0) {
2066
-            var operatorsLen = this.operators.length;
2065
+            var operatorsLen = this.operators.length
2067
             for (var index = 0; index < operatorsLen; index++) {
2066
             for (var index = 0; index < operatorsLen; index++) {
2068
               this.$set(
2067
               this.$set(
2069
                 this.operatorMaps,
2068
                 this.operatorMaps,
2070
                 this.operators[index].id,
2069
                 this.operators[index].id,
2071
                 this.operators[index]
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
         } else {
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
       .catch(err => {
2082
       .catch(err => {
2084
-        this.$message.error(err);
2085
-      });
2083
+        this.$message.error(err)
2084
+      })
2086
   },
2085
   },
2087
   methods: {
2086
   methods: {
2088
     getAge: function(val) {
2087
     getAge: function(val) {
2089
-      val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2088
+      val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
2090
       if (
2089
       if (
2091
         this.org_template_info.template_id == 2 ||
2090
         this.org_template_info.template_id == 2 ||
2092
         this.org_template_info.template_id == 0
2091
         this.org_template_info.template_id == 0
2093
       ) {
2092
       ) {
2094
         if (val.age == 0) {
2093
         if (val.age == 0) {
2095
-          return jsGetAge(val.birth, "-");
2094
+          return jsGetAge(val.birth, '-')
2096
         } else {
2095
         } else {
2097
-          return val.age;
2096
+          return val.age
2098
         }
2097
         }
2099
       } else {
2098
       } else {
2100
-        return jsGetAge(val.birth, "-");
2099
+        return jsGetAge(val.birth, '-')
2101
       }
2100
       }
2102
     },
2101
     },
2103
     printAction: function() {
2102
     printAction: function() {
2104
       const style =
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
       printJS({
2106
       printJS({
2108
-        printable: "print_content",
2109
-        type: "html",
2110
-        documentTitle: "  ",
2107
+        printable: 'print_content',
2108
+        type: 'html',
2109
+        documentTitle: '  ',
2111
         style: style,
2110
         style: style,
2112
         scanStyles: false
2111
         scanStyles: false
2113
-      });
2112
+      })
2114
     },
2113
     },
2115
 
2114
 
2116
     complicationsOther: function(record) {
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
       if (record.complication.length == 0) {
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
       for (const index in complications) {
2124
       for (const index in complications) {
2126
         if (
2125
         if (
2127
           this.complications.indexOf(complications[index]) < 0 &&
2126
           this.complications.indexOf(complications[index]) < 0 &&
2128
           complicationOthers.indexOf(complications[index]) < 0
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
     modeName(mode_id) {
2134
     modeName(mode_id) {
2136
       if (mode_id in this.modeOptions) {
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
     anticoagulantName: function(key) {
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
       if (id in this.anticoagulantsConfit) {
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
     isBbloodAccessParOperaCheck(key, value) {
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
       if (id in this.bloodAccessParOpera) {
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
     isdialysateFormulatioCheck(key, value) {
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
       if (id in this.dialysateFormulationOptions) {
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
     isValueIndexOfCheck: function(record, key, value) {
2170
     isValueIndexOfCheck: function(record, key, value) {
2172
       if (record == null || record == undefined) {
2171
       if (record == null || record == undefined) {
2173
-        return false;
2172
+        return false
2174
       } else {
2173
       } else {
2175
-        return record[key].indexOf(value) > -1;
2174
+        return record[key].indexOf(value) > -1
2176
       }
2175
       }
2177
     },
2176
     },
2178
     setAdminUserES(key, id) {
2177
     setAdminUserES(key, id) {
2179
       if (
2178
       if (
2180
-        typeof key === "undefined" ||
2179
+        typeof key === 'undefined' ||
2181
         key == null ||
2180
         key == null ||
2182
-        typeof key[id] === "undefined"
2181
+        typeof key[id] === 'undefined'
2183
       ) {
2182
       ) {
2184
-        return "";
2183
+        return ''
2185
       }
2184
       }
2186
       if (key[id] == 0) {
2185
       if (key[id] == 0) {
2187
-        return "";
2186
+        return ''
2188
       }
2187
       }
2189
       if (key[id] in this.operatorMaps) {
2188
       if (key[id] in this.operatorMaps) {
2190
-        return this.operatorMaps[key[id]].es_url;
2189
+        return this.operatorMaps[key[id]].es_url
2191
       } else {
2190
       } else {
2192
-        return "";
2191
+        return ''
2193
       }
2192
       }
2194
     },
2193
     },
2195
     getAdminUser(key, id) {
2194
     getAdminUser(key, id) {
2196
       if (
2195
       if (
2197
-        typeof key === "undefined" ||
2196
+        typeof key === 'undefined' ||
2198
         key == null ||
2197
         key == null ||
2199
-        typeof key[id] === "undefined"
2198
+        typeof key[id] === 'undefined'
2200
       ) {
2199
       ) {
2201
-        return "";
2200
+        return ''
2202
       }
2201
       }
2203
       if (key[id] == 0) {
2202
       if (key[id] == 0) {
2204
-        return "";
2203
+        return ''
2205
       }
2204
       }
2206
       if (key[id] == undefined) {
2205
       if (key[id] == undefined) {
2207
-        return "";
2206
+        return ''
2208
       }
2207
       }
2209
       for (let i = 0; i < this.adminUser.length; i++) {
2208
       for (let i = 0; i < this.adminUser.length; i++) {
2210
         if (this.adminUser[i].id == key[id]) {
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
     getTime(value, temp) {
2214
     getTime(value, temp) {
2216
       if (value != undefined) {
2215
       if (value != undefined) {
2217
-        return uParseTime(value, temp);
2216
+        return uParseTime(value, temp)
2218
       }
2217
       }
2219
-      return "";
2218
+      return ''
2220
     },
2219
     },
2221
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2220
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2222
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2221
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2223
     isCheckBoxChecked: function(record, key, target_value) {
2222
     isCheckBoxChecked: function(record, key, target_value) {
2224
       if (record == null || record == undefined) {
2223
       if (record == null || record == undefined) {
2225
-        return false;
2224
+        return false
2226
       } else {
2225
       } else {
2227
-        return record[key] == target_value;
2226
+        return record[key] == target_value
2228
       }
2227
       }
2229
     }
2228
     }
2230
   }
2229
   }
2231
-};
2230
+}
2232
 </script>
2231
 </script>
2233
 
2232
 
2234
 <style scoped>
2233
 <style scoped>

+ 29 - 35
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue View File

689
         var resp = rs.data
689
         var resp = rs.data
690
         if (resp.state == 1) {
690
         if (resp.state == 1) {
691
           this.records = this.records.concat(resp.data.schedules)
691
           this.records = this.records.concat(resp.data.schedules)
692
+         // console.log('hheeeee', this.records)
692
           for (const recordIndex in this.records) {
693
           for (const recordIndex in this.records) {
693
             this.advice_groups = []
694
             this.advice_groups = []
694
             this.advice_groups_2 = []
695
             this.advice_groups_2 = []
695
             var dlegh = 0
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
               var nl = 8
704
               var nl = 8
704
               this.records[recordIndex].print_length = 8
705
               this.records[recordIndex].print_length = 8
705
-              if(this.records[recordIndex].length > 8 ){
706
+              if (this.records[recordIndex].length > 8) {
706
                 this.records[recordIndex].classname = 'margin-bottom-900'
707
                 this.records[recordIndex].classname = 'margin-bottom-900'
707
-              }else {
708
+              } else {
708
                 this.records[recordIndex].classname = 'margin-bottom-300'
709
                 this.records[recordIndex].classname = 'margin-bottom-300'
709
               }
710
               }
710
-            } else{
711
+            } else {
711
               var nl = 9
712
               var nl = 9
712
               this.records[recordIndex].print_length = 9
713
               this.records[recordIndex].print_length = 9
713
-              if(this.records[recordIndex].length > 9 ){
714
+              if (this.records[recordIndex].length > 9) {
714
                 this.records[recordIndex].classname = 'margin-bottom-900'
715
                 this.records[recordIndex].classname = 'margin-bottom-900'
715
-              }else {
716
+              } else {
716
                 this.records[recordIndex].classname = 'margin-bottom-300'
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
               this.records[recordIndex].classname = ' '
722
               this.records[recordIndex].classname = ' '
722
             }
723
             }
723
 
724
 
724
-
725
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
725
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
726
               dlegh = nl - this.records[recordIndex].monitor_records.length
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
               dlegh = nl
729
               dlegh = nl
730
             }
730
             }
731
             if (dlegh > 0) {
731
             if (dlegh > 0) {
738
             }
738
             }
739
 
739
 
740
             this.records[recordIndex].monitor_records2 = []
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
               const tempMonitors = []
742
               const tempMonitors = []
743
               const tempMonitors2 = []
743
               const tempMonitors2 = []
744
 
744
 
749
                   tempMonitors2.push(this.records[recordIndex].monitor_records[index])
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
             var childMap = {}
756
             var childMap = {}
793
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
793
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
794
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
794
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
795
 
795
 
796
-
797
                   var doctor_advice = {
796
                   var doctor_advice = {
798
                     delivery_way: this.doctor_advices[index].delivery_way,
797
                     delivery_way: this.doctor_advices[index].delivery_way,
799
                     execution_frequency: this.doctor_advices[index].execution_frequency,
798
                     execution_frequency: this.doctor_advices[index].execution_frequency,
805
                     execution_staff: this.doctor_advices[index].execution_staff,
804
                     execution_staff: this.doctor_advices[index].execution_staff,
806
                     checker: this.doctor_advices[index].checker,
805
                     checker: this.doctor_advices[index].checker,
807
                     advice_doctor: this.doctor_advices[index].advice_doctor,
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
                   doctor_advice['isShow'] = 1
810
                   doctor_advice['isShow'] = 1
1028
         } else {
1026
         } else {
1029
           return ''
1027
           return ''
1030
         }
1028
         }
1031
-      },getFloat: function(x) {
1029
+      }, getFloat: function(x) {
1032
         if (x != '.') {
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
           if (rs <= 0) {
1034
           if (rs <= 0) {
1037
-            rs = s.length;
1038
-            s += '.';
1035
+            rs = s.length
1036
+            s += '.'
1039
           }
1037
           }
1040
           while (s.length <= rs + 1) {
1038
           while (s.length <= rs + 1) {
1041
-            s += '0';
1039
+            s += '0'
1042
           }
1040
           }
1043
-          return s;
1041
+          return s
1044
         } else {
1042
         } else {
1045
-          return '0.0';
1043
+          return '0.0'
1046
         }
1044
         }
1047
-
1048
       },
1045
       },
1049
       getAdminUser(key, id) {
1046
       getAdminUser(key, id) {
1050
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
1047
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
1081
           return false
1078
           return false
1082
         } else {
1079
         } else {
1083
           return record[key] == target_value
1080
           return record[key] == target_value
1084
-
1085
-
1086
-          
1087
         }
1081
         }
1088
       }, getAge: function(val) {
1082
       }, getAge: function(val) {
1089
         if (val.age == 0) {
1083
         if (val.age == 0) {
1102
             advices: []
1096
             advices: []
1103
           }
1097
           }
1104
         )
1098
         )
1105
-      },getNumber:function(record) {
1099
+      }, getNumber: function(record) {
1106
         console.log(record)
1100
         console.log(record)
1107
       }
1101
       }
1108
     }
1102
     }

+ 85 - 89
src/xt_pages/dialysis/details/dialog/MsgTip.vue View File

5
     :modal-append-to-body="false"
5
     :modal-append-to-body="false"
6
     :append-to-body="true"
6
     :append-to-body="true"
7
   >
7
   >
8
-    <div >
8
+    <div>
9
       <div class="DialogTit">
9
       <div class="DialogTit">
10
         <div class="back" @click="cancle()">
10
         <div class="back" @click="cancle()">
11
           <span class="iconfont">&#xe720; </span>返回
11
           <span class="iconfont">&#xe720; </span>返回
14
           {{ patient_prop.name }} [透析号 {{ patient_prop.dialysis_no }} ]
14
           {{ patient_prop.name }} [透析号 {{ patient_prop.dialysis_no }} ]
15
         </h1>
15
         </h1>
16
         <span @click="comfirm" class="success" style="visibility: hidden;"
16
         <span @click="comfirm" class="success" style="visibility: hidden;"
17
-        >确定</span>
17
+          >确定</span
18
+        >
18
       </div>
19
       </div>
19
 
20
 
20
       <div class="DialogContent">
21
       <div class="DialogContent">
33
         <div class="item">
34
         <div class="item">
34
           <label class="name" for="txms">干体重(kg)</label>
35
           <label class="name" for="txms">干体重(kg)</label>
35
           <div class="content">
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
           </div>
40
           </div>
38
         </div>
41
         </div>
39
         <div class="item">
42
         <div class="item">
40
           <label class="name" for="txms">衣物重(kg)</label>
43
           <label class="name" for="txms">衣物重(kg)</label>
41
           <div class="content">
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
           </div>
48
           </div>
46
         </div>
49
         </div>
47
         <div class="item">
50
         <div class="item">
65
         <div class="item">
68
         <div class="item">
66
           <label class="name" for="txms">上次透后体重(kg)</label>
69
           <label class="name" for="txms">上次透后体重(kg)</label>
67
           <div class="content">
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
           </div>
72
           </div>
72
         </div>
73
         </div>
73
       </div>
74
       </div>
75
   </el-dialog>
76
   </el-dialog>
76
 </template>
77
 </template>
77
 
78
 
78
-
79
 <script>
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
 </script>
168
 </script>
169
 
169
 
170
-<style  scoped>
171
-
172
-
173
-
174
-</style>
170
+<style scoped></style>

File diff suppressed because it is too large
+ 954 - 585
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue


File diff suppressed because it is too large
+ 717 - 561
src/xt_pages/dialysis/dialysisPrintOrder.vue


+ 68 - 26
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue View File

2
   <div id="dialysis-print-box">
2
   <div id="dialysis-print-box">
3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
       <div class="order-yy-name"></div>
4
       <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }}血液净化记录表单</div>
5
+      <div class="order-title">{{ orgname }}血液透析(滤过)记录表单</div>
6
 
6
 
7
       <table class="print-table" style="margin-top: 10px;" border="1">
7
       <table class="print-table" style="margin-top: 10px;" border="1">
8
         <tbody>
8
         <tbody>
46
                 ></label-box>
46
                 ></label-box>
47
                 &nbsp;
47
                 &nbsp;
48
                 <label-box
48
                 <label-box
49
-                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
49
+                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
50
                   showValue="模糊"
50
                   showValue="模糊"
51
                 ></label-box>
51
                 ></label-box>
52
                 &nbsp;
52
                 &nbsp;
53
                 <label-box
53
                 <label-box
54
-                  :isChecked="receiverTreatmentAccess.consciousness == 4 ? true : false"
54
+                  :isChecked="receiverTreatmentAccess.consciousness == 3 ? true : false"
55
                   showValue="昏迷"
55
                   showValue="昏迷"
56
                 ></label-box>
56
                 ></label-box>
57
               </div>
57
               </div>
177
                <td style="text-align:left;">
177
                <td style="text-align:left;">
178
             <span style="display:inline-block;margin-left:15px;"
178
             <span style="display:inline-block;margin-left:15px;"
179
               >透析液(mmol/L):</span
179
               >透析液(mmol/L):</span
180
-            >
180
+            >    
181
+            <span v-if="dialysate_formulation == 1">
182
+              常规(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
+            </span>
181
             <span v-if="dialysate_formulation == 2">
184
             <span v-if="dialysate_formulation == 2">
182
               低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
185
               低钙(钾:{{kalium}}&nbsp;,钙:{{calcium}}&nbsp;,钠:{{sodium}};)
183
             </span>
186
             </span>
201
             >
204
             >
202
             &nbsp;
205
             &nbsp;
203
              <label-box
206
              <label-box
204
-              :isChecked="blood_access_part_opera_id == 14 ? true : false"
207
+              :isChecked="blood_access_part_opera_id == vascularId ? true : false"
205
               showValue="内瘘"
208
               showValue="内瘘"
206
             ></label-box>
209
             ></label-box>
210
+            
207
              &nbsp;
211
              &nbsp;
208
              <label-box
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
               showValue="长期静脉导管"
214
               showValue="长期静脉导管"
211
             ></label-box>
215
             ></label-box>
212
             </label-box>
216
             </label-box>
213
              &nbsp;
217
              &nbsp;
214
              <label-box
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
             ></label-box>
226
             ></label-box>
218
                &nbsp;
227
                &nbsp;
219
              <label-box
228
              <label-box
220
-              :isChecked="blood_access_part_opera_id >= 17 ? true : false"
229
+              :isChecked="blood_access_part_opera_id != vascularId ? true : false"
221
               showValue="其它"
230
               showValue="其它"
222
             ></label-box>
231
             ></label-box>
223
-            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}</span>
232
+            &nbsp;&nbsp;&nbsp;&nbsp;<span>穿刺者:{{nurse}}{{vascularId}}</span>
224
           </td>
233
           </td>
225
         </tr>
234
         </tr>
226
         <tr>
235
         <tr>
235
           <th>病情变化及处理</th>
244
           <th>病情变化及处理</th>
236
          </tr>
245
          </tr>
237
          <tr>
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
           <td>记录</td>
256
           <td>记录</td>
248
          </tr>
257
          </tr>
249
          <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
258
          <tr v-for="(monitor, monindex) in this.monitor" :key="monindex">
268
               ? monitor.diastolic_blood_pressure
277
               ? monitor.diastolic_blood_pressure
269
               : ""
278
               : ""
270
               }}</td>
279
               }}</td>
271
-           <td></td>
280
+           <td>{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:""}}</td>
272
            <td style="line-height:16px;padding:0px;">
281
            <td style="line-height:16px;padding:0px;">
273
               {{ monitor.end }}
282
               {{ monitor.end }}
274
               {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
283
               {{ monitor.symptom }} &nbsp;{{monitor.dispose}} &nbsp;{{ monitor.result }}
335
          <td v-if="advice_index==0">透前体重</td>
344
          <td v-if="advice_index==0">透前体重</td>
336
          <td v-if="advice_index==0">{{weight_before}}kg</td>
345
          <td v-if="advice_index==0">{{weight_before}}kg</td>
337
          <td v-if="advice_index==1">体重增加量</td>
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
          <td v-if="advice_index==2">干体重(DW)</td>
348
          <td v-if="advice_index==2">干体重(DW)</td>
340
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
349
          <td v-if="advice_index==2">{{dry_weight}}kg</td>
341
          <td v-if="advice_index==3">较干体重增加量</td>
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
          <td v-if="advice_index==4">净脱水量</td>
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
          <td v-if="advice_index==5">透后体重</td>
354
          <td v-if="advice_index==5">透后体重</td>
346
          <td v-if="advice_index==5">{{weight_after}}kg</td>
355
          <td v-if="advice_index==5">{{weight_after}}kg</td>
347
          <td v-if="advice_index==6">本次透析体重下降量</td>
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
         </tr>
358
         </tr>
350
         <tr>
359
         <tr>
351
           <td colspan="6" style="text-align:left;min-height:20px">
360
           <td colspan="6" style="text-align:left;min-height:20px">
537
       target_ultrafiltration: '',
546
       target_ultrafiltration: '',
538
       blood_access_internal_fistula: '',
547
       blood_access_internal_fistula: '',
539
       venous_catheterization: '',
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
   methods: {
556
   methods: {
689
           this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
702
           this.blood_access_internal_fistula = predialysis.blood_access_internal_fistula
690
           this.venous_catheterization = predialysis.venous_catheterization
703
           this.venous_catheterization = predialysis.venous_catheterization
691
           this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
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
           this.predialysis = predialysis
718
           this.predialysis = predialysis
693
           console.log('透前评估', this.predialysis)
719
           console.log('透前评估', this.predialysis)
694
 
720
 
879
           // console.log('排班', schedule)
905
           // console.log('排班', schedule)
880
           this.schedule = schedule
906
           this.schedule = schedule
881
           var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
907
           var receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
882
-          // console.log('接诊评估', receiverTreatmentAccess)
908
+          console.log('接诊评估', receiverTreatmentAccess)
883
           this.receiverTreatmentAccess = receiverTreatmentAccess
909
           this.receiverTreatmentAccess = receiverTreatmentAccess
884
           var dialysisway = response.data.data.dialysisway
910
           var dialysisway = response.data.data.dialysisway
885
           console.log('透析处方2', dialysisway)
911
           console.log('透析处方2', dialysisway)
912
           this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
938
           this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
913
           var afterWeightLast = response.data.data.assessmentAfterDislysis
939
           var afterWeightLast = response.data.data.assessmentAfterDislysis
914
           // console.log('上次透后体重', afterWeightLast)
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
           this.afterWeightLast = afterWeightLast.weight_after
947
           this.afterWeightLast = afterWeightLast.weight_after
916
           this.prescription.mode = this.modeName(this.prescription.mode_id)
948
           this.prescription.mode = this.modeName(this.prescription.mode_id)
917
           var rwLen = this.replacementWays.length
949
           var rwLen = this.replacementWays.length
1239
       this.$message.error('参数不齐')
1271
       this.$message.error('参数不齐')
1240
       return false
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
 </script>
1286
 </script>