Bladeren bron

Merge branch 'superman' of http://git.shengws.com:3000/zhangbj/xt_vue into superman

zhengchengwu 6 jaren geleden
bovenliggende
commit
94aa579e52

+ 1 - 1
config/dev.env.js Bestand weergeven

@@ -6,5 +6,5 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://localhost:9529"', // '"http://localhost:9529"'//http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API:'"http://localhost:9529"', //'"http://112.74.16.180:9527"', //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
10 10
 }

+ 11 - 1
src/api/signandweigh.js Bestand weergeven

@@ -1,7 +1,7 @@
1 1
 import request from '@/utils/request'
2 2
 
3 3
 export function fetchSignPatients(params) {
4
-  console.log("bbbbbbbbbbbbbbb")
4
+  console.log("bbbbbbbbbbbbbbb号码")
5 5
   console.log(params)
6 6
   return request({
7 7
     url: '/api/sign/patients',
@@ -62,3 +62,13 @@ export function editdata(params) {
62 62
     params: params
63 63
   })
64 64
 }
65
+
66
+export function sighdata(params){
67
+  console.log("好还哦")
68
+  console.log(params)
69
+   return request({
70
+     url: '/api/sigh/sighdata',
71
+     params: params,   
72
+     method: 'Post'
73
+   })
74
+}

+ 7 - 7
src/lang/zh.js Bestand weergeven

@@ -136,22 +136,22 @@ export default {
136 136
     special_permission_manage: '特殊权限管理',
137 137
     schedule_print: '排班打印',
138 138
 
139
-    stockInOrder: '入库单',
140
-    salesReturnOrder: '退货单',
141
-    stockOutOrder: '出库单',
142
-    cancelStockOrder: '出库退库单',
139
+    stockInOrder: '耗材入库单',
140
+    salesReturnOrder: '耗材退货单',
141
+    stockOutOrder: '耗材出库单',
142
+    cancelStockOrder: '耗材退库单',
143 143
     otherStockInOrder: '其他入库单',
144 144
     otherSalesReturnOrder: '其他退货单',
145 145
     otherStockOutOrder: '其他出库单',
146
-    otherCancelStockOrder: '其他出库退库单',
146
+    otherCancelStockOrder: '其他退库单',
147 147
     stockInOrderAdd: '新增入库单',
148 148
     salesReturnOrderAdd: '新增退货单',
149 149
     stockOutOrderAdd: '新增出库单',
150
-    cancelStockOrderAdd: '新增出库退库单',
150
+    cancelStockOrderAdd: '新增退库单',
151 151
     stockInDetail: '入库单详情',
152 152
     salesReturnDetail: '退货单详情',
153 153
     stockOutDetail: '出库单详情',
154
-    cancelStockDetail: '出库退库单详情',
154
+    cancelStockDetail: '退库单详情',
155 155
     stockDetail:'出入库明细查询',
156 156
 
157 157
   },

+ 1 - 1
src/xt_pages/data/components/table.vue Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="" style="margin-right:20px;">
3
-    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row @current-change="handleRowChange"
3
+    <el-table style="margin-top: 42px;" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row @current-change="handleRowChange"
4 4
       >
5 5
       <el-table-column  align="center" label="名称">
6 6
         <template slot-scope="scope">

+ 1 - 1
src/xt_pages/data/components/tableson.vue Bestand weergeven

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="">
3 3
     <div class="filter-container">
4
-      <el-button class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
4
+      <el-button style="float: right;margin-right: 20px" class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5 5
     </div>
6 6
 
7 7
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row

+ 0 - 1
src/xt_pages/dialysis/details/index.vue Bestand weergeven

@@ -249,7 +249,6 @@ export default {
249 249
   data() {
250 250
     return {
251 251
       crumbs:[
252
-        {path:false, name:'科室质控'},
253 252
         {path:false, name:'透析管理'},
254 253
         {path:false, name:'透析记录'},
255 254
         {path:false, name:'透析单'},

+ 98 - 45
src/xt_pages/sign/index.vue Bestand weergeven

@@ -35,7 +35,7 @@
35 35
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
36 36
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
37 37
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
38
-                    <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center" >
38
+                    <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
39 39
                         <template slot-scope="scope">
40 40
                             {{scope.row.before}} / {{scope.row.after}}
41 41
                         </template>
@@ -88,9 +88,7 @@
88 88
                             </el-form-item>
89 89
                         </el-col>
90 90
                     </el-row>
91
-
92
-                    <div class="border"></div>
93
-                    
91
+                    <div class="border"></div>                  
94 92
                     <el-row :gutter="20">
95 93
                         <el-col :span="8">
96 94
                             <el-form-item label="透后称重(kg):" label-width="100px">
@@ -133,7 +131,7 @@
133 131
                     <el-row :gutter="20">
134 132
                         <el-col :span="23" align="right" class="button">
135 133
                             <el-button  @click="hide()">取消</el-button>
136
-                            <el-button @click="savedata();updatedata()" type="primary">保存</el-button>
134
+                            <el-button @click="savedata();updatedata();sighdata()" type="primary">保存</el-button>
137 135
                         </el-col>
138 136
                     </el-row>
139 137
                    </div>
@@ -145,7 +143,7 @@
145 143
 </template>
146 144
 
147 145
 <script>
148
-import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata } from '@/api/signandweigh'
146
+import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata,sighdata} from '@/api/signandweigh'
149 147
 import BreadCrumb from '../components/bread-crumb'
150 148
 export default {
151 149
   name: 'sign',
@@ -259,9 +257,6 @@ export default {
259 257
               if (this.schedules[index].type in response.data.data.panel) {
260 258
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
261 259
                 this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
262
-                console.log("签到统计")
263
-                console.log(response.data.data.panel)
264
-                console.log(this.schedules[index].sign)
265 260
                 this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
266 261
                 this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
267 262
               }
@@ -270,37 +265,37 @@ export default {
270 265
         }
271 266
       })
272 267
     },
273
-    //   getPatientSign(){
274
-    //       getPatientSign(this.querySignParams).then(response=>{
275
-    //           if (response.data.state==1) {
276
-    //               if (response.data.data.sign != null) {
277
-    //                   var sign = response.data.data.sign;
278
-    //                   this.weigh_form.dry_weight = sign.dry_weight;
279
-    //                   this.weigh_form.clothes_weight = sign.clothes_weight;
280
-    //                     // 透前
281
-    //                   this.weigh_form.weigh_before = sign.weigh_before;
282
-    //                   this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
283
-    //                   this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
284
-    //                   this.weigh_form.weight_before = sign.weight_before;
285
-    //                   this.weigh_form.temperature_before = sign.temperature_before;
286
-    //                   this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
287
-    //                   this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
288
-    //                   this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
289
-    //                   this.weigh_form.SBP_before = sign.SBP_before // 收缩压
290
-    //                     // 透后
291
-    //                   this.weigh_form.weigh_after = sign.weigh_after;
292
-    //                   this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
293
-    //                   this.weigh_form.weight_after = sign.weight_after
294
-    //                   this.weigh_form.temperature_after = sign.temperature_after;
295
-    //                   this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
296
-    //                   this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
297
-    //                   this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
298
-    //                   this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
299
-    //                   this.weigh_form.id=sign.id;
300
-    //               }
301
-    //           }
302
-    //       });
303
-    //   },
268
+      // getPatientSign(){
269
+      //     getPatientSign(this.querySignParams).then(response=>{
270
+      //         if (response.data.state==1) {
271
+      //             if (response.data.data.sign != null) {
272
+      //                 var sign = response.data.data.sign;
273
+      //                 this.weigh_form.dry_weight = sign.dry_weight;
274
+      //                 this.weigh_form.clothes_weight = sign.clothes_weight;
275
+      //                   // 透前
276
+      //                 this.weigh_form.weigh_before = sign.weigh_before;
277
+      //                 this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
278
+      //                 this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
279
+      //                 this.weigh_form.weight_before = sign.weight_before;
280
+      //                 this.weigh_form.temperature_before = sign.temperature_before;
281
+      //                 this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
282
+      //                 this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
283
+      //                 this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
284
+      //                 this.weigh_form.SBP_before = sign.SBP_before // 收缩压
285
+      //                   // 透后
286
+      //                 this.weigh_form.weigh_after = sign.weigh_after;
287
+      //                 this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
288
+      //                 this.weigh_form.weight_after = sign.weight_after
289
+      //                 this.weigh_form.temperature_after = sign.temperature_after;
290
+      //                 this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
291
+      //                 this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
292
+      //                 this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
293
+      //                 this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
294
+      //                 this.weigh_form.id=sign.id;
295
+      //             }
296
+      //         }
297
+      //     });
298
+      // },
304 299
     changeSearch() {
305 300
       this.queryParams.need_schedule_type = 0
306 301
       this.fetchSignPatients()
@@ -438,8 +433,6 @@ export default {
438 433
           this.weigh_list.breathing_rate = patientlist.breathing_rate
439 434
           this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
440 435
           this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
441
-          console.log('报恩')
442
-          console.log(patientlist)
443 436
         }
444 437
       })
445 438
     },
@@ -482,8 +475,6 @@ export default {
482 475
           })
483 476
         }
484 477
       })
485
-      console.log('aaaaaaaaaaaaaaaaaa')
486
-      console.log(params)
487 478
     },
488 479
     hide() {
489 480
       this.show = false
@@ -508,7 +499,69 @@ export default {
508 499
       })
509 500
       console.log('hahahahah')
510 501
       console.log(params)
511
-    }
502
+    },
503
+    sighdata() {
504
+      //透前数据
505
+      var params = new Object()
506
+      var data_time = this.querySignParams.date_time
507
+      params.date_time = data_time
508
+      params.patient_id = this.weigh_form.patient_id
509
+      params.dry_weight = this.weigh_list.dry_weight
510
+      params.weight_before = this.weigh_list.weight_before
511
+      params.temperature = this.weigh_list.temperature
512
+      params.pulse_frequency = this.weigh_list.pulse_frequency
513
+      params.breathing_rate = this.weigh_list.breathing_rate
514
+      params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
515
+      params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
516
+      
517
+      //透后数据
518
+      params.weight_after = this.weigh_infor.weight_after
519
+      params.temperatureafter = this.weigh_infor.temperature
520
+      params.pulse_frequencyafter = this.weigh_infor.pulse_frequency
521
+      params.breathing_rateafter = this.weigh_infor.breathing_rate
522
+      params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
523
+      params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
524
+      console.log("params数据",params)
525
+      sighdata(params).then(response => {
526
+         var signs = response.data.data.signs
527
+           console.log(signs)
528
+        if (response.data.state === 1) {
529
+          this.$message({
530
+            type: 'success',
531
+            message: '成功!'
532
+          })
533
+        var tlen = this.patients.length
534
+        for(let index=0;index<tlen;index++ ){
535
+           if(this.patients[index].id ==params.patient_id){
536
+              var signin = this.patients[index].signin
537
+              this.patients[index].signin = response.data.data.signs
538
+
539
+              if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
540
+                    var sl = this.schedules.length
541
+                    for(let j = 0; j < sl; j++){
542
+                         if(this.schedules[j].type === this.patients[index].schedule.schedule_type){
543
+                              if(this.weigh_form.id > 0){
544
+                                  this.schedules[j].sign++
545
+                              }
546
+                              if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
547
+                                   this.schedules[j].before++
548
+                              }
549
+                              if(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0){
550
+                                  this.schedules[j].after++
551
+                              }
552
+                         }
553
+                    }  
554
+              }
555
+              break
556
+           }
557
+         }
558
+           this.weigh_form.id = response.data.data.signs.id
559
+        }else{
560
+           this.$message.error(response.data.msg)
561
+           return false
562
+        }
563
+      })
564
+ }
512 565
   },
513 566
   watch: {
514 567
     'weigh_form.weigh_before': function() {

+ 0 - 3
src/xt_pages/stock/cancelStockOrderAdd.vue Bestand weergeven

@@ -194,11 +194,8 @@
194 194
               tempForm['good_type_id'] = val.goodTypeId
195 195
               tempForm['good_id'] = val.selectedGoodInfo[i].id
196 196
               tempForm['return_count'] = ''
197
-              // this.recordInfo.recordData.push(tempForm)
198 197
               this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
199 198
 
200
-
201
-
202 199
             }
203 200
           }
204 201
         }

+ 5 - 5
src/xt_pages/stock/cancelStockOrderDetail.vue Bestand weergeven

@@ -6,18 +6,18 @@
6 6
   <div class="app-container">
7 7
 
8 8
     <div class="filter-container">
9
-      <span style="font-size: 20px">退库单详情</span>
9
+      <span style="font-size: 20px;color: #606266">退库单详情</span>
10 10
       <el-row style="float:right;">
11
-        <span>{{CancelStockInfo.cancelStock.order_number}}</span>
11
+        <span style="color: #606266">{{CancelStockInfo.cancelStock.order_number}}</span>
12 12
       </el-row>
13 13
     </div>
14 14
 
15 15
 
16 16
 
17 17
     <div class="cell clearfix">
18
-      <span style="width: 300px">单据日期:  {{CancelStockInfo.cancelStock.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
-      <span style="width: 300px">厂商 {{getManufactuerName(CancelStockInfo.cancelStock.manufacturer)}}</span>
20
-      <span style="width: 300px">经销商 {{getDealerName(CancelStockInfo.cancelStock.dealer)}}</span>
18
+      <span style="width: 300px;color: #606266">单据日期:  {{CancelStockInfo.cancelStock.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
+      <span style="width: 300px;color: #606266">厂商 {{getManufactuerName(CancelStockInfo.cancelStock.manufacturer)}}</span>
20
+      <span style="width: 300px;color: #606266">经销商 {{getDealerName(CancelStockInfo.cancelStock.dealer)}}</span>
21 21
     </div>
22 22
 
23 23
     <div class="filter-container" style="margin-top: 10px">

+ 2 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue Bestand weergeven

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 4
       <div class="cell clearfix" >
5
-        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品类型"/>
5
+        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品"/>
6 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -59,7 +59,7 @@
59 59
             </template>
60 60
           </el-table-column>
61 61
 
62
-          <el-table-column label="商品类型" align="center">
62
+          <el-table-column label="商品" align="center">
63 63
             <template slot-scope="scope">
64 64
               {{specificationName(scope.row.good_id)}}
65 65
             </template>

+ 6 - 6
src/xt_pages/stock/salesReturnOrderDetail.vue Bestand weergeven

@@ -7,17 +7,17 @@
7 7
     <div class="app-container">
8 8
 
9 9
       <div class="filter-container">
10
-        <span style="font-size: 18px">退货单详情</span>
11
-        <el-row style="float:right;">
12
-          <span>{{ReturnInfo.salesReturn.order_number}}</span>
10
+        <span style="font-size: 18px;color: #606266">退货单详情</span>
11
+        <el-row style="float:right;color: #606266">
12
+          <span style="color: #606266">{{ReturnInfo.salesReturn.order_number}}</span>
13 13
         </el-row>
14 14
       </div>
15 15
 
16 16
 
17 17
       <div class="cell clearfix">
18
-        <span style="width: 300px">单据日期:  {{ReturnInfo.salesReturn.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
-        <span style="width: 300px">厂商: {{getManufactuerName(ReturnInfo.salesReturn.manufacturer)}}</span>
20
-        <span style="width: 300px">经销商: {{getDealerName(ReturnInfo.salesReturn.dealer)}}</span>
18
+        <span style="width: 300px;color: #606266">单据日期:  {{ReturnInfo.salesReturn.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
+        <span style="width: 300px;color: #606266">厂商: {{getManufactuerName(ReturnInfo.salesReturn.manufacturer)}}</span>
20
+        <span style="width: 300px;color: #606266">经销商: {{getDealerName(ReturnInfo.salesReturn.dealer)}}</span>
21 21
       </div>
22 22
 
23 23
       <div class="filter-container" style="margin-top: 10px">

+ 5 - 5
src/xt_pages/stock/stockInOrderDetail.vue Bestand weergeven

@@ -5,16 +5,16 @@
5 5
     </div>
6 6
   <div class="app-container">
7 7
     <div class="filter-container">
8
-      <span style="font-size: 18px">入库单详情</span>
8
+      <span style="font-size: 18px;color: #606266">入库单详情</span>
9 9
       <el-row style="float:right;">
10
-        <span>入库单号: {{WarehouseInfo.warehouse.warehousing_order}}</span>
10
+        <span style="color: #606266">入库单号: {{WarehouseInfo.warehouse.warehousing_order}}</span>
11 11
       </el-row>
12 12
     </div>
13 13
 
14 14
     <div class="cell clearfix">
15
-      <span style="width: 300px">单据日期:  {{WarehouseInfo.warehouse.warehousing_time | parseTime('{y}-{m}-{d}')}}</span>
16
-      <span style="width: 300px">厂商: {{getManufactuerName(WarehouseInfo.warehouse.manufacturer)}}</span>
17
-      <span style="width: 300px">经销商: {{getDealerName(WarehouseInfo.warehouse.dealer)}}</span>
15
+      <span style="width: 300px;color: #606266">单据日期:  {{WarehouseInfo.warehouse.warehousing_time | parseTime('{y}-{m}-{d}')}}</span>
16
+      <span style="width: 300px;color: #606266">厂商: {{getManufactuerName(WarehouseInfo.warehouse.manufacturer)}}</span>
17
+      <span style="width: 300px;color: #606266">经销商: {{getDealerName(WarehouseInfo.warehouse.dealer)}}</span>
18 18
     </div>
19 19
 
20 20
     <div class="cell clearfix" style="margin-top: 10px">

+ 5 - 5
src/xt_pages/stock/stockOutOrderDetail.vue Bestand weergeven

@@ -7,17 +7,17 @@
7 7
     <div class="app-container">
8 8
 
9 9
       <div class="filter-container">
10
-        <span style="font-size: 18px">出库单详情</span>
10
+        <span style="font-size: 18px;color: #606266">出库单详情</span>
11 11
         <el-row style="float:right;">
12
-          <span>{{warehousingOutInfo.info.warehouse_out_order_number}}</span>
12
+          <span style="color: #606266">{{warehousingOutInfo.info.warehouse_out_order_number}}</span>
13 13
         </el-row>
14 14
       </div>
15 15
 
16 16
 
17 17
       <div class="cell clearfix">
18
-        <span style="width: 300px;">单据日期:  {{warehousingOutInfo.info.warehouse_out_time | parseTime('{y}-{m}-{d}')}} </span>
19
-        <span style="width: 300px;">厂商 {{getManufactuerName(warehousingOutInfo.info.manufacturer)}}</span>
20
-        <span style="width: 300px;">经销商 {{getDealerName(warehousingOutInfo.info.dealer)}}</span>
18
+        <span style="width: 300px;color: #606266">单据日期:  {{warehousingOutInfo.info.warehouse_out_time | parseTime('{y}-{m}-{d}')}} </span>
19
+        <span style="width: 300px;color: #606266">厂商 {{getManufactuerName(warehousingOutInfo.info.manufacturer)}}</span>
20
+        <span style="width: 300px;color: #606266">经销商 {{getDealerName(warehousingOutInfo.info.dealer)}}</span>
21 21
       </div>
22 22
 
23 23
       <div class="filter-container" style="margin-top: 10px">