XMLWAN 4 лет назад
Родитель
Сommit
bb3a1290d4

+ 36 - 6
src/api/patient/patient.js Просмотреть файл

@@ -76,7 +76,6 @@ export function GetPatientInfo(phone) {
76 76
 }
77 77
 
78 78
 export function savePatient(data) {
79
-  console.log('data', data)
80 79
   return request({
81 80
     url: '/m/api/patient/savepatient',
82 81
     method: 'post',
@@ -183,11 +182,6 @@ export function getMemberPatientInfo(phone) {
183 182
 }
184 183
 
185 184
 export function getCourseManagement(id, limit, page, startime, endtime) {
186
-  console.log('id', id)
187
-  console.log('limit', limit)
188
-  console.log('page', page)
189
-  console.log('startime', startime)
190
-  console.log('endtime', endtime)
191 185
   const params = {
192 186
     id: id,
193 187
     limit: limit,
@@ -217,3 +211,39 @@ export function getCouseManagementDetail(id, params) {
217 211
     params: params
218 212
   })
219 213
 }
214
+
215
+export function DeleteDryWeight(id, params) {
216
+  return request({
217
+    url: '/m/api/patient/deletedryweight?id=' + id,
218
+    method: 'delete',
219
+    params: params
220
+  })
221
+}
222
+
223
+export function getDryWeightDetail(id, params) {
224
+  return request({
225
+    url: '/m/api/patient/getdryweightdetail?id=' + id,
226
+    method: 'get',
227
+    params: params
228
+  })
229
+}
230
+
231
+export function GetLongDialysisRecord(id, limit, page, startime, endtime) {
232
+  console.log('id', id)
233
+  console.log('limit', limit)
234
+  console.log('page', page)
235
+  console.log('startime', startime)
236
+  console.log('endtime', endtime)
237
+  const params = {
238
+    id: id,
239
+    limit: limit,
240
+    page: page,
241
+    startime: startime,
242
+    endtime: endtime
243
+  }
244
+  return request({
245
+    url: '/m/api/patient/getlongdialysisrecord',
246
+    method: 'get',
247
+    params: params
248
+  })
249
+}

+ 27 - 23
src/main.js Просмотреть файл

@@ -1,26 +1,26 @@
1 1
 // The Vue build version to load with the `import` command
2 2
 // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
-import Vue from "vue";
4
-import App from "./App";
5
-import router from "./router";
6
-import MintUI from "mint-ui";
7
-import store from "./store";
8
-import "mint-ui/lib/style.css";
9
-import "./assets/styles/iconfont.css";
10
-import "./permission";
3
+import Vue from 'vue'
4
+import App from './App'
5
+import router from './router'
6
+import MintUI from 'mint-ui'
7
+import store from './store'
8
+import 'mint-ui/lib/style.css'
9
+import './assets/styles/iconfont.css'
10
+import './permission'
11 11
 
12
-import "@/styles/reset.scss";
13
-import "@/styles/variables.scss";
12
+import '@/styles/reset.scss'
13
+import '@/styles/variables.scss'
14 14
 // import "@/styles/style.scss";
15 15
 // eslint-disable-next-line import/no-duplicates
16 16
 // import Vant from "vant";
17 17
 // import "vant/lib/index.css";
18 18
 // import "vant/lib/icon/local.css";
19 19
 // import '@/styles/vant-css/index.css'
20
-import "@/styles/media.scss";
21
-import ElementUI from "element-ui";
22
-import "element-ui/lib/theme-chalk/index.css";
23
-import pinyin from "js-pinyin";
20
+import '@/styles/media.scss'
21
+import ElementUI from 'element-ui'
22
+import 'element-ui/lib/theme-chalk/index.css'
23
+import pinyin from 'js-pinyin'
24 24
 // import "./libs/rem.js";
25 25
 import {
26 26
   DropdownMenu,
@@ -47,9 +47,11 @@ import {
47 47
   Toast,
48 48
   Search,
49 49
   IndexBar,
50
-  IndexAnchor
50
+  IndexAnchor,
51
+  Swipe,
52
+  SwipeItem
51 53
   // eslint-disable-next-line no-irregular-whitespace,import/no-duplicates
52
-} from "vant";
54
+} from 'vant'
53 55
 Vue.use(DropdownMenu)
54 56
   .use(DropdownItem)
55 57
   .use(Tab)
@@ -74,7 +76,9 @@ Vue.use(DropdownMenu)
74 76
   .use(Toast)
75 77
   .use(Search)
76 78
   .use(IndexBar)
77
-  .use(IndexAnchor);
79
+  .use(IndexAnchor)
80
+  .use(Swipe)
81
+  .use(SwipeItem)
78 82
 // import "@/lib/flexible.js";
79 83
 
80 84
 // main.js
@@ -85,20 +89,20 @@ Vue.use(DropdownMenu)
85 89
 // Vue.use(AlertPlugin)
86 90
 // Vue.use(ToastPlugin)
87 91
 
88
-Vue.use(MintUI);
92
+Vue.use(MintUI)
89 93
 // Vue.use(Vant)
90
-Vue.use(ElementUI);
91
-Vue.config.productionTip = false;
94
+Vue.use(ElementUI)
95
+Vue.config.productionTip = false
92 96
 
93 97
 /* eslint-disable no-new */
94 98
 new Vue({
95
-  el: "#app",
99
+  el: '#app',
96 100
   router,
97 101
   store,
98 102
   components: {
99 103
     App
100 104
   },
101
-  template: "<App/>"
102
-});
105
+  template: '<App/>'
106
+})
103 107
 
104 108
 // eslint-disable-next-line no-undef

+ 88 - 45
src/pages/doctorAdvice/components/DryWeight.vue Просмотреть файл

@@ -22,13 +22,17 @@
22 22
           finished-text="没有更多了"
23 23
           @load="onLoad"
24 24
         >
25
-          <div class="adviceOne" v-for="item in dryweight" :key="item.id">
25
+          <div
26
+            class="adviceOne"
27
+            v-for="(item, index) in dryweight"
28
+            :key="index"
29
+          >
26 30
             <div class="adviceTitle">
27 31
               <p>{{ getTime(item.ctime) }}</p>
28 32
               <van-icon
29 33
                 class="ellipsis"
30 34
                 name="ellipsis"
31
-                @click="newShow = true"
35
+                @click="DeleteDryWeight(item.id, index)"
32 36
               />
33 37
             </div>
34 38
             <div class="statOrder">
@@ -39,7 +43,7 @@
39 43
               <div class="doctorBox">
40 44
                 <p>记录医生:{{ item.user_name }}</p>
41 45
               </div>
42
-              <div class="all">全部</div>
46
+              <div class="all" @click="getDryWeightDetail(item.id)">全部</div>
43 47
             </div>
44 48
           </div>
45 49
         </van-list>
@@ -53,55 +57,21 @@
53 57
 
54 58
     <!-- 弹出层 -->
55 59
     <div>
56
-      <van-popup
57
-        v-model="typeShow"
58
-        position="bottom"
59
-        :style="{ height: '40%' }"
60
-      >
61
-        <van-picker
62
-          show-toolbar
63
-          :columns="columns"
64
-          @cancel="onCancel"
65
-          @confirm="onConfirm"
66
-        />
67
-      </van-popup>
68
-      <van-popup
69
-        v-model="startShow"
70
-        position="bottom"
71
-        :style="{ height: '40%' }"
72
-      >
73
-        <van-datetime-picker
74
-          v-model="currentDate"
75
-          type="date"
76
-          :min-date="minDate"
77
-          :max-date="maxDate"
78
-          @confirm="getstartTime"
79
-          @cancel="startShow = false"
80
-        />
81
-      </van-popup>
82
-      <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
83
-        <van-datetime-picker
84
-          v-model="currentDate"
85
-          type="date"
86
-          :min-date="minDate"
87
-          :max-date="maxDate"
88
-          @confirm="getstartTime2"
89
-          @cancel="endShow = false"
90
-        />
91
-      </van-popup>
92 60
       <van-action-sheet
93 61
         v-model="newShow"
94 62
         :actions="actions"
95 63
         cancel-text="取消"
96 64
         @cancel="onCancel"
65
+        @select="onDeleteConfirm"
97 66
       />
98 67
     </div>
99 68
   </div>
100 69
 </template>
101 70
 
102 71
 <script>
103
-import { getDryWeight } from "@/api/patient/patient";
72
+import { getDryWeight, DeleteDryWeight } from "@/api/patient/patient";
104 73
 import { uParseTime } from "@/utils/tools";
74
+import { Dialog } from "vant";
105 75
 const moment = require("moment");
106 76
 export default {
107 77
   data() {
@@ -115,11 +85,22 @@ export default {
115 85
       endTime: moment(new Date()).format("YYYY-MM-DD"),
116 86
       minDate: new Date(1970, 0, 1),
117 87
       maxDate: new Date(2025, 10, 1),
88
+      endTimes: moment(new Date())
89
+        .add(1, "days")
90
+        .format("YYYY-MM-DD"),
118 91
       currentDate: new Date(),
119 92
       actions: [{ name: "编辑" }, { name: "删除" }],
120 93
       page: 1,
121 94
       limit: 10,
122
-      dryweight: []
95
+      dryweight: [],
96
+      patient_id: "",
97
+      total: 0,
98
+      list: [],
99
+      loading: false,
100
+      finished: false,
101
+      typeShow: false,
102
+      dry_id: 0,
103
+      dry_index: 0
123 104
     };
124 105
   },
125 106
   methods: {
@@ -164,28 +145,90 @@ export default {
164 145
       getDryWeight(
165 146
         patientid,
166 147
         this.startTime,
167
-        this.endTime,
148
+        this.endTimes,
168 149
         this.limit,
169 150
         this.page
170 151
       ).then(response => {
171 152
         if (response.data.state === 1) {
172 153
           var dryweight = response.data.data.dryweight;
154
+          let arr = this.dryweight;
155
+          arr.push(...dryweight);
156
+          this.dryweight = arr;
173 157
           console.log("dryweight", dryweight);
174 158
           var total = response.data.data.total;
175 159
           console.log("total", total);
176
-          this.dryweight = dryweight;
160
+          this.total = total;
177 161
         }
178 162
       });
179 163
     },
164
+    onLoad() {
165
+      console.log("触发没有");
166
+      setTimeout(() => {
167
+        for (let i = 0; i < this.limit; i++) {
168
+          this.list.push(this.list.length + 1);
169
+        }
170
+        // 加载状态结束
171
+        this.loading = false;
172
+        console.log("长度", this.dryweight.length);
173
+        if (this.dryweight.length > 10) {
174
+          this.page++;
175
+        }
176
+        console.log("page是什么", this.page);
177
+        this.getDryWeight(
178
+          this.patient_id,
179
+          this.startTime,
180
+          this.endTimes,
181
+          this.limit,
182
+          this.page
183
+        );
184
+        // 数据全部加载完成
185
+        if (this.list.length >= this.total) {
186
+          this.finished = true;
187
+        }
188
+      }, 1000);
189
+    },
180 190
     getTime(time) {
181
-      return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
182
-      // return uParseTime(time, "{y}-{m}-{d}");
191
+      // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
192
+      return uParseTime(time, "{y}-{m}-{d}");
193
+    },
194
+    DeleteDryWeight(id, index) {
195
+      this.newShow = true;
196
+      this.dry_id = id;
197
+      this.dry_index = index;
198
+      console.log("id", this.dry_id);
199
+      console.log("下标", this.dry_index);
200
+    },
201
+    onDeleteConfirm(value) {
202
+      console.log("value是多少", value);
203
+      if (value.name == "删除") {
204
+        this.DeleteDryWeight(this.dry_id, this.dry_index);
205
+      }
206
+    },
207
+    DeleteDryWeight(id, index) {
208
+      Dialog.confirm({
209
+        title: "删除提示!",
210
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
211
+      }).then(() => {
212
+        DeleteDryWeight(id).then(response => {
213
+          if (response.data.state === 1) {
214
+            var msg = response.data.data.msg;
215
+            console.log("msg", msg);
216
+            this.dryweight.splice(index, 1);
217
+            this.newShow = false;
218
+          }
219
+        });
220
+      });
221
+    },
222
+    getDryWeightDetail(id) {
223
+      var patientid = this.$route.query.patientid;
224
+      this.$router.push("/dryweight?id=" + id + "&patientid=" + patientid);
183 225
     }
184 226
   },
185 227
   created() {
186 228
     var patientid = this.$route.query.patientid;
187 229
     console.log("干体重id", patientid);
188 230
     this.getDryWeight(patientid);
231
+    this.patient_id = patientid;
189 232
   }
190 233
 };
191 234
 </script>

+ 293 - 25
src/pages/doctorAdvice/components/LongDialysis.vue Просмотреть файл

@@ -2,12 +2,6 @@
2 2
   <div class="longDialysis">
3 3
     <div>
4 4
       <div class="toolBox">
5
-        <div class="toolOne" @click="typeShow = true">
6
-          <div style="display: flex;align-items: center;">
7
-            {{ type }}
8
-            <van-icon name="arrow-down" />
9
-          </div>
10
-        </div>
11 5
         <div class="toolOne" @click="startShow = true">
12 6
           <div style="display: flex;align-items: center;">
13 7
             {{ startTime }}
@@ -22,21 +16,98 @@
22 16
         </div>
23 17
       </div>
24 18
       <div class="adviceBox">
25
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
26
-          <div class="adviceOne" v-for="item in 3" :key="index">
19
+        <van-list
20
+          v-model="loading"
21
+          :finished="finished"
22
+          finished-text="没有更多了"
23
+          @load="onLoad"
24
+        >
25
+          <div
26
+            class="adviceOne"
27
+            v-for="(item, index) in dialysisrecord"
28
+            :key="index"
29
+          >
27 30
             <div class="adviceTitle">
28
-              <p>2019.09.01</p>
29
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
31
+              <p>{{ getTime(item.created_time) }}</p>
32
+              <van-icon
33
+                class="ellipsis"
34
+                name="ellipsis"
35
+                @click="newShow = true"
36
+              />
30 37
             </div>
31 38
             <div class="orderContent">
32
-              <p>透析模式:HD</p>
33
-              <p>透析时长(h/min):2h30min</p>
34
-              <p>血流量(ml/min):12</p>
35
-              <p>目标超滤量(ml):1200ml</p>
36
-              <p>透析配方:1200ml</p>
37
-              <p>抗凝剂:1200ml</p>
38
-              <p>首剂(mg):1200ml</p>
39
-              <p>维持(mg/h):1200ml</p>
39
+              <p>透析模式:{{ item.mode_id }}</p>
40
+              <p>
41
+                透析时长:{{ item.dialysis_duration_hour }}h{{
42
+                  item.dialysis_duration_minute
43
+                }}min
44
+              </p>
45
+              <p>血流量(ml/min):{{ item.blood_flow_volume }}</p>
46
+              <p>目标超滤量(ml):{{ item.target_ultrafiltration }}</p>
47
+              <p>透析液配方(mmol/L):{{ item.dialysate_formulation }}</p>
48
+              <p>
49
+                抗凝剂:
50
+                <span v-if="item.anticoagulant == 1">无肝素</span>
51
+                <span v-if="item.anticoagulant == 2">普通肝素</span>
52
+                <span v-if="item.anticoagulant == 3">低分子肝素</span>
53
+                <span v-if="item.anticoagulant == 4">阿加曲班</span>
54
+                <span v-if="item.anticoagulant == 5">枸橼酸钠</span>
55
+              </p>
56
+              <p>
57
+                首剂:
58
+                <span>{{ item.anticoagulant_shouji }}</span>
59
+                <span v-if="item.anticoagulant == 1">mg</span>
60
+                <span v-if="item.anticoagulant == 2">mg</span>
61
+                <span v-if="item.anticoagulant == 3">iu</span>
62
+                <span v-if="item.anticoagulant == 4">iu</span>
63
+                <span v-if="item.anticoagulant == 5">mg</span>
64
+              </p>
65
+              <p>
66
+                维持:
67
+                <span>{{ item.anticoagulant_weichi }}</span>
68
+                <span v-if="item.anticoagulant == 1">ml</span>
69
+                <span v-if="item.anticoagulant == 2">iu</span>
70
+                <span v-if="item.anticoagulant == 3">iu</span>
71
+                <span v-if="item.anticoagulant == 4">mg</span>
72
+                <span v-if="item.anticoagulant == 5">ml</span>
73
+              </p>
74
+              <p>
75
+                总量:
76
+                <span>{{ item.anticoagulant_zongliang }}</span>
77
+                <span v-if="item.anticoagulant == 1">mg</span>
78
+                <span v-if="item.anticoagulant == 2">iu</span>
79
+                <span v-if="item.anticoagulant == 3">iu</span>
80
+                <span v-if="item.anticoagulant == 4">mg</span>
81
+                <span v-if="item.anticoagulant == 5">mg</span>
82
+              </p>
83
+              <p>置换量(L):{{ item.replacement_total }}</p>
84
+              <p>钾(mmol/L):{{ item.kalium }}</p>
85
+              <p>钠(mmol/L):{{ item.sodium }}</p>
86
+              <p>钙(mmol/L):{{ item.calcium }}</p>
87
+              <p>透析器/灌流器:{{ item.dialyzer_perfusion_apparatus }}</p>
88
+              <p>碳酸氢盐(mmol/L):{{ item.bicarbonate }}</p>
89
+              <p>葡萄糖(mmol/L):{{ item.glucose }}</p>
90
+              <p>透析液流量(ml/min):{{ item.dialysate_flow }}</p>
91
+              <p>透析液温度(℃):{{ item.dialysate_temperature }}</p>
92
+              <p>
93
+                体液过多症状:
94
+                <span v-if="item.body_fluid == 1">无</span>
95
+                <span v-if="item.body_fluid == 2">下肢水肿+</span>
96
+                <span v-if="item.body_fluid == 3">下肢水肿++</span>
97
+                <span v-if="item.body_fluid == 4">下肢水肿+++</span>
98
+              </p>
99
+              <p>体液过多其他症状:{{ item.body_fluid_other }}</p>
100
+              <p>
101
+                透析前使用特殊药物:{{
102
+                  getSpecialMedicine(item.special_medicine)
103
+                }}
104
+              </p>
105
+              <p>使用其他特殊药物:{{ item.special_medicine_other }}</p>
106
+              <p>置换液:{{ item.displace_liqui_part }}</p>
107
+              <p>置换液总量:{{ item.displace_liqui_value }}</p>
108
+              <p>血管通路:{{ getBloodAccessOption(item.blood_access) }}</p>
109
+              <p>实际超滤量:{{ item.ultrafiltration }}</p>
110
+              <div>备注:{{ item.remark }}</div>
40 111
             </div>
41 112
             <div class="all">全部</div>
42 113
           </div>
@@ -51,10 +122,23 @@
51 122
 
52 123
     <!-- 弹出层 -->
53 124
     <div>
54
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
55
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
125
+      <van-popup
126
+        v-model="typeShow"
127
+        position="bottom"
128
+        :style="{ height: '40%' }"
129
+      >
130
+        <van-picker
131
+          show-toolbar
132
+          :columns="columns"
133
+          @cancel="onCancel"
134
+          @confirm="onConfirm"
135
+        />
56 136
       </van-popup>
57
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
137
+      <van-popup
138
+        v-model="startShow"
139
+        position="bottom"
140
+        :style="{ height: '40%' }"
141
+      >
58 142
         <van-datetime-picker
59 143
           v-model="currentDate"
60 144
           type="date"
@@ -74,12 +158,22 @@
74 158
           @cancel="endShow = false"
75 159
         />
76 160
       </van-popup>
77
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
161
+      <van-action-sheet
162
+        v-model="newShow"
163
+        :actions="actions"
164
+        cancel-text="取消"
165
+        @cancel="onCancel"
166
+      />
78 167
     </div>
79 168
   </div>
80 169
 </template>
81 170
 
82 171
 <script>
172
+import { GetLongDialysisRecord } from "@/api/patient/patient";
173
+import { uParseTime } from "@/utils/tools";
174
+import Vue from "vue";
175
+import { Dialog } from "vant";
176
+const moment = require("moment");
83 177
 export default {
84 178
   data() {
85 179
     return {
@@ -100,12 +194,35 @@ export default {
100 194
         "嘉兴",
101 195
         "湖州"
102 196
       ],
103
-      startTime: "请选择",
104
-      endTime: "请选择",
197
+      startTime: moment()
198
+        .subtract(30, "days")
199
+        .format("YYYY-MM-DD"),
200
+      endTime: moment(new Date()).format("YYYY-MM-DD"),
201
+      endTimes: moment(new Date())
202
+        .add(1, "days")
203
+        .format("YYYY-MM-DD"),
105 204
       minDate: new Date(1970, 0, 1),
106 205
       maxDate: new Date(2025, 10, 1),
107 206
       currentDate: new Date(),
108
-      actions: [{ name: "编辑" }, { name: "删除" }]
207
+      actions: [{ name: "编辑" }, { name: "删除" }],
208
+      loading: false,
209
+      finished: false,
210
+      limit: 10,
211
+      page: 1,
212
+      total: 0,
213
+      anticoagulantsSet: {
214
+        type: 1
215
+      },
216
+      replacementWays: null,
217
+      anticoagulantsConfit: null,
218
+      dialysate_formulation: [],
219
+      body_fluid_option: [],
220
+      special_medicine_option: [],
221
+      displace_liqui_part_option: [],
222
+      blood_access_option: [],
223
+      dialysisrecord: [],
224
+      list: [],
225
+      patient_id: ""
109 226
     };
110 227
   },
111 228
   methods: {
@@ -145,7 +262,158 @@ export default {
145 262
 
146 263
       this.endTime = `${year}-${month}-${day}`;
147 264
       this.endShow = false;
265
+    },
266
+    GetLongDialysisRecord(id) {
267
+      GetLongDialysisRecord(
268
+        id,
269
+        this.limit,
270
+        this.page,
271
+        this.startTime,
272
+        this.endTimes
273
+      ).then(response => {
274
+        if (response.data.state === 1) {
275
+          var dialysis = response.data.data.dialysisrecord;
276
+          for (let index = 0; index < dialysis.length; index++) {
277
+            if (dialysis[index].mode_id === 1) {
278
+              dialysis[index].mode_id = "HD";
279
+            }
280
+            if (dialysis[index].mode_id === 2) {
281
+              dialysis[index].mode_id = "HDF";
282
+            }
283
+            if (dialysis[index].mode_id === 3) {
284
+              dialysis[index].mode_id = "HD+HP";
285
+            }
286
+            if (dialysis[index].mode_id === 4) {
287
+              dialysis[index].mode_id = "HP";
288
+            }
289
+            if (dialysis[index].mode_id === 5) {
290
+              dialysis[index].mode_id = "HF";
291
+            }
292
+            if (dialysis[index].mode_id === 6) {
293
+              dialysis[index].mode_id = "SCUF";
294
+            }
295
+            if (dialysis[index].mode_id === 7) {
296
+              dialysis[index].mode_id = "IUF";
297
+            }
298
+            if (dialysis[index].mode_id === 8) {
299
+              dialysis[index].mode_id = "HFHD";
300
+            }
301
+            if (dialysis[index].mode_id === 9) {
302
+              dialysis[index].mode_id = "HFHD+HP";
303
+            }
304
+            if (dialysis[index].mode_id === 10) {
305
+              dialysis[index].mode_id = "PHF";
306
+            }
307
+            if (dialysis[index].mode_id === 11) {
308
+              dialysis[index].mode_id = "HFR";
309
+            }
310
+            if (dialysis[index].mode_id === 12) {
311
+              dialysis[index].mode_id = "HDF+HP";
312
+            }
313
+            if (dialysis[index].mode_id === 13) {
314
+              dialysis[index].mode_id = "CRRT";
315
+            }
316
+            if (dialysis[index].mode_id === 14) {
317
+              dialysis[index].mode_id = "腹水回输";
318
+            }
319
+            if (dialysis[index].mode_id === 15) {
320
+              dialysis[index].mode_id = "HD前置换";
321
+            }
322
+            if (dialysis[index].mode_id === 16) {
323
+              dialysis[index].mode_id = "HD后置换";
324
+            }
325
+            if (dialysis[index].mode_id === 16) {
326
+              dialysis[index].mode_id = "HDF前置换";
327
+            }
328
+            if (dialysis[index].mode_id === 16) {
329
+              dialysis[index].mode_id = "HDF后置换";
330
+            }
331
+
332
+            if (dialysis[index].dialysate_formulation === 1) {
333
+              dialysis[index].dialysate_formulation = "常规";
334
+            }
335
+            if (dialysis[index].dialysate_formulation === 2) {
336
+              dialysis[index].dialysate_formulation = "低钙";
337
+            }
338
+            if (dialysis[index].dialysate_formulation === 1) {
339
+              dialysis[index].dialysate_formulation = "高钙";
340
+            }
341
+            if (dialysis[index].dialysate_formulation === 1) {
342
+              dialysis[index].dialysate_formulation = "低钠";
343
+            }
344
+            if (dialysis[index].dialysate_formulation === 1) {
345
+              dialysis[index].dialysate_formulation = "高钠";
346
+            }
347
+          }
348
+          let arr = this.dialysisrecord;
349
+          arr.push(...dialysis);
350
+          this.dialysisrecord = arr;
351
+          console.log("长期透析处方", dialysis);
352
+          var total = response.data.data.total;
353
+          console.log("total", total);
354
+        }
355
+      });
356
+    },
357
+    onLoad() {
358
+      setTimeout(() => {
359
+        for (let i = 0; i < this.limit; i++) {
360
+          this.list.push(this.list.length + 1);
361
+        }
362
+        // 加载状态结束
363
+        this.loading = false;
364
+        console.log("长期处方", this.dialysisrecord.length);
365
+        if (this.dialysisrecord.length >= 10) {
366
+          this.page++;
367
+        }
368
+        console.log("页数", this.page);
369
+        this.GetLongDialysisRecord(
370
+          this.patient_id,
371
+          this.limit,
372
+          this.page,
373
+          this.startTime,
374
+          this.endTimes
375
+        );
376
+        // 数据全部加载完成
377
+        if (this.list.length >= this.total) {
378
+          this.finished = true;
379
+        }
380
+      }, 5000);
381
+    },
382
+    getTime(time) {
383
+      // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
384
+      return uParseTime(time, "{y}-{m}-{d}");
385
+    },
386
+    getBloodAccessOption(id) {
387
+      for (let i = 0; i < this.blood_access_option.length; i++) {
388
+        if ((this.blood_access_option[i].id = id)) {
389
+          return this.blood_access_option[i].name;
390
+        }
391
+      }
392
+    },
393
+    getSpecialMedicine(id) {
394
+      for (let i = 0; i < this.special_medicine_option.length; i++) {
395
+        if ((this.special_medicine_option[i].id = id)) {
396
+          return this.blood_access_option[i].name;
397
+        }
398
+      }
148 399
     }
400
+  },
401
+  created() {
402
+    var patientid = this.$route.query.patientid;
403
+    this.patient_id = patientid;
404
+    console.log("长期透析处方", patientid);
405
+    this.GetLongDialysisRecord(patientid);
406
+    this.blood_access_option = this.$store.getters.blood_access;
407
+    console.log("血管通路", this.blood_access_option);
408
+    this.anticoagulantsSet = this.$store.getters.anticoagulants_set;
409
+    this.replacementWays = this.$store.getters.replacement_ways;
410
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
411
+    this.blood_filters = this.$store.getters.blood_filters;
412
+    this.dialysate_formulation = this.$store.getters.dialysate_formulation;
413
+    this.body_fluid_option = this.$store.getters.body_fluid;
414
+    this.special_medicine_option = this.$store.getters.special_medicine;
415
+    console.log("透析前使用其他药物", this.special_medicine_option);
416
+    this.displace_liqui_part_option = this.$store.getters.displace_liqui;
149 417
   }
150 418
 };
151 419
 </script>

+ 7 - 7
src/pages/patientManagement/components/Blood.vue Просмотреть файл

@@ -81,7 +81,7 @@ export default {
81 81
       list: [],
82 82
       loading: false,
83 83
       finished: false,
84
-      page: 0,
84
+      page: 1,
85 85
       limit: 10,
86 86
       total: 0,
87 87
       value1: 0,
@@ -109,7 +109,6 @@ export default {
109 109
     };
110 110
   },
111 111
   methods: {
112
-    onLoad() {},
113 112
     onCancel(value) {
114 113
       this.typeShow = false;
115 114
     },
@@ -128,13 +127,12 @@ export default {
128 127
     getAllBloodDialysisPatient() {
129 128
       getAllBloodDialysisPatient(this.page, this.limit).then(response => {
130 129
         if (response.data.state === 1) {
131
-          var bloodpatient = response.data.data.bloodpatient;
130
+          var patient = response.data.data.bloodpatient;
132 131
           let arr = this.patients;
133
-          arr.push(...bloodpatient);
132
+          arr.push(...patient);
134 133
           this.patients = arr;
135
-          console.log("血透病人", bloodpatient);
136 134
           var total = response.data.data.total;
137
-          // console.log("总计", total);
135
+          this.total = total;
138 136
         }
139 137
       });
140 138
     },
@@ -145,9 +143,11 @@ export default {
145 143
         }
146 144
         // 加载状态结束
147 145
         this.loading = false;
148
-        if (this.patients.length > 10) {
146
+        console.log("长度", this.patients.length);
147
+        if (this.patients.length >= 10) {
149 148
           this.page++;
150 149
         }
150
+        console.log("页数", this.page);
151 151
         this.getAllBloodDialysisPatient(this.page, this.limit);
152 152
         // 数据全部加载完成
153 153
         if (this.list.length >= this.total) {

+ 2 - 4
src/pages/patientManagement/patientManagement.vue Просмотреть файл

@@ -119,11 +119,9 @@ export default {
119 119
         }
120 120
         // 加载状态结束
121 121
         this.loading = false;
122
-        console.log("长度", this.patients.length);
123
-        if (this.patients.length > 10) {
122
+        if (this.patients.length >= 10) {
124 123
           this.page++;
125 124
         }
126
-        console.log("page是什么", this.page);
127 125
         this.getBloodDialysisPatient(this.page, this.limit);
128 126
         // 数据全部加载完成
129 127
         if (this.list.length >= this.total) {
@@ -141,7 +139,7 @@ export default {
141 139
           this.patients = arr;
142 140
           var total = response.data.data.total;
143 141
           this.total = total;
144
-          // console.log("总计", total);
142
+          console.log("总计", total);
145 143
         }
146 144
       });
147 145
     },

+ 6 - 0
src/router/index.js Просмотреть файл

@@ -37,6 +37,12 @@ export default new Router({
37 37
       name: 'coursedetail',
38 38
       component: () => import('@/pages/allCourseManagement/index')
39 39
     },
40
+    // 全部干体重
41
+    {
42
+      path: '/dryweight',
43
+      name: 'dryweight',
44
+      component: () => import('@/pages/allDryWeight/index')
45
+    },
40 46
     //
41 47
     {
42 48
       path: '/patientdetail',