瀏覽代碼

需求和bug修改

XMLWAN 4 年之前
父節點
當前提交
833ede39ae

+ 2 - 2
config/dev.env.js 查看文件

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
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
   // BASE_API:'"http://localhost:9531"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 1 - 0
src/api/data.js 查看文件

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

+ 3 - 1
src/lang/zh.js 查看文件

284
     remark: '备注',
284
     remark: '备注',
285
     course_disease: '病程',
285
     course_disease: '病程',
286
     rescue_record: '抢救记录',
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 查看文件

3
 export function getDataConfig(module, field) {
3
 export function getDataConfig(module, field) {
4
   var storeConfigList = store.getters.configlist
4
   var storeConfigList = store.getters.configlist
5
   var moduleConfig = storeConfigList[module]
5
   var moduleConfig = storeConfigList[module]
6
-  if (module === 'summary' || module === 'education') {
6
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7
     var Aresult = []
7
     var Aresult = []
8
     for (var j = 0; j < moduleConfig.length; j++) {
8
     for (var j = 0; j < moduleConfig.length; j++) {
9
       var Atemp = []
9
       var Atemp = []
15
     }
15
     }
16
     return Aresult
16
     return Aresult
17
   } else {
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 查看文件

688
         // },
688
         // },
689
         // {
689
         // {
690
         //   id: 17,
690
         //   id: 17,
691
-        //   name: "HDF前置换",
691
+        //   name: "HDF前置换", 
692
         //   dialysis_duration: 1,
692
         //   dialysis_duration: 1,
693
         //   replacement_way: 1,
693
         //   replacement_way: 1,
694
         //   hemodialysis_machine: 2,
694
         //   hemodialysis_machine: 2,
1034
       );
1034
       );
1035
     },
1035
     },
1036
     "addPlan.anticoagulant_shouji": function() {
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
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1040
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1041
         1,
1041
         1,
1042
         this.addPlan.anticoagulant_shouji,
1042
         this.addPlan.anticoagulant_shouji,
1043
         this.addPlan.dialysis_duration,
1043
         this.addPlan.dialysis_duration,
1044
         this.addPlan.anticoagulant_weichi
1044
         this.addPlan.anticoagulant_weichi
1045
       );
1045
       );
1046
+      console.log("总量----", this.addPlan.anticoagulant_zongliang);
1046
     },
1047
     },
1047
     "addPlan.anticoagulant_weichi": function() {
1048
     "addPlan.anticoagulant_weichi": function() {
1048
       console.log(this.addPlan.anticoagulant_shouji);
1049
       console.log(this.addPlan.anticoagulant_shouji);

+ 43 - 32
src/xt_pages/data/template.vue 查看文件

1
 <template>
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
   </div>
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
 </template>
28
 </template>
20
 
29
 
21
 <script>
30
 <script>
22
-import tabPane from './components/templateTable'
31
+import tabPane from "./components/templateTable";
23
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
32
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
24
 export default {
33
 export default {
25
-  name: 'tab',
26
-  components: { tabPane,BreadCrumb},
34
+  name: "tab",
35
+  components: { tabPane, BreadCrumb },
27
   data() {
36
   data() {
28
     return {
37
     return {
29
       crumbs: [
38
       crumbs: [
30
-        { path: false, name: '管理中心' },
31
-        { path: 'data/template', name: '模版配置' },
39
+        { path: false, name: "管理中心" },
40
+        { path: "data/template", name: "模版配置" }
32
       ],
41
       ],
33
       tabMapOptions: [
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
       createdTimes: 0
51
       createdTimes: 0
41
-    }
52
+    };
42
   },
53
   },
43
   methods: {
54
   methods: {
44
     showCreatedTimes() {
55
     showCreatedTimes() {
45
-      this.createdTimes = this.createdTimes + 1
56
+      this.createdTimes = this.createdTimes + 1;
46
     }
57
     }
47
   }
58
   }
48
-}
59
+};
49
 </script>
60
 </script>
50
 
61
 
51
 <style scoped>
62
 <style scoped>
52
-  .tab-container{
53
-    margin: 30px;
54
-  }
63
+.tab-container {
64
+  margin: 30px;
65
+}
55
 </style>
66
 </style>

+ 108 - 17
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 查看文件

9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
10
     <el-form :model="treatmentSummary">
10
     <el-form :model="treatmentSummary">
11
       <el-row :gutter="20">
11
       <el-row :gutter="20">
12
-        <el-col :span="24">
12
+        <el-col :span="24" v-if="isShow('宣教知识')">
13
           <el-form-item label="宣教知识:">
13
           <el-form-item label="宣教知识:">
14
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
14
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
15
               <el-option
15
               <el-option
22
           </el-form-item>
22
           </el-form-item>
23
         </el-col>
23
         </el-col>
24
       </el-row>
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
       <el-row :gutter="20">
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
           <el-form-item label="透析小结:">
38
           <el-form-item label="透析小结:">
35
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
39
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
36
               <el-option
40
               <el-option
43
           </el-form-item>
47
           </el-form-item>
44
         </el-col>
48
         </el-col>
45
       </el-row>
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
       <el-row :gutter="20">
61
       <el-row :gutter="20">
54
         <el-col :span="24" v-if="isShow('透析护理记录')">
62
         <el-col :span="24" v-if="isShow('透析护理记录')">
55
           <el-form-item label="透析护理记录:">
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
             <el-input
81
             <el-input
57
               type="textarea"
82
               type="textarea"
58
               v-model="treatmentSummary.nursing_record"
83
               v-model="treatmentSummary.nursing_record"
64
       <el-row :gutter="20">
89
       <el-row :gutter="20">
65
         <el-col :span="24" v-if="isShow('特殊记录')">
90
         <el-col :span="24" v-if="isShow('特殊记录')">
66
           <el-form-item label="特殊记录:">
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
             <el-input
109
             <el-input
68
               type="textarea"
110
               type="textarea"
69
               v-model="treatmentSummary.special_record"
111
               v-model="treatmentSummary.special_record"
114
       hasPermission: true,
156
       hasPermission: true,
115
       value: "",
157
       value: "",
116
       value2: "",
158
       value2: "",
117
-
159
+      value3: "",
160
+      value4: "",
118
       isVisibility: false,
161
       isVisibility: false,
119
       record_date: "",
162
       record_date: "",
120
       education: [],
163
       education: [],
121
       summary: [],
164
       summary: [],
165
+      nursingRecord: [],
166
+      specialRecord: [],
122
       treatmentSummary: {
167
       treatmentSummary: {
123
         mission: "",
168
         mission: "",
124
         dialysis_summary: "",
169
         dialysis_summary: "",
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
     handleCancle: function() {
272
     handleCancle: function() {
186
       this.isVisibility = false;
273
       this.isVisibility = false;
187
     },
274
     },
289
     this.education = getDataConfig("education", "education");
376
     this.education = getDataConfig("education", "education");
290
     this.summary = getDataConfig("summary", "summary");
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
     var date = this.$route.query && this.$route.query.date;
383
     var date = this.$route.query && this.$route.query.date;
293
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
384
     this.record_date = uParseTime(date, "{y}-{m}-{d}");
294
   }
385
   }