See999 пре 4 година
родитељ
комит
1ba47b461c

+ 2 - 2
config/dev.env.js Прегледај датотеку

@@ -5,8 +5,8 @@ const prodEnv = require("./prod.env");
5 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7 7
   //BASE_API: '"https://api.xt.kuyicloud.com"'
8
-  BASE_API: '"http://localhost:9531"'
9
-  // BASE_API: '"http://localhost:9529"'
8
+  // BASE_API: '"http://localhost:9531"'
9
+  BASE_API: '"http://localhost:9529"'
10 10
   //http://api.xt.test.sgjyun.com http://localhost:9529
11 11
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
12 12
   // BASE_API: '"https://api.xt.kuyicloud.com"'

+ 2 - 2
config/prod.env.js Прегледај датотеку

@@ -1,8 +1,8 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
-  BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"'
5
+  // BASE_API: '"https://api.xt.kuyicloud.com"'
6 6
   // BASE_API:'"http://localhost:9529"',
7 7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
   // http://api.xt.test.sgjyun.com

+ 5 - 1
src/pages/main/add_urgent_schedule.vue Прегледај датотеку

@@ -130,6 +130,7 @@
130 130
     </van-popup>
131 131
     <van-popup v-model="show_sch_type_picker" position="bottom" class="popup">
132 132
       <van-picker
133
+        :default-index="defaultIndex"
133 134
         ref="schedule"
134 135
         :columns="schedule_types"
135 136
         value-key="text"
@@ -184,7 +185,8 @@ export default {
184 185
       current_devices: [],
185 186
       zone_device_options: [],
186 187
 
187
-      origin_schedules: []
188
+      origin_schedules: [],
189
+      defaultIndex: 0
188 190
     };
189 191
   },
190 192
   computed: {
@@ -221,6 +223,7 @@ export default {
221 223
       for (let index = 0; index < this.schedule_types.length; index++) {
222 224
         const type = this.schedule_types[index];
223 225
         if (type.value == this.schedule_type) {
226
+          this.defaultIndex = this.schedule_type - 1;
224 227
           return type.text;
225 228
         }
226 229
       }
@@ -251,6 +254,7 @@ export default {
251 254
         // console.log(rs.data.data)
252 255
         if (rs.data.state == 1) {
253 256
           this.origin_schedules = rs.data.data.schedules;
257
+          console.log("数据源", this.origin_schedules);
254 258
           this.patients = rs.data.data.patients;
255 259
           console.log(this.patients);
256 260
           this.modes = rs.data.data.modes;

Разлика између датотеке није приказан због своје велике величине
+ 1088 - 1088
src/pages/main/dialog/PrescriptionDialog.vue


+ 4 - 1
src/utils/tools.js Прегледај датотеку

@@ -186,12 +186,15 @@ export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
186 186
     return 0
187 187
   }
188 188
   shouji = parseFloat(shouji)
189
+  console.log('shouji', shouji)
189 190
   shichang = parseFloat(shichang)
191
+  console.log('时长', shichang)
190 192
   weichi = parseFloat(weichi)
193
+  console.log('维持', weichi)
191 194
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
192 195
     return 0
193 196
   }
194
-
197
+  console.log('总量', (shouji + (shichang - t) * weichi).toFixed(1))
195 198
   return (shouji + (shichang - t) * weichi).toFixed(1)
196 199
 }
197 200