浏览代码

修改库存管理

csx 6 年前
父节点
当前提交
f6507334e4

+ 22 - 16
src/xt_pages/sign/index.vue 查看文件

@@ -14,13 +14,13 @@
14 14
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
15 15
                     </el-select>
16 16
                 </div>
17
-                <el-table  :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">  
17
+                <el-table  :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">
18 18
                     <el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
19 19
                     <el-table-column prop="name" label="姓名" min-width="20" align="center">
20 20
                        <template slot-scope="scope">
21 21
                             {{scope.row.name}}({{scope.row.dialysis_no}})
22
-                        </template> 
23
-                    </el-table-column> 
22
+                        </template>
23
+                    </el-table-column>
24 24
 
25 25
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
26 26
                         <template slot-scope="scope">
@@ -30,7 +30,7 @@
30 30
                         </template>
31 31
                     </el-table-column>
32 32
                 </el-table>
33
-            
33
+
34 34
                 <el-table  :data="schedules" :class="signAndWeighBoxPatients" style="width: 100%; margin:15px 0 0 0;" border highlight-current-row :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
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>
@@ -49,7 +49,7 @@
49 49
                   <div class="inforTitle">
50 50
                   <el-button  @click="change()" style="float:right;">修改</el-button>
51 51
                    <span class="name">姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span>
52
-                   </div>   
52
+                   </div>
53 53
                     <div class="border"></div>
54 54
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
55 55
                     透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -61,18 +61,18 @@
61 61
                      呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
62 62
                      血压(mmHg):&nbsp;<el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
63 63
                     </div>
64
-                    <div class="border"></div>  
64
+                    <div class="border"></div>
65 65
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
66 66
                      透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
67 67
                      干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
68
-                    </div> 
68
+                    </div>
69 69
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
70 70
                       体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
71 71
                       脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
72 72
                       呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
73 73
                       血压(mmHg):&nbsp;<el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
74
-                    </div>               
75
-                   
74
+                    </div>
75
+
76 76
                     <div class="border"></div>
77 77
                     <div v-if="show">
78 78
                     <el-row :gutter="20">
@@ -85,7 +85,7 @@
85 85
                 </el-form>
86 86
             </el-col>
87 87
         </el-row>
88
-    </div>   
88
+    </div>
89 89
    </div>
90 90
 </template>
91 91
 
@@ -197,9 +197,15 @@ export default {
197 197
           this.patients = response.data.data.patients
198 198
           console.log("排班数据是什么呢?")
199 199
           console.log(this.patients)
200
+          for (let i = this.patients.length - 1; ; i--) {
201
+            if(this.patients[i].schedule.id == 0){
202
+              this.patients.splice(i, 1)
203
+            }
204
+          }
205
+
200 206
           this.queryParams.schedule_type = response.data.data.schedule_type
201 207
           this.querySignParams.date_time = response.data.data.today
202
-           
208
+
203 209
           if (this.queryParams.need_schedule_type === 1) {
204 210
             var sl = this.schedules.length
205 211
             for (let index = 0; index < sl; index++) {
@@ -250,7 +256,7 @@ export default {
250 256
       this.fetchSignPatients()
251 257
     },
252 258
     handleCurrentChange(row, old) {
253
-      
259
+
254 260
       //     this.weigh_form = {
255 261
       //     id:0,
256 262
       //     choose:false,
@@ -423,7 +429,7 @@ export default {
423 429
           if(this.weigh_infor.weight_after == 0){
424 430
               this.weigh_infor.weight_after = ""
425 431
           }
426
-         
432
+
427 433
           this.weigh_infor.temperature = patientinfor.temperature
428 434
           if(this.weigh_infor.temperature == 0){
429 435
                this.weigh_infor.temperature = ""
@@ -509,7 +515,7 @@ export default {
509 515
       params.breathing_rate = this.weigh_list.breathing_rate
510 516
       params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
511 517
       params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
512
-      
518
+
513 519
       //透后数据
514 520
       params.weight_after = this.weigh_infor.weight_after
515 521
       params.temperatureafter = this.weigh_infor.temperature
@@ -543,14 +549,14 @@ export default {
543 549
                                     this.schedules[j].sign++
544 550
                               }
545 551
                               if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
546
-                                   
552
+
547 553
                                    this.schedules[j].before++
548 554
                               }
549 555
                               if(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0){
550 556
                                   this.schedules[j].after++
551 557
                               }
552 558
                          }
553
-                    }  
559
+                    }
554 560
               }
555 561
               break
556 562
            }

+ 4 - 0
src/xt_pages/stock/Dialog/stockInDialog.vue 查看文件

@@ -19,6 +19,7 @@
19 19
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
20 20
           style="width: 100%">
21 21
           <el-table-column
22
+            align="center"
22 23
             prop="type_name"
23 24
             label="商品类型">
24 25
           </el-table-column>
@@ -38,15 +39,18 @@
38 39
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
39 40
         >
40 41
           <el-table-column
42
+            align="center"
41 43
             type="selection"
42 44
             width="55">
43 45
           </el-table-column>
44 46
           <el-table-column
47
+            align="center"
45 48
             label="规格名称"
46 49
             property="specification_name"
47 50
             style="word-break: keep-all;white-space:nowrap;"
48 51
           ></el-table-column>
49 52
           <el-table-column
53
+            align="center"
50 54
             label="单位"
51 55
             property="good_unit"
52 56
           >

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue 查看文件

@@ -59,7 +59,7 @@
59 59
                   </template>
60 60
 
61 61
                   <template slot-scope="scope">
62
-                    <el-form-item style="padding-top: 15px">
62
+                    <el-form-item style="padding-top: 15px;margin-left: 10px;margin-right: 10px">
63 63
                       <el-input placeholder="请输入商品类型" v-model="scope.row.good_type_id"
64 64
                                 :value="typeName(scope.row.good_type_id)"
65 65
                                 @focus="showDialog(scope.$index, scope.row)"></el-input>

+ 2 - 2
src/xt_pages/stock/stockQuery.vue 查看文件

@@ -28,7 +28,7 @@
28 28
         </el-table-column>
29 29
         <el-table-column label="入库退货" align="center">
30 30
           <template slot-scope="scope">
31
-            <span @click="showSaleReturnDetailDialog(scope.row)" style="color: red">{{salesReturnCount(scope.row)}}</span>
31
+            <span @click="showSaleReturnDetailDialog(scope.row)" style="color: #F56C6C">{{salesReturnCount(scope.row)}}</span>
32 32
 
33 33
           </template>
34 34
         </el-table-column>
@@ -45,7 +45,7 @@
45 45
         </el-table-column>
46 46
         <el-table-column label="出库退库" align="center">
47 47
           <template slot-scope="scope">
48
-            <span @click="showCancelStockDetailDialog(scope.row)"  style="color: red">{{cancelStockCount(scope.row)}}</span>
48
+            <span @click="showCancelStockDetailDialog(scope.row)"  style="color: #F56C6C">{{cancelStockCount(scope.row)}}</span>
49 49
 
50 50
           </template>
51 51
         </el-table-column>

+ 13 - 7
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -1,15 +1,22 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb v-if="!isEdit" :crumbs='crumbs'></bread-crumb>
5
-
6
-      <div class="" style="float:right;">
3
+    <div v-if="!isEdit" class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <div class="" style="float:right;color: white">
7 6
         <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
8 7
         <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')"  icon="el-icon-circle-plus-outline" size="small">新增</el-button>
9 8
         <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="success" icon="el-icon-setting" >保存</el-button>
10 9
         <el-button v-if="isEdit==false" @click="onReSubmit('form')" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" icon="el-icon-document-add" size="small" type="warning" >保存并继续新增</el-button>
11 10
       </div>
12 11
     </div>
12
+
13
+    <div v-if="isEdit" class="" style="float:right;margin-right: 35px;margin-top: 10px">
14
+      <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
15
+      <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')"  icon="el-icon-circle-plus-outline" size="small">新增</el-button>
16
+      <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="success" icon="el-icon-setting" >保存</el-button>
17
+      <el-button v-if="isEdit==false" @click="onReSubmit('form')" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" icon="el-icon-document-add" size="small" type="warning" >保存并继续新增</el-button>
18
+    </div>
19
+
13 20
     <div class="app-container " v-loading="pageLoad">
14 21
       <el-form ref="form" :rules="rules" :model="form" label-width="124px" class="clearfix" >
15 22
         <div class="dataTitle">一般资料</div>
@@ -83,17 +90,16 @@
83 90
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
84 91
                 </el-form-item>
85 92
               </el-col>
86
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;" >
93
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:58px;" >
87 94
                 <el-form-item label="患者来源 : " class="is-required" prop="source" >
88 95
                   <el-radio-group v-model="form.source">
89 96
                     <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
90 97
                   </el-radio-group>
91 98
                 </el-form-item>
92 99
               </el-col>
93
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
100
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:58px;">
94 101
                 <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
95 102
                   <el-radio-group v-model="form.lapseto">
96
-                    <!-- <el-radio :disabled="isEdit" v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio> -->
97 103
                     <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
98 104
                   </el-radio-group>
99 105
                 </el-form-item>