ソースを参照

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

柳香萍 6 年 前
コミット
950e96e49d
共有51 個のファイルを変更した598 個の追加637 個の削除を含む
  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 ファイルの表示

@@ -6,5 +6,5 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://localhost:9529"', // '"http://localhost:9529"'//http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API: '"http://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 ファイルの表示

@@ -71,4 +71,4 @@ export function sighdata(params){
71 71
      params: params,   
72 72
      method: 'Post'
73 73
    })
74
-}
74
+}

BIN
src/assets/logo/logo.png ファイルの表示


+ 2 - 3
src/router/index.js ファイルの表示

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

+ 1 - 1
src/styles/index.scss ファイルの表示

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

+ 5 - 5
src/views/layout/Layout.vue ファイルの表示

@@ -54,13 +54,13 @@ export default {
54 54
   @import "src/styles/mixin.scss";
55 55
   .app-wrapper {
56 56
     @include clearfix;
57
-    position: relative;
57
+    // position: relative;
58 58
     height: 100%;
59 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 65
   .drawer-bg {
66 66
     background: #000;

+ 1 - 1
src/views/layout/components/Navbar.vue ファイルの表示

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

+ 37 - 1
src/views/layout/components/TagsView.vue ファイルの表示

@@ -130,9 +130,45 @@ export default {
130 130
     border-bottom: 1px solid #d8dce5;
131 131
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
132 132
     position: fixed;
133
-    z-index: 2004;
133
+    z-index: 1000;
134 134
     top: 60px;
135 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 172
     .tags-view-item {
137 173
       display: inline-block;
138 174
       position: relative;

+ 1 - 2
src/xt_pages/data/components/tableson.vue ファイルの表示

@@ -1,9 +1,8 @@
1 1
 <template>
2 2
   <div class="">
3 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 5
     </div>
6
-
7 6
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row
8 7
       style="width: 100%;">
9 8
       <el-table-column  align="center" label="名称">

+ 1 - 1
src/xt_pages/data/components/templateTable.vue ファイルの表示

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="">
3 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 5
     </div>
6 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 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 ファイルの表示

@@ -1,7 +1,7 @@
1 1
 <template>
2 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 5
             <el-button @click="hide">取消</el-button>
6 6
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="createAction">保存</el-button>
7 7
         </div>
@@ -33,7 +33,7 @@ export default {
33 33
             done()
34 34
         },
35 35
         clear: function() {
36
-            
36
+
37 37
         },
38 38
         show() {
39 39
             this.clear()

+ 6 - 6
src/xt_pages/dialysis/bloodPresssWatch.vue ファイルの表示

@@ -95,14 +95,14 @@
95 95
           </template>
96 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 104
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
105
-            <template slot-scope="scope">
105
+            <template slot-scope="scope" >
106 106
               <!--<span>{{scope.row.bp[index].value}}</span>-->
107 107
               <span>{{getValue(scope.row.bp[index])}}</span>
108 108
             </template>

+ 1 - 0
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue ファイルの表示

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

+ 5 - 22
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue ファイルの表示

@@ -5,6 +5,7 @@
5 5
       :visible.sync="isVisibility"
6 6
       width="1010px"
7 7
       @close="resetDialog"
8
+      modal-append-to-body=“false”
8 9
     >
9 10
       <div class="txsj" v-show="showAdvicePanel">
10 11
         <el-button  round @click="openGroupFrom" :loading="deleLoading">新增医嘱</el-button>
@@ -28,7 +29,7 @@
28 29
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
29 30
       <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="doctor_advices" border style="width: 100%" v-show="showAdvicePanel"
30 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 34
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
34 35
           <template slot-scope="scope">
@@ -41,22 +42,11 @@
41 42
           </template>
42 43
 
43 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 46
           <template slot-scope="scope">
46 47
 
47 48
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
48
-
49 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 50
               <el-dropdown-menu slot="dropdown">
61 51
                 <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
62 52
                 <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
@@ -64,7 +54,6 @@
64 54
               </el-dropdown-menu>
65 55
             </el-dropdown>
66 56
 
67
-
68 57
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
69 58
               <span class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}<i class="el-icon-arrow-down el-icon--right"></i></span>
70 59
               <el-dropdown-menu slot="dropdown">
@@ -96,14 +85,7 @@
96 85
             <span v-else></span>
97 86
           </template>
98 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 89
       </el-table>
108 90
       <!-- 医嘱列表 end -->
109 91
 
@@ -210,6 +192,7 @@
210 192
       :show-close="isClose"
211 193
       :close-on-click-modal="isClose"
212 194
       :close-on-press-escape="isClose"
195
+      modal-append-to-body=“false”
213 196
       >
214 197
       <el-date-picker
215 198
         v-model="execTime"

+ 1 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue ファイルの表示

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

+ 8 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue ファイルの表示

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

+ 11 - 1
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue ファイルの表示

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

+ 1 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue ファイルの表示

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

+ 1 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue ファイルの表示

@@ -1,6 +1,6 @@
1 1
 <template>
2 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 4
             <el-form :model="form" label-width="80px">
5 5
                 <el-form-item label="上机床位">
6 6
                     <el-select v-model="form.bed_id" placeholder="" :disabled="dialysis_order.id != 0">

+ 2 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue ファイルの表示

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

+ 1 - 0
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue ファイルの表示

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <el-dialog title="双人核对"
3 3
              :visible.sync="isVisibility"
4
+             modal-append-to-body=“false”
4 5
              width="854px">
5 6
 
6 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 ファイルの表示

@@ -1,6 +1,6 @@
1 1
 <template>
2 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 4
             <div class="txsj">
5 5
             </div>
6 6
             <el-form :model="form" label-width="80px">

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue ファイルの表示

@@ -1,6 +1,6 @@
1 1
 <template>
2 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 4
       <div v-show="edit == false">
5 5
         <div class="txsj">
6 6
           <el-button round @click="newRecordAction">新增监测</el-button>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue ファイルの表示

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

+ 94 - 114
src/xt_pages/sign/index.vue ファイルの表示

@@ -9,28 +9,30 @@
9 9
             <el-col :span="8">
10 10
                 <div class="dataTitle">患者列表</div>
11 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 14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
14 15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
15 16
                     </el-select>
16 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 20
                     <el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
19 21
                     <el-table-column prop="name" label="姓名" min-width="20" align="center">
20 22
                        <template slot-scope="scope">
21 23
                             {{scope.row.name}}({{scope.row.dialysis_no}})
22
-                        </template> 
23
-                    </el-table-column> 
24
+                        </template>
25
+                    </el-table-column>
24 26
 
25 27
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
26 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 30
                             <span v-else-if="scope.row.dialysis_order.stage==2">已经下机</span>
29 31
                             <span v-else>已签到</span>
30 32
                         </template>
31 33
                     </el-table-column>
32 34
                 </el-table>
33
-            
35
+
34 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 37
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
36 38
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
@@ -49,7 +51,7 @@
49 51
                   <div class="inforTitle">
50 52
                   <el-button  @click="change()" style="float:right;">修改</el-button>
51 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 55
                     <div class="border"></div>
54 56
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
55 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,31 +63,31 @@
61 63
                      呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
62 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 65
                     </div>
64
-                    <div class="border"></div>  
66
+                    <div class="border"></div>
65 67
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
66 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 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 71
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
70 72
                       体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
71 73
                       脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
72 74
                       呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
73 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 78
                     <div class="border"></div>
77 79
                     <div v-if="show">
78 80
                     <el-row :gutter="20">
79 81
                         <el-col :span="23" align="right" class="button">
80 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 84
                         </el-col>
83 85
                     </el-row>
84 86
                    </div>
85 87
                 </el-form>
86 88
             </el-col>
87 89
         </el-row>
88
-    </div>   
90
+    </div>
89 91
    </div>
90 92
 </template>
91 93
 
@@ -136,6 +138,7 @@ export default {
136 138
         DBP_after: '', // 舒张压
137 139
         SBP_after: '', // 收缩压
138 140
         dialysis_no: ''
141
+       
139 142
       },
140 143
       weigh_list: {
141 144
         weight_before: '', // 透前体重
@@ -192,18 +195,36 @@ export default {
192 195
   methods: {
193 196
     fetchSignPatients() {
194 197
       fetchSignPatients(this.queryParams).then(response => {
195
-        this.patients = []
198
+        this.patients = []      
196 199
         if (response.data.state === 1) {
197 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 217
           this.queryParams.schedule_type = response.data.data.schedule_type
201 218
           this.querySignParams.date_time = response.data.data.today
202
-           
219
+
203 220
           if (this.queryParams.need_schedule_type === 1) {
204 221
             var sl = this.schedules.length
222
+            console.log("s1是什么东西")
223
+            console.log(sl)
205 224
             for (let index = 0; index < sl; index++) {
206 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 228
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
208 229
                 this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
209 230
                 this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
@@ -250,7 +271,6 @@ export default {
250 271
       this.fetchSignPatients()
251 272
     },
252 273
     handleCurrentChange(row, old) {
253
-      
254 274
       //     this.weigh_form = {
255 275
       //     id:0,
256 276
       //     choose:false,
@@ -284,93 +304,55 @@ export default {
284 304
       this.weigh_form.choose = true
285 305
       this.weigh_form.name = row.name
286 306
       this.weigh_form.dialysis_no = row.dialysis_no
287
-      //   if (row.alias.length>0) {
288
-      //       this.weigh_form.name += "("+row.alias+")";
289
-      //   }
290 307
       this.weigh_form.patient_id = row.id
291 308
       this.querySignParams.patient_id = row.id
292 309
       this.dialysis_stege = row.dialysis_order.stage
293 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 357
     getDialysisInforInfomation(id) {
376 358
       getDialysisInforInfomation(id).then(response => {
@@ -423,7 +405,7 @@ export default {
423 405
           if(this.weigh_infor.weight_after == 0){
424 406
               this.weigh_infor.weight_after = ""
425 407
           }
426
-         
408
+
427 409
           this.weigh_infor.temperature = patientinfor.temperature
428 410
           if(this.weigh_infor.temperature == 0){
429 411
                this.weigh_infor.temperature = ""
@@ -509,7 +491,7 @@ export default {
509 491
       params.breathing_rate = this.weigh_list.breathing_rate
510 492
       params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
511 493
       params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
512
-      
494
+
513 495
       //透后数据
514 496
       params.weight_after = this.weigh_infor.weight_after
515 497
       params.temperatureafter = this.weigh_infor.temperature
@@ -517,40 +499,38 @@ export default {
517 499
       params.breathing_rateafter = this.weigh_infor.breathing_rate
518 500
       params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
519 501
       params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
520
-      console.log("params数据",params)
502
+       console.log("params是什么?",params)
521 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 506
         if (response.data.state === 1) {
525 507
           this.$message({
526 508
             type: 'success',
527 509
             message: '成功!'
528 510
           })
529 511
         var tlen = this.patients.length
512
+        
530 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 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 518
               if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
536 519
                     var sl = this.schedules.length
537 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 523
                                     this.schedules[j].sign++
544 524
                               }
545 525
                               if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
546
-                                   
526
+
547 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 530
                                   this.schedules[j].after++
551 531
                               }
552 532
                          }
553
-                    }  
533
+                    }
554 534
               }
555 535
               break
556 536
            }
@@ -561,7 +541,7 @@ export default {
561 541
            return false
562 542
         }
563 543
       })
564
- }
544
+     }
565 545
   },
566 546
   watch: {
567 547
     'weigh_form.weigh_before': function() {

+ 4 - 0
src/xt_pages/stock/Dialog/stockInDialog.vue ファイルの表示

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

+ 21 - 23
src/xt_pages/stock/cancelStockOrder.vue ファイルの表示

@@ -131,29 +131,27 @@
131 131
     name: 'salesReturnOrder',
132 132
     components: { BreadCrumb },
133 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 155
       this.GetCancelStock()
158 156
       this.GetConfigInfo()
159 157
       this.fetchAllAdminUsers()

+ 11 - 11
src/xt_pages/stock/cancelStockOrderAdd.vue ファイルの表示

@@ -361,17 +361,17 @@
361 361
       }
362 362
     },
363 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 375
       const tempObj = {}
376 376
       tempObj['good_type_id'] = 0
377 377
       tempObj['good_id'] = 0

+ 20 - 23
src/xt_pages/stock/detail/cancelStockDetail.vue ファイルの表示

@@ -116,29 +116,26 @@
116 116
     name: 'cancelStockDetail',
117 117
 
118 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 139
       this.GetCancelStock()
143 140
       this.GetConfigInfo()
144 141
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/salesReturnDetail.vue ファイルの表示

@@ -119,29 +119,26 @@
119 119
     name: 'salesReturnDetail',
120 120
 
121 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 142
       this.GetCancelStock()
146 143
       this.GetConfigInfo()
147 144
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockInDetail.vue ファイルの表示

@@ -124,29 +124,26 @@
124 124
     name: 'stockInDetail',
125 125
 
126 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 147
       this.GetCancelStock()
151 148
       this.GetConfigInfo()
152 149
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockOutDetail.vue ファイルの表示

@@ -129,29 +129,26 @@
129 129
     name: 'stockOutDetail',
130 130
 
131 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 152
       this.GetCancelStock()
156 153
       this.GetConfigInfo()
157 154
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherCancelStockOrder.vue ファイルの表示

@@ -128,29 +128,26 @@
128 128
     name: 'salesReturnOrder',
129 129
     components: { BreadCrumb },
130 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 151
       this.GetCancelStock()
155 152
       this.GetConfigInfo()
156 153
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherSalesReturnOrder.vue ファイルの表示

@@ -140,29 +140,26 @@
140 140
     name: 'salesReturnOrder',
141 141
     components: { BreadCrumb },
142 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 163
       this.GetSalesReturn()
167 164
       this.GetConfigInfo()
168 165
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockInOrder.vue ファイルの表示

@@ -134,29 +134,26 @@
134 134
     name: 'stockIn',
135 135
     components: { BreadCrumb },
136 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 157
       this.GetWarehouse()
161 158
       this.GetConfigInfo()
162 159
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockOutOrder.vue ファイルの表示

@@ -132,29 +132,26 @@ export default {
132 132
   name: "salesReturnOrder",
133 133
   components: { BreadCrumb },
134 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 155
     this.GetWarehouseOut();
159 156
     this.GetConfigInfo();
160 157
     this.fetchAllAdminUsers();

+ 21 - 23
src/xt_pages/stock/salesReturnOrder.vue ファイルの表示

@@ -135,29 +135,27 @@
135 135
     name: 'salesReturnOrder',
136 136
     components: { BreadCrumb },
137 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 159
       this.GetSalesReturn()
162 160
       this.GetConfigInfo()
163 161
       this.fetchAllAdminUsers()

+ 10 - 11
src/xt_pages/stock/salesReturnOrderAdd.vue ファイルの表示

@@ -373,17 +373,16 @@
373 373
       }
374 374
     },
375 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 386
       const tempObj = {}
388 387
       tempObj['good_type_id'] = 0
389 388
       tempObj['good_id'] = 0

+ 53 - 23
src/xt_pages/stock/stockInOrder.vue ファイルの表示

@@ -133,29 +133,59 @@
133 133
     name: 'stockIn',
134 134
     components: { BreadCrumb },
135 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 189
       this.GetWarehouse()
160 190
       this.GetConfigInfo()
161 191
       this.fetchAllAdminUsers()

+ 12 - 14
src/xt_pages/stock/stockInOrderAdd.vue ファイルの表示

@@ -59,7 +59,7 @@
59 59
                   </template>
60 60
 
61 61
                   <template slot-scope="scope">
62
-                    <el-form-item style="padding-top: 15px">
62
+                    <el-form-item style="padding-top: 15px;margin-left: 10px;margin-right: 10px">
63 63
                       <el-input placeholder="请输入商品类型" v-model="scope.row.good_type_id"
64 64
                                 :value="typeName(scope.row.good_type_id)"
65 65
                                 @focus="showDialog(scope.$index, scope.row)"></el-input>
@@ -341,7 +341,7 @@
341 341
       }, comfirm: function(val) {
342 342
         this.$refs.dialog.hide()
343 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 345
             if (i == 0) {
346 346
               this.recordInfo.recordData[this.currentIndex].good_type_id = val.goodTypeId
347 347
               this.recordInfo.recordData[this.currentIndex].good_id = val.selectedGoodInfo[i].id
@@ -581,18 +581,16 @@
581 581
       }
582 582
     },
583 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 594
       const tempObj = {}
597 595
       tempObj['good_type_id'] = 0
598 596
       tempObj['good_id'] = 0

+ 20 - 95
src/xt_pages/stock/stockOutOrder.vue ファイルの表示

@@ -131,29 +131,26 @@ export default {
131 131
   name: "salesReturnOrder",
132 132
   components: { BreadCrumb },
133 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 154
     this.GetWarehouseOut();
158 155
     this.GetConfigInfo();
159 156
     this.fetchAllAdminUsers();
@@ -473,75 +470,3 @@ export default {
473 470
   }
474 471
 }
475 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 ファイルの表示

@@ -397,17 +397,16 @@
397 397
       }
398 398
     },
399 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 410
       const tempObj = {}
412 411
       tempObj['good_type_id'] = 0
413 412
       tempObj['good_id'] = 0

+ 2 - 2
src/xt_pages/stock/stockQuery.vue ファイルの表示

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

+ 3 - 0
src/xt_pages/user/components/PatientDetail.vue ファイルの表示

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

+ 23 - 18
src/xt_pages/user/components/PatientForm.vue ファイルの表示

@@ -1,17 +1,21 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb v-if="!isEdit" :crumbs='crumbs'></bread-crumb>
5
-
6
-      <div class="" style="float:right;">
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 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 7
       </div>
12 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 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 19
         <div class="dataTitle">一般资料</div>
16 20
         <el-row >
17 21
           <el-col :span="20" class="form-table" >
@@ -83,17 +87,16 @@
83 87
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
84 88
                 </el-form-item>
85 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 91
                 <el-form-item label="患者来源 : " class="is-required" prop="source" >
88 92
                   <el-radio-group v-model="form.source">
89 93
                     <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
90 94
                   </el-radio-group>
91 95
                 </el-form-item>
92 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 98
                 <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
95 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 100
                     <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
98 101
                   </el-radio-group>
99 102
                 </el-form-item>
@@ -142,7 +145,7 @@
142 145
                   </el-form-item> -->
143 146
                 </el-col>
144 147
                 <el-col :span="8" :style="isEdit?'width:360px':''">
145
-                  <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >
148
+                  <el-form-item label="住院(门诊)号 : "  >
146 149
                     <el-input v-model="form.admissionNumber"></el-input>
147 150
                   </el-form-item>
148 151
                 </el-col>
@@ -363,14 +366,17 @@
363 366
             </el-form-item>
364 367
           </el-col>
365 368
 
366
-          <el-col :span="24" align="center">
369
+          <el-col :span="24" align="right" >
367 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 374
             </el-form-item>
370 375
           </el-col>
371 376
         </el-row>
372 377
 
373 378
       </el-form>
379
+
374 380
     </div>
375 381
   </div>
376 382
 
@@ -1020,9 +1026,8 @@
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 1032
 </style>
1028 1033
 

+ 20 - 24
src/xt_pages/user/courseOfDisease.vue ファイルの表示

@@ -132,30 +132,26 @@ export default {
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 157
       this.requestCourseRecords()

+ 8 - 1
src/xt_pages/user/dialysisRecord.vue ファイルの表示

@@ -32,7 +32,7 @@
32 32
           </el-form>
33 33
         </div>
34 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 36
               <el-table-column prop="dialysis_date" label="透析日期" align="center" width="110" fixed>
37 37
                 <template slot-scope="scope"><span style="color: #579ef8">{{scope.row.dialysis_date | parseTime('{y}-{m}-{d}')}}</span></template>
38 38
               </el-table-column>
@@ -360,6 +360,13 @@ export default {
360 360
   }
361 361
 }
362 362
 </script>
363
+<style>
364
+  #oictable ::-webkit-scrollbar {
365
+    height: 15px;
366
+  }
367
+
368
+</style>
369
+
363 370
 <style rel='stylesheet/scss' lang="scss" scoped >
364 371
 .total {
365 372
   font-size: 14px;

+ 6 - 4
src/xt_pages/user/doctorAdvice.vue ファイルの表示

@@ -2,11 +2,13 @@
2 2
     <div class="patient-container">
3 3
         <patient-sidebar :id="patientID" defaultActive="1-4" v-on:tran-patient="onTranPatient"></patient-sidebar>
4 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 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 12
             </div>
11 13
             <div class="cell clearfix">
12 14
                 <label class="title"><span class="name">医嘱类型</span> : </label>

+ 4 - 0
src/xt_pages/user/patients.vue ファイルの表示

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

+ 3 - 0
src/xt_pages/user/registration.vue ファイルの表示

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

+ 20 - 26
src/xt_pages/user/rescueRecord.vue ファイルの表示

@@ -123,32 +123,26 @@
123 123
         this.$router.push('/patients/patients')
124 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 147
       this.requestRescueRecords()
154 148
     },