Bläddra i källkod

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

See999 4 år sedan
förälder
incheckning
8af34823a4

+ 14 - 6
src/api/common/common.js Visa fil

@@ -4,7 +4,7 @@ import url from 'postcss-url'
4 4
 export function getInspectionMajor(params) {
5 5
   return request({
6 6
     url: '/com/api/getinspectionmajor',
7
-    methods: 'get',
7
+    method: 'get',
8 8
     params: params
9 9
   })
10 10
 }
@@ -12,7 +12,7 @@ export function getInspectionMajor(params) {
12 12
 export function getInspectionMinor(id, params) {
13 13
   return request({
14 14
     url: '/com/api/getinspectionminor?id=' + id,
15
-    methods: 'get',
15
+    method: 'get',
16 16
     params: params
17 17
   })
18 18
 }
@@ -20,16 +20,24 @@ export function getInspectionMinor(id, params) {
20 20
 export function getInspectionRange(id, params) {
21 21
   return request({
22 22
     url: '/com/api/getinspectionrange?id=' + id,
23
-    methods: 'get',
23
+    method: 'get',
24 24
     params: params
25 25
   })
26 26
 }
27 27
 
28
-export function saveInspection(data) {
28
+export function saveConfiguration(data) {
29 29
   console.log('data', data)
30 30
   return request({
31
-    url: '/com/api/saveinspction',
32
-    methods: 'post',
31
+    url: '/com/api/saveconfiguration',
32
+    method: 'post',
33 33
     data: data
34 34
   })
35 35
 }
36
+
37
+export function getConfigurationList(params) {
38
+  return request({
39
+    url: 'com/api/getconfigurationlist',
40
+    method: 'get',
41
+    params: params
42
+  })
43
+}

+ 1 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Visa fil

@@ -1712,6 +1712,7 @@ export default {
1712 1712
         this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
1713 1713
           2
1714 1714
         );
1715
+        console.log("体重增加",this.add_weight)
1715 1716
       }
1716 1717
 
1717 1718
       this.isVisibility = true;

+ 37 - 29
src/xt_pages/qcd/statisticalConfiguration.vue Visa fil

@@ -14,11 +14,19 @@
14 14
         </el-col>
15 15
       </el-row>
16 16
       <div class="configTable">
17
-        <el-table :data="tableData" border style="width: 100%">
18
-          <el-table-column prop="date" label="检验检查大项" width="180"></el-table-column>
19
-          <el-table-column prop="name" label="检查小项" width="180"></el-table-column>
20
-          <el-table-column prop="address" label="范围"></el-table-column>
21
-           <el-table-column prop="address" label="单位"></el-table-column>
17
+        <el-table :data="configuraData" border style="width: 100%">
18
+          <el-table-column prop="date" label="检验检查大项" width="180">
19
+              <template slot-scope="scope">{{ scope.row.inspection_major }}</template>
20
+          </el-table-column>
21
+          <el-table-column prop="name" label="检查小项" width="180">
22
+             <template slot-scope="scope">{{ scope.row.inspection_minor }}</template>
23
+          </el-table-column>
24
+          <el-table-column prop="address" label="范围">
25
+             <template slot-scope="scope">{{ scope.row.min_range }} - {{scope.row.large_range}}</template>
26
+          </el-table-column>
27
+           <el-table-column prop="address" label="单位">
28
+              <template slot-scope="scope">{{ scope.row.min_range }}</template>
29
+            </el-table-column>
22 30
             <el-table-column prop="address" label="排序"></el-table-column>
23 31
           <el-table-column label="操作" width="180">
24 32
             <template slot-scope="scope">
@@ -116,7 +124,7 @@ import { GetOICData } from "@/api/qcd";
116 124
 import PieChart from "../qcd/components/BarChart";
117 125
 import { uParseTime } from "@/utils/tools";
118 126
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
119
-import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveInspection }from "@/api/common/common";
127
+import { getInspectionMajor,getInspectionMinor,getInspectionRange,saveConfiguration,getConfigurationList }from "@/api/common/common";
120 128
 export default {
121 129
   name: "dialysisTotal",
122 130
   data() {
@@ -129,28 +137,7 @@ export default {
129 137
       tabActiveName: "control",
130 138
       InspectionMajor:[],
131 139
       InspectionMinor:[],
132
-      tableData: [
133
-        {
134
-          date: "2016-05-02",
135
-          name: "王小虎",
136
-          address: "上海市普陀区金沙江路 1518 弄"
137
-        },
138
-        {
139
-          date: "2016-05-04",
140
-          name: "王小虎",
141
-          address: "上海市普陀区金沙江路 1517 弄"
142
-        },
143
-        {
144
-          date: "2016-05-01",
145
-          name: "王小虎",
146
-          address: "上海市普陀区金沙江路 1519 弄"
147
-        },
148
-        {
149
-          date: "2016-05-03",
150
-          name: "王小虎",
151
-          address: "上海市普陀区金沙江路 1516 弄"
152
-        }
153
-      ],
140
+      configuraData: [],
154 141
       newDialog: false,
155 142
       editDialog: false,
156 143
       formLabelWidth: "120px",
@@ -214,10 +201,29 @@ export default {
214 201
     saveInspection(formName){
215 202
       this.$refs[formName].validate(valid=>{
216 203
         if(valid){
217
-          saveInspection(this.form).then(response=>{
204
+          saveConfiguration(this.form).then(response=>{
205
+            if(response.data.state == 1){
206
+             var standard = response.data.data.standard
207
+             this.$message.success("保存成功")
208
+             this.newDialog = false
209
+             this.form.inspectionMajor = ""
210
+             this.form.inspectionMinor = ""
211
+             this.form.large_range = ""
212
+             this.form.min_range = ""
213
+             this.form.sort = ""
214
+            }
218 215
           })
219 216
         }
220 217
       })
218
+    },
219
+    getConfigurationList(){
220
+      getConfigurationList().then(response=>{
221
+        if(response.data.state === 1){
222
+          var configurationlist = response.data.data.configurationlist
223
+          console.log("列表",configurationlist)
224
+          this.configuraData = configurationlist
225
+        }
226
+      })
221 227
     }
222 228
   },
223 229
   components: {
@@ -227,6 +233,8 @@ export default {
227 233
    created() {
228 234
      //获取检查大项数据来源
229 235
        this.getInspectionMajor()
236
+    //获取表格里面的数据
237
+    this.getConfigurationList()
230 238
    },
231 239
 };
232 240
 </script>

+ 4 - 1
src/xt_pages/user/patients.vue Visa fil

@@ -832,6 +832,9 @@
832 832
                       var month = parseInt(results[i][key].replace(/\s/g,"").split('/')[0])
833 833
                       var day = parseInt(results[i][key].replace(/\s/g,"").split('/')[1])
834 834
                       var year = parseInt(results[i][key].replace(/\s/g,"").split('/')[2])
835
+                      if (year < 10) {
836
+                        year = '0' + year
837
+                      }
835 838
 
836 839
                       if (day < 10) {
837 840
                         day = '0' + day
@@ -839,7 +842,7 @@
839 842
                       if (month < 10) {
840 843
                         month = '0' + month
841 844
                       }
842
-                      obj['first_treatment_date'] = '20' + year + '/' + month + '/' + day
845
+                      obj['first_treatment_date'] = '20' + year.toString() + '/' + month.toString() + '/' + day.toString()
843 846
                     }
844 847
                   }
845 848