Browse Source

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

柳香萍 6 years ago
parent
commit
950e96e49d
51 changed files with 598 additions and 637 deletions
  1. 1 1
      config/dev.env.js
  2. 1 1
      src/api/signandweigh.js
  3. BIN
      src/assets/logo/logo.png
  4. 2 3
      src/router/index.js
  5. 1 1
      src/styles/index.scss
  6. 5 5
      src/views/layout/Layout.vue
  7. 1 1
      src/views/layout/components/Navbar.vue
  8. 37 1
      src/views/layout/components/TagsView.vue
  9. 1 2
      src/xt_pages/data/components/tableson.vue
  10. 1 1
      src/xt_pages/data/components/templateTable.vue
  11. 3 3
      src/xt_pages/device/components/add_device_dialog.vue
  12. 6 6
      src/xt_pages/dialysis/bloodPresssWatch.vue
  13. 1 0
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  14. 5 22
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  15. 1 0
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  16. 8 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  17. 11 1
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  18. 1 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  19. 1 1
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  20. 2 0
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  21. 1 0
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  22. 1 1
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  23. 1 1
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  24. 1 1
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  25. 94 114
      src/xt_pages/sign/index.vue
  26. 4 0
      src/xt_pages/stock/Dialog/stockInDialog.vue
  27. 21 23
      src/xt_pages/stock/cancelStockOrder.vue
  28. 11 11
      src/xt_pages/stock/cancelStockOrderAdd.vue
  29. 20 23
      src/xt_pages/stock/detail/cancelStockDetail.vue
  30. 20 23
      src/xt_pages/stock/detail/salesReturnDetail.vue
  31. 20 23
      src/xt_pages/stock/detail/stockInDetail.vue
  32. 20 23
      src/xt_pages/stock/detail/stockOutDetail.vue
  33. 20 23
      src/xt_pages/stock/otherCancelStockOrder.vue
  34. 20 23
      src/xt_pages/stock/otherSalesReturnOrder.vue
  35. 20 23
      src/xt_pages/stock/otherStockInOrder.vue
  36. 20 23
      src/xt_pages/stock/otherStockOutOrder.vue
  37. 21 23
      src/xt_pages/stock/salesReturnOrder.vue
  38. 10 11
      src/xt_pages/stock/salesReturnOrderAdd.vue
  39. 53 23
      src/xt_pages/stock/stockInOrder.vue
  40. 12 14
      src/xt_pages/stock/stockInOrderAdd.vue
  41. 20 95
      src/xt_pages/stock/stockOutOrder.vue
  42. 10 11
      src/xt_pages/stock/stockOutOrderAdd.vue
  43. 2 2
      src/xt_pages/stock/stockQuery.vue
  44. 3 0
      src/xt_pages/user/components/PatientDetail.vue
  45. 23 18
      src/xt_pages/user/components/PatientForm.vue
  46. 20 24
      src/xt_pages/user/courseOfDisease.vue
  47. 8 1
      src/xt_pages/user/dialysisRecord.vue
  48. 6 4
      src/xt_pages/user/doctorAdvice.vue
  49. 4 0
      src/xt_pages/user/patients.vue
  50. 3 0
      src/xt_pages/user/registration.vue
  51. 20 26
      src/xt_pages/user/rescueRecord.vue

+ 1 - 1
config/dev.env.js View File

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://localhost:9529"', // '"http://localhost:9529"'//http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API: '"http://112.74.16.180:9527"',//'"http://112.74.16.180:9527"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
10
 }
10
 }

+ 1 - 1
src/api/signandweigh.js View File

71
      params: params,   
71
      params: params,   
72
      method: 'Post'
72
      method: 'Post'
73
    })
73
    })
74
-}
74
+}

BIN
src/assets/logo/logo.png View File


+ 2 - 3
src/router/index.js View File

120
       meta: { title: 'recordList', icon: 'shebei', noCache: true }
120
       meta: { title: 'recordList', icon: 'shebei', noCache: true }
121
     }
121
     }
122
     ]
122
     ]
123
-  }
123
+  },
124
 
124
 
125
   // ////////////////////////////
125
   // ////////////////////////////
126
   // 本地开始
126
   // 本地开始
537
     path: '/fullscreenboard',
537
     path: '/fullscreenboard',
538
     component: () => import('@/xt_pages/fullscreenboard/index'),
538
     component: () => import('@/xt_pages/fullscreenboard/index'),
539
     hidden: true
539
     hidden: true
540
-  },
540
+  }
541
   // /////////////本地要end/
541
   // /////////////本地要end/
542
 ]
542
 ]
543
 
543
 
887
   //       is_menu: false,
887
   //       is_menu: false,
888
   //       meta: { title: 'cancelStockDetail', noCache: true }
888
   //       meta: { title: 'cancelStockDetail', noCache: true }
889
   //     }
889
   //     }
890
-
891
   //   ]
890
   //   ]
892
   //  },
891
   //  },
893
   //  {
892
   //  {

+ 1 - 1
src/styles/index.scss View File

276
 }
276
 }
277
 
277
 
278
 .el-dialog__body {
278
 .el-dialog__body {
279
-  max-height: calc(100vh - 350px) !important;
279
+  max-height: calc(100vh - 290px) !important;
280
   overflow-y: scroll !important;
280
   overflow-y: scroll !important;
281
   margin-right: 8px;
281
   margin-right: 8px;
282
   /* 针对缺省样式 (必须的) */
282
   /* 针对缺省样式 (必须的) */

+ 5 - 5
src/views/layout/Layout.vue View File

54
   @import "src/styles/mixin.scss";
54
   @import "src/styles/mixin.scss";
55
   .app-wrapper {
55
   .app-wrapper {
56
     @include clearfix;
56
     @include clearfix;
57
-    position: relative;
57
+    // position: relative;
58
     height: 100%;
58
     height: 100%;
59
     width: 100%;
59
     width: 100%;
60
-    &.mobile.openSidebar{
61
-      position: fixed;
62
-      top: 0;
63
-    }
60
+    // &.mobile.openSidebar{
61
+    //   position: fixed;
62
+    //   top: 0;
63
+    // }
64
   }
64
   }
65
   .drawer-bg {
65
   .drawer-bg {
66
     background: #000;
66
     background: #000;

+ 1 - 1
src/views/layout/components/Navbar.vue View File

128
   top: 0;
128
   top: 0;
129
   left: 0;
129
   left: 0;
130
   right: 0;
130
   right: 0;
131
-  z-index: 2004;
131
+  z-index: 1000;
132
   .nav-logo {
132
   .nav-logo {
133
     width: 162px;
133
     width: 162px;
134
     display: flex;
134
     display: flex;

+ 37 - 1
src/views/layout/components/TagsView.vue View File

130
     border-bottom: 1px solid #d8dce5;
130
     border-bottom: 1px solid #d8dce5;
131
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
131
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
132
     position: fixed;
132
     position: fixed;
133
-    z-index: 2004;
133
+    z-index: 1000;
134
     top: 60px;
134
     top: 60px;
135
     overflow-x: scroll;
135
     overflow-x: scroll;
136
+    /* 针对缺省样式 (必须的) */
137
+      &::-webkit-scrollbar {
138
+        width: 6px;
139
+        height: 2px;
140
+      }
141
+      /* 滚动条的滑轨背景颜色 */
142
+      &::-webkit-scrollbar-track {
143
+        background-color: #fff;
144
+        border-radius: 3px;
145
+        -moz-border-radius: 3px;
146
+        -webkit-border-radius: 3px;
147
+      }
148
+      /* 滑块颜色 */
149
+      &::-webkit-scrollbar-thumb {
150
+        background: #fff;
151
+        border-radius: 3px;
152
+        -moz-border-radius: 3px;
153
+        -webkit-border-radius: 3px;
154
+      }
155
+      /*内层轨道的颜色*/
156
+      &::-webkit-scrollbar-track-piece {
157
+        background-color: #fff;
158
+        border-radius: 3px;
159
+        -moz-border-radius: 3px;
160
+        -webkit-border-radius: 3px;
161
+      }
162
+      /* 滑轨两头的监听按钮颜色 */
163
+      &::-webkit-scrollbar-button {
164
+        background-color: #fff;
165
+        width: 0;
166
+        height: 0;
167
+      }
168
+      /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
169
+      &::-webkit-scrollbar-corner {
170
+        background-color: #fff;
171
+      }
136
     .tags-view-item {
172
     .tags-view-item {
137
       display: inline-block;
173
       display: inline-block;
138
       position: relative;
174
       position: relative;

+ 1 - 2
src/xt_pages/data/components/tableson.vue View File

1
 <template>
1
 <template>
2
   <div class="">
2
   <div class="">
3
     <div class="filter-container">
3
     <div class="filter-container">
4
-      <el-button style="float: right;margin-right: 40px" 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;" class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5
     </div>
5
     </div>
6
-
7
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row
6
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row
8
       style="width: 100%;">
7
       style="width: 100%;">
9
       <el-table-column  align="center" label="名称">
8
       <el-table-column  align="center" label="名称">

+ 1 - 1
src/xt_pages/data/components/templateTable.vue View File

1
 <template>
1
 <template>
2
   <div class="">
2
   <div class="">
3
     <div class="filter-container">
3
     <div class="filter-container">
4
-      <el-button size="small" class="filter-item" style="float:right;margin-right: 30px" @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
4
+      <el-button size="small" class="filter-item" style="float:right;" @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5
     </div>
5
     </div>
6
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row style="width: 100%;min-height:500px;">
6
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row style="width: 100%;min-height:500px;">
7
       <!-- <el-table-column align="center" :label="$t('table.id')" width="65" @click="handleUpdate(scope.row)">
7
       <!-- <el-table-column align="center" :label="$t('table.id')" width="65" @click="handleUpdate(scope.row)">

+ 3 - 3
src/xt_pages/device/components/add_device_dialog.vue View File

1
 <template>
1
 <template>
2
     <el-dialog title="新增设备" width="854px" top="15vh" :visible.sync="visible" :before-close="_close">
2
     <el-dialog title="新增设备" width="854px" top="15vh" :visible.sync="visible" :before-close="_close">
3
-        <device-info-form ref="device_info_form" :device_numbers="device_numbers" @did_create="didCreateDevice"></device-info-form>
4
-        <div style="text-align: right; padding-right: 25px; padding-top: 10px; padding-bottom: 10px;">
3
+        <device-info-form  ref="device_info_form" :device_numbers="device_numbers" @did_create="didCreateDevice"></device-info-form>
4
+        <div slot="footer" class="dialog-footer">
5
             <el-button @click="hide">取消</el-button>
5
             <el-button @click="hide">取消</el-button>
6
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="createAction">保存</el-button>
6
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="createAction">保存</el-button>
7
         </div>
7
         </div>
33
             done()
33
             done()
34
         },
34
         },
35
         clear: function() {
35
         clear: function() {
36
-            
36
+
37
         },
37
         },
38
         show() {
38
         show() {
39
             this.clear()
39
             this.clear()

+ 6 - 6
src/xt_pages/dialysis/bloodPresssWatch.vue View File

95
           </template>
95
           </template>
96
         </el-table-column>
96
         </el-table-column>
97
 
97
 
98
-        <el-table-column prop="mode_name" label="透析模式" align="center"></el-table-column>
98
+        <el-table-column prop="mode_name" label="透析模式" align="center" width="100"></el-table-column>
99
 
99
 
100
-        <el-table-column prop="dialysis_before_weight" label="透前体重 (kg)" align="center"></el-table-column>
101
-        <el-table-column prop="dialysis_after_weight" label="透后体重 (kg)" align="center"></el-table-column>
102
-        <el-table-column label="透中血压">
103
-          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item">
100
+        <el-table-column prop="dialysis_before_weight" label="透前体重(kg)" align="center" width="120"></el-table-column>
101
+        <el-table-column prop="dialysis_after_weight" label="透后体重(kg)" align="center" width="120"></el-table-column>
102
+        <el-table-column label="透中血压(Hgmm)" align="center">
103
+          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item" align="center">
104
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
104
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
105
-            <template slot-scope="scope">
105
+            <template slot-scope="scope" >
106
               <!--<span>{{scope.row.bp[index].value}}</span>-->
106
               <!--<span>{{scope.row.bp[index].value}}</span>-->
107
               <span>{{getValue(scope.row.bp[index])}}</span>
107
               <span>{{getValue(scope.row.bp[index])}}</span>
108
             </template>
108
             </template>

+ 1 - 0
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

4
             title="透后评估"
4
             title="透后评估"
5
             :visible.sync="isVisibility"
5
             :visible.sync="isVisibility"
6
             width="1010px"
6
             width="1010px"
7
+            modal-append-to-body=“false”
7
            >
8
            >
8
             <el-form ref="form" :model="form" label-width="130px" >
9
             <el-form ref="form" :model="form" label-width="130px" >
9
               <!-- <el-row :gutter="20"> -->
10
               <!-- <el-row :gutter="20"> -->

+ 5 - 22
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

5
       :visible.sync="isVisibility"
5
       :visible.sync="isVisibility"
6
       width="1010px"
6
       width="1010px"
7
       @close="resetDialog"
7
       @close="resetDialog"
8
+      modal-append-to-body=“false”
8
     >
9
     >
9
       <div class="txsj" v-show="showAdvicePanel">
10
       <div class="txsj" v-show="showAdvicePanel">
10
         <el-button  round @click="openGroupFrom" :loading="deleLoading">新增医嘱</el-button>
11
         <el-button  round @click="openGroupFrom" :loading="deleLoading">新增医嘱</el-button>
28
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
29
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
29
       <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="doctor_advices" border style="width: 100%" v-show="showAdvicePanel"
30
       <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="doctor_advices" border style="width: 100%" v-show="showAdvicePanel"
30
                 ref="advices_list" :row-class-name="tableRowClassName" :span-method="mergeSpan"
31
                 ref="advices_list" :row-class-name="tableRowClassName" :span-method="mergeSpan"
31
-                @row-click="cellMouseEnter"
32
+                @row-click="cellMouseEnter" modal-append-to-body=“false”
32
       >
33
       >
33
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
34
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
34
           <template slot-scope="scope">
35
           <template slot-scope="scope">
41
           </template>
42
           </template>
42
 
43
 
43
         </el-table-column>
44
         </el-table-column>
44
-        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容">
45
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
45
           <template slot-scope="scope">
46
           <template slot-scope="scope">
46
 
47
 
47
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
48
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
48
-
49
               <span class="el-dropdown-link">{{getAdviceContent(scope.row,1)}}<i class="el-icon-arrow-down el-icon--right"></i></span>
49
               <span class="el-dropdown-link">{{getAdviceContent(scope.row,1)}}<i class="el-icon-arrow-down el-icon--right"></i></span>
50
-              <!--<span>{{scope.row.advice_name }}</span>-->
51
-              <!--<span>{{scope.row.advice_desc}}</span>-->
52
-              <!--<span v-if="scope.row.single_dose">{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</span>-->
53
-              <!--<span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>-->
54
-              <!--<span v-if="scope.row.prescribing_number">* {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}</span>-->
55
-              <!--<span>{{scope.row.delivery_way}}</span>-->
56
-              <!--<span>{{scope.row.execution_frequency}}<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i></span>-->
57
-
58
-
59
-
60
               <el-dropdown-menu slot="dropdown">
50
               <el-dropdown-menu slot="dropdown">
61
                 <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
51
                 <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
62
                 <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
52
                 <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
64
               </el-dropdown-menu>
54
               </el-dropdown-menu>
65
             </el-dropdown>
55
             </el-dropdown>
66
 
56
 
67
-
68
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
57
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
69
               <span class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}<i class="el-icon-arrow-down el-icon--right"></i></span>
58
               <span class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}<i class="el-icon-arrow-down el-icon--right"></i></span>
70
               <el-dropdown-menu slot="dropdown">
59
               <el-dropdown-menu slot="dropdown">
96
             <span v-else></span>
85
             <span v-else></span>
97
           </template>
86
           </template>
98
         </el-table-column>
87
         </el-table-column>
99
-        <!--<el-table-column label="操作" min-width="20" align="center">-->
100
-          <!--<template slot-scope="scope">-->
101
-            <!--<el-button type="primary" size="small"-->
102
-                       <!--@click="scope.row.groupno>0?openEditGroupAdvice(scope.row.groupno):openEdit(scope.$index, scope.row)"-->
103
-                       <!--v-if="isShowStartTime(scope.$index, scope.row)">编辑-->
104
-            <!--</el-button>-->
105
-          <!--</template>-->
106
-        <!--</el-table-column>-->
88
+
107
       </el-table>
89
       </el-table>
108
       <!-- 医嘱列表 end -->
90
       <!-- 医嘱列表 end -->
109
 
91
 
210
       :show-close="isClose"
192
       :show-close="isClose"
211
       :close-on-click-modal="isClose"
193
       :close-on-click-modal="isClose"
212
       :close-on-press-escape="isClose"
194
       :close-on-press-escape="isClose"
195
+      modal-append-to-body=“false”
213
       >
196
       >
214
       <el-date-picker
197
       <el-date-picker
215
         v-model="execTime"
198
         v-model="execTime"

+ 1 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

1
 <template>
1
 <template>
2
   <el-dialog title="接诊评估"
2
   <el-dialog title="接诊评估"
3
+             modal-append-to-body=“false”
3
              :visible.sync="isVisibility"
4
              :visible.sync="isVisibility"
4
             width="854px">
5
             width="854px">
5
     <el-form :model="receiveTreatmentAsses" label-width="80px">
6
     <el-form :model="receiveTreatmentAsses" label-width="80px">

+ 8 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

45
         <el-row >
45
         <el-row >
46
           <el-col :span="2">
46
           <el-col :span="2">
47
             &nbsp;&nbsp;
47
             &nbsp;&nbsp;
48
-          </el-col>  
48
+          </el-col>
49
           <el-col :span="5">
49
           <el-col :span="5">
50
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round
50
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round
51
                        @click="openAdviceTemplate()">选择医嘱模板
51
                        @click="openAdviceTemplate()">选择医嘱模板
87
                 label="医嘱名称"
87
                 label="医嘱名称"
88
                 property="advice_name"
88
                 property="advice_name"
89
                 style="word-break: keep-all;white-space:nowrap;"
89
                 style="word-break: keep-all;white-space:nowrap;"
90
+                align="center"
90
               ></el-table-column>
91
               ></el-table-column>
91
 
92
 
92
               <el-table-column
93
               <el-table-column
93
                 label="规格"
94
                 label="规格"
94
                 property="advice_desc"
95
                 property="advice_desc"
96
+                align="center"
97
+
95
               ></el-table-column>
98
               ></el-table-column>
96
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
99
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
97
                 <template slot-scope="scope">
100
                 <template slot-scope="scope">
160
             style="width: 100%">
163
             style="width: 100%">
161
             <el-table-column
164
             <el-table-column
162
               prop="name"
165
               prop="name"
166
+              align="center"
163
               label="模板名称">
167
               label="模板名称">
164
             </el-table-column>
168
             </el-table-column>
165
           </el-table>
169
           </el-table>
180
           >
184
           >
181
             <el-table-column
185
             <el-table-column
182
               type="selection"
186
               type="selection"
187
+              align="center"
183
               width="55">
188
               width="55">
184
             </el-table-column>
189
             </el-table-column>
185
             <el-table-column
190
             <el-table-column
186
               label="医嘱内容"
191
               label="医嘱内容"
187
               property="advice_name"
192
               property="advice_name"
188
               style="word-break: keep-all;white-space:nowrap;"
193
               style="word-break: keep-all;white-space:nowrap;"
194
+              align="center"
189
             ></el-table-column>
195
             ></el-table-column>
190
             <el-table-column
196
             <el-table-column
191
               label="规格"
197
               label="规格"
192
               property="advice_desc"
198
               property="advice_desc"
199
+              align="center"
193
             ></el-table-column>
200
             ></el-table-column>
194
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
201
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
195
               <template slot-scope="scope">
202
               <template slot-scope="scope">

+ 11 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

38
         </el-row>
38
         </el-row>
39
 
39
 
40
         <el-row>
40
         <el-row>
41
-          <el-col :span="2">&nbsp;&nbsp;</el-col>          
41
+          <el-col :span="2">&nbsp;&nbsp;</el-col>
42
           <el-col :span="5">
42
           <el-col :span="5">
43
             <el-button
43
             <el-button
44
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
44
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
86
               <el-table-column
86
               <el-table-column
87
                 label="医嘱名称"
87
                 label="医嘱名称"
88
                 property="advice_name"
88
                 property="advice_name"
89
+                align="center"
90
+
89
                 style="word-break: keep-all;white-space:nowrap;"
91
                 style="word-break: keep-all;white-space:nowrap;"
90
               ></el-table-column>
92
               ></el-table-column>
91
               <el-table-column
93
               <el-table-column
92
                 label="规格"
94
                 label="规格"
93
                 property="advice_desc"
95
                 property="advice_desc"
96
+                align="center"
97
+
94
               ></el-table-column>
98
               ></el-table-column>
95
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
99
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
96
                 <template slot-scope="scope">
100
                 <template slot-scope="scope">
150
             style="width: 100%">
154
             style="width: 100%">
151
             <el-table-column
155
             <el-table-column
152
               prop="name"
156
               prop="name"
157
+              align="center"
158
+
153
               label="模板名称">
159
               label="模板名称">
154
             </el-table-column>
160
             </el-table-column>
155
           </el-table>
161
           </el-table>
175
             <el-table-column
181
             <el-table-column
176
               label="医嘱内容"
182
               label="医嘱内容"
177
               property="advice_name"
183
               property="advice_name"
184
+              align="center"
185
+
178
               style="word-break: keep-all;white-space:nowrap;"
186
               style="word-break: keep-all;white-space:nowrap;"
179
             ></el-table-column>
187
             ></el-table-column>
180
             <el-table-column
188
             <el-table-column
181
               label="规格"
189
               label="规格"
190
+              align="center"
191
+
182
               property="advice_desc"
192
               property="advice_desc"
183
             ></el-table-column>
193
             ></el-table-column>
184
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
194
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

3
     title="透前评估"
3
     title="透前评估"
4
     :visible.sync="isVisibility"
4
     :visible.sync="isVisibility"
5
     width="1010px"
5
     width="1010px"
6
+    modal-append-to-body=“false”
6
   >
7
   >
7
 
8
 
8
     <!--<check-box-dialog-->
9
     <!--<check-box-dialog-->

+ 1 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

1
 <template>
1
 <template>
2
     <div>
2
     <div>
3
-        <el-dialog title="透析上机" :visible.sync="visible" width="854px">
3
+        <el-dialog title="透析上机" :visible.sync="visible" width="854px" modal-append-to-body=“false”>
4
             <el-form :model="form" label-width="80px">
4
             <el-form :model="form" label-width="80px">
5
                 <el-form-item label="上机床位">
5
                 <el-form-item label="上机床位">
6
                     <el-select v-model="form.bed_id" placeholder="" :disabled="dialysis_order.id != 0">
6
                     <el-select v-model="form.bed_id" placeholder="" :disabled="dialysis_order.id != 0">

+ 2 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

3
     title="透析处方"
3
     title="透析处方"
4
     :visible.sync="isVisibility"
4
     :visible.sync="isVisibility"
5
     width="1010px"
5
     width="1010px"
6
+    modal-append-to-body=“false”
7
+    :append-to-body="true"
6
   >
8
   >
7
     <el-form ref="dialysisPrescription"  :model="dialysisPrescription" label-width="146px">
9
     <el-form ref="dialysisPrescription"  :model="dialysisPrescription" label-width="146px">
8
       <!-- <el-row :gutter="20"> -->
10
       <!-- <el-row :gutter="20"> -->

+ 1 - 0
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

1
 <template>
1
 <template>
2
   <el-dialog title="双人核对"
2
   <el-dialog title="双人核对"
3
              :visible.sync="isVisibility"
3
              :visible.sync="isVisibility"
4
+             modal-append-to-body=“false”
4
              width="854px">
5
              width="854px">
5
 
6
 
6
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">
7
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">

+ 1 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

1
 <template>
1
 <template>
2
     <div>
2
     <div>
3
-        <el-dialog title="透析下机" :visible.sync="visible" width="854px">
3
+        <el-dialog title="透析下机" :visible.sync="visible" width="854px" modal-append-to-body=“false” >
4
             <div class="txsj">
4
             <div class="txsj">
5
             </div>
5
             </div>
6
             <el-form :model="form" label-width="80px">
6
             <el-form :model="form" label-width="80px">

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

1
 <template>
1
 <template>
2
   <div class="dialog_box">
2
   <div class="dialog_box">
3
-    <el-dialog title="透析监测" :visible.sync="visible" width="1100px" @close="reset">
3
+    <el-dialog title="透析监测" :visible.sync="visible" width="1100px" @close="reset" modal-append-to-body=“false”>
4
       <div v-show="edit == false">
4
       <div v-show="edit == false">
5
         <div class="txsj">
5
         <div class="txsj">
6
           <el-button round @click="newRecordAction">新增监测</el-button>
6
           <el-button round @click="newRecordAction">新增监测</el-button>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

3
     title="治疗小结"
3
     title="治疗小结"
4
     width="854px"
4
     width="854px"
5
     :visible.sync="isVisibility"
5
     :visible.sync="isVisibility"
6
-
6
+    modal-append-to-body=“false”
7
   >
7
   >
8
     <el-form :model="treatmentSummary">
8
     <el-form :model="treatmentSummary">
9
       <el-row :gutter="20">
9
       <el-row :gutter="20">

+ 94 - 114
src/xt_pages/sign/index.vue View File

9
             <el-col :span="8">
9
             <el-col :span="8">
10
                 <div class="dataTitle">患者列表</div>
10
                 <div class="dataTitle">患者列表</div>
11
                 <div style="margin-bottom: 10px;">
11
                 <div style="margin-bottom: 10px;">
12
-                    <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>
12
+                    <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>&nbsp;
13
+                    <el-button type="primary" @change="changeSearch">搜索</el-button>
13
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
14
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
15
                     </el-select>
16
                     </el-select>
16
                 </div>
17
                 </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">  
18
+
19
+                <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
                     <el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
20
                     <el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
19
                     <el-table-column prop="name" label="姓名" min-width="20" align="center">
21
                     <el-table-column prop="name" label="姓名" min-width="20" align="center">
20
                        <template slot-scope="scope">
22
                        <template slot-scope="scope">
21
                             {{scope.row.name}}({{scope.row.dialysis_no}})
23
                             {{scope.row.name}}({{scope.row.dialysis_no}})
22
-                        </template> 
23
-                    </el-table-column> 
24
+                        </template>
25
+                    </el-table-column>
24
 
26
 
25
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
27
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
26
                         <template slot-scope="scope">
28
                         <template slot-scope="scope">
27
-                            <span v-if="scope.row.id==0">未签到</span>
29
+                            <span v-if="scope.row.signin.id ==0">未签到</span>
28
                             <span v-else-if="scope.row.dialysis_order.stage==2">已经下机</span>
30
                             <span v-else-if="scope.row.dialysis_order.stage==2">已经下机</span>
29
                             <span v-else>已签到</span>
31
                             <span v-else>已签到</span>
30
                         </template>
32
                         </template>
31
                     </el-table-column>
33
                     </el-table-column>
32
                 </el-table>
34
                 </el-table>
33
-            
35
+
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)'}">
36
                 <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
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
37
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
36
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
38
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
49
                   <div class="inforTitle">
51
                   <div class="inforTitle">
50
                   <el-button  @click="change()" style="float:right;">修改</el-button>
52
                   <el-button  @click="change()" style="float:right;">修改</el-button>
51
                    <span class="name">姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span>
53
                    <span class="name">姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span>
52
-                   </div>   
54
+                   </div>
53
                     <div class="border"></div>
55
                     <div class="border"></div>
54
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
56
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
55
                     透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
57
                     透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
61
                      呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
63
                      呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
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>
64
                      血压(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
                     </div>
65
                     </div>
64
-                    <div class="border"></div>  
66
+                    <div class="border"></div>
65
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
67
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
66
                      透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
68
                      透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
67
                      干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
69
                      干体重(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> 
70
+                    </div>
69
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
71
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
70
                       体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
72
                       体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
71
                       脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
73
                       脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
72
                       呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
74
                       呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
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>
75
                       血压(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
-                   
76
+                    </div>
77
+
76
                     <div class="border"></div>
78
                     <div class="border"></div>
77
                     <div v-if="show">
79
                     <div v-if="show">
78
                     <el-row :gutter="20">
80
                     <el-row :gutter="20">
79
                         <el-col :span="23" align="right" class="button">
81
                         <el-col :span="23" align="right" class="button">
80
                             <el-button  @click="hide()">取消</el-button>
82
                             <el-button  @click="hide()">取消</el-button>
81
-                            <el-button @click="savedata();updatedata();sighdata()" type="primary">保存</el-button>
83
+                            <el-button @click="savedata();updatedata();sighdata();" type="primary">保存</el-button>
82
                         </el-col>
84
                         </el-col>
83
                     </el-row>
85
                     </el-row>
84
                    </div>
86
                    </div>
85
                 </el-form>
87
                 </el-form>
86
             </el-col>
88
             </el-col>
87
         </el-row>
89
         </el-row>
88
-    </div>   
90
+    </div>
89
    </div>
91
    </div>
90
 </template>
92
 </template>
91
 
93
 
136
         DBP_after: '', // 舒张压
138
         DBP_after: '', // 舒张压
137
         SBP_after: '', // 收缩压
139
         SBP_after: '', // 收缩压
138
         dialysis_no: ''
140
         dialysis_no: ''
141
+       
139
       },
142
       },
140
       weigh_list: {
143
       weigh_list: {
141
         weight_before: '', // 透前体重
144
         weight_before: '', // 透前体重
192
   methods: {
195
   methods: {
193
     fetchSignPatients() {
196
     fetchSignPatients() {
194
       fetchSignPatients(this.queryParams).then(response => {
197
       fetchSignPatients(this.queryParams).then(response => {
195
-        this.patients = []
198
+        this.patients = []      
196
         if (response.data.state === 1) {
199
         if (response.data.state === 1) {
197
           this.patients = response.data.data.patients
200
           this.patients = response.data.data.patients
198
-          console.log("排班数据是什么呢?")
199
-          console.log(this.patients)
201
+          console.log("病人信息",this.patients[0].schedule)           
202
+            //将没有排班的信息排除
203
+            for(let i = this.patients.length-1;i >= 0;i--){
204
+      
205
+             if(this.patients[i].schedule.id == 0){
206
+                 this.patients.splice(i,1)
207
+             }
208
+              
209
+          }
210
+
211
+          for (let i = this.patients.length - 1; ; i--) {
212
+            if(this.patients[i].schedule.id == 0){
213
+              this.patients.splice(i, 1)
214
+            }
215
+          }
216
+
200
           this.queryParams.schedule_type = response.data.data.schedule_type
217
           this.queryParams.schedule_type = response.data.data.schedule_type
201
           this.querySignParams.date_time = response.data.data.today
218
           this.querySignParams.date_time = response.data.data.today
202
-           
219
+
203
           if (this.queryParams.need_schedule_type === 1) {
220
           if (this.queryParams.need_schedule_type === 1) {
204
             var sl = this.schedules.length
221
             var sl = this.schedules.length
222
+            console.log("s1是什么东西")
223
+            console.log(sl)
205
             for (let index = 0; index < sl; index++) {
224
             for (let index = 0; index < sl; index++) {
206
               if (this.schedules[index].type in response.data.data.panel) {
225
               if (this.schedules[index].type in response.data.data.panel) {
226
+                console.log(this.schedules[index].type)
227
+                console.log(response.data.data.panel[this.schedules[index].type].schedule)
207
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
228
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
208
                 this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
229
                 this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
209
                 this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
230
                 this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
250
       this.fetchSignPatients()
271
       this.fetchSignPatients()
251
     },
272
     },
252
     handleCurrentChange(row, old) {
273
     handleCurrentChange(row, old) {
253
-      
254
       //     this.weigh_form = {
274
       //     this.weigh_form = {
255
       //     id:0,
275
       //     id:0,
256
       //     choose:false,
276
       //     choose:false,
284
       this.weigh_form.choose = true
304
       this.weigh_form.choose = true
285
       this.weigh_form.name = row.name
305
       this.weigh_form.name = row.name
286
       this.weigh_form.dialysis_no = row.dialysis_no
306
       this.weigh_form.dialysis_no = row.dialysis_no
287
-      //   if (row.alias.length>0) {
288
-      //       this.weigh_form.name += "("+row.alias+")";
289
-      //   }
290
       this.weigh_form.patient_id = row.id
307
       this.weigh_form.patient_id = row.id
291
       this.querySignParams.patient_id = row.id
308
       this.querySignParams.patient_id = row.id
292
       this.dialysis_stege = row.dialysis_order.stage
309
       this.dialysis_stege = row.dialysis_order.stage
293
       this.getDialysisInforInfomation(row.id)
310
       this.getDialysisInforInfomation(row.id)
294
-      this.getDialysisAfterInfomation(row.id)
295
-        if (row.signin != null) {
296
-             this.weigh_form.dry_weight = '' + row.signin.dry_weight;
297
-             this.weigh_form.clothes_weight = '' + row.signin.clothing_weight;
298
-              // 透前
299
-              this.weigh_form.weigh_before = '' + row.signin.weighing_before;
300
-              this.weigh_form.dehydrated_weight = '' + row.signin.target_dewatering;
301
-
302
-              if (this.weigh_form.dry_weight == 0) {
303
-                  this.weigh_form.dehydrated_percent  = '';
304
-              }else {
305
-                  var dehydrated_percent = ((this.weigh_form.dehydrated_weight/this.weigh_form.dry_weight) * 100).toFixed(2);
306
-                  if (isNaN(dehydrated_percent)) {
307
-                      this.weigh_form.dehydrated_percent  = '';
308
-                  }else {
309
-                      this.weigh_form.dehydrated_percent  = dehydrated_percent + "%";
310
-                  }
311
-              }
311
+      this.getDialysisAfterInfomation(row.id) 
312
 
312
 
313
-              this.weigh_form.weight_before = '' + row.signin.weight_before;
314
-              this.weigh_form.temperature_before = '' + row.signin.temperature_before;
315
-              this.weigh_form.pulse_rate_before = '' + row.signin.pulse_frequency_before;
316
-              this.weigh_form.respiratory_rate_before = '' + row.signin.breathing_rate_before;
317
-              this.weigh_form.DBP_before = '' + row.signin.diastolic_blood_pressure_before;
318
-              this.weigh_form.SBP_before = '' + row.signin.systolic_blood_pressure_before;
319
-
320
-              this.weigh_form.weigh_after = '' + row.signin.weighing_after;
321
-              this.weigh_form.weight_reduce_after = '' + row.signin.weight_loss;
322
-              this.weigh_form.weight_after = '' + row.signin.weight_after;
323
-              this.weigh_form.temperature_after = '' + row.signin.temperature_after;
324
-              this.weigh_form.pulse_rate_after = '' + row.signin.pulse_frequency_after;
325
-              this.weigh_form.respiratory_rate_after = '' + row.signin.breathing_rate_after;
326
-              this.weigh_form.DBP_after = '' + row.signin.diastolic_blood_pressure_after;
327
-              this.weigh_form.SBP_after = '' + row.signin.systolic_blood_pressure_after;
328
-              this.weigh_form.id = row.id;
329
-              console.log("好难哦")
330
-              console.log(this.weigh_form.id)
331
-        }
313
+      //this.getsignweigh(row.id)    
332
     },
314
     },
333
-    submitSign() {
334
-      SignWeigh(this.querySignParams, this.weigh_form).then(response => {
335
-        if (response.data.state === 1) {
336
-          this.$message({
337
-            type: 'success',
338
-            message: '成功!'
339
-          })
315
+    // submitSign() {
316
+    //   SignWeigh(this.querySignParams, this.weigh_form).then(response => {
317
+    //     if (response.data.state === 1) {
318
+    //       this.$message({
319
+    //         type: 'success',
320
+    //         message: '成功!'
321
+    //       })
340
 
322
 
341
-          var tlen = this.patients.length
342
-          for (let index = 0; index < tlen; index++) {
343
-            if (this.patients[index].id === this.querySignParams.patient_id) {
344
-              var signin = this.patients[index].signin
345
-              this.patients[index].signin = response.data.data.sign
346
-
347
-              if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
348
-                var sl = this.schedules.length
349
-                for (let j = 0; j < sl; j++) {
350
-                  if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
351
-                    if (this.weigh_form.id <= 0) {
352
-                      this.schedules[j].sign++
353
-                    }
354
-                    if (signin.weigh_before_time === 0 && response.data.data.sign.weigh_before_time > 0) {
355
-                      this.schedules[j].before++
356
-                    }
323
+    //       var tlen = this.patients.length
324
+    //       for (let index = 0; index < tlen; index++) {
325
+    //         if (this.patients[index].id === this.querySignParams.patient_id) {
326
+    //           var signin = this.patients[index].signin
327
+    //           this.patients[index].signin = response.data.data.sign
357
 
328
 
358
-                    if (signin.weigh_time === 0 && response.data.data.sign.weigh_time > 0) {
359
-                      this.schedules[j].after++
360
-                    }
361
-                  }
362
-                }
363
-              }
364
-              break
365
-            }
366
-          }
367
-          this.weigh_form.id = response.data.data.sign.id
368
-        } else {
369
-          this.$message.error(response.data.msg)
370
-          return false
371
-        }
372
-      })
373
-    },
329
+    //           if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
330
+    //             var sl = this.schedules.length
331
+    //             for (let j = 0; j < sl; j++) {
332
+    //               if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
333
+    //                 if (this.weigh_form.id <= 0) {
334
+    //                   this.schedules[j].sign++
335
+    //                 }
336
+    //                 if (signin.weigh_before_time === 0 && response.data.data.sign.weigh_before_time > 0) {
337
+    //                   this.schedules[j].before++
338
+    //                 }
339
+
340
+    //                 if (signin.weigh_time === 0 && response.data.data.sign.weigh_time > 0) {
341
+    //                   this.schedules[j].after++
342
+    //                 }
343
+    //               }
344
+    //             }
345
+    //           }
346
+    //           break
347
+    //         }
348
+    //       }
349
+    //       this.weigh_form.id = response.data.data.sign.id
350
+    //     } else {
351
+    //       this.$message.error(response.data.msg)
352
+    //       return false
353
+    //     }
354
+    //   })
355
+    // },
374
 
356
 
375
     getDialysisInforInfomation(id) {
357
     getDialysisInforInfomation(id) {
376
       getDialysisInforInfomation(id).then(response => {
358
       getDialysisInforInfomation(id).then(response => {
423
           if(this.weigh_infor.weight_after == 0){
405
           if(this.weigh_infor.weight_after == 0){
424
               this.weigh_infor.weight_after = ""
406
               this.weigh_infor.weight_after = ""
425
           }
407
           }
426
-         
408
+
427
           this.weigh_infor.temperature = patientinfor.temperature
409
           this.weigh_infor.temperature = patientinfor.temperature
428
           if(this.weigh_infor.temperature == 0){
410
           if(this.weigh_infor.temperature == 0){
429
                this.weigh_infor.temperature = ""
411
                this.weigh_infor.temperature = ""
509
       params.breathing_rate = this.weigh_list.breathing_rate
491
       params.breathing_rate = this.weigh_list.breathing_rate
510
       params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
492
       params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
511
       params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
493
       params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
512
-      
494
+
513
       //透后数据
495
       //透后数据
514
       params.weight_after = this.weigh_infor.weight_after
496
       params.weight_after = this.weigh_infor.weight_after
515
       params.temperatureafter = this.weigh_infor.temperature
497
       params.temperatureafter = this.weigh_infor.temperature
517
       params.breathing_rateafter = this.weigh_infor.breathing_rate
499
       params.breathing_rateafter = this.weigh_infor.breathing_rate
518
       params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
500
       params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
519
       params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
501
       params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
520
-      console.log("params数据",params)
502
+       console.log("params是什么?",params)
521
       sighdata(params).then(response => {
503
       sighdata(params).then(response => {
522
-         var signs = response.data.data.signs
523
-           console.log(signs)
504
+        var signs = response.data.data.signs
505
+       // this.patients[this.table_current_index].signin.id = 1
524
         if (response.data.state === 1) {
506
         if (response.data.state === 1) {
525
           this.$message({
507
           this.$message({
526
             type: 'success',
508
             type: 'success',
527
             message: '成功!'
509
             message: '成功!'
528
           })
510
           })
529
         var tlen = this.patients.length
511
         var tlen = this.patients.length
512
+        
530
         for(let index=0;index<tlen;index++ ){
513
         for(let index=0;index<tlen;index++ ){
531
-           if(this.patients[index].id ==params.patient_id){
514
+           if(this.patients[index].id == params.patient_id){
532
               var signin = this.patients[index].signin
515
               var signin = this.patients[index].signin
533
-              this.patients[index].signin = response.data.data.signs
534
-
516
+              this.patients[index].signin = response.data.data.signs  
517
+             
535
               if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
518
               if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
536
                     var sl = this.schedules.length
519
                     var sl = this.schedules.length
537
                     for(let j = 0; j < sl; j++){
520
                     for(let j = 0; j < sl; j++){
538
-                         if(this.schedules[j].type === this.patients[index].schedule.schedule_type){
539
-                              // if(this.weigh_form.id>= 0){
540
-                              //     this.schedules[j].sign++
541
-                              // }
542
-                              if((signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0)||(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0)){
521
+                         if(this.schedules[j].type == this.patients[index].schedule.schedule_type){
522
+                              if((signin.weigh_before_time == 0 && response.data.data.signs.weigh_before_time > 0)||(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0)){
543
                                     this.schedules[j].sign++
523
                                     this.schedules[j].sign++
544
                               }
524
                               }
545
                               if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
525
                               if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
546
-                                   
526
+
547
                                    this.schedules[j].before++
527
                                    this.schedules[j].before++
548
                               }
528
                               }
549
-                              if(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0){
529
+                              if(signin.weigh_time == 0 && response.data.data.signs.weigh_time > 0){
550
                                   this.schedules[j].after++
530
                                   this.schedules[j].after++
551
                               }
531
                               }
552
                          }
532
                          }
553
-                    }  
533
+                    }
554
               }
534
               }
555
               break
535
               break
556
            }
536
            }
561
            return false
541
            return false
562
         }
542
         }
563
       })
543
       })
564
- }
544
+     }
565
   },
545
   },
566
   watch: {
546
   watch: {
567
     'weigh_form.weigh_before': function() {
547
     'weigh_form.weigh_before': function() {

+ 4 - 0
src/xt_pages/stock/Dialog/stockInDialog.vue View File

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

+ 21 - 23
src/xt_pages/stock/cancelStockOrder.vue View File

131
     name: 'salesReturnOrder',
131
     name: 'salesReturnOrder',
132
     components: { BreadCrumb },
132
     components: { BreadCrumb },
133
     created() {
133
     created() {
134
-      var year = new Date().getFullYear()
135
-      var month = new Date().getMonth() + 1
136
-      var day = new Date().getDate()
137
-      if (parseInt(month) < 10) {
138
-        month = '0' + month
139
-      }
140
-      if (parseInt(day) < 10) {
141
-        day = '0' + day
142
-      }
143
-      const endTime = year + '-' + month + '-' + day
144
-      this.end_time = endTime
145
-
146
-      var year = new Date().getFullYear()
147
-      var month = new Date().getMonth()
148
-      var day = new Date().getDate()
149
-      if (parseInt(month) < 10) {
150
-        month = '0' + month
151
-      }
152
-      if (parseInt(day) < 10) {
153
-        day = '0' + day
154
-      }
155
-      const startTime = year + '-' + month + '-' + day
156
-      this.start_time = startTime
134
+      var nowDate = new Date();
135
+      var nowYear = nowDate.getFullYear();
136
+      var nowMonth = nowDate.getMonth() + 1;
137
+      var nowDay = nowDate.getDate();
138
+      this.end_time =
139
+        nowYear +
140
+        "-" +
141
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
142
+        "-" +
143
+        (nowDay < 10 ? "0" + nowDay : nowDay);
144
+      nowDate.setMonth(nowDate.getMonth() - 1);
145
+      nowYear = nowDate.getFullYear();
146
+      nowMonth = nowDate.getMonth() + 1;
147
+      nowDay = nowDate.getDate();
148
+      this.start_time =
149
+        nowYear +
150
+        "-" +
151
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
152
+        "-" +
153
+        (nowDay < 10 ? "0" + nowDay : nowDay);
154
+
157
       this.GetCancelStock()
155
       this.GetCancelStock()
158
       this.GetConfigInfo()
156
       this.GetConfigInfo()
159
       this.fetchAllAdminUsers()
157
       this.fetchAllAdminUsers()

+ 11 - 11
src/xt_pages/stock/cancelStockOrderAdd.vue View File

361
       }
361
       }
362
     },
362
     },
363
     created() {
363
     created() {
364
-      var year = new Date().getFullYear()
365
-      var month = new Date().getMonth() + 1
366
-      var day = new Date().getDate()
367
-      if (parseInt(month) < 10) {
368
-        month = '0' + month
369
-      }
370
-      if (parseInt(day) < 10) {
371
-        day = '0' + day
372
-      }
373
-      const endTime = year + '-' + month + '-' + day
374
-      this.return_time = endTime
364
+      var nowDate = new Date();
365
+      var nowYear = nowDate.getFullYear();
366
+      var nowMonth = nowDate.getMonth() + 1;
367
+      var nowDay = nowDate.getDate();
368
+      this.return_time =
369
+        nowYear +
370
+        "-" +
371
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
372
+        "-" +
373
+        (nowDay < 10 ? "0" + nowDay : nowDay);
374
+
375
       const tempObj = {}
375
       const tempObj = {}
376
       tempObj['good_type_id'] = 0
376
       tempObj['good_type_id'] = 0
377
       tempObj['good_id'] = 0
377
       tempObj['good_id'] = 0

+ 20 - 23
src/xt_pages/stock/detail/cancelStockDetail.vue View File

116
     name: 'cancelStockDetail',
116
     name: 'cancelStockDetail',
117
 
117
 
118
     created() {
118
     created() {
119
-      var year = new Date().getFullYear()
120
-      var month = new Date().getMonth() + 1
121
-      var day = new Date().getDate()
122
-      if (parseInt(month) < 10) {
123
-        month = '0' + month
124
-      }
125
-      if (parseInt(day) < 10) {
126
-        day = '0' + day
127
-      }
128
-      const endTime = year + '-' + month + '-' + day
129
-      this.end_time = endTime
130
-
131
-      var year = new Date().getFullYear()
132
-      var month = new Date().getMonth()
133
-      var day = new Date().getDate()
134
-      if (parseInt(month) < 10) {
135
-        month = '0' + month
136
-      }
137
-      if (parseInt(day) < 10) {
138
-        day = '0' + day
139
-      }
140
-      const startTime = year + '-' + month + '-' + day
141
-      this.start_time = startTime
119
+      var nowDate = new Date();
120
+      var nowYear = nowDate.getFullYear();
121
+      var nowMonth = nowDate.getMonth() + 1;
122
+      var nowDay = nowDate.getDate();
123
+      this.end_time =
124
+        nowYear +
125
+        "-" +
126
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
127
+        "-" +
128
+        (nowDay < 10 ? "0" + nowDay : nowDay);
129
+      nowDate.setMonth(nowDate.getMonth() - 1);
130
+      nowYear = nowDate.getFullYear();
131
+      nowMonth = nowDate.getMonth() + 1;
132
+      nowDay = nowDate.getDate();
133
+      this.start_time =
134
+        nowYear +
135
+        "-" +
136
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
137
+        "-" +
138
+        (nowDay < 10 ? "0" + nowDay : nowDay);
142
       this.GetCancelStock()
139
       this.GetCancelStock()
143
       this.GetConfigInfo()
140
       this.GetConfigInfo()
144
       this.fetchAllAdminUsers()
141
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/salesReturnDetail.vue View File

119
     name: 'salesReturnDetail',
119
     name: 'salesReturnDetail',
120
 
120
 
121
     created() {
121
     created() {
122
-      var year = new Date().getFullYear()
123
-      var month = new Date().getMonth() + 1
124
-      var day = new Date().getDate()
125
-      if (parseInt(month) < 10) {
126
-        month = '0' + month
127
-      }
128
-      if (parseInt(day) < 10) {
129
-        day = '0' + day
130
-      }
131
-      const endTime = year + '-' + month + '-' + day
132
-      this.end_time = endTime
133
-
134
-      var year = new Date().getFullYear()
135
-      var month = new Date().getMonth()
136
-      var day = new Date().getDate()
137
-      if (parseInt(month) < 10) {
138
-        month = '0' + month
139
-      }
140
-      if (parseInt(day) < 10) {
141
-        day = '0' + day
142
-      }
143
-      const startTime = year + '-' + month + '-' + day
144
-      this.start_time = startTime
122
+      var nowDate = new Date();
123
+      var nowYear = nowDate.getFullYear();
124
+      var nowMonth = nowDate.getMonth() + 1;
125
+      var nowDay = nowDate.getDate();
126
+      this.end_time =
127
+        nowYear +
128
+        "-" +
129
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
130
+        "-" +
131
+        (nowDay < 10 ? "0" + nowDay : nowDay);
132
+      nowDate.setMonth(nowDate.getMonth() - 1);
133
+      nowYear = nowDate.getFullYear();
134
+      nowMonth = nowDate.getMonth() + 1;
135
+      nowDay = nowDate.getDate();
136
+      this.start_time =
137
+        nowYear +
138
+        "-" +
139
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
140
+        "-" +
141
+        (nowDay < 10 ? "0" + nowDay : nowDay);
145
       this.GetCancelStock()
142
       this.GetCancelStock()
146
       this.GetConfigInfo()
143
       this.GetConfigInfo()
147
       this.fetchAllAdminUsers()
144
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockInDetail.vue View File

124
     name: 'stockInDetail',
124
     name: 'stockInDetail',
125
 
125
 
126
     created() {
126
     created() {
127
-      var year = new Date().getFullYear()
128
-      var month = new Date().getMonth() + 1
129
-      var day = new Date().getDate()
130
-      if (parseInt(month) < 10) {
131
-        month = '0' + month
132
-      }
133
-      if (parseInt(day) < 10) {
134
-        day = '0' + day
135
-      }
136
-      const endTime = year + '-' + month + '-' + day
137
-      this.end_time = endTime
138
-
139
-      var year = new Date().getFullYear()
140
-      var month = new Date().getMonth()
141
-      var day = new Date().getDate()
142
-      if (parseInt(month) < 10) {
143
-        month = '0' + month
144
-      }
145
-      if (parseInt(day) < 10) {
146
-        day = '0' + day
147
-      }
148
-      const startTime = year + '-' + month + '-' + day
149
-      this.start_time = startTime
127
+      var nowDate = new Date();
128
+      var nowYear = nowDate.getFullYear();
129
+      var nowMonth = nowDate.getMonth() + 1;
130
+      var nowDay = nowDate.getDate();
131
+      this.end_time =
132
+        nowYear +
133
+        "-" +
134
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
135
+        "-" +
136
+        (nowDay < 10 ? "0" + nowDay : nowDay);
137
+      nowDate.setMonth(nowDate.getMonth() - 1);
138
+      nowYear = nowDate.getFullYear();
139
+      nowMonth = nowDate.getMonth() + 1;
140
+      nowDay = nowDate.getDate();
141
+      this.start_time =
142
+        nowYear +
143
+        "-" +
144
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
145
+        "-" +
146
+        (nowDay < 10 ? "0" + nowDay : nowDay);
150
       this.GetCancelStock()
147
       this.GetCancelStock()
151
       this.GetConfigInfo()
148
       this.GetConfigInfo()
152
       this.fetchAllAdminUsers()
149
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockOutDetail.vue View File

129
     name: 'stockOutDetail',
129
     name: 'stockOutDetail',
130
 
130
 
131
     created() {
131
     created() {
132
-      var year = new Date().getFullYear()
133
-      var month = new Date().getMonth() + 1
134
-      var day = new Date().getDate()
135
-      if (parseInt(month) < 10) {
136
-        month = '0' + month
137
-      }
138
-      if (parseInt(day) < 10) {
139
-        day = '0' + day
140
-      }
141
-      const endTime = year + '-' + month + '-' + day
142
-      this.end_time = endTime
143
-
144
-      var year = new Date().getFullYear()
145
-      var month = new Date().getMonth()
146
-      var day = new Date().getDate()
147
-      if (parseInt(month) < 10) {
148
-        month = '0' + month
149
-      }
150
-      if (parseInt(day) < 10) {
151
-        day = '0' + day
152
-      }
153
-      const startTime = year + '-' + month + '-' + day
154
-      this.start_time = startTime
132
+      var nowDate = new Date();
133
+      var nowYear = nowDate.getFullYear();
134
+      var nowMonth = nowDate.getMonth() + 1;
135
+      var nowDay = nowDate.getDate();
136
+      this.end_time =
137
+        nowYear +
138
+        "-" +
139
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
140
+        "-" +
141
+        (nowDay < 10 ? "0" + nowDay : nowDay);
142
+      nowDate.setMonth(nowDate.getMonth() - 1);
143
+      nowYear = nowDate.getFullYear();
144
+      nowMonth = nowDate.getMonth() + 1;
145
+      nowDay = nowDate.getDate();
146
+      this.start_time =
147
+        nowYear +
148
+        "-" +
149
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
150
+        "-" +
151
+        (nowDay < 10 ? "0" + nowDay : nowDay);
155
       this.GetCancelStock()
152
       this.GetCancelStock()
156
       this.GetConfigInfo()
153
       this.GetConfigInfo()
157
       this.fetchAllAdminUsers()
154
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherCancelStockOrder.vue View File

128
     name: 'salesReturnOrder',
128
     name: 'salesReturnOrder',
129
     components: { BreadCrumb },
129
     components: { BreadCrumb },
130
     created() {
130
     created() {
131
-      var year = new Date().getFullYear()
132
-      var month = new Date().getMonth() + 1
133
-      var day = new Date().getDate()
134
-      if (parseInt(month) < 10) {
135
-        month = '0' + month
136
-      }
137
-      if (parseInt(day) < 10) {
138
-        day = '0' + day
139
-      }
140
-      const endTime = year + '-' + month + '-' + day
141
-      this.end_time = endTime
142
-
143
-      var year = new Date().getFullYear()
144
-      var month = new Date().getMonth()
145
-      var day = new Date().getDate()
146
-      if (parseInt(month) < 10) {
147
-        month = '0' + month
148
-      }
149
-      if (parseInt(day) < 10) {
150
-        day = '0' + day
151
-      }
152
-      const startTime = year + '-' + month + '-' + day
153
-      this.start_time = startTime
131
+      var nowDate = new Date();
132
+      var nowYear = nowDate.getFullYear();
133
+      var nowMonth = nowDate.getMonth() + 1;
134
+      var nowDay = nowDate.getDate();
135
+      this.end_time =
136
+        nowYear +
137
+        "-" +
138
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
139
+        "-" +
140
+        (nowDay < 10 ? "0" + nowDay : nowDay);
141
+      nowDate.setMonth(nowDate.getMonth() - 1);
142
+      nowYear = nowDate.getFullYear();
143
+      nowMonth = nowDate.getMonth() + 1;
144
+      nowDay = nowDate.getDate();
145
+      this.start_time =
146
+        nowYear +
147
+        "-" +
148
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
149
+        "-" +
150
+        (nowDay < 10 ? "0" + nowDay : nowDay);
154
       this.GetCancelStock()
151
       this.GetCancelStock()
155
       this.GetConfigInfo()
152
       this.GetConfigInfo()
156
       this.fetchAllAdminUsers()
153
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherSalesReturnOrder.vue View File

140
     name: 'salesReturnOrder',
140
     name: 'salesReturnOrder',
141
     components: { BreadCrumb },
141
     components: { BreadCrumb },
142
     created() {
142
     created() {
143
-      var year = new Date().getFullYear()
144
-      var month = new Date().getMonth() + 1
145
-      var day = new Date().getDate()
146
-      if (parseInt(month) < 10) {
147
-        month = '0' + month
148
-      }
149
-      if (parseInt(day) < 10) {
150
-        day = '0' + day
151
-      }
152
-      const endTime = year + '-' + month + '-' + day
153
-      this.end_time = endTime
154
-
155
-      var year = new Date().getFullYear()
156
-      var month = new Date().getMonth()
157
-      var day = new Date().getDate()
158
-      if (parseInt(month) < 10) {
159
-        month = '0' + month
160
-      }
161
-      if (parseInt(day) < 10) {
162
-        day = '0' + day
163
-      }
164
-      const startTime = year + '-' + month + '-' + day
165
-      this.start_time = startTime
143
+      var nowDate = new Date();
144
+      var nowYear = nowDate.getFullYear();
145
+      var nowMonth = nowDate.getMonth() + 1;
146
+      var nowDay = nowDate.getDate();
147
+      this.end_time =
148
+        nowYear +
149
+        "-" +
150
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
151
+        "-" +
152
+        (nowDay < 10 ? "0" + nowDay : nowDay);
153
+      nowDate.setMonth(nowDate.getMonth() - 1);
154
+      nowYear = nowDate.getFullYear();
155
+      nowMonth = nowDate.getMonth() + 1;
156
+      nowDay = nowDate.getDate();
157
+      this.start_time =
158
+        nowYear +
159
+        "-" +
160
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
161
+        "-" +
162
+        (nowDay < 10 ? "0" + nowDay : nowDay);
166
       this.GetSalesReturn()
163
       this.GetSalesReturn()
167
       this.GetConfigInfo()
164
       this.GetConfigInfo()
168
       this.fetchAllAdminUsers()
165
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockInOrder.vue View File

134
     name: 'stockIn',
134
     name: 'stockIn',
135
     components: { BreadCrumb },
135
     components: { BreadCrumb },
136
     created() {
136
     created() {
137
-      var year = new Date().getFullYear()
138
-      var month = new Date().getMonth() + 1
139
-      var day = new Date().getDate()
140
-      if (parseInt(month) < 10) {
141
-        month = '0' + month
142
-      }
143
-      if (parseInt(day) < 10) {
144
-        day = '0' + day
145
-      }
146
-      const endTime = year + '-' + month + '-' + day
147
-      this.end_time = endTime
148
-
149
-      var year = new Date().getFullYear()
150
-      var month = new Date().getMonth()
151
-      var day = new Date().getDate()
152
-      if (parseInt(month) < 10) {
153
-        month = '0' + month
154
-      }
155
-      if (parseInt(day) < 10) {
156
-        day = '0' + day
157
-      }
158
-      const startTime = year + '-' + month + '-' + day
159
-      this.start_time = startTime
137
+      var nowDate = new Date();
138
+      var nowYear = nowDate.getFullYear();
139
+      var nowMonth = nowDate.getMonth() + 1;
140
+      var nowDay = nowDate.getDate();
141
+      this.end_time =
142
+        nowYear +
143
+        "-" +
144
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
145
+        "-" +
146
+        (nowDay < 10 ? "0" + nowDay : nowDay);
147
+      nowDate.setMonth(nowDate.getMonth() - 1);
148
+      nowYear = nowDate.getFullYear();
149
+      nowMonth = nowDate.getMonth() + 1;
150
+      nowDay = nowDate.getDate();
151
+      this.start_time =
152
+        nowYear +
153
+        "-" +
154
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
155
+        "-" +
156
+        (nowDay < 10 ? "0" + nowDay : nowDay);
160
       this.GetWarehouse()
157
       this.GetWarehouse()
161
       this.GetConfigInfo()
158
       this.GetConfigInfo()
162
       this.fetchAllAdminUsers()
159
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockOutOrder.vue View File

132
   name: "salesReturnOrder",
132
   name: "salesReturnOrder",
133
   components: { BreadCrumb },
133
   components: { BreadCrumb },
134
   created() {
134
   created() {
135
-    var year = new Date().getFullYear();
136
-    var month = new Date().getMonth() + 1;
137
-    var day = new Date().getDate();
138
-    if (parseInt(month) < 10) {
139
-      month = "0" + month;
140
-    }
141
-    if (parseInt(day) < 10) {
142
-      day = "0" + day;
143
-    }
144
-    const endTime = year + "-" + month + "-" + day;
145
-    this.end_time = endTime;
146
-
147
-    var year = new Date().getFullYear();
148
-    var month = new Date().getMonth();
149
-    var day = new Date().getDate();
150
-    if (parseInt(month) < 10) {
151
-      month = "0" + month;
152
-    }
153
-    if (parseInt(day) < 10) {
154
-      day = "0" + day;
155
-    }
156
-    const startTime = year + "-" + month + "-" + day;
157
-    this.start_time = startTime;
135
+    var nowDate = new Date();
136
+    var nowYear = nowDate.getFullYear();
137
+    var nowMonth = nowDate.getMonth() + 1;
138
+    var nowDay = nowDate.getDate();
139
+    this.end_time =
140
+      nowYear +
141
+      "-" +
142
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
143
+      "-" +
144
+      (nowDay < 10 ? "0" + nowDay : nowDay);
145
+    nowDate.setMonth(nowDate.getMonth() - 1);
146
+    nowYear = nowDate.getFullYear();
147
+    nowMonth = nowDate.getMonth() + 1;
148
+    nowDay = nowDate.getDate();
149
+    this.start_time =
150
+      nowYear +
151
+      "-" +
152
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
153
+      "-" +
154
+      (nowDay < 10 ? "0" + nowDay : nowDay);
158
     this.GetWarehouseOut();
155
     this.GetWarehouseOut();
159
     this.GetConfigInfo();
156
     this.GetConfigInfo();
160
     this.fetchAllAdminUsers();
157
     this.fetchAllAdminUsers();

+ 21 - 23
src/xt_pages/stock/salesReturnOrder.vue View File

135
     name: 'salesReturnOrder',
135
     name: 'salesReturnOrder',
136
     components: { BreadCrumb },
136
     components: { BreadCrumb },
137
     created() {
137
     created() {
138
-      var year = new Date().getFullYear()
139
-      var month = new Date().getMonth() + 1
140
-      var day = new Date().getDate()
141
-      if (parseInt(month) < 10) {
142
-        month = '0' + month
143
-      }
144
-      if (parseInt(day) < 10) {
145
-        day = '0' + day
146
-      }
147
-      const endTime = year + '-' + month + '-' + day
148
-      this.end_time = endTime
149
-
150
-      var year = new Date().getFullYear()
151
-      var month = new Date().getMonth()
152
-      var day = new Date().getDate()
153
-      if (parseInt(month) < 10) {
154
-        month = '0' + month
155
-      }
156
-      if (parseInt(day) < 10) {
157
-        day = '0' + day
158
-      }
159
-      const startTime = year + '-' + month + '-' + day
160
-      this.start_time = startTime
138
+      var nowDate = new Date();
139
+      var nowYear = nowDate.getFullYear();
140
+      var nowMonth = nowDate.getMonth() + 1;
141
+      var nowDay = nowDate.getDate();
142
+      this.end_time =
143
+        nowYear +
144
+        "-" +
145
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
146
+        "-" +
147
+        (nowDay < 10 ? "0" + nowDay : nowDay);
148
+      nowDate.setMonth(nowDate.getMonth() - 1);
149
+      nowYear = nowDate.getFullYear();
150
+      nowMonth = nowDate.getMonth() + 1;
151
+      nowDay = nowDate.getDate();
152
+      this.start_time =
153
+        nowYear +
154
+        "-" +
155
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
156
+        "-" +
157
+        (nowDay < 10 ? "0" + nowDay : nowDay);
158
+
161
       this.GetSalesReturn()
159
       this.GetSalesReturn()
162
       this.GetConfigInfo()
160
       this.GetConfigInfo()
163
       this.fetchAllAdminUsers()
161
       this.fetchAllAdminUsers()

+ 10 - 11
src/xt_pages/stock/salesReturnOrderAdd.vue View File

373
       }
373
       }
374
     },
374
     },
375
     created() {
375
     created() {
376
-      var year = new Date().getFullYear()
377
-      var month = new Date().getMonth() + 1
378
-      var day = new Date().getDate()
379
-      if (parseInt(month) < 10) {
380
-        month = '0' + month
381
-      }
382
-      if (parseInt(day) < 10) {
383
-        day = '0' + day
384
-      }
385
-      const endTime = year + '-' + month + '-' + day
386
-      this.return_time = endTime
376
+      var nowDate = new Date();
377
+      var nowYear = nowDate.getFullYear();
378
+      var nowMonth = nowDate.getMonth() + 1;
379
+      var nowDay = nowDate.getDate();
380
+      this.return_time =
381
+        nowYear +
382
+        "-" +
383
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
384
+        "-" +
385
+        (nowDay < 10 ? "0" + nowDay : nowDay);
387
       const tempObj = {}
386
       const tempObj = {}
388
       tempObj['good_type_id'] = 0
387
       tempObj['good_type_id'] = 0
389
       tempObj['good_id'] = 0
388
       tempObj['good_id'] = 0

+ 53 - 23
src/xt_pages/stock/stockInOrder.vue View File

133
     name: 'stockIn',
133
     name: 'stockIn',
134
     components: { BreadCrumb },
134
     components: { BreadCrumb },
135
     created() {
135
     created() {
136
-      var year = new Date().getFullYear()
137
-      var month = new Date().getMonth() + 1
138
-      var day = new Date().getDate()
139
-      if (parseInt(month) < 10) {
140
-        month = '0' + month
141
-      }
142
-      if (parseInt(day) < 10) {
143
-        day = '0' + day
144
-      }
145
-      const endTime = year + '-' + month + '-' + day
146
-      this.end_time = endTime
147
-
148
-      var year = new Date().getFullYear()
149
-      var month = new Date().getMonth()
150
-      var day = new Date().getDate()
151
-      if (parseInt(month) < 10) {
152
-        month = '0' + month
153
-      }
154
-      if (parseInt(day) < 10) {
155
-        day = '0' + day
156
-      }
157
-      const startTime = year + '-' + month + '-' + day
158
-      this.start_time = startTime
136
+      // var nowDate = new Date();
137
+      //
138
+      // var year = new Date().getFullYear()
139
+      // var month = new Date().getMonth() + 1
140
+      // var day = nowDate.getDate()
141
+      // if (parseInt(month) < 10) {
142
+      //   month = '0' + month
143
+      // }
144
+      // if (parseInt(day) < 10) {
145
+      //   day = '0' + day
146
+      // }
147
+      // const endTime = year + '-' + month + '-' + day
148
+      // this.end_time = endTime
149
+      //
150
+      //
151
+      // var year = new Date().getFullYear()
152
+      // var month = new Date().getMonth()
153
+      // var day = new Date().getDate()
154
+      //
155
+      // day.setMonth(day.getMonth() - 3);
156
+      //
157
+      // if (parseInt(month) < 10) {
158
+      //   month = '0' + month
159
+      // }
160
+      // if (parseInt(day) < 10) {
161
+      //   day = '0' + day
162
+      // }
163
+      // const startTime = year + '-' + month + '-' + day
164
+      // this.start_time = startTime
165
+
166
+      var nowDate = new Date();
167
+      var nowYear = nowDate.getFullYear();
168
+      var nowMonth = nowDate.getMonth() + 1;
169
+      var nowDay = nowDate.getDate();
170
+      this.end_time =
171
+        nowYear +
172
+        "-" +
173
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
174
+        "-" +
175
+        (nowDay < 10 ? "0" + nowDay : nowDay);
176
+      nowDate.setMonth(nowDate.getMonth() - 1);
177
+      nowYear = nowDate.getFullYear();
178
+      nowMonth = nowDate.getMonth() + 1;
179
+      nowDay = nowDate.getDate();
180
+      this.start_time =
181
+        nowYear +
182
+        "-" +
183
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
184
+        "-" +
185
+        (nowDay < 10 ? "0" + nowDay : nowDay);
186
+
187
+
188
+
159
       this.GetWarehouse()
189
       this.GetWarehouse()
160
       this.GetConfigInfo()
190
       this.GetConfigInfo()
161
       this.fetchAllAdminUsers()
191
       this.fetchAllAdminUsers()

+ 12 - 14
src/xt_pages/stock/stockInOrderAdd.vue View File

59
                   </template>
59
                   </template>
60
 
60
 
61
                   <template slot-scope="scope">
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
                       <el-input placeholder="请输入商品类型" v-model="scope.row.good_type_id"
63
                       <el-input placeholder="请输入商品类型" v-model="scope.row.good_type_id"
64
                                 :value="typeName(scope.row.good_type_id)"
64
                                 :value="typeName(scope.row.good_type_id)"
65
                                 @focus="showDialog(scope.$index, scope.row)"></el-input>
65
                                 @focus="showDialog(scope.$index, scope.row)"></el-input>
341
       }, comfirm: function(val) {
341
       }, comfirm: function(val) {
342
         this.$refs.dialog.hide()
342
         this.$refs.dialog.hide()
343
         if (val.selectedGoodInfo.length > 0) {
343
         if (val.selectedGoodInfo.length > 0) {
344
-          for (let i = val.selectedGoodInfo.length - 1; ; i--) {
344
+          for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {
345
             if (i == 0) {
345
             if (i == 0) {
346
               this.recordInfo.recordData[this.currentIndex].good_type_id = val.goodTypeId
346
               this.recordInfo.recordData[this.currentIndex].good_type_id = val.goodTypeId
347
               this.recordInfo.recordData[this.currentIndex].good_id = val.selectedGoodInfo[i].id
347
               this.recordInfo.recordData[this.currentIndex].good_id = val.selectedGoodInfo[i].id
581
       }
581
       }
582
     },
582
     },
583
     created() {
583
     created() {
584
-      var year = new Date().getFullYear()
585
-      var month = new Date().getMonth() + 1
586
-      var day = new Date().getDate()
587
-      if (parseInt(month) < 10) {
588
-        month = '0' + month
589
-      }
590
-      if (parseInt(day) < 10) {
591
-        day = '0' + day
592
-      }
593
-      const endTime = year + '-' + month + '-' + day
594
-      this.warehousing_time = endTime
595
-
584
+      var nowDate = new Date();
585
+      var nowYear = nowDate.getFullYear();
586
+      var nowMonth = nowDate.getMonth() + 1;
587
+      var nowDay = nowDate.getDate();
588
+      this.warehousing_time =
589
+        nowYear +
590
+        "-" +
591
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
592
+        "-" +
593
+        (nowDay < 10 ? "0" + nowDay : nowDay);
596
       const tempObj = {}
594
       const tempObj = {}
597
       tempObj['good_type_id'] = 0
595
       tempObj['good_type_id'] = 0
598
       tempObj['good_id'] = 0
596
       tempObj['good_id'] = 0

+ 20 - 95
src/xt_pages/stock/stockOutOrder.vue View File

131
   name: "salesReturnOrder",
131
   name: "salesReturnOrder",
132
   components: { BreadCrumb },
132
   components: { BreadCrumb },
133
   created() {
133
   created() {
134
-    var year = new Date().getFullYear();
135
-    var month = new Date().getMonth() + 1;
136
-    var day = new Date().getDate();
137
-    if (parseInt(month) < 10) {
138
-      month = "0" + month;
139
-    }
140
-    if (parseInt(day) < 10) {
141
-      day = "0" + day;
142
-    }
143
-    const endTime = year + "-" + month + "-" + day;
144
-    this.end_time = endTime;
145
-
146
-    var year = new Date().getFullYear();
147
-    var month = new Date().getMonth();
148
-    var day = new Date().getDate();
149
-    if (parseInt(month) < 10) {
150
-      month = "0" + month;
151
-    }
152
-    if (parseInt(day) < 10) {
153
-      day = "0" + day;
154
-    }
155
-    const startTime = year + "-" + month + "-" + day;
156
-    this.start_time = startTime;
134
+    var nowDate = new Date();
135
+    var nowYear = nowDate.getFullYear();
136
+    var nowMonth = nowDate.getMonth() + 1;
137
+    var nowDay = nowDate.getDate();
138
+    this.end_time =
139
+      nowYear +
140
+      "-" +
141
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
142
+      "-" +
143
+      (nowDay < 10 ? "0" + nowDay : nowDay);
144
+    nowDate.setMonth(nowDate.getMonth() - 1);
145
+    nowYear = nowDate.getFullYear();
146
+    nowMonth = nowDate.getMonth() + 1;
147
+    nowDay = nowDate.getDate();
148
+    this.start_time =
149
+      nowYear +
150
+      "-" +
151
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
152
+      "-" +
153
+      (nowDay < 10 ? "0" + nowDay : nowDay);
157
     this.GetWarehouseOut();
154
     this.GetWarehouseOut();
158
     this.GetConfigInfo();
155
     this.GetConfigInfo();
159
     this.fetchAllAdminUsers();
156
     this.fetchAllAdminUsers();
473
   }
470
   }
474
 }
471
 }
475
 </style>
472
 </style>
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
-
518
-
519
-<<<<<<< .mine
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-=======
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
->>>>>>> .theirs

+ 10 - 11
src/xt_pages/stock/stockOutOrderAdd.vue View File

397
       }
397
       }
398
     },
398
     },
399
     created() {
399
     created() {
400
-      var year = new Date().getFullYear()
401
-      var month = new Date().getMonth() + 1
402
-      var day = new Date().getDate()
403
-      if (parseInt(month) < 10) {
404
-        month = '0' + month
405
-      }
406
-      if (parseInt(day) < 10) {
407
-        day = '0' + day
408
-      }
409
-      const endTime = year + '-' + month + '-' + day
410
-      this.warehouse_out_time = endTime
400
+      var nowDate = new Date();
401
+      var nowYear = nowDate.getFullYear();
402
+      var nowMonth = nowDate.getMonth() + 1;
403
+      var nowDay = nowDate.getDate();
404
+      this.warehouse_out_time =
405
+        nowYear +
406
+        "-" +
407
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
408
+        "-" +
409
+        (nowDay < 10 ? "0" + nowDay : nowDay);
411
       const tempObj = {}
410
       const tempObj = {}
412
       tempObj['good_type_id'] = 0
411
       tempObj['good_type_id'] = 0
413
       tempObj['good_id'] = 0
412
       tempObj['good_id'] = 0

+ 2 - 2
src/xt_pages/stock/stockQuery.vue View File

28
         </el-table-column>
28
         </el-table-column>
29
         <el-table-column label="入库退货" align="center">
29
         <el-table-column label="入库退货" align="center">
30
           <template slot-scope="scope">
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
           </template>
33
           </template>
34
         </el-table-column>
34
         </el-table-column>
45
         </el-table-column>
45
         </el-table-column>
46
         <el-table-column label="出库退库" align="center">
46
         <el-table-column label="出库退库" align="center">
47
           <template slot-scope="scope">
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
           </template>
50
           </template>
51
         </el-table-column>
51
         </el-table-column>

+ 3 - 0
src/xt_pages/user/components/PatientDetail.vue View File

1214
 .print_footnote_panel .proj .proj_title {
1214
 .print_footnote_panel .proj .proj_title {
1215
     font-weight: 500;
1215
     font-weight: 500;
1216
 }
1216
 }
1217
+.el-select-dropdown{
1218
+  z-index: 998!important;
1219
+}
1217
 </style>
1220
 </style>

+ 23 - 18
src/xt_pages/user/components/PatientForm.vue View File

1
 <template>
1
 <template>
2
   <div class="main-contain">
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;">
7
-        <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
3
+    <div v-if="!isEdit" class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <div class="" style="float:right;color: white">
8
         <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>
6
         <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
-        <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
-        <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
       </div>
7
       </div>
12
     </div>
8
     </div>
9
+
10
+    <div v-if="isEdit" class="" style="float:right;margin-right: 35px;margin-top: 10px">
11
+      <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
12
+      <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>
13
+      <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>
14
+      <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> -->
15
+    </div>
16
+
13
     <div class="app-container " v-loading="pageLoad">
17
     <div class="app-container " v-loading="pageLoad">
14
-      <el-form ref="form" :rules="rules" :model="form" label-width="124px" class="clearfix" >
18
+      <el-form ref="form" :rules="rules" :model="form" label-width="124px" class="clearfix" popper-append-to-body="false" >
15
         <div class="dataTitle">一般资料</div>
19
         <div class="dataTitle">一般资料</div>
16
         <el-row >
20
         <el-row >
17
           <el-col :span="20" class="form-table" >
21
           <el-col :span="20" class="form-table" >
83
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
87
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
84
                 </el-form-item>
88
                 </el-form-item>
85
               </el-col>
89
               </el-col>
86
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;" >
90
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:58px;" >
87
                 <el-form-item label="患者来源 : " class="is-required" prop="source" >
91
                 <el-form-item label="患者来源 : " class="is-required" prop="source" >
88
                   <el-radio-group v-model="form.source">
92
                   <el-radio-group v-model="form.source">
89
                     <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
93
                     <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
90
                   </el-radio-group>
94
                   </el-radio-group>
91
                 </el-form-item>
95
                 </el-form-item>
92
               </el-col>
96
               </el-col>
93
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
97
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:58px;">
94
                 <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
98
                 <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
95
                   <el-radio-group v-model="form.lapseto">
99
                   <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
                     <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
100
                     <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
98
                   </el-radio-group>
101
                   </el-radio-group>
99
                 </el-form-item>
102
                 </el-form-item>
142
                   </el-form-item> -->
145
                   </el-form-item> -->
143
                 </el-col>
146
                 </el-col>
144
                 <el-col :span="8" :style="isEdit?'width:360px':''">
147
                 <el-col :span="8" :style="isEdit?'width:360px':''">
145
-                  <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >
148
+                  <el-form-item label="住院(门诊)号 : "  >
146
                     <el-input v-model="form.admissionNumber"></el-input>
149
                     <el-input v-model="form.admissionNumber"></el-input>
147
                   </el-form-item>
150
                   </el-form-item>
148
                 </el-col>
151
                 </el-col>
363
             </el-form-item>
366
             </el-form-item>
364
           </el-col>
367
           </el-col>
365
 
368
 
366
-          <el-col :span="24" align="center">
369
+          <el-col :span="24" align="right" >
367
             <el-form-item>
370
             <el-form-item>
368
-
371
+                <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
372
+                <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="primary" icon="el-icon-setting" >保存</el-button>
373
+                <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="success" >保存并继续新增</el-button>
369
             </el-form-item>
374
             </el-form-item>
370
           </el-col>
375
           </el-col>
371
         </el-row>
376
         </el-row>
372
 
377
 
373
       </el-form>
378
       </el-form>
379
+
374
     </div>
380
     </div>
375
   </div>
381
   </div>
376
 
382
 
1020
   }
1026
   }
1021
   }
1027
   }
1022
   }
1028
   }
1023
-  .el-select-dropdown,
1024
-  .el-popper{
1025
-    z-index: 2000!important;
1026
-  }
1029
+  .el-select-dropdown{
1030
+  z-index: 998!important;
1031
+}
1027
 </style>
1032
 </style>
1028
 
1033
 

+ 20 - 24
src/xt_pages/user/courseOfDisease.vue View File

132
 
132
 
133
 
133
 
134
 
134
 
135
-
136
-      var year = new Date().getFullYear()
137
-      var month = new Date().getMonth() + 1
138
-      var day = new Date().getDate()
139
-      if (parseInt(month) < 10) {
140
-        month = '0' + month
141
-      }
142
-      if (parseInt(day) < 10) {
143
-        day = '0' + day
144
-      }
145
-      const endTime = year + '-' + month + '-' + day
146
-      this.end_time = endTime
147
-
148
-      var year = new Date().getFullYear()
149
-      var month = new Date().getMonth()
150
-      var day = new Date().getDate()
151
-      if (parseInt(month) < 10) {
152
-        month = '0' + month
153
-      }
154
-      if (parseInt(day) < 10) {
155
-        day = '0' + day
156
-      }
157
-      const startTime = year + '-' + month + '-' + day
158
-      this.start_time = startTime
135
+      var nowDate = new Date();
136
+      var nowYear = nowDate.getFullYear();
137
+      var nowMonth = nowDate.getMonth() + 1;
138
+      var nowDay = nowDate.getDate();
139
+      this.end_time =
140
+        nowYear +
141
+        "-" +
142
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
143
+        "-" +
144
+        (nowDay < 10 ? "0" + nowDay : nowDay);
145
+      nowDate.setMonth(nowDate.getMonth() - 1);
146
+      nowYear = nowDate.getFullYear();
147
+      nowMonth = nowDate.getMonth() + 1;
148
+      nowDay = nowDate.getDate();
149
+      this.start_time =
150
+        nowYear +
151
+        "-" +
152
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
153
+        "-" +
154
+        (nowDay < 10 ? "0" + nowDay : nowDay);
159
 
155
 
160
 
156
 
161
       this.requestCourseRecords()
157
       this.requestCourseRecords()

+ 8 - 1
src/xt_pages/user/dialysisRecord.vue View File

32
           </el-form>
32
           </el-form>
33
         </div>
33
         </div>
34
         <div>
34
         <div>
35
-          <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="recordData" border style="width: 100%" @current-change="clickCurrent">
35
+          <el-table id="oictable" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="recordData" border style="width: 100%" @current-change="clickCurrent">
36
               <el-table-column prop="dialysis_date" label="透析日期" align="center" width="110" fixed>
36
               <el-table-column prop="dialysis_date" label="透析日期" align="center" width="110" fixed>
37
                 <template slot-scope="scope"><span style="color: #579ef8">{{scope.row.dialysis_date | parseTime('{y}-{m}-{d}')}}</span></template>
37
                 <template slot-scope="scope"><span style="color: #579ef8">{{scope.row.dialysis_date | parseTime('{y}-{m}-{d}')}}</span></template>
38
               </el-table-column>
38
               </el-table-column>
360
   }
360
   }
361
 }
361
 }
362
 </script>
362
 </script>
363
+<style>
364
+  #oictable ::-webkit-scrollbar {
365
+    height: 15px;
366
+  }
367
+
368
+</style>
369
+
363
 <style rel='stylesheet/scss' lang="scss" scoped >
370
 <style rel='stylesheet/scss' lang="scss" scoped >
364
 .total {
371
 .total {
365
   font-size: 14px;
372
   font-size: 14px;

+ 6 - 4
src/xt_pages/user/doctorAdvice.vue View File

2
     <div class="patient-container">
2
     <div class="patient-container">
3
         <patient-sidebar :id="patientID" defaultActive="1-4" v-on:tran-patient="onTranPatient"></patient-sidebar>
3
         <patient-sidebar :id="patientID" defaultActive="1-4" v-on:tran-patient="onTranPatient"></patient-sidebar>
4
         <div class="patient-app-container advice-container app-container">
4
         <div class="patient-app-container advice-container app-container">
5
-            <div class="filter-container">
5
+            <div class="cellButton" style="float:right;">
6
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" size="small"   @click="openNew" type="primary" icon="el-icon-circle-plus-outline" >新增</el-button>
7
+                <el-button size="small"  @click="printThisInfo()" :type="adviceType==1 || adviceType == 3?'primary':'warning'" icon="el-icon-printer" >打印</el-button>            
8
+            </div>
9
+            <div class="cell clearfix">
6
                 <el-input   style="width: 400px;" v-model="listQuery.keywords" class="filter-item" size="small" />
10
                 <el-input   style="width: 400px;" v-model="listQuery.keywords" class="filter-item" size="small" />
7
-                <el-button  class="filter-item" size="small" type="primary" icon="el-icon-search" @click="changeKey" >搜索</el-button>
8
-                <el-button  class="filter-item" size="small" style="float:right;" @click="printThisInfo()" :type="adviceType==1 || adviceType == 3?'primary':'warning'" icon="el-icon-printer" >打印</el-button>
9
-                <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" size="small" class="filter-item" style="float:right;" @click="openNew" type="primary" icon="el-icon-circle-plus-outline" >新增</el-button>
11
+                <el-button   size="small" type="primary" icon="el-icon-search" @click="changeKey" >搜索</el-button>
10
             </div>
12
             </div>
11
             <div class="cell clearfix">
13
             <div class="cell clearfix">
12
                 <label class="title"><span class="name">医嘱类型</span> : </label>
14
                 <label class="title"><span class="name">医嘱类型</span> : </label>

+ 4 - 0
src/xt_pages/user/patients.vue View File

385
 
385
 
386
     methods: {
386
     methods: {
387
       EditLapseto() {
387
       EditLapseto() {
388
+        if (this.lapsetoForm.lapseto_time == ''){
389
+          this.$message.error("请选择时间")
390
+          return
391
+        }
388
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(response => {
392
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(response => {
389
           if (response.data.state === 1) {
393
           if (response.data.state === 1) {
390
             this.$notify({
394
             this.$notify({

+ 3 - 0
src/xt_pages/user/registration.vue View File

608
     height: 59px!important;
608
     height: 59px!important;
609
 }
609
 }
610
 }
610
 }
611
+.el-select-dropdown{
612
+  z-index: 998!important;
613
+}
611
 
614
 
612
 </style>
615
 </style>
613
 
616
 

+ 20 - 26
src/xt_pages/user/rescueRecord.vue View File

123
         this.$router.push('/patients/patients')
123
         this.$router.push('/patients/patients')
124
         return
124
         return
125
       }
125
       }
126
-      var now = new Date()
127
-      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
128
-
129
-      var year = new Date().getFullYear()
130
-      var month = new Date().getMonth() + 1
131
-      var day = new Date().getDate()
132
-      if (parseInt(month) < 10) {
133
-        month = '0' + month
134
-      }
135
-      if (parseInt(day) < 10) {
136
-        day = '0' + day
137
-      }
138
-      const endTime = year + '-' + month + '-' + day
139
-      this.end_time = endTime
140
-
141
-      var year = new Date().getFullYear()
142
-      var month = new Date().getMonth()
143
-      var day = new Date().getDate()
144
-      if (parseInt(month) < 10) {
145
-        month = '0' + month
146
-      }
147
-      if (parseInt(day) < 10) {
148
-        day = '0' + day
149
-      }
150
-      const startTime = year + '-' + month + '-' + day
151
-      this.start_time = startTime
126
+      var nowDate = new Date();
127
+      var nowYear = nowDate.getFullYear();
128
+      var nowMonth = nowDate.getMonth() + 1;
129
+      var nowDay = nowDate.getDate();
130
+      this.end_time =
131
+        nowYear +
132
+        "-" +
133
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
134
+        "-" +
135
+        (nowDay < 10 ? "0" + nowDay : nowDay);
136
+      nowDate.setMonth(nowDate.getMonth() - 1);
137
+      nowYear = nowDate.getFullYear();
138
+      nowMonth = nowDate.getMonth() + 1;
139
+      nowDay = nowDate.getDate();
140
+      this.start_time =
141
+        nowYear +
142
+        "-" +
143
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
144
+        "-" +
145
+        (nowDay < 10 ? "0" + nowDay : nowDay);
152
 
146
 
153
       this.requestRescueRecords()
147
       this.requestRescueRecords()
154
     },
148
     },