Quellcode durchsuchen

需求和bug修改

XMLWAN vor 4 Jahren
Ursprung
Commit
833ede39ae

+ 2 - 2
config/dev.env.js Datei anzeigen

@@ -6,9 +6,9 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
+  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10 10
   // BASE_API:'"http://localhost:9531"',
11
-  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 1 - 0
src/api/data.js Datei anzeigen

@@ -1,6 +1,7 @@
1 1
 import request from '@/utils/request'
2 2
 
3 3
 export function createConfig(params) {
4
+  console.log('params', params)
4 5
   return request({
5 6
     url: '/api/createconfig',
6 7
     method: 'post',

+ 3 - 1
src/lang/zh.js Datei anzeigen

@@ -284,6 +284,8 @@ export default {
284 284
     remark: '备注',
285 285
     course_disease: '病程',
286 286
     rescue_record: '抢救记录',
287
-    manage_ment: '设备管理'
287
+    manage_ment: '设备管理',
288
+    nursing_record: '透析护理记录',
289
+    special_record: '特殊记录'
288 290
   }
289 291
 }

+ 14 - 14
src/utils/data.js Datei anzeigen

@@ -3,7 +3,7 @@ import store from '@/store'
3 3
 export function getDataConfig(module, field) {
4 4
   var storeConfigList = store.getters.configlist
5 5
   var moduleConfig = storeConfigList[module]
6
-  if (module === 'summary' || module === 'education') {
6
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7 7
     var Aresult = []
8 8
     for (var j = 0; j < moduleConfig.length; j++) {
9 9
       var Atemp = []
@@ -15,21 +15,21 @@ export function getDataConfig(module, field) {
15 15
     }
16 16
     return Aresult
17 17
   } else {
18
-      for (var i = 0; i < moduleConfig.length; i++) {
19
-        var newConfig = moduleConfig[i]
20
-        if (newConfig.field_name === field) {
21
-          var result = []
22
-          if(newConfig.childs != null) {
23
-            for (var j = 0; j < newConfig.childs.length; j++) {
24
-              var tempconfig = newConfig.childs[j]
25
-              var temp = []
26
-              temp['id'] = tempconfig.value
27
-              temp['name'] = tempconfig.name
28
-              result.push(temp)
29
-            }
18
+    for (var i = 0; i < moduleConfig.length; i++) {
19
+      var newConfig = moduleConfig[i]
20
+      if (newConfig.field_name === field) {
21
+        var result = []
22
+        if (newConfig.childs != null) {
23
+          for (var j = 0; j < newConfig.childs.length; j++) {
24
+            var tempconfig = newConfig.childs[j]
25
+            var temp = []
26
+            temp['id'] = tempconfig.value
27
+            temp['name'] = tempconfig.name
28
+            result.push(temp)
30 29
           }
31
-          return result
32 30
         }
31
+        return result
33 32
       }
33
+    }
34 34
   }
35 35
 }

+ 5 - 4
src/xt_pages/data/prescription.vue Datei anzeigen

@@ -688,7 +688,7 @@ export default {
688 688
         // },
689 689
         // {
690 690
         //   id: 17,
691
-        //   name: "HDF前置换",
691
+        //   name: "HDF前置换", 
692 692
         //   dialysis_duration: 1,
693 693
         //   replacement_way: 1,
694 694
         //   hemodialysis_machine: 2,
@@ -1034,15 +1034,16 @@ export default {
1034 1034
       );
1035 1035
     },
1036 1036
     "addPlan.anticoagulant_shouji": function() {
1037
-      console.log(this.addPlan.anticoagulant_shouji);
1038
-      console.log(this.addPlan.dialysis_duration);
1039
-      console.log(this.addPlan.anticoagulant_weichi);
1037
+      console.log("首剂", this.addPlan.anticoagulant_shouji);
1038
+      console.log("维持", this.addPlan.anticoagulant_weichi);
1039
+      console.log("总量", this.addPlan.dialysis_duration);
1040 1040
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1041 1041
         1,
1042 1042
         this.addPlan.anticoagulant_shouji,
1043 1043
         this.addPlan.dialysis_duration,
1044 1044
         this.addPlan.anticoagulant_weichi
1045 1045
       );
1046
+      console.log("总量----", this.addPlan.anticoagulant_zongliang);
1046 1047
     },
1047 1048
     "addPlan.anticoagulant_weichi": function() {
1048 1049
       console.log(this.addPlan.anticoagulant_shouji);

+ 43 - 32
src/xt_pages/data/template.vue Datei anzeigen

@@ -1,55 +1,66 @@
1 1
 <template>
2
-<div class="main-contain">
3
-  <div class="position">
4
-    <bread-crumb :crumbs='crumbs'></bread-crumb>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <el-tabs v-model="activeName">
8
+        <el-tab-pane
9
+          v-for="item in tabMapOptions"
10
+          :label="item.label"
11
+          :key="item.key"
12
+          :name="item.key"
13
+          style="display:flex;"
14
+        >
15
+          <keep-alive>
16
+            <div style="display:flex;width:100%;">
17
+              <tab-pane
18
+                v-if="activeName == item.key"
19
+                :type="item.key"
20
+                style="flex:1;"
21
+              ></tab-pane>
22
+            </div>
23
+          </keep-alive>
24
+        </el-tab-pane>
25
+      </el-tabs>
26
+    </div>
5 27
   </div>
6
-  <div class="app-container">
7
-    <el-tabs v-model="activeName" >
8
-      <el-tab-pane v-for="item in tabMapOptions" :label="item.label" :key='item.key' :name="item.key" style="display:flex;">
9
-        <keep-alive>
10
-          <div style="display:flex;width:100%;">
11
-          <tab-pane v-if='activeName==item.key' :type='item.key' style="flex:1;"></tab-pane>
12
-          </div>
13
-        </keep-alive>
14
-      </el-tab-pane>
15
-    </el-tabs>
16
-  </div>
17
-  </div>
18
-
19 28
 </template>
20 29
 
21 30
 <script>
22
-import tabPane from './components/templateTable'
31
+import tabPane from "./components/templateTable";
23 32
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
24 33
 export default {
25
-  name: 'tab',
26
-  components: { tabPane,BreadCrumb},
34
+  name: "tab",
35
+  components: { tabPane, BreadCrumb },
27 36
   data() {
28 37
     return {
29 38
       crumbs: [
30
-        { path: false, name: '管理中心' },
31
-        { path: 'data/template', name: '模版配置' },
39
+        { path: false, name: "管理中心" },
40
+        { path: "data/template", name: "模版配置" }
32 41
       ],
33 42
       tabMapOptions: [
34
-        { label: this.$t("data_config.education"), key: 'education'},
35
-        { label: this.$t("data_config.summary"), key: 'summary'},
36
-        { label: this.$t("data_config.course_disease"), key: 'course_disease' },
37
-        { label: this.$t("data_config.rescue_record"), key: 'rescue_record'}
43
+        { label: this.$t("data_config.education"), key: "education" },
44
+        { label: this.$t("data_config.summary"), key: "summary" },
45
+        { label: this.$t("data_config.nursing_record"), key: "nursing_record" },
46
+        { label: this.$t("data_config.special_record"), key: "special_record" },
47
+        { label: this.$t("data_config.course_disease"), key: "course_disease" },
48
+        { label: this.$t("data_config.rescue_record"), key: "rescue_record" }
38 49
       ],
39
-      activeName: 'education',
50
+      activeName: "education",
40 51
       createdTimes: 0
41
-    }
52
+    };
42 53
   },
43 54
   methods: {
44 55
     showCreatedTimes() {
45
-      this.createdTimes = this.createdTimes + 1
56
+      this.createdTimes = this.createdTimes + 1;
46 57
     }
47 58
   }
48
-}
59
+};
49 60
 </script>
50 61
 
51 62
 <style scoped>
52
-  .tab-container{
53
-    margin: 30px;
54
-  }
63
+.tab-container {
64
+  margin: 30px;
65
+}
55 66
 </style>

+ 108 - 17
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Datei anzeigen

@@ -9,7 +9,7 @@
9 9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
10 10
     <el-form :model="treatmentSummary">
11 11
       <el-row :gutter="20">
12
-        <el-col :span="24">
12
+        <el-col :span="24" v-if="isShow('宣教知识')">
13 13
           <el-form-item label="宣教知识:">
14 14
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
15 15
               <el-option
@@ -22,15 +22,19 @@
22 22
           </el-form-item>
23 23
         </el-col>
24 24
       </el-row>
25
-      <el-form-item>
26
-        <el-input
27
-          type="textarea"
28
-          v-model="treatmentSummary.mission"
29
-          :rows="4"
30
-        ></el-input>
31
-      </el-form-item>
32 25
       <el-row :gutter="20">
33
-        <el-col :span="24">
26
+        <el-col v-if="isShow('宣教知识')">
27
+          <el-form-item>
28
+            <el-input
29
+              type="textarea"
30
+              v-model="treatmentSummary.mission"
31
+              :rows="4"
32
+            ></el-input>
33
+          </el-form-item>
34
+        </el-col>
35
+      </el-row>
36
+      <el-row :gutter="20">
37
+        <el-col :span="24" v-if="isShow('透析小结')">
34 38
           <el-form-item label="透析小结:">
35 39
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
36 40
               <el-option
@@ -43,16 +47,37 @@
43 47
           </el-form-item>
44 48
         </el-col>
45 49
       </el-row>
46
-      <el-form-item>
47
-        <el-input
48
-          type="textarea"
49
-          v-model="treatmentSummary.dialysis_summary"
50
-          :rows="4"
51
-        ></el-input>
52
-      </el-form-item>
50
+      <el-row :gutter="20">
51
+        <el-col v-if="isShow('透析小结')">
52
+          <el-form-item>
53
+            <el-input
54
+              type="textarea"
55
+              v-model="treatmentSummary.dialysis_summary"
56
+              :rows="4"
57
+            ></el-input>
58
+          </el-form-item>
59
+        </el-col>
60
+      </el-row>
53 61
       <el-row :gutter="20">
54 62
         <el-col :span="24" v-if="isShow('透析护理记录')">
55 63
           <el-form-item label="透析护理记录:">
64
+            <el-select
65
+              @change="dialysisNusingRecordSelectChange"
66
+              v-model="value3"
67
+            >
68
+              <el-option
69
+                v-for="(item, index) in nursingRecord"
70
+                :label="item.text"
71
+                :value="item.value"
72
+                :key="index"
73
+              ></el-option>
74
+            </el-select>
75
+          </el-form-item>
76
+        </el-col>
77
+      </el-row>
78
+      <el-row :gutter="20">
79
+        <el-col v-if="isShow('透析护理记录')">
80
+          <el-form-item>
56 81
             <el-input
57 82
               type="textarea"
58 83
               v-model="treatmentSummary.nursing_record"
@@ -64,6 +89,23 @@
64 89
       <el-row :gutter="20">
65 90
         <el-col :span="24" v-if="isShow('特殊记录')">
66 91
           <el-form-item label="特殊记录:">
92
+            <el-select
93
+              @change="dialysisSpecialRecordSelectChange"
94
+              v-model="value4"
95
+            >
96
+              <el-option
97
+                v-for="(item, index) in specialRecord"
98
+                :label="item.text"
99
+                :value="item.value"
100
+                :key="index"
101
+              ></el-option>
102
+            </el-select>
103
+          </el-form-item>
104
+        </el-col>
105
+      </el-row>
106
+      <el-row :gutter="20">
107
+        <el-col v-if="isShow('特殊记录')">
108
+          <el-form-item>
67 109
             <el-input
68 110
               type="textarea"
69 111
               v-model="treatmentSummary.special_record"
@@ -114,11 +156,14 @@ export default {
114 156
       hasPermission: true,
115 157
       value: "",
116 158
       value2: "",
117
-
159
+      value3: "",
160
+      value4: "",
118 161
       isVisibility: false,
119 162
       record_date: "",
120 163
       education: [],
121 164
       summary: [],
165
+      nursingRecord: [],
166
+      specialRecord: [],
122 167
       treatmentSummary: {
123 168
         mission: "",
124 169
         dialysis_summary: "",
@@ -182,6 +227,48 @@ export default {
182 227
         }
183 228
       }
184 229
     },
230
+    dialysisNusingRecordSelectChange: function(values) {
231
+      if (this.treatmentSummary.nursing_record == "") {
232
+        this.treatmentSummary.nursing_record = values;
233
+      } else {
234
+        if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
235
+          if (
236
+            this.treatmentSummary.nursing_record
237
+              .charAt(this.treatmentSummary.nursing_record.length - 1)
238
+              .indexOf("。") == -1
239
+          ) {
240
+            this.treatmentSummary.nursing_record =
241
+              this.treatmentSummary.nursing_record + "," + values;
242
+          } else {
243
+            this.treatmentSummary.nursing_record =
244
+              this.treatmentSummary.nursing_record + "," + values;
245
+            this.treatmentSummary.nursing_record =
246
+              this.treatmentSummary.nursing_record + values;
247
+          }
248
+        }
249
+      }
250
+    },
251
+    dialysisSpecialRecordSelectChange(values) {
252
+      if (this.treatmentSummary.special_record == "") {
253
+        this.treatmentSummary.special_record = values;
254
+      } else {
255
+        if (this.treatmentSummary.special_record.indexOf(values) == -1) {
256
+          if (
257
+            this.treatmentSummary.special_record
258
+              .charAt(this.treatmentSummary.special_record.length - 1)
259
+              .indexOf("。") == -1
260
+          ) {
261
+            this.treatmentSummary.special_record =
262
+              this.treatmentSummary.special_record + "," + values;
263
+          } else {
264
+            this.treatmentSummary.special_record =
265
+              this.treatmentSummary.special_record + "," + values;
266
+            this.treatmentSummary.special_record =
267
+              this.treatmentSummary.special_record + values;
268
+          }
269
+        }
270
+      }
271
+    },
185 272
     handleCancle: function() {
186 273
       this.isVisibility = false;
187 274
     },
@@ -289,6 +376,10 @@ export default {
289 376
     this.education = getDataConfig("education", "education");
290 377
     this.summary = getDataConfig("summary", "summary");
291 378
 
379
+    this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
380
+
381
+    this.specialRecord = getDataConfig("special_record", "special_record");
382
+
292 383
     var date = this.$route.query && this.$route.query.date;
293 384
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
294 385
   }