|
@@ -13,7 +13,6 @@
|
13
|
13
|
</div>
|
14
|
14
|
<div class="app-container">
|
15
|
15
|
<div id="print_content">
|
16
|
|
-
|
17
|
16
|
<div
|
18
|
17
|
v-for="(record, index) in records"
|
19
|
18
|
:key="index"
|
|
@@ -100,56 +99,58 @@
|
100
|
99
|
<div class="inline_block">
|
101
|
100
|
入科方式:
|
102
|
101
|
<!--<check-box-->
|
103
|
|
- <!--v-for="(item, index) in way_arr"-->
|
104
|
|
- <!--:key="index"-->
|
105
|
|
- <!--:text="item.name"-->
|
106
|
|
- <!--:checked="-->
|
107
|
|
- <!--isCheckBoxChecked(-->
|
108
|
|
- <!--record.receive_assessment,-->
|
109
|
|
- <!--'way',-->
|
110
|
|
- <!--item.id-->
|
111
|
|
- <!--)-->
|
112
|
|
- <!--"-->
|
|
102
|
+ <!--v-for="(item, index) in way_arr"-->
|
|
103
|
+ <!--:key="index"-->
|
|
104
|
+ <!--:text="item.name"-->
|
|
105
|
+ <!--:checked="-->
|
|
106
|
+ <!--isCheckBoxChecked(-->
|
|
107
|
+ <!--record.receive_assessment,-->
|
|
108
|
+ <!--'way',-->
|
|
109
|
+ <!--item.id-->
|
|
110
|
+ <!--)-->
|
|
111
|
+ <!--"-->
|
113
|
112
|
<!--></check-box>-->
|
114
|
113
|
<!--<div-->
|
115
|
|
- <!--class="under_line"-->
|
116
|
|
- <!--v-if="record.receive_assessment.way == 0"-->
|
117
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
114
|
+ <!--class="under_line"-->
|
|
115
|
+ <!--v-if="record.receive_assessment.way == 0"-->
|
|
116
|
+ <!--style="width: 180px;text-align: left"-->
|
118
|
117
|
<!--></div>-->
|
119
|
118
|
|
120
|
119
|
<div
|
121
|
|
- v-for="item,index in way_arr"
|
|
120
|
+ v-for="(item, index) in way_arr"
|
122
|
121
|
class="under_line"
|
123
|
122
|
v-if="record.receive_assessment.way == item.id"
|
124
|
123
|
style="width: 180px;text-align: left"
|
125
|
|
- >{{item.name}}</div>
|
|
124
|
+ >
|
|
125
|
+ {{ item.name }}
|
|
126
|
+ </div>
|
126
|
127
|
<!--<div-->
|
127
|
|
- <!--class="under_line"-->
|
128
|
|
- <!--v-if="C.receive_assessment.way == 1"-->
|
129
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
128
|
+ <!--class="under_line"-->
|
|
129
|
+ <!--v-if="C.receive_assessment.way == 1"-->
|
|
130
|
+ <!--style="width: 180px;text-align: left"-->
|
130
|
131
|
<!-->-->
|
131
|
|
- <!--步行-->
|
|
132
|
+ <!--步行-->
|
132
|
133
|
<!--</div>-->
|
133
|
134
|
<!--<div-->
|
134
|
|
- <!--class="under_line"-->
|
135
|
|
- <!--v-if="record.receive_assessment.way == 2"-->
|
136
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
135
|
+ <!--class="under_line"-->
|
|
136
|
+ <!--v-if="record.receive_assessment.way == 2"-->
|
|
137
|
+ <!--style="width: 180px;text-align: left"-->
|
137
|
138
|
<!-->-->
|
138
|
|
- <!--扶行-->
|
|
139
|
+ <!--扶行-->
|
139
|
140
|
<!--</div>-->
|
140
|
141
|
<!--<div-->
|
141
|
|
- <!--class="under_line"-->
|
142
|
|
- <!--v-if="record.receive_assessment.way == 3"-->
|
143
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
142
|
+ <!--class="under_line"-->
|
|
143
|
+ <!--v-if="record.receive_assessment.way == 3"-->
|
|
144
|
+ <!--style="width: 180px;text-align: left"-->
|
144
|
145
|
<!-->-->
|
145
|
|
- <!--轮椅-->
|
|
146
|
+ <!--轮椅-->
|
146
|
147
|
<!--</div>-->
|
147
|
148
|
<!--<div-->
|
148
|
|
- <!--class="under_line"-->
|
149
|
|
- <!--v-if="record.receive_assessment.way == 4"-->
|
150
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
149
|
+ <!--class="under_line"-->
|
|
150
|
+ <!--v-if="record.receive_assessment.way == 4"-->
|
|
151
|
+ <!--style="width: 180px;text-align: left"-->
|
151
|
152
|
<!-->-->
|
152
|
|
- <!--平车-->
|
|
153
|
+ <!--平车-->
|
153
|
154
|
<!--</div>-->
|
154
|
155
|
</div>
|
155
|
156
|
<div class="inline_block" style="margin-left: 10px;">
|
|
@@ -1213,43 +1214,45 @@
|
1213
|
1214
|
<div class="inline_block">
|
1214
|
1215
|
入科方式:
|
1215
|
1216
|
<div
|
1216
|
|
- v-for="item,index in way_arr"
|
|
1217
|
+ v-for="(item, index) in way_arr"
|
1217
|
1218
|
class="under_line"
|
1218
|
1219
|
v-if="record.receive_assessment.way == item.id"
|
1219
|
1220
|
style="width: 180px;text-align: left"
|
1220
|
|
- >{{item.name}}</div>
|
|
1221
|
+ >
|
|
1222
|
+ {{ item.name }}
|
|
1223
|
+ </div>
|
1221
|
1224
|
<!--<div-->
|
1222
|
|
- <!--class="under_line"-->
|
1223
|
|
- <!--v-if="record.receive_assessment.way == 0"-->
|
1224
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
1225
|
+ <!--class="under_line"-->
|
|
1226
|
+ <!--v-if="record.receive_assessment.way == 0"-->
|
|
1227
|
+ <!--style="width: 180px;text-align: left"-->
|
1225
|
1228
|
<!--></div>-->
|
1226
|
1229
|
<!--<div-->
|
1227
|
|
- <!--class="under_line"-->
|
1228
|
|
- <!--v-if="record.receive_assessment == 1"-->
|
1229
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
1230
|
+ <!--class="under_line"-->
|
|
1231
|
+ <!--v-if="record.receive_assessment == 1"-->
|
|
1232
|
+ <!--style="width: 180px;text-align: left"-->
|
1230
|
1233
|
<!-->-->
|
1231
|
|
- <!--步行-->
|
|
1234
|
+ <!--步行-->
|
1232
|
1235
|
<!--</div>-->
|
1233
|
1236
|
<!--<div-->
|
1234
|
|
- <!--class="under_line"-->
|
1235
|
|
- <!--v-if="record.receive_assessment == 2"-->
|
1236
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
1237
|
+ <!--class="under_line"-->
|
|
1238
|
+ <!--v-if="record.receive_assessment == 2"-->
|
|
1239
|
+ <!--style="width: 180px;text-align: left"-->
|
1237
|
1240
|
<!-->-->
|
1238
|
|
- <!--扶行-->
|
|
1241
|
+ <!--扶行-->
|
1239
|
1242
|
<!--</div>-->
|
1240
|
1243
|
<!--<div-->
|
1241
|
|
- <!--class="under_line"-->
|
1242
|
|
- <!--v-if="record.receive_assessment == 3"-->
|
1243
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
1244
|
+ <!--class="under_line"-->
|
|
1245
|
+ <!--v-if="record.receive_assessment == 3"-->
|
|
1246
|
+ <!--style="width: 180px;text-align: left"-->
|
1244
|
1247
|
<!-->-->
|
1245
|
|
- <!--轮椅-->
|
|
1248
|
+ <!--轮椅-->
|
1246
|
1249
|
<!--</div>-->
|
1247
|
1250
|
<!--<div-->
|
1248
|
|
- <!--class="under_line"-->
|
1249
|
|
- <!--v-if="record.receive_assessment == 4"-->
|
1250
|
|
- <!--style="width: 180px;text-align: left"-->
|
|
1251
|
+ <!--class="under_line"-->
|
|
1252
|
+ <!--v-if="record.receive_assessment == 4"-->
|
|
1253
|
+ <!--style="width: 180px;text-align: left"-->
|
1251
|
1254
|
<!-->-->
|
1252
|
|
- <!--平车-->
|
|
1255
|
+ <!--平车-->
|
1253
|
1256
|
<!--</div>-->
|
1254
|
1257
|
</div>
|
1255
|
1258
|
<div class="inline_block" style="margin-left: 10px;">
|
|
@@ -1376,12 +1379,36 @@
|
1376
|
1379
|
class="under_line"
|
1377
|
1380
|
style="width: 100px;text-align: center"
|
1378
|
1381
|
>
|
1379
|
|
- {{
|
1380
|
|
- record.assessment_after_dislysis &&
|
1381
|
|
- record.assessment_after_dislysis.cruor
|
1382
|
|
- ? record.assessment_after_dislysis.cruor
|
1383
|
|
- : "/"
|
1384
|
|
- }}
|
|
1382
|
+ <span
|
|
1383
|
+ v-if="
|
|
1384
|
+ record.assessment_after_dislysis.dialyzer == 0
|
|
1385
|
+ "
|
|
1386
|
+ >/</span
|
|
1387
|
+ >
|
|
1388
|
+ <span
|
|
1389
|
+ v-if="
|
|
1390
|
+ record.assessment_after_dislysis.dialyzer == 1
|
|
1391
|
+ "
|
|
1392
|
+ >透析器0</span
|
|
1393
|
+ >
|
|
1394
|
+ <span
|
|
1395
|
+ v-if="
|
|
1396
|
+ record.assessment_after_dislysis.dialyzer == 2
|
|
1397
|
+ "
|
|
1398
|
+ >透析器+</span
|
|
1399
|
+ >
|
|
1400
|
+ <span
|
|
1401
|
+ v-if="
|
|
1402
|
+ record.assessment_after_dislysis.dialyzer == 3
|
|
1403
|
+ "
|
|
1404
|
+ >透析器++</span
|
|
1405
|
+ >
|
|
1406
|
+ <span
|
|
1407
|
+ v-if="
|
|
1408
|
+ record.assessment_after_dislysis.dialyzer == 4
|
|
1409
|
+ "
|
|
1410
|
+ >透析器+++</span
|
|
1411
|
+ >
|
1385
|
1412
|
</div>
|
1386
|
1413
|
</div>
|
1387
|
1414
|
<div class="inline_block" style="flex:1;">
|
|
@@ -1533,7 +1560,9 @@
|
1533
|
1560
|
style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
|
1534
|
1561
|
>
|
1535
|
1562
|
{{
|
1536
|
|
- record.summer && record.summer.dialysis_summary? record.summer.dialysis_summary: "/"
|
|
1563
|
+ record.summer && record.summer.dialysis_summary
|
|
1564
|
+ ? record.summer.dialysis_summary
|
|
1565
|
+ : "/"
|
1537
|
1566
|
}}
|
1538
|
1567
|
</div>
|
1539
|
1568
|
</div>
|
|
@@ -1796,14 +1825,14 @@
|
1796
|
1825
|
</template>
|
1797
|
1826
|
|
1798
|
1827
|
<script>
|
1799
|
|
-import CheckBox from './option_check_box'
|
1800
|
|
-import { GetBatchPrintDialysisData } from '@/api/print_data'
|
1801
|
|
-import { jsGetAge, uParseTime } from '@/utils/tools'
|
1802
|
|
-import { getDataConfig } from '@/utils/data'
|
1803
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
1804
|
|
-import print from 'print-js'
|
|
1828
|
+import CheckBox from "./option_check_box";
|
|
1829
|
+import { GetBatchPrintDialysisData } from "@/api/print_data";
|
|
1830
|
+import { jsGetAge, uParseTime } from "@/utils/tools";
|
|
1831
|
+import { getDataConfig } from "@/utils/data";
|
|
1832
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
1833
|
+import print from "print-js";
|
1805
|
1834
|
export default {
|
1806
|
|
- name: 'BatchPrintOrderSix',
|
|
1835
|
+ name: "BatchPrintOrderSix",
|
1807
|
1836
|
components: {
|
1808
|
1837
|
CheckBox,
|
1809
|
1838
|
BreadCrumb
|
|
@@ -1811,8 +1840,8 @@ export default {
|
1811
|
1840
|
data() {
|
1812
|
1841
|
return {
|
1813
|
1842
|
crumbs: [
|
1814
|
|
- { path: false, name: '透析管理' },
|
1815
|
|
- { path: false, name: '批量打印' }
|
|
1843
|
+ { path: false, name: "透析管理" },
|
|
1844
|
+ { path: false, name: "批量打印" }
|
1816
|
1845
|
],
|
1817
|
1846
|
|
1818
|
1847
|
way_arr: [],
|
|
@@ -1824,8 +1853,6 @@ export default {
|
1824
|
1853
|
intake_arr: [],
|
1825
|
1854
|
nutrition_arr: [],
|
1826
|
1855
|
|
1827
|
|
-
|
1828
|
|
-
|
1829
|
1856
|
records: [
|
1830
|
1857
|
// 模拟有多条数据
|
1831
|
1858
|
// {
|
|
@@ -1838,7 +1865,7 @@ export default {
|
1838
|
1865
|
// },
|
1839
|
1866
|
],
|
1840
|
1867
|
loading: false,
|
1841
|
|
- orgname: '',
|
|
1868
|
+ orgname: "",
|
1842
|
1869
|
bloodAccessParOpera: {},
|
1843
|
1870
|
anticoagulantsConfit: {},
|
1844
|
1871
|
dialysateFormulationOptions: {},
|
|
@@ -1851,58 +1878,57 @@ export default {
|
1851
|
1878
|
advice_groups_2: [],
|
1852
|
1879
|
blood_access_part: [],
|
1853
|
1880
|
complications: [
|
1854
|
|
- '低血压',
|
1855
|
|
- '高血压',
|
1856
|
|
- '心律失常',
|
1857
|
|
- '头晕',
|
1858
|
|
- '头痛',
|
1859
|
|
- '呕吐',
|
1860
|
|
- '抽搐',
|
1861
|
|
- '出血',
|
1862
|
|
- '心衰',
|
1863
|
|
- '腹痛'
|
|
1881
|
+ "低血压",
|
|
1882
|
+ "高血压",
|
|
1883
|
+ "心律失常",
|
|
1884
|
+ "头晕",
|
|
1885
|
+ "头痛",
|
|
1886
|
+ "呕吐",
|
|
1887
|
+ "抽搐",
|
|
1888
|
+ "出血",
|
|
1889
|
+ "心衰",
|
|
1890
|
+ "腹痛"
|
1864
|
1891
|
]
|
1865
|
|
- }
|
|
1892
|
+ };
|
1866
|
1893
|
},
|
1867
|
1894
|
created() {
|
1868
|
|
- this.way_arr = getDataConfig('hemodialysis', 'way')
|
1869
|
|
- this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
1870
|
|
- this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
1871
|
|
- this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
1872
|
|
- this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
1873
|
|
- this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
1874
|
|
- this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
1875
|
|
- this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
1876
|
|
-
|
1877
|
|
-
|
1878
|
|
- console.log('触发模板6')
|
1879
|
|
- var xtuser = this.$store.getters.xt_user
|
1880
|
|
- console.log('xtuser', xtuser)
|
1881
|
|
- this.orgname = xtuser.org.org_name
|
|
1895
|
+ this.way_arr = getDataConfig("hemodialysis", "way");
|
|
1896
|
+ this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
|
1897
|
+ this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
|
1898
|
+ this.posture_arr = getDataConfig("hemodialysis", "posture");
|
|
1899
|
+ this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
|
1900
|
+ this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
|
1901
|
+ this.intake_arr = getDataConfig("hemodialysis", "intake");
|
|
1902
|
+ this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
|
1903
|
+
|
|
1904
|
+ console.log("触发模板6");
|
|
1905
|
+ var xtuser = this.$store.getters.xt_user;
|
|
1906
|
+ console.log("xtuser", xtuser);
|
|
1907
|
+ this.orgname = xtuser.org.org_name;
|
1882
|
1908
|
// this.orgname = "遂溪方济医院";
|
1883
|
|
- this.modeOptions = this.$store.getters.treatment_mode
|
|
1909
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
1884
|
1910
|
// this.replacementWays = this.$store.getters.replacement_ways;
|
1885
|
1911
|
// this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1886
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
1912
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
1887
|
1913
|
|
1888
|
1914
|
var bloodAccessParOpera = getDataConfig(
|
1889
|
|
- 'hemodialysis',
|
1890
|
|
- 'vascular_access_desc'
|
1891
|
|
- )
|
|
1915
|
+ "hemodialysis",
|
|
1916
|
+ "vascular_access_desc"
|
|
1917
|
+ );
|
1892
|
1918
|
for (var key in bloodAccessParOpera) {
|
1893
|
1919
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1894
|
|
- bloodAccessParOpera[key]
|
|
1920
|
+ bloodAccessParOpera[key];
|
1895
|
1921
|
}
|
1896
|
1922
|
|
1897
|
|
- this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
|
|
1923
|
+ this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
|
1898
|
1924
|
|
1899
|
1925
|
var dialysateFormulationOptions = getDataConfig(
|
1900
|
|
- 'hemodialysis',
|
1901
|
|
- 'dialysate_formulation'
|
1902
|
|
- )
|
|
1926
|
+ "hemodialysis",
|
|
1927
|
+ "dialysate_formulation"
|
|
1928
|
+ );
|
1903
|
1929
|
for (var key in dialysateFormulationOptions) {
|
1904
|
1930
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1905
|
|
- dialysateFormulationOptions[key]
|
|
1931
|
+ dialysateFormulationOptions[key];
|
1906
|
1932
|
}
|
1907
|
1933
|
|
1908
|
1934
|
// const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
@@ -1917,22 +1943,22 @@ export default {
|
1917
|
1943
|
// }
|
1918
|
1944
|
},
|
1919
|
1945
|
mounted() {
|
1920
|
|
- this.loading = true
|
1921
|
|
- var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
|
1946
|
+ this.loading = true;
|
|
1947
|
+ var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
|
1922
|
1948
|
if (ids.length == 0) {
|
1923
|
|
- this.$router.back(-1)
|
1924
|
|
- return
|
|
1949
|
+ this.$router.back(-1);
|
|
1950
|
+ return;
|
1925
|
1951
|
}
|
1926
|
|
- GetBatchPrintDialysisData(ids.join(','))
|
|
1952
|
+ GetBatchPrintDialysisData(ids.join(","))
|
1927
|
1953
|
.then(rs => {
|
1928
|
|
- var resp = rs.data
|
|
1954
|
+ var resp = rs.data;
|
1929
|
1955
|
if (resp.state == 1) {
|
1930
|
|
- this.records = this.records.concat(resp.data.schedules)
|
1931
|
|
- console.log('this', this.records)
|
|
1956
|
+ this.records = this.records.concat(resp.data.schedules);
|
|
1957
|
+ console.log("this", this.records);
|
1932
|
1958
|
for (const recordIndex in this.records) {
|
1933
|
|
- this.advice_groups = []
|
1934
|
|
- this.advice_groups_2 = []
|
1935
|
|
- var dlegh = 0
|
|
1959
|
+ this.advice_groups = [];
|
|
1960
|
+ this.advice_groups_2 = [];
|
|
1961
|
+ var dlegh = 0;
|
1936
|
1962
|
if (
|
1937
|
1963
|
(this.records[recordIndex].assessment_before_dislysis &&
|
1938
|
1964
|
this.records[recordIndex].assessment_before_dislysis
|
|
@@ -1952,20 +1978,20 @@ export default {
|
1952
|
1978
|
this.records[recordIndex].assessment_before_dislysis
|
1953
|
1979
|
.temperature != 0)
|
1954
|
1980
|
) {
|
1955
|
|
- var nl = 6
|
1956
|
|
- this.records[recordIndex].print_length = 8
|
|
1981
|
+ var nl = 6;
|
|
1982
|
+ this.records[recordIndex].print_length = 8;
|
1957
|
1983
|
if (this.records[recordIndex].length > 8) {
|
1958
|
|
- this.records[recordIndex].classname = 'margin-bottom-900'
|
|
1984
|
+ this.records[recordIndex].classname = "margin-bottom-900";
|
1959
|
1985
|
} else {
|
1960
|
|
- this.records[recordIndex].classname = 'margin-bottom-300'
|
|
1986
|
+ this.records[recordIndex].classname = "margin-bottom-300";
|
1961
|
1987
|
}
|
1962
|
1988
|
} else {
|
1963
|
|
- var nl = 6
|
1964
|
|
- this.records[recordIndex].print_length = 9
|
|
1989
|
+ var nl = 6;
|
|
1990
|
+ this.records[recordIndex].print_length = 9;
|
1965
|
1991
|
if (this.records[recordIndex].length > 9) {
|
1966
|
|
- this.records[recordIndex].classname = 'margin-bottom-900'
|
|
1992
|
+ this.records[recordIndex].classname = "margin-bottom-900";
|
1967
|
1993
|
} else {
|
1968
|
|
- this.records[recordIndex].classname = 'margin-bottom-300'
|
|
1994
|
+ this.records[recordIndex].classname = "margin-bottom-300";
|
1969
|
1995
|
}
|
1970
|
1996
|
}
|
1971
|
1997
|
if (
|
|
@@ -1978,64 +2004,64 @@ export default {
|
1978
|
2004
|
].assessment_before_dislysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
|
1979
|
2005
|
this.records[recordIndex].assessment_before_dislysis
|
1980
|
2006
|
.blood_access_part_opera_id
|
1981
|
|
- )
|
|
2007
|
+ );
|
1982
|
2008
|
}
|
1983
|
2009
|
|
1984
|
2010
|
if (recordIndex == this.records.length - 1) {
|
1985
|
|
- this.records[recordIndex].classname = ' '
|
|
2011
|
+ this.records[recordIndex].classname = " ";
|
1986
|
2012
|
}
|
1987
|
2013
|
|
1988
|
|
- this.records[recordIndex].monitor_records2 = []
|
|
2014
|
+ this.records[recordIndex].monitor_records2 = [];
|
1989
|
2015
|
if (
|
1990
|
2016
|
this.records[recordIndex].monitor_records &&
|
1991
|
2017
|
this.records[recordIndex].monitor_records.length < 7
|
1992
|
2018
|
) {
|
1993
|
|
- dlegh = nl - this.records[recordIndex].monitor_records.length
|
|
2019
|
+ dlegh = nl - this.records[recordIndex].monitor_records.length;
|
1994
|
2020
|
}
|
1995
|
2021
|
if (this.records[recordIndex].monitor_records.length <= 0) {
|
1996
|
|
- dlegh = nl
|
|
2022
|
+ dlegh = nl;
|
1997
|
2023
|
}
|
1998
|
2024
|
if (dlegh > 0) {
|
1999
|
2025
|
if (
|
2000
|
2026
|
typeof this.records[recordIndex].monitor_records ===
|
2001
|
|
- 'undefined' ||
|
|
2027
|
+ "undefined" ||
|
2002
|
2028
|
this.records[recordIndex].monitor_records == null
|
2003
|
2029
|
) {
|
2004
|
|
- this.records[recordIndex].monitor_records = []
|
|
2030
|
+ this.records[recordIndex].monitor_records = [];
|
2005
|
2031
|
}
|
2006
|
2032
|
for (let index = 0; index < dlegh; index++) {
|
2007
|
|
- this.records[recordIndex].monitor_records2.push([])
|
|
2033
|
+ this.records[recordIndex].monitor_records2.push([]);
|
2008
|
2034
|
}
|
2009
|
2035
|
}
|
2010
|
2036
|
|
2011
|
|
- var tempmonitorflag = true
|
|
2037
|
+ var tempmonitorflag = true;
|
2012
|
2038
|
for (
|
2013
|
2039
|
let index = 0;
|
2014
|
2040
|
index < this.records[recordIndex].monitor_records.length;
|
2015
|
2041
|
index++
|
2016
|
2042
|
) {
|
2017
|
|
- const monitor = this.records[recordIndex].monitor_records[index]
|
2018
|
|
- this.records[recordIndex].monitor_records[index].end = ''
|
|
2043
|
+ const monitor = this.records[recordIndex].monitor_records[index];
|
|
2044
|
+ this.records[recordIndex].monitor_records[index].end = "";
|
2019
|
2045
|
if (Object.keys(monitor).length > 0 && index > 1) {
|
2020
|
2046
|
if (
|
2021
|
2047
|
monitor.operate_time ==
|
2022
|
2048
|
this.records[recordIndex].dialysis_order.end_time
|
2023
|
2049
|
) {
|
2024
|
2050
|
this.records[recordIndex].monitor_records[index].end =
|
2025
|
|
- '【结束透析】'
|
2026
|
|
- tempmonitorflag = false
|
|
2051
|
+ "【结束透析】";
|
|
2052
|
+ tempmonitorflag = false;
|
2027
|
2053
|
}
|
2028
|
2054
|
if (
|
2029
|
2055
|
tempmonitorflag &&
|
2030
|
2056
|
index == this.records[recordIndex].monitor_records.length - 1
|
2031
|
2057
|
) {
|
2032
|
2058
|
this.records[recordIndex].monitor_records[index].end =
|
2033
|
|
- '【结束透析】'
|
|
2059
|
+ "【结束透析】";
|
2034
|
2060
|
}
|
2035
|
2061
|
}
|
2036
|
2062
|
}
|
2037
|
2063
|
|
2038
|
|
- this.monitor_records = this.records[recordIndex].monitor_records
|
|
2064
|
+ this.monitor_records = this.records[recordIndex].monitor_records;
|
2039
|
2065
|
|
2040
|
2066
|
// this.records[recordIndex].monitor_records2 = []
|
2041
|
2067
|
// if (this.records[recordIndex].monitor_records.length > 13){
|
|
@@ -2053,10 +2079,10 @@ export default {
|
2053
|
2079
|
// this.records[recordIndex].monitor_records2 = tempMonitors2
|
2054
|
2080
|
// }
|
2055
|
2081
|
|
2056
|
|
- var childMap = {}
|
|
2082
|
+ var childMap = {};
|
2057
|
2083
|
for (const index in this.records[recordIndex].advices) {
|
2058
|
2084
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
2059
|
|
- continue
|
|
2085
|
+ continue;
|
2060
|
2086
|
}
|
2061
|
2087
|
if (
|
2062
|
2088
|
!(
|
|
@@ -2065,33 +2091,33 @@ export default {
|
2065
|
2091
|
) {
|
2066
|
2092
|
childMap[
|
2067
|
2093
|
this.records[recordIndex].advices[index].parent_id
|
2068
|
|
- ] = []
|
|
2094
|
+ ] = [];
|
2069
|
2095
|
}
|
2070
|
2096
|
childMap[this.records[recordIndex].advices[index].parent_id].push(
|
2071
|
2097
|
this.records[recordIndex].advices[index]
|
2072
|
|
- )
|
|
2098
|
+ );
|
2073
|
2099
|
}
|
2074
|
2100
|
|
2075
|
|
- var advices = []
|
|
2101
|
+ var advices = [];
|
2076
|
2102
|
for (const index in this.records[recordIndex].advices) {
|
2077
|
2103
|
if (this.records[recordIndex].advices[index].parent_id > 0) {
|
2078
|
|
- continue
|
|
2104
|
+ continue;
|
2079
|
2105
|
}
|
2080
|
|
- var item = this.records[recordIndex].advices[index]
|
|
2106
|
+ var item = this.records[recordIndex].advices[index];
|
2081
|
2107
|
if (item.id in childMap) {
|
2082
|
|
- item.children = childMap[item.id]
|
|
2108
|
+ item.children = childMap[item.id];
|
2083
|
2109
|
} else {
|
2084
|
|
- item.children = []
|
|
2110
|
+ item.children = [];
|
2085
|
2111
|
}
|
2086
|
|
- advices.push(item)
|
|
2112
|
+ advices.push(item);
|
2087
|
2113
|
}
|
2088
|
2114
|
|
2089
|
2115
|
this.doctor_advices =
|
2090
|
2116
|
this.records[recordIndex].advices == null
|
2091
|
2117
|
? []
|
2092
|
|
- : this.records[recordIndex].advices
|
|
2118
|
+ : this.records[recordIndex].advices;
|
2093
|
2119
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
2094
|
|
- this.doctor_advices[index]['isShow'] = 2
|
|
2120
|
+ this.doctor_advices[index]["isShow"] = 2;
|
2095
|
2121
|
}
|
2096
|
2122
|
|
2097
|
2123
|
// if (this.doctor_advices.length > 0) {
|
|
@@ -2231,243 +2257,243 @@ export default {
|
2231
|
2257
|
// }
|
2232
|
2258
|
|
2233
|
2259
|
if (this.doctor_advices.length <= 6) {
|
2234
|
|
- var nl = 6
|
2235
|
|
- this.print_length = 6
|
|
2260
|
+ var nl = 6;
|
|
2261
|
+ this.print_length = 6;
|
2236
|
2262
|
|
2237
|
2263
|
for (let index = 0; index < nl; index++) {
|
2238
|
2264
|
if (
|
2239
|
2265
|
this.doctor_advices[index] == undefined ||
|
2240
|
2266
|
this.doctor_advices[index].length <= 0
|
2241
|
2267
|
) {
|
2242
|
|
- this.doctor_advices.push([])
|
|
2268
|
+ this.doctor_advices.push([]);
|
2243
|
2269
|
} else {
|
2244
|
|
- continue
|
|
2270
|
+ continue;
|
2245
|
2271
|
}
|
2246
|
2272
|
}
|
2247
|
2273
|
}
|
2248
|
|
- this.records[recordIndex].advices = []
|
2249
|
|
- this.records[recordIndex].advices2 = []
|
2250
|
|
- this.records[recordIndex].advices = this.doctor_advices
|
2251
|
|
- this.records[recordIndex].advices2 = this.advice_groups_2
|
|
2274
|
+ this.records[recordIndex].advices = [];
|
|
2275
|
+ this.records[recordIndex].advices2 = [];
|
|
2276
|
+ this.records[recordIndex].advices = this.doctor_advices;
|
|
2277
|
+ this.records[recordIndex].advices2 = this.advice_groups_2;
|
2252
|
2278
|
|
2253
|
2279
|
this.records[recordIndex].totallength =
|
2254
|
|
- this.doctor_advices.length + this.monitor_records.length
|
|
2280
|
+ this.doctor_advices.length + this.monitor_records.length;
|
2255
|
2281
|
}
|
2256
|
2282
|
|
2257
|
|
- this.operators = resp.data.medical_staffs
|
|
2283
|
+ this.operators = resp.data.medical_staffs;
|
2258
|
2284
|
if (this.operators.length > 0) {
|
2259
|
|
- var operatorsLen = this.operators.length
|
|
2285
|
+ var operatorsLen = this.operators.length;
|
2260
|
2286
|
for (var index = 0; index < operatorsLen; index++) {
|
2261
|
2287
|
this.$set(
|
2262
|
2288
|
this.operatorMaps,
|
2263
|
2289
|
this.operators[index].id,
|
2264
|
2290
|
this.operators[index]
|
2265
|
|
- )
|
|
2291
|
+ );
|
2266
|
2292
|
}
|
2267
|
2293
|
}
|
2268
|
2294
|
|
2269
|
|
- this.adminUser = resp.data.users
|
2270
|
|
- console.log("使用者",this.adminUser)
|
2271
|
|
- this.loading = false
|
|
2295
|
+ this.adminUser = resp.data.users;
|
|
2296
|
+ console.log("使用者", this.adminUser);
|
|
2297
|
+ this.loading = false;
|
2272
|
2298
|
} else {
|
2273
|
|
- this.loading = false
|
2274
|
|
- this.$message.error(resp.msg)
|
|
2299
|
+ this.loading = false;
|
|
2300
|
+ this.$message.error(resp.msg);
|
2275
|
2301
|
}
|
2276
|
2302
|
})
|
2277
|
2303
|
.catch(err => {
|
2278
|
|
- this.$message.error(err)
|
2279
|
|
- })
|
|
2304
|
+ this.$message.error(err);
|
|
2305
|
+ });
|
2280
|
2306
|
},
|
2281
|
2307
|
methods: {
|
2282
|
2308
|
getUnit: function(val) {
|
2283
|
2309
|
if (val.assessment_after_dislysis == null) {
|
2284
|
|
- return ''
|
|
2310
|
+ return "";
|
2285
|
2311
|
} else if (val.assessment_after_dislysis != null) {
|
2286
|
2312
|
switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
|
2287
|
2313
|
case 1:
|
2288
|
|
- return 'g'
|
2289
|
|
- break
|
|
2314
|
+ return "g";
|
|
2315
|
+ break;
|
2290
|
2316
|
case 2:
|
2291
|
|
- return 'ml'
|
2292
|
|
- break
|
|
2317
|
+ return "ml";
|
|
2318
|
+ break;
|
2293
|
2319
|
}
|
2294
|
2320
|
}
|
2295
|
2321
|
},
|
2296
|
2322
|
QueryPartById: function(val) {
|
2297
|
|
- let vascular_access_part_name = '/'
|
2298
|
|
- const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
|
|
2323
|
+ let vascular_access_part_name = "/";
|
|
2324
|
+ const vascular_access = getDataConfig("hemodialysis", "vascular_access");
|
2299
|
2325
|
|
2300
|
2326
|
for (let i = 0; i < vascular_access.length; i++) {
|
2301
|
2327
|
if (vascular_access[i].id == val) {
|
2302
|
|
- vascular_access_part_name = vascular_access[i].name
|
|
2328
|
+ vascular_access_part_name = vascular_access[i].name;
|
2303
|
2329
|
}
|
2304
|
2330
|
}
|
2305
|
|
- return vascular_access_part_name
|
|
2331
|
+ return vascular_access_part_name;
|
2306
|
2332
|
},
|
2307
|
2333
|
printAction: function() {
|
2308
|
2334
|
const style =
|
2309
|
|
- '@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; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; 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 50px;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_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.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: 5px 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: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
|
2335
|
+ '@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; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; 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 50px;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_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.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: 5px 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: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
|
2310
|
2336
|
|
2311
|
2337
|
printJS({
|
2312
|
|
- printable: 'print_content',
|
2313
|
|
- type: 'html',
|
2314
|
|
- documentTitle: ' ',
|
|
2338
|
+ printable: "print_content",
|
|
2339
|
+ type: "html",
|
|
2340
|
+ documentTitle: " ",
|
2315
|
2341
|
style: style,
|
2316
|
2342
|
scanStyles: false
|
2317
|
|
- })
|
|
2343
|
+ });
|
2318
|
2344
|
},
|
2319
|
2345
|
|
2320
|
2346
|
complicationsOther: function(record) {
|
2321
|
|
- if (record == null || typeof record === 'undefined') {
|
2322
|
|
- return ''
|
|
2347
|
+ if (record == null || typeof record === "undefined") {
|
|
2348
|
+ return "";
|
2323
|
2349
|
}
|
2324
|
2350
|
if (record.complication.length == 0) {
|
2325
|
|
- return ''
|
|
2351
|
+ return "";
|
2326
|
2352
|
}
|
2327
|
|
- var complications = record.complication.split(',')
|
2328
|
|
- var complicationOthers = []
|
|
2353
|
+ var complications = record.complication.split(",");
|
|
2354
|
+ var complicationOthers = [];
|
2329
|
2355
|
for (const index in complications) {
|
2330
|
2356
|
if (
|
2331
|
2357
|
this.complications.indexOf(complications[index]) < 0 &&
|
2332
|
2358
|
complicationOthers.indexOf(complications[index]) < 0
|
2333
|
2359
|
) {
|
2334
|
|
- complicationOthers.push(complications[index])
|
|
2360
|
+ complicationOthers.push(complications[index]);
|
2335
|
2361
|
}
|
2336
|
2362
|
}
|
2337
|
|
- return complicationOthers.join(',')
|
|
2363
|
+ return complicationOthers.join(",");
|
2338
|
2364
|
},
|
2339
|
2365
|
modeName(mode_id) {
|
2340
|
2366
|
if (mode_id in this.modeOptions) {
|
2341
|
|
- return this.modeOptions[mode_id].name
|
|
2367
|
+ return this.modeOptions[mode_id].name;
|
2342
|
2368
|
}
|
2343
|
|
- return ''
|
|
2369
|
+ return "";
|
2344
|
2370
|
},
|
2345
|
2371
|
anticoagulantName: function(key) {
|
2346
|
|
- if (key == null || typeof key === 'undefined') {
|
2347
|
|
- return ''
|
|
2372
|
+ if (key == null || typeof key === "undefined") {
|
|
2373
|
+ return "";
|
2348
|
2374
|
}
|
2349
|
|
- var id = key.anticoagulant
|
|
2375
|
+ var id = key.anticoagulant;
|
2350
|
2376
|
if (id in this.anticoagulantsConfit) {
|
2351
|
|
- return this.anticoagulantsConfit[id].name
|
|
2377
|
+ return this.anticoagulantsConfit[id].name;
|
2352
|
2378
|
}
|
2353
|
|
- return ''
|
|
2379
|
+ return "";
|
2354
|
2380
|
},
|
2355
|
2381
|
bloodAccessParOperaName(id) {
|
2356
|
2382
|
if (id in this.bloodAccessParOpera) {
|
2357
|
|
- return this.bloodAccessParOpera[id].name
|
|
2383
|
+ return this.bloodAccessParOpera[id].name;
|
2358
|
2384
|
}
|
2359
|
|
- return ''
|
|
2385
|
+ return "";
|
2360
|
2386
|
},
|
2361
|
2387
|
isBbloodAccessParOperaCheck(key, value) {
|
2362
|
|
- if (key == null || typeof key === 'undefined') {
|
2363
|
|
- return false
|
|
2388
|
+ if (key == null || typeof key === "undefined") {
|
|
2389
|
+ return false;
|
2364
|
2390
|
}
|
2365
|
|
- var id = key.blood_access_part_opera_id
|
|
2391
|
+ var id = key.blood_access_part_opera_id;
|
2366
|
2392
|
if (id in this.bloodAccessParOpera) {
|
2367
|
|
- return this.bloodAccessParOpera[id].name.indexOf(value) > -1
|
|
2393
|
+ return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
|
2368
|
2394
|
}
|
2369
|
|
- return false
|
|
2395
|
+ return false;
|
2370
|
2396
|
},
|
2371
|
2397
|
isdialysateFormulatioCheck(key, value) {
|
2372
|
|
- if (key == null || typeof key === 'undefined') {
|
2373
|
|
- return false
|
|
2398
|
+ if (key == null || typeof key === "undefined") {
|
|
2399
|
+ return false;
|
2374
|
2400
|
}
|
2375
|
|
- var id = key.dialysate_formulation
|
|
2401
|
+ var id = key.dialysate_formulation;
|
2376
|
2402
|
if (id in this.dialysateFormulationOptions) {
|
2377
|
|
- return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
|
|
2403
|
+ return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
|
2378
|
2404
|
}
|
2379
|
|
- return false
|
|
2405
|
+ return false;
|
2380
|
2406
|
},
|
2381
|
2407
|
isValueIndexOfCheck: function(record, key, value) {
|
2382
|
2408
|
if (record == null || record == undefined) {
|
2383
|
|
- return false
|
|
2409
|
+ return false;
|
2384
|
2410
|
} else {
|
2385
|
|
- return record[key].indexOf(value) > -1
|
|
2411
|
+ return record[key].indexOf(value) > -1;
|
2386
|
2412
|
}
|
2387
|
2413
|
},
|
2388
|
2414
|
setAdminUserES(key, id) {
|
2389
|
2415
|
if (
|
2390
|
|
- typeof key === 'undefined' ||
|
|
2416
|
+ typeof key === "undefined" ||
|
2391
|
2417
|
key == null ||
|
2392
|
|
- typeof key[id] === 'undefined'
|
|
2418
|
+ typeof key[id] === "undefined"
|
2393
|
2419
|
) {
|
2394
|
|
- return ''
|
|
2420
|
+ return "";
|
2395
|
2421
|
}
|
2396
|
2422
|
if (key[id] == 0) {
|
2397
|
|
- return ''
|
|
2423
|
+ return "";
|
2398
|
2424
|
}
|
2399
|
2425
|
if (key[id] in this.operatorMaps) {
|
2400
|
|
- return this.operatorMaps[key[id]].es_url
|
|
2426
|
+ return this.operatorMaps[key[id]].es_url;
|
2401
|
2427
|
} else {
|
2402
|
|
- return ''
|
|
2428
|
+ return "";
|
2403
|
2429
|
}
|
2404
|
2430
|
},
|
2405
|
2431
|
getFloat: function(x) {
|
2406
|
|
- if (x != '.') {
|
2407
|
|
- var f = Math.round(x * 100) / 100
|
2408
|
|
- var s = f.toString()
|
2409
|
|
- var rs = s.indexOf('.')
|
|
2432
|
+ if (x != ".") {
|
|
2433
|
+ var f = Math.round(x * 100) / 100;
|
|
2434
|
+ var s = f.toString();
|
|
2435
|
+ var rs = s.indexOf(".");
|
2410
|
2436
|
if (rs <= 0) {
|
2411
|
|
- rs = s.length
|
2412
|
|
- s += '.'
|
|
2437
|
+ rs = s.length;
|
|
2438
|
+ s += ".";
|
2413
|
2439
|
}
|
2414
|
2440
|
while (s.length <= rs + 1) {
|
2415
|
|
- s += '0'
|
|
2441
|
+ s += "0";
|
2416
|
2442
|
}
|
2417
|
|
- return s
|
|
2443
|
+ return s;
|
2418
|
2444
|
} else {
|
2419
|
|
- return '0.0'
|
|
2445
|
+ return "0.0";
|
2420
|
2446
|
}
|
2421
|
2447
|
},
|
2422
|
2448
|
getAdminUser(key, id) {
|
2423
|
2449
|
if (
|
2424
|
|
- typeof key === 'undefined' ||
|
|
2450
|
+ typeof key === "undefined" ||
|
2425
|
2451
|
key == null ||
|
2426
|
|
- typeof key[id] === 'undefined'
|
|
2452
|
+ typeof key[id] === "undefined"
|
2427
|
2453
|
) {
|
2428
|
|
- return ''
|
|
2454
|
+ return "";
|
2429
|
2455
|
}
|
2430
|
2456
|
if (key[id] == 0) {
|
2431
|
|
- return ''
|
|
2457
|
+ return "";
|
2432
|
2458
|
}
|
2433
|
2459
|
if (key[id] == undefined) {
|
2434
|
|
- return ''
|
|
2460
|
+ return "";
|
2435
|
2461
|
}
|
2436
|
2462
|
for (let i = 0; i < this.adminUser.length; i++) {
|
2437
|
2463
|
if (this.adminUser[i].id == key[id]) {
|
2438
|
|
- return this.adminUser[i].name
|
|
2464
|
+ return this.adminUser[i].name;
|
2439
|
2465
|
}
|
2440
|
2466
|
}
|
2441
|
2467
|
},
|
2442
|
2468
|
jsGetAge: function(agetime) {
|
2443
|
2469
|
if (agetime == 0) {
|
2444
|
|
- return ''
|
|
2470
|
+ return "";
|
2445
|
2471
|
}
|
2446
|
|
- return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-')
|
|
2472
|
+ return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
|
2447
|
2473
|
},
|
2448
|
2474
|
getTime(value, temp) {
|
2449
|
2475
|
if (value != undefined) {
|
2450
|
|
- return uParseTime(value, temp)
|
|
2476
|
+ return uParseTime(value, temp);
|
2451
|
2477
|
}
|
2452
|
|
- return ''
|
|
2478
|
+ return "";
|
2453
|
2479
|
},
|
2454
|
2480
|
// 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
|
2455
|
2481
|
// 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
|
2456
|
2482
|
isCheckBoxChecked: function(record, key, target_value) {
|
2457
|
2483
|
if (record == null || record == undefined) {
|
2458
|
|
- return false
|
|
2484
|
+ return false;
|
2459
|
2485
|
} else {
|
2460
|
|
- return record[key] == target_value
|
|
2486
|
+ return record[key] == target_value;
|
2461
|
2487
|
}
|
2462
|
2488
|
},
|
2463
|
2489
|
getAge: function(val) {
|
2464
|
2490
|
if (val.age == 0) {
|
2465
|
2491
|
if (val.birthday == 0) {
|
2466
|
|
- return ''
|
|
2492
|
+ return "";
|
2467
|
2493
|
}
|
2468
|
|
- return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
|
|
2494
|
+ return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
|
2469
|
2495
|
} else {
|
2470
|
|
- return val.age
|
|
2496
|
+ return val.age;
|
2471
|
2497
|
}
|
2472
|
2498
|
},
|
2473
|
2499
|
newAdviceGroupObject: function() {
|
|
@@ -2477,13 +2503,13 @@ export default {
|
2477
|
2503
|
group_no: 0,
|
2478
|
2504
|
advices: []
|
2479
|
2505
|
}
|
2480
|
|
- )
|
|
2506
|
+ );
|
2481
|
2507
|
},
|
2482
|
2508
|
getNumber: function(record) {
|
2483
|
|
- console.log(record)
|
|
2509
|
+ console.log(record);
|
2484
|
2510
|
}
|
2485
|
2511
|
}
|
2486
|
|
-}
|
|
2512
|
+};
|
2487
|
2513
|
</script>
|
2488
|
2514
|
|
2489
|
2515
|
<style scoped>
|