Browse Source

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

zhengchengwu 6 years ago
parent
commit
8cfccb42fd
65 changed files with 3373 additions and 2881 deletions
  1. 1 1
      config/dev.env.js
  2. 1 1
      src/components/Hamburger/index.vue
  3. 52 10
      src/router/index.js
  4. 10 6
      src/styles/index.scss
  5. 1 1
      src/styles/sidebar.scss
  6. 210 185
      src/views/layout/components/Navbar.vue
  7. 0 1
      src/views/layout/components/Sidebar/index.vue
  8. 1 1
      src/views/layout/components/TagsView.vue
  9. 15 7
      src/xt_pages/data/druguse.vue
  10. 34 38
      src/xt_pages/data/druguseTemplate.vue
  11. 6 1
      src/xt_pages/data/index.vue
  12. 5 1
      src/xt_pages/data/template.vue
  13. 12 7
      src/xt_pages/device/group_main.vue
  14. 8 3
      src/xt_pages/device/main.vue
  15. 14 9
      src/xt_pages/device/number_main.vue
  16. 15 10
      src/xt_pages/device/zone_main.vue
  17. 13 8
      src/xt_pages/dialysis/bloodPresssWatch.vue
  18. 33 17
      src/xt_pages/dialysis/bulletinBoard.vue
  19. 1 1
      src/xt_pages/dialysis/dialysisPrepare.vue
  20. 5 5
      src/xt_pages/dialysis/doctorAdvice.vue
  21. 9 5
      src/xt_pages/dialysis/schedualPatient.vue
  22. 1 1
      src/xt_pages/dialysis/schedualPatient2.vue
  23. 2 2
      src/xt_pages/qcd/dialysisTotal.vue
  24. 2 2
      src/xt_pages/qcd/outcomeIndicators/control.vue
  25. 3 3
      src/xt_pages/qcd/outcomeIndicators/query.vue
  26. 1 1
      src/xt_pages/qcd/patientAnalysis/bloodPressure.vue
  27. 1 1
      src/xt_pages/qcd/patientAnalysis/complication.vue
  28. 1 1
      src/xt_pages/qcd/patientAnalysis/dialysisAge.vue
  29. 1 1
      src/xt_pages/qcd/patientAnalysis/lapseto.vue
  30. 2 2
      src/xt_pages/qcd/patientAnalysis/total.vue
  31. 1 1
      src/xt_pages/qcd/patientAnalysis/weight.vue
  32. 2 2
      src/xt_pages/qcd/processIndicators.1.vue
  33. 2 2
      src/xt_pages/qcd/processIndicators.vue
  34. 13 1
      src/xt_pages/sign/index.vue
  35. 12 7
      src/xt_pages/statistics/index.vue
  36. 4 0
      src/xt_pages/stock/Dialog/stockInDialog.vue
  37. 3 3
      src/xt_pages/stock/cancelStockOrder.vue
  38. 9 2
      src/xt_pages/stock/cancelStockOrderAdd.vue
  39. 1 1
      src/xt_pages/stock/cancelStockOrderDetail.vue
  40. 1 1
      src/xt_pages/stock/cancelStockOrderEdit.vue
  41. 2 2
      src/xt_pages/stock/otherCancelStockOrder.vue
  42. 3 3
      src/xt_pages/stock/otherSalesReturnOrder.vue
  43. 2 2
      src/xt_pages/stock/otherStockInOrder.vue
  44. 332 306
      src/xt_pages/stock/otherStockOutOrder.vue
  45. 6 1
      src/xt_pages/stock/salesReturnEdit.vue
  46. 2 2
      src/xt_pages/stock/salesReturnOrder.vue
  47. 10 2
      src/xt_pages/stock/salesReturnOrderAdd.vue
  48. 1 1
      src/xt_pages/stock/salesReturnOrderDetail.vue
  49. 2 2
      src/xt_pages/stock/stockInOrder.vue
  50. 18 2
      src/xt_pages/stock/stockInOrderAdd.vue
  51. 2 2
      src/xt_pages/stock/stockInOrderDetail.vue
  52. 2 1
      src/xt_pages/stock/stockInOrderEdit.vue
  53. 335 299
      src/xt_pages/stock/stockOutOrder.vue
  54. 11 2
      src/xt_pages/stock/stockOutOrderAdd.vue
  55. 1 1
      src/xt_pages/stock/stockOutOrderDetail.vue
  56. 1 1
      src/xt_pages/stock/stockOutOrderEdit.vue
  57. 41 39
      src/xt_pages/user/components/PatientDetail.vue
  58. 51 38
      src/xt_pages/user/components/PatientForm.vue
  59. 1 1
      src/xt_pages/user/components/PatientSidebar.vue
  60. 2009 1766
      src/xt_pages/user/doctorAdvice.vue
  61. 1 1
      src/xt_pages/user/patient.vue
  62. 12 40
      src/xt_pages/user/patients.vue
  63. 1 1
      src/xt_pages/user/proeducation.vue
  64. 8 4
      src/xt_pages/workforce/appointment.vue
  65. 11 10
      src/xt_pages/workforce/remind.vue

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

@@ -6,7 +6,7 @@
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
9
+  BASE_API: '"http://112.74.16.180:9527"', // '"http://localhost:9529"'//http://api.xt.test.sgjyun.com
10 10
   // PATIENT_SIT: '"http://test1.sgjyun.com"',
11 11
   // MIRCOMALL_SIT: '"http://mall.test.sgjyun.com"'
12 12
 }

+ 1 - 1
src/components/Hamburger/index.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <svg t="1492500959545" @click="toggleClick" class="hamburger" :class="{'is-active':isActive}" style="" viewBox="0 0 1024 1024"
3
+    <svg t="1492500959545" @click="toggleClick" class="hamburger" :class="{'is-active':isActive}" style="fill:#bfcbd9" viewBox="0 0 1024 1024"
4 4
       version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1691" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64">
5 5
       <path d="M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z"
6 6
         p-id="1692"></path>

+ 52 - 10
src/router/index.js View File

@@ -123,8 +123,8 @@ export const xt_constantRouterMap = [
123 123
   },
124 124
 
125 125
   // ////////////////////////////
126
-  //本地开始
127
-  ///////////////////////////////
126
+  // 本地开始
127
+  // /////////////////////////////
128 128
   {
129 129
     path: 'statistics',
130 130
     component: Layout,
@@ -157,14 +157,31 @@ export const xt_constantRouterMap = [
157 157
     children: [
158 158
       { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
159 159
       { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
160
-      { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
161
-      { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
162
-      { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
163
-      { path: '/qcd/patientanalysis/weight',hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
164
-      { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
165
-      { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
166
-      { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
167
-      { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
160
+      {
161
+        path: '/qcd/outcomeIndicators',
162
+        name: 'outcomeIndicators',
163
+        meta: { title: '结果指标' },
164
+        redirect: '/qcd/outcomeIndicators/control',
165
+        component: () => import('@/xt_pages/qcd/outcomeIndicators/parent'), // Parent router-view
166
+        children: [
167
+          { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '指标控制' }},
168
+          { path: '/qcd/outcomeIndicators/query', component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }}
169
+        ]
170
+      },
171
+      {
172
+        path: '/qcd/patientanalysis',
173
+        name: 'patientanalysis',
174
+        meta: { title: '患者分析' },
175
+        redirect: '/qcd/patientanalysis/total',
176
+        component: () => import('@/xt_pages/qcd/patientAnalysis/parent'), // Parent router-view
177
+        children: [
178
+          { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '总量分析' }},
179
+          { path: '/qcd/patientanalysis/weight', component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
180
+          { path: '/qcd/patientanalysis/bloodpressure', component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
181
+          { path: '/qcd/patientanalysis/dialysisage', component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
182
+          { path: '/qcd/patientanalysis/lapseto', component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }}
183
+        ]
184
+      }
168 185
       { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
169 186
       { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
170 187
     ]
@@ -926,8 +943,33 @@ export const xt_asyncRouterMap = [
926 943
   //     { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
927 944
   //     { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
928 945
   //     { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
946
+  // {
947
+  //   path: '/qcd/outcomeIndicators',
948
+  //   name: 'outcomeIndicators',
949
+  //   meta: { title: '结果指标' },
950
+  //   redirect: '/qcd/outcomeIndicators/control',
951
+  //   component: () => import('@/xt_pages/qcd/outcomeIndicators/parent'), // Parent router-view
952
+  //   children:[
953
+  //     { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '指标控制' }},
954
+  //     { path: '/qcd/outcomeIndicators/query', component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
929 955
   //   ]
930 956
   // },
957
+  // {
958
+  //   path: '/qcd/patientanalysis',
959
+  //   name: 'patientanalysis',
960
+  //   meta: { title: '患者分析' },
961
+  //   redirect: '/qcd/patientanalysis/total',
962
+  //   component: () => import('@/xt_pages/qcd/patientAnalysis/parent'), // Parent router-view
963
+  //   children:[
964
+  //     { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '总量分析' }},
965
+  //     { path: '/qcd/patientanalysis/weight', component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
966
+  //     { path: '/qcd/patientanalysis/bloodpressure', component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
967
+  //     { path: '/qcd/patientanalysis/dialysisage', component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
968
+  //     { path: '/qcd/patientanalysis/lapseto', component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
969
+  //   ]
970
+  // },
971
+  // ]
972
+  // },
931 973
   // /////////////////////////////////////线在end
932 974
   {
933 975
     path: '/role',

+ 10 - 6
src/styles/index.scss View File

@@ -139,7 +139,7 @@ code {
139 139
   padding: 20px;
140 140
   background: #fff;
141 141
   margin: 0 15px 15px 15px;
142
-  min-height: calc(100vh - 185px);
142
+  min-height: calc(100vh - 178px);
143 143
 }
144 144
 
145 145
 .components-container {
@@ -347,7 +347,7 @@ code {
347 347
 
348 348
 // 筛选全局样式
349 349
 .app-container {
350
-  .cell {
350
+  .cell.clearfix {
351 351
     margin: 0px 0 12px 0;
352 352
     display: flex;
353 353
     align-items:center;
@@ -375,12 +375,12 @@ code {
375 375
       }
376 376
     }
377 377
     .time {
378
-      -webkit-box-flex: 1;
379
-      -ms-flex: 1;
380
-      flex: 1;
378
+      // -webkit-box-flex: 1;
379
+      // -ms-flex: 1;
380
+      // flex: 1;
381 381
       ul {
382 382
         margin: 0;
383
-        padding-left: 5px;
383
+        // padding-left: 5px;
384 384
         li {
385 385
           float: left;
386 386
           list-style: none;
@@ -452,4 +452,8 @@ code {
452 452
   top: 50% !important;
453 453
   transform: translate(-50%,-50%) !important;
454 454
   margin-top: 0 !important; 
455
+}
456
+
457
+.el-message{
458
+  z-index: 2004!important;
455 459
 }

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

@@ -47,7 +47,7 @@
47 47
     }
48 48
     .el-menu {
49 49
       border: none;
50
-      min-height: 100%;
50
+      min-height: 130%;
51 51
       width: 100% !important;
52 52
     }
53 53
   }

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

@@ -1,123 +1,124 @@
1 1
 <template>
2
-<div class="top-nav">
3
-   <div class="nav-logo">
4
-       <img :src="require(`../../../assets/logo/logo.png`)" alt="">
2
+  <div class="top-nav">
3
+    <div class="nav-logo">
4
+      <img :src="require(`../../../assets/logo/logo.png`)" alt="">
5 5
     </div>
6
-  <el-menu class="navbar" mode="horizontal">
7
-    <div>
8
-      <el-dropdown trigger="click" style="color:#fff;">
9
-        <span class="el-dropdown-link">
10
-          南山市人民医院<i class="el-icon-arrow-down el-icon--right"></i>
11
-        </span>
12
-        <el-dropdown-menu slot="dropdown" style="margin-top:21px;">
13
-          <el-dropdown-item >深圳市人民医院</el-dropdown-item>
14
-          <el-dropdown-item >长沙是透析中心</el-dropdown-item>
15
-          <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
16
-          <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
17
-          <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
18
-        </el-dropdown-menu>
19
-      </el-dropdown>
20
-    </div>
21
-    <div class="system-nav">
22
-       <div class="system-nav-menu">
23
-          <a  href="http://jk.kuyicloud.com/">
24
-          <!-- <a  href="http://test1.sgjyun.com/"> -->
25
-             <span ><i class="iconfont icon-pengyou"></i> SCRM</span>
26
-          </a>
27
-       </div>
28
-       <div class="system-nav-menu">
29
-        <a href="http://mall.kuyicloud.com/">
30
-        <!-- <a href="http://mall.test.sgjyun.com/"> -->
31
-          <span ><i class="icon iconfont icon-service_fill"></i> 微商城</span>
32
-        </a>
33
-      </div>
34
-      <div class="system-nav-menu active">
35
-        <a>
36
-          <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
37
-        </a>
38
-      </div>
39
-      <div class="system-nav-menu">
40
-        <a href="http://cdm.kuyicloud.com/">
41
-          <span ><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
42
-        </a>
6
+    <el-menu class="navbar" mode="horizontal">
7
+      <div>
8
+        <!--<el-dropdown trigger="click" style="color:#fff;">-->
9
+        <!--<span class="el-dropdown-link">-->
10
+          <!--南山市人民医院<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i>-->
11
+        <!--</span>-->
12
+          <!--&lt;!&ndash;<el-dropdown-menu slot="dropdown" style="margin-top:21px;">&ndash;&gt;-->
13
+            <!--&lt;!&ndash;<el-dropdown-item>深圳市人民医院</el-dropdown-item>&ndash;&gt;-->
14
+            <!--&lt;!&ndash;<el-dropdown-item>长沙是透析中心</el-dropdown-item>&ndash;&gt;-->
15
+            <!--&lt;!&ndash;<el-dropdown-item>东莞血液透析中心</el-dropdown-item>&ndash;&gt;-->
16
+            <!--&lt;!&ndash;<el-dropdown-item>东莞血液透析中心</el-dropdown-item>&ndash;&gt;-->
17
+            <!--&lt;!&ndash;<el-dropdown-item>东莞血液透析中心</el-dropdown-item>&ndash;&gt;-->
18
+          <!--&lt;!&ndash;</el-dropdown-menu>&ndash;&gt;-->
19
+        <!--</el-dropdown>-->
43 20
       </div>
21
+      <div class="system-nav">
22
+        <div class="system-nav-menu">
23
+          <!--<a  href="http://jk.kuyicloud.com/">-->
24
+          <a href="http://test1.sgjyun.com/">
25
+            <span><i class="iconfont icon-pengyou"></i> SCRM</span>
26
+          </a>
27
+        </div>
28
+        <div class="system-nav-menu">
29
+          <!--<a href="http://mall.kuyicloud.com/">-->
30
+          <a href="http://mall.test.sgjyun.com/">
31
+            <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
32
+          </a>
33
+        </div>
34
+        <div class="system-nav-menu active">
35
+          <a>
36
+            <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
37
+          </a>
38
+        </div>
39
+        <div class="system-nav-menu">
40
+          <!--<a href="http://cdm.kuyicloud.com/">-->
41
+          <a href=" http://cdm.test.sgjyun.com/">
42
+            <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
43
+          </a>
44
+        </div>
44 45
 
45
-      <div class="system-nav-menu">
46
-        <a href="http://sso.kuyicloud.com/org/app/create">
47
-        <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
48
-          <span ><i class="icon iconfont icon-suoyou"></i> 应用</span>
49
-        </a>
46
+        <div class="system-nav-menu">
47
+          <!--<a href="http://sso.kuyicloud.com/org/app/create">-->
48
+          <a href="http://testsso.sgjyun.com/org/app/create">
49
+            <span><i class="icon iconfont icon-suoyou"></i> 应用</span>
50
+          </a>
51
+        </div>
50 52
       </div>
51
-    </div>
52 53
 
53
-    <div class="right-menu">
54
-      <el-dropdown class="avatar-container right-menu-item" trigger="click">
55
-        <div class="avatar-wrapper">
56
-          <img class="user-avatar" :src="avater">
57
-          <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
58
-          <i class="el-icon-caret-bottom"></i>
59
-        </div>
60
-        <el-dropdown-menu slot="dropdown">
61
-          <el-dropdown-item>
62
-            <span @click="modifyUserInfoAction">修改个人信息</span>
63
-          </el-dropdown-item>
64
-          <el-dropdown-item divided>
65
-            <span @click="myServe">我的服务</span>
66
-          </el-dropdown-item>
67
-          <el-dropdown-item divided>
68
-            <span @click="logout" style="display:block;">{{$t('navbar.logOut')}}</span>
69
-          </el-dropdown-item>
70
-        </el-dropdown-menu>
71
-      </el-dropdown>
72
-
73
-      <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
74
-      <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
54
+      <div class="right-menu">
55
+        <el-dropdown class="avatar-container right-menu-item" trigger="click">
56
+          <div class="avatar-wrapper">
57
+            <img class="user-avatar" :src="avater">
58
+            <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
59
+            <i class="el-icon-caret-bottom"></i>
60
+          </div>
61
+          <el-dropdown-menu slot="dropdown">
62
+            <el-dropdown-item>
63
+              <span @click="modifyUserInfoAction">修改个人信息</span>
64
+            </el-dropdown-item>
65
+            <el-dropdown-item divided>
66
+              <span @click="myServe">我的服务</span>
67
+            </el-dropdown-item>
68
+            <el-dropdown-item divided>
69
+              <span @click="logout" style="display:block;">{{$t('navbar.logOut')}}</span>
70
+            </el-dropdown-item>
71
+          </el-dropdown-menu>
72
+        </el-dropdown>
75 73
 
76
-    </div>
77
-  </el-menu>
78
-</div>
74
+        <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
75
+        <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
76
+
77
+      </div>
78
+    </el-menu>
79
+  </div>
79 80
 </template>
80 81
 
81 82
 <script>
82
-import { mapGetters } from "vuex";
83
-// import Breadcrumb from "@/components/Breadcrumb";
84
-// import Hamburger from "@/components/Hamburger";
85
-import Screenfull from "@/components/Screenfull";
86
-import ModifyUserInfoDialog from "@/xt_pages/home/modify_user_info_dialog";
87
-
88
-export default {
89
-  components: {
90
-    // Breadcrumb,
91
-    // Hamburger,
92
-    Screenfull,
93
-    ModifyUserInfoDialog
94
-  },
95
-  computed: {
96
-    ...mapGetters(["sidebar"]),
97
-    avater: function() {
98
-      var avatar = this.$store.getters.xt_user.user.avatar;
99
-      return avatar.length > 0
100
-        ? avatar
101
-        : require("../../../assets/home/userData.png");
102
-    }
103
-  },
104
-  methods: {
105
-    // toggleSideBar() {
106
-    //   this.$store.dispatch("toggleSideBar");
107
-    // },
108
-    logout() {
109
-      this.$store.dispatch("FrontendLogout");
110
-      window.location.href = process.env.BASE_API + "/logout";
83
+  import { mapGetters } from 'vuex'
84
+  // import Breadcrumb from "@/components/Breadcrumb";
85
+  // import Hamburger from "@/components/Hamburger";
86
+  import Screenfull from '@/components/Screenfull'
87
+  import ModifyUserInfoDialog from '@/xt_pages/home/modify_user_info_dialog'
88
+
89
+  export default {
90
+    components: {
91
+      // Breadcrumb,
92
+      // Hamburger,
93
+      Screenfull,
94
+      ModifyUserInfoDialog
111 95
     },
112
-    modifyUserInfoAction() {
113
-      this.$refs.modify_user_info_dialog.show();
96
+    computed: {
97
+      ...mapGetters(['sidebar']),
98
+      avater: function() {
99
+        var avatar = this.$store.getters.xt_user.user.avatar
100
+        return avatar.length > 0
101
+          ? avatar
102
+          : require('../../../assets/home/userData.png')
103
+      }
114 104
     },
115
-    myServe() {
116
-      this.$router.push("/service");
117
-      return false;
105
+    methods: {
106
+      // toggleSideBar() {
107
+      //   this.$store.dispatch("toggleSideBar");
108
+      // },
109
+      logout() {
110
+        this.$store.dispatch('FrontendLogout')
111
+        window.location.href = process.env.BASE_API + '/logout'
112
+      },
113
+      modifyUserInfoAction() {
114
+        this.$refs.modify_user_info_dialog.show()
115
+      },
116
+      myServe() {
117
+        this.$router.push('/service')
118
+        return false
119
+      }
118 120
     }
119 121
   }
120
-};
121 122
 </script>
122 123
 
123 124
 <style rel="stylesheet/scss" lang="scss" scoped>
@@ -127,7 +128,7 @@ export default {
127 128
   top: 0;
128 129
   left: 0;
129 130
   right: 0;
130
-  // z-index: 2052;
131
+  z-index: 2004;
131 132
   .nav-logo {
132 133
     width: 162px;
133 134
     display: flex;
@@ -138,10 +139,12 @@ export default {
138 139
     padding: 10px 0;
139 140
     box-sizing: border-box;
140 141
     float: left;
141
-    img {
142
-      display: inline-block;
143
-      width: 100px;
144
-    }
142
+
143
+  img {
144
+    display: inline-block;
145
+    width: 100px;
146
+  }
147
+
145 148
   }
146 149
   .navbar {
147 150
     border-radius: 0px !important;
@@ -153,81 +156,102 @@ export default {
153 156
     border: none;
154 157
     background: #409eff;
155 158
     float: left;
156
-    .breadcrumb-container {
157
-      float: left;
158
-    }
159
-    .errLog-container {
160
-      display: inline-block;
161
-      vertical-align: top;
162
-    }
163
-    .right-menu {
164
-      float: right;
165
-      height: 100%;
166
-      &:focus {
167
-        outline: none;
168
-      }
169
-      .right-menu-item {
170
-        display: inline-block;
171
-        margin: 0 8px;
172
-        .iconfont {
173
-          font-size: 18px;
174
-        }
175
-      }
176
-      .screenfull {
177
-        height: 20px;
178
-      }
179
-      .international {
180
-        vertical-align: top;
181
-      }
182
-      .theme-switch {
183
-        vertical-align: 15px;
184
-      }
185
-      .avatar-container {
186
-        margin-right: 10px;
187
-        .avatar-wrapper {
188
-          cursor: pointer;
189
-          margin-top: 3px;
190
-          display: flex;
191
-          align-items: center;
192
-          justify-content: center;
193
-          .user-avatar {
194
-            width: 40px;
195
-            height: 40px;
196
-            border-radius: 50%;
197
-            object-fit: cover;
198
-            object-position: center;
199
-          }
200
-          .user-title {
201
-            margin: 0 8px;
202
-            font-size: 14px;
203
-            color: #fff;
204
-          }
205
-          .el-icon-caret-bottom {
206
-            font-size: 12px;
207
-            color: #fff;
208
-          }
209
-        }
210
-      }
211
-    }
159
+
160
+  .breadcrumb-container {
161
+    float: left;
162
+  }
163
+
164
+  .errLog-container {
165
+    display: inline-block;
166
+    vertical-align: top;
167
+  }
168
+
169
+  .right-menu {
170
+    float: right;
171
+    height: 100%;
172
+
173
+  &
174
+  :focus {
175
+    outline: none;
176
+  }
177
+
178
+  .right-menu-item {
179
+    display: inline-block;
180
+    margin: 0 8px;
181
+
182
+  .iconfont {
183
+    font-size: 18px;
184
+  }
185
+
186
+  }
187
+  .screenfull {
188
+    height: 20px;
189
+  }
190
+
191
+  .international {
192
+    vertical-align: top;
193
+  }
194
+
195
+  .theme-switch {
196
+    vertical-align: 15px;
197
+  }
198
+
199
+  .avatar-container {
200
+    margin-right: 10px;
201
+
202
+  .avatar-wrapper {
203
+    cursor: pointer;
204
+    margin-top: 3px;
205
+    display: flex;
206
+    align-items: center;
207
+    justify-content: center;
208
+
209
+  .user-avatar {
210
+    width: 40px;
211
+    height: 40px;
212
+    border-radius: 50%;
213
+    object-fit: cover;
214
+    object-position: center;
215
+  }
216
+
217
+  .user-title {
218
+    margin: 0 8px;
219
+    font-size: 14px;
220
+    color: #fff;
221
+  }
222
+
223
+  .el-icon-caret-bottom {
224
+    font-size: 12px;
225
+    color: #fff;
226
+  }
227
+
228
+  }
229
+  }
230
+  }
212 231
   }
213 232
   .system-nav {
214
-    .system-nav-menu {
215
-      float: left;
216
-      height: 60px;
217
-      line-height: 60px;
218
-      padding: 0 25px;
219
-      a {
220
-        font-size: 15px;
221
-        .iconfont {
222
-          font-size: 18px;
223
-        }
224
-      }
225
-    }
226
-    .active {
227
-      background: #3090eb;
228
-      border-left: 1px #5fabf7 solid;
229
-      border-right: 1px #5fabf7 solid;
230
-    }
233
+
234
+  .system-nav-menu {
235
+    float: left;
236
+    height: 60px;
237
+    line-height: 60px;
238
+    padding: 0 25px;
239
+
240
+  a {
241
+    font-size: 15px;
242
+
243
+  .iconfont {
244
+    font-size: 18px;
245
+  }
246
+
247
+  }
248
+  }
249
+  .active {
250
+    background: #3090eb;
251
+    border-left: 1px #5fabf7 solid;
252
+    border-right: 1px #5fabf7 solid;
253
+  }
254
+
231 255
   }
232 256
   .el-menu::after,
233 257
   .el-menu::before {
@@ -237,5 +261,6 @@ export default {
237 261
     top: 0;
238 262
     left: 0;
239 263
   }
240
-}
264
+
265
+  }
241 266
 </style>

+ 0 - 1
src/views/layout/components/Sidebar/index.vue View File

@@ -12,7 +12,6 @@
12 12
       background-color="#304156"
13 13
       text-color="#bfcbd9"
14 14
       active-text-color="#409EFF"
15
-
16 15
     >
17 16
       <sidebar-item v-for="route in permission_routers" :key="route.name" :item="route" :base-path="route.path"></sidebar-item>
18 17
     </el-menu>

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

@@ -124,7 +124,7 @@ export default {
124 124
     border-bottom: 1px solid #d8dce5;
125 125
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
126 126
     position: fixed;
127
-    // z-index: 2052;
127
+    z-index: 2004;
128 128
     top: 60px;
129 129
     .tags-view-item {
130 130
       display: inline-block;

+ 15 - 7
src/xt_pages/data/druguse.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
   </div>
6 6
   <div class="tab-container">
7 7
     <el-tabs >
@@ -88,13 +88,15 @@
88 88
               :model="templateForm"
89 89
               label-width="90px"
90 90
             >
91
-              <el-form-item label="医嘱名称 :" required prop="advice_name">
92
-                <el-input v-model="templateForm.advice_name" style="width:50%"></el-input>
93
-              </el-form-item>
91
+              <el-row>
92
+               <el-col :span="12">
93
+                  <el-form-item label="医嘱名称 :" required prop="advice_name">
94
+                    <el-input v-model="templateForm.advice_name" style="width:50%"></el-input>
95
+                  </el-form-item>
96
+               </el-col> 
94 97
               <!-- <el-form-item label="医嘱内容 :" prop="advice_desc">
95 98
                 <el-input v-model="templateForm.advice_desc" style="width:50%"></el-input>
96 99
               </el-form-item> -->
97
-              <el-row>
98 100
                 <el-col :span="12">
99 101
                   <el-form-item label="单次用量 :" prop="single_dose">
100 102
                     <el-col :span="8">
@@ -119,6 +121,8 @@
119 121
                     </el-col>
120 122
                   </el-form-item>
121 123
                 </el-col>
124
+              </el-row>
125
+              <el-row>
122 126
                 <el-col :span="12">
123 127
                   <el-form-item label="开药数量 :" prop="prescribing_number">
124 128
                     <el-col :span="8">
@@ -143,8 +147,6 @@
143 147
                     </el-col>
144 148
                   </el-form-item>
145 149
                 </el-col>
146
-              </el-row>
147
-              <el-row>
148 150
                 <el-col :span="12">
149 151
                   <el-form-item label="给药途径 :" prop="delivery_way">
150 152
                     <el-select
@@ -164,6 +166,8 @@
164 166
                     </el-select>
165 167
                   </el-form-item>
166 168
                 </el-col>
169
+              </el-row>
170
+              <el-row>  
167 171
                 <el-col :span="12">
168 172
                   <el-form-item label="执行频率 :" prop="execution_frequency">
169 173
                     <el-select
@@ -427,6 +431,10 @@ export default {
427 431
   components: {BreadCrumb},
428 432
   data() {
429 433
     return {
434
+      crumbs: [
435
+        { path: false, name: '数据字典' },
436
+        { path: '/patients/patients', name: '字段配置' },
437
+      ],
430 438
       currentIndex: -1,
431 439
       isEdit: false,
432 440
       dialogTitle: "",

+ 34 - 38
src/xt_pages/data/druguseTemplate.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
   </div>
6 6
   <div class="app-container">
7 7
     <el-tabs >
@@ -151,9 +151,9 @@
151 151
                     type="danger"
152 152
                     icon="el-icon-delete"
153 153
                     @click="handleDeleteAdviceTemplate(scope.row, scope.$index)"
154
-                  > 
154
+                  >
155 155
                   </el-button>
156
-                </el-tooltip> 
156
+                </el-tooltip>
157 157
               </template>
158 158
             </el-table-column>
159 159
 
@@ -234,13 +234,12 @@
234 234
 
235 235
               <el-row>
236 236
                 <el-col :span="12">
237
-                  <el-form-item :label="advice_content_name" required prop="advice_name">
237
+                  <el-form-item label="医嘱内容 :" required prop="advice_name">
238 238
                     <el-input v-model="templateForm.advice_name"></el-input>
239 239
                   </el-form-item>
240 240
                 </el-col>
241 241
                 <el-col :span="12">
242
-
243
-                  <el-form-item label="规格" prop="advice_desc">
242
+                  <el-form-item label="规格 :" required prop="advice_desc">
244 243
                     <el-input v-model="templateForm.advice_desc"></el-input>
245 244
                   </el-form-item>
246 245
 
@@ -270,10 +269,10 @@
270 269
                 </el-col>
271 270
                 <el-col :span="12">
272 271
                   <el-form-item label="单次用量 :" prop="single_dose">
273
-                    <el-col :span="8">
272
+                    <el-col :span="9">
274 273
                       <el-input v-model="templateForm.single_dose"></el-input>
275 274
                     </el-col>
276
-                    <el-col class="line" :span="2">&nbsp;</el-col>
275
+                    <el-col class="line" :span="1">&nbsp;</el-col>
277 276
                     <el-col :span="14">
278 277
                       <el-select
279 278
                         v-model="templateForm.single_dose_unit"
@@ -294,10 +293,10 @@
294 293
                 </el-col>
295 294
                 <el-col :span="12">
296 295
                   <el-form-item label="开药数量 :" prop="prescribing_number">
297
-                    <el-col :span="8">
296
+                    <el-col :span="9">
298 297
                       <el-input v-model="templateForm.prescribing_number"></el-input>
299 298
                     </el-col>
300
-                    <el-col class="line" :span="2">&nbsp;</el-col>
299
+                    <el-col class="line" :span="1">&nbsp;</el-col>
301 300
                     <el-col :span="14">
302 301
                       <el-select
303 302
                         v-model="templateForm.prescribing_number_unit"
@@ -324,7 +323,7 @@
324 323
                       clearable
325 324
                       allow-create
326 325
                       placeholder="请选择(输入可搜索)"
327
-                      style="width:90%"
326
+                      style="width:100%"
328 327
                     >
329 328
                       <el-option
330 329
                         v-for="item in drugways"
@@ -335,9 +334,6 @@
335 334
                     </el-select>
336 335
                   </el-form-item>
337 336
                 </el-col>
338
-              </el-row>
339
-              <el-row>
340
-
341 337
                 <el-col :span="12" v-if="!isAddChild">
342 338
                   <el-form-item label="执行频率 :" prop="execution_frequency">
343 339
                     <el-select
@@ -346,7 +342,7 @@
346 342
                       allow-create
347 343
                       filterable
348 344
                       placeholder="请选择(输入可搜索)"
349
-                      style="width:90%"
345
+                      style="width:100%"
350 346
                     >
351 347
                       <el-option
352 348
                         v-for="item in executionFrequencyOptions"
@@ -386,7 +382,7 @@
386 382
                     <el-col :span="8">
387 383
                       <el-input v-model="templateFormEdit.drug_spec"></el-input>
388 384
                     </el-col>
389
-                    <el-col class="line" :span="2">&nbsp;</el-col>
385
+                    <el-col class="line" :span="1">&nbsp;</el-col>
390 386
                     <el-col :span="14">
391 387
                       <el-select
392 388
                         v-model="templateFormEdit.drug_spec_unit"
@@ -407,10 +403,10 @@
407 403
                 </el-col>
408 404
                 <el-col :span="12">
409 405
                   <el-form-item label="单次用量 :" prop="single_dose">
410
-                    <el-col :span="8">
406
+                    <el-col :span="9">
411 407
                       <el-input v-model="templateFormEdit.single_dose"></el-input>
412 408
                     </el-col>
413
-                    <el-col class="line" :span="2">&nbsp;</el-col>
409
+                    <el-col class="line" :span="1">&nbsp;</el-col>
414 410
                     <el-col :span="14">
415 411
                       <el-select
416 412
                         v-model="templateFormEdit.single_dose_unit"
@@ -431,10 +427,10 @@
431 427
                 </el-col>
432 428
                 <el-col :span="12">
433 429
                   <el-form-item label="开药数量 :" prop="prescribing_number">
434
-                    <el-col :span="8">
430
+                    <el-col :span="9">
435 431
                       <el-input v-model="templateFormEdit.prescribing_number"></el-input>
436 432
                     </el-col>
437
-                    <el-col class="line" :span="2">&nbsp;</el-col>
433
+                    <el-col class="line" :span="1">&nbsp;</el-col>
438 434
                     <el-col :span="14">
439 435
                       <el-select
440 436
                         v-model="templateFormEdit.prescribing_number_unit"
@@ -472,9 +468,7 @@
472 468
                     </el-select>
473 469
                   </el-form-item>
474 470
                 </el-col>
475
-              </el-row>
476
-              <el-row>
477
-
471
+             
478 472
                 <el-col :span="12" v-if="templateFormEdit.parent_id == 0">
479 473
                   <el-form-item label="执行频率 :" prop="execution_frequency">
480 474
                     <el-select
@@ -569,20 +563,21 @@
569 563
               :model="templateForm"
570 564
               label-width="90px"
571 565
             >
572
-              <el-form-item label="医嘱内容 :" required prop="advice_name">
573
-                <el-input v-model="templateForm.advice_name" style="width:50%"></el-input>
574
-              </el-form-item>
575
-
576 566
               <el-row>
567
+                <el-col :span="12">
568
+                  <el-form-item label="医嘱内容 :" required prop="advice_name">
569
+                    <el-input v-model="templateForm.advice_name" ></el-input> 
570
+                  </el-form-item>
571
+                </el-col>
577 572
                 <el-col :span="12">
578 573
                   <el-form-item label="规格 :" required prop="advice_desc">
579 574
                     <el-input v-model="templateForm.advice_desc"></el-input>
580 575
                   </el-form-item>
581 576
                   <!-- <el-form-item label="药品规格 :" prop="drug_spec">
582
-                    <el-col :span="8">
577
+                    <el-col :span="9">
583 578
                       <el-input v-model="templateForm.drug_spec"></el-input>
584 579
                     </el-col>
585
-                    <el-col class="line" :span="2">&nbsp;</el-col>
580
+                    <el-col class="line" :span="1">&nbsp;</el-col>
586 581
                     <el-col :span="14">
587 582
                       <el-select
588 583
                         v-model="templateForm.drug_spec_unit"
@@ -603,10 +598,10 @@
603 598
                 </el-col>
604 599
                 <el-col :span="12">
605 600
                   <el-form-item label="单次用量 :" prop="single_dose">
606
-                    <el-col :span="8">
601
+                    <el-col :span="9">
607 602
                       <el-input v-model="templateForm.single_dose"></el-input>
608 603
                     </el-col>
609
-                    <el-col class="line" :span="2">&nbsp;</el-col>
604
+                    <el-col class="line" :span="1">&nbsp;</el-col>
610 605
                     <el-col :span="14">
611 606
                       <el-select
612 607
                         v-model="templateForm.single_dose_unit"
@@ -627,10 +622,10 @@
627 622
                 </el-col>
628 623
                 <el-col :span="12">
629 624
                   <el-form-item label="开药数量 :" prop="prescribing_number">
630
-                    <el-col :span="8">
625
+                    <el-col :span="9">
631 626
                       <el-input v-model="templateForm.prescribing_number"></el-input>
632 627
                     </el-col>
633
-                    <el-col class="line" :span="2">&nbsp;</el-col>
628
+                    <el-col class="line" :span="1">&nbsp;</el-col>
634 629
                     <el-col :span="14">
635 630
                       <el-select
636 631
                         v-model="templateForm.prescribing_number_unit"
@@ -657,7 +652,7 @@
657 652
                       clearable
658 653
                       allow-create
659 654
                       placeholder="请选择(输入可搜索)"
660
-                      style="width:90%"
655
+                      style="width:100%"
661 656
                     >
662 657
                       <el-option
663 658
                         v-for="item in drugways"
@@ -668,9 +663,6 @@
668 663
                     </el-select>
669 664
                   </el-form-item>
670 665
                 </el-col>
671
-              </el-row>
672
-              <el-row>
673
-
674 666
                 <el-col :span="12">
675 667
                   <el-form-item label="执行频率 :" prop="execution_frequency">
676 668
                     <el-select
@@ -679,7 +671,7 @@
679 671
                       allow-create
680 672
                       filterable
681 673
                       placeholder="请选择(输入可搜索)"
682
-                      style="width:90%"
674
+                      style="width:100%"
683 675
                     >
684 676
                       <el-option
685 677
                         v-for="item in executionFrequencyOptions"
@@ -1018,6 +1010,10 @@
1018 1010
     components: {BreadCrumb},
1019 1011
     data() {
1020 1012
       return {
1013
+        crumbs: [
1014
+          { path: false, name: '数据字典' },
1015
+          { path: 'data/druguse', name: '医嘱模版' },
1016
+        ],
1021 1017
         rowIndex: -1,
1022 1018
         current_template_id: 0,
1023 1019
         currentObject: {},

+ 6 - 1
src/xt_pages/data/index.vue View File

@@ -1,7 +1,8 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-     <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
5 6
   </div>
6 7
   <div class="app-container">
7 8
     <el-tabs  v-model="activeName" >
@@ -28,6 +29,10 @@ export default {
28 29
   components: { tabPane,tableson,BreadCrumb},
29 30
   data() {
30 31
     return {
32
+      crumbs: [
33
+        { path: false, name: '数据字典' },
34
+        { path: 'data/dictionary', name: '字段配置' },
35
+      ],
31 36
       tabMapOptions: [
32 37
         { label: this.$t("data_config.patient"), key: 'patient' },
33 38
         { label: this.$t("data_config.hemodialysis"), key: 'hemodialysis' },

+ 5 - 1
src/xt_pages/data/template.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
   </div>
6 6
   <div class="app-container">
7 7
     <el-tabs v-model="activeName" >
@@ -26,6 +26,10 @@ export default {
26 26
   components: { tabPane,BreadCrumb},
27 27
   data() {
28 28
     return {
29
+      crumbs: [
30
+        { path: false, name: '数据字典' },
31
+        { path: 'data/template', name: '模版配置' },
32
+      ],
29 33
       tabMapOptions: [
30 34
         { label: this.$t("data_config.education"), key: 'education' },
31 35
         { label: this.$t("data_config.summary"), key: 'summary' },

+ 12 - 7
src/xt_pages/device/group_main.vue View File

@@ -1,8 +1,9 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
     <div class="position">
4
-        <bread-crumb></bread-crumb>
5
-        <el-button size="small" icon="el-icon-circle-plus-outline" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addGroupAction">新增</el-button>
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
6
+      <el-button size="small" icon="el-icon-circle-plus-outline" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addGroupAction">新增</el-button>
6 7
     </div>
7 8
     <div class="app-container" v-loading="loading">
8 9
         <el-row>
@@ -17,7 +18,7 @@
17 18
                            <el-tooltip class="item" effect="dark" content="删除" placement="top">
18 19
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="danger" icon="el-icon-delete" size="small" @click="deleteGroupAt(scope.row)"></el-button>
19 20
                            </el-tooltip>
20
-                        </template>  
21
+                        </template>
21 22
                     </el-table-column>
22 23
                 </el-table>
23 24
             </el-col>
@@ -51,6 +52,10 @@ export default {
51 52
     name: "DeviceGroupMain",
52 53
     data() {
53 54
         return {
55
+          crumbs: [
56
+            { path: false, name: '设备管理' },
57
+            { path: '/device/groups', name: '分组管理' },
58
+          ],
54 59
             loading: false,
55 60
             groups: [],
56 61
             group_form:{
@@ -62,7 +67,7 @@ export default {
62 67
         }
63 68
     },
64 69
     components:{
65
-      BreadCrumb 
70
+      BreadCrumb
66 71
     },
67 72
     created() {
68 73
         this.loading = true
@@ -106,7 +111,7 @@ export default {
106 111
                                 this.$message.error(resp.msg)
107 112
                             }
108 113
                         })
109
-                        
114
+
110 115
                     } else {
111 116
                         modifyGroup(this.group_form.id, this.group_form.name).then(rs => {
112 117
                             var resp = rs.data
@@ -125,7 +130,7 @@ export default {
125 130
                             }
126 131
                         })
127 132
                     }
128
-                    
133
+
129 134
                 } else {
130 135
                     return false
131 136
                 }
@@ -143,7 +148,7 @@ export default {
143 148
                         if (index > -1) {
144 149
                             this.groups.splice(index, 1)
145 150
                         }
146
-                        
151
+
147 152
                     } else {
148 153
                         this.$message.error(resp.msg)
149 154
                     }

+ 8 - 3
src/xt_pages/device/main.vue View File

@@ -1,7 +1,8 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
      <div class="position">
4
-         <bread-crumb></bread-crumb>
4
+       <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
5 6
      </div>
6 7
     <div class="app-container">
7 8
         <el-row :gutter="15">
@@ -32,6 +33,10 @@ export default {
32 33
     },
33 34
     data() {
34 35
         return {
36
+          crumbs: [
37
+            { path: false, name: '设备管理' },
38
+            { path: '/device/main', name: '透析机管理' },
39
+          ],
35 40
             zones: [],
36 41
             groups: [],
37 42
             device_numbers: [],
@@ -45,7 +50,7 @@ export default {
45 50
                 this.zones.push(...resp.data.zones)
46 51
                 this.groups.push(...resp.data.groups)
47 52
                 this.device_numbers.push(...resp.data.numbers)
48
-                
53
+
49 54
             } else {
50 55
                 this.$message.error(resp.msg)
51 56
             }
@@ -58,7 +63,7 @@ export default {
58 63
             } else {
59 64
                 this.$refs.device_detail.set_device(0, 1)
60 65
             }
61
-            
66
+
62 67
         },
63 68
         did_update_device: function(device) {
64 69
             this.$refs.device_list.update_device(device)

+ 14 - 9
src/xt_pages/device/number_main.vue View File

@@ -1,7 +1,8 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
     <div class="position">
4
-        <bread-crumb></bread-crumb>
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
5 6
         <el-button size="small" icon="el-icon-circle-plus-outline" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addDeviceNumberAction">新增</el-button>
6 7
     </div>
7 8
     <div class="app-container" v-loading="loading">
@@ -11,15 +12,15 @@
11 12
                     <el-table-column prop="number" label="床位号" align="center"> </el-table-column>
12 13
                     <el-table-column prop="zone_name" label="所属分区" align="center"></el-table-column>
13 14
                     <el-table-column prop="group_name" label="所属分组" align="center"></el-table-column>
14
-                    <el-table-column label="操作" align="center"> 
15
+                    <el-table-column label="操作" align="center">
15 16
                         <template slot-scope="scope">
16 17
                            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
17 18
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" icon="el-icon-edit-outline" size="small" @click="modifyDeviceNumberAt(scope.row)"></el-button>
18 19
                            </el-tooltip>
19
-                           <el-tooltip class="item" effect="dark" content="删除" placement="top">                           
20
+                           <el-tooltip class="item" effect="dark" content="删除" placement="top">
20 21
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="danger" icon="el-icon-delete" size="small" @click="deleteDeviceNumberAt(scope.row)"></el-button>
21
-                           </el-tooltip>                           
22
-                        </template>  
22
+                           </el-tooltip>
23
+                        </template>
23 24
                     </el-table-column>
24 25
                 </el-table>
25 26
             </el-col>
@@ -62,6 +63,10 @@ export default {
62 63
     name: "DeviceNumberMain",
63 64
     data() {
64 65
         return {
66
+          crumbs: [
67
+            { path: false, name: '设备管理' },
68
+            { path: '/device/numbers', name: '床位管理' },
69
+          ],
65 70
             loading: false,
66 71
             number_form:{
67 72
                 id: 0,
@@ -89,7 +94,7 @@ export default {
89 94
                 this.zones.push(...resp.data.zones)
90 95
                 this.groups.push(...resp.data.groups)
91 96
                 this.device_numbers.push(...resp.data.numbers)
92
-                
97
+
93 98
             } else {
94 99
                 this.$message.error(resp.msg)
95 100
             }
@@ -129,7 +134,7 @@ export default {
129 134
                                 this.$message.error(resp.msg)
130 135
                             }
131 136
                         })
132
-                        
137
+
133 138
                     } else {
134 139
                         modifyDeviceNumber(this.number_form.id, this.number_form.number, this.number_form.zone, this.number_form.group).then(rs => {
135 140
                             var resp = rs.data
@@ -153,7 +158,7 @@ export default {
153 158
                             }
154 159
                         })
155 160
                     }
156
-                    
161
+
157 162
                 } else {
158 163
                     return false
159 164
                 }
@@ -171,7 +176,7 @@ export default {
171 176
                         if (index > -1) {
172 177
                             this.device_numbers.splice(index, 1)
173 178
                         }
174
-                        
179
+
175 180
                     } else {
176 181
                         this.$message.error(resp.msg)
177 182
                     }

+ 15 - 10
src/xt_pages/device/zone_main.vue View File

@@ -1,8 +1,9 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
     <div class="position">
4
-        <bread-crumb></bread-crumb>
5
-        <el-button size="small" icon="el-icon-circle-plus-outline" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addZoneAction">新增</el-button>     
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
6
+        <el-button size="small" icon="el-icon-circle-plus-outline" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addZoneAction">新增</el-button>
6 7
     </div>
7 8
     <div class="app-container" v-loading="loading">
8 9
         <el-row>
@@ -14,15 +15,15 @@
14 15
                             <span>{{ getZoneTypeLabel(scope.row.type) }}</span>
15 16
                         </template>
16 17
                     </el-table-column>
17
-                    <el-table-column label="操作" align="center"> 
18
+                    <el-table-column label="操作" align="center">
18 19
                         <template slot-scope="scope">
19 20
                           <el-tooltip class="item" effect="dark" content="编辑" placement="top">
20 21
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" icon="el-icon-edit-outline" size="small" @click="modifyZoneAt(scope.row)"></el-button>
21
-                          </el-tooltip>  
22
-                          <el-tooltip class="item" effect="dark" content="删除" placement="top">                          
22
+                          </el-tooltip>
23
+                          <el-tooltip class="item" effect="dark" content="删除" placement="top">
23 24
                             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="danger" icon="el-icon-delete" size="small" @click="deleteZoneAt(scope.row)"></el-button>
24
-                          </el-tooltip>  
25
-                        </template>  
25
+                          </el-tooltip>
26
+                        </template>
26 27
                     </el-table-column>
27 28
                 </el-table>
28 29
             </el-col>
@@ -61,6 +62,10 @@ export default {
61 62
     name: "DeviceZoneMain",
62 63
     data() {
63 64
         return {
65
+          crumbs: [
66
+            { path: false, name: '设备管理' },
67
+            { path: '/device/zones', name: '分区管理' },
68
+          ],
64 69
             loading: false,
65 70
             zones: [],
66 71
             zone_form:{
@@ -137,7 +142,7 @@ export default {
137 142
                                 this.$message.error(resp.msg)
138 143
                             }
139 144
                         })
140
-                        
145
+
141 146
                     } else {
142 147
                         modifyZone(this.zone_form.id, this.zone_form.name, this.zone_form.type).then(rs => {
143 148
                             var resp = rs.data
@@ -157,7 +162,7 @@ export default {
157 162
                             }
158 163
                         })
159 164
                     }
160
-                    
165
+
161 166
                 } else {
162 167
                     return false
163 168
                 }
@@ -175,7 +180,7 @@ export default {
175 180
                         if (index > -1) {
176 181
                             this.zones.splice(index, 1)
177 182
                         }
178
-                        
183
+
179 184
                     } else {
180 185
                         this.$message.error(resp.msg)
181 186
                     }

+ 13 - 8
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -1,10 +1,11 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
5 6
   </div>
6 7
   <div class="app-container">
7
-    <div class="cell">
8
+    <div class="cell clearfix">
8 9
       <label class="title"><span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> : </label>
9 10
       <el-date-picker v-show="search_mode == 1" v-model="time" prefix-icon="el-icon-date" @change="changeTime" :editable="false"
10 11
                       style="width: 250px;" type="date" placeholder="选择日期时间" align="right"
@@ -49,7 +50,7 @@
49 50
         align="center"
50 51
        >
51 52
       </el-table-column>
52
-      <el-table-column 
53
+      <el-table-column
53 54
         label="排班日期"
54 55
         prop="sch_time"
55 56
         align="center"
@@ -139,6 +140,10 @@
139 140
     name: "Patient",
140 141
     data() {
141 142
       return {
143
+        crumbs: [
144
+          { path: false, name: '透析管理' },
145
+          { path: '/dialysis/watch', name: '透析监测' },
146
+        ],
142 147
         loading: false,
143 148
         time: '',
144 149
 
@@ -278,7 +283,7 @@
278 283
       // },
279 284
       // changeOtherSearch() {
280 285
       //   this.getList();
281
-      // }, 
286
+      // },
282 287
       getAllZone: function () {
283 288
         GetAllZone().then(response => {
284 289
           if (response.data.state == 0) {
@@ -289,7 +294,7 @@
289 294
             this.partitionArr.unshift({"id": 0, "name": '全部'})
290 295
           }
291 296
         });
292
-      }, 
297
+      },
293 298
       getSchedualPatientList: function () {
294 299
         this.loading = true
295 300
         if (this.search_mode == 1) {
@@ -352,7 +357,7 @@
352 357
         }else{
353 358
           return ''
354 359
         }
355
-      }, 
360
+      },
356 361
       handleCurrentChange(val) {
357 362
         this.listQuery.page = val;
358 363
         this.getSchedualPatientList();
@@ -373,7 +378,7 @@
373 378
         this.getSchedualPatientList()
374 379
       },
375 380
 
376
-     
381
+
377 382
     }
378 383
   }
379 384
 </script>
@@ -418,7 +423,7 @@
418 423
         cursor: pointer;
419 424
       }
420 425
     }
421
-    
426
+
422 427
     .amount {
423 428
       font-weight: normal;
424 429
       padding: 10px 0 0 0;

+ 33 - 17
src/xt_pages/dialysis/bulletinBoard.vue View File

@@ -1,26 +1,42 @@
1 1
 <template>
2
-    <div class="app-container" id="dialysis-board-box" >
3
-        <el-row>
4
-            <el-button type="primary" @click="fullscreenboard"> 全屏投影</el-button>
5
-        </el-row>
6
-        <bulletinboard></bulletinboard>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
7 5
     </div>
6
+    <div class="app-container" id="dialysis-board-box">
7
+      <el-row>
8
+        <el-button type="primary" @click="fullscreenboard"> 全屏投影</el-button>
9
+      </el-row>
10
+      <bulletinboard></bulletinboard>
11
+    </div>
12
+  </div>
13
+
8 14
 </template>
9 15
 
10 16
 <script>
11
-import { getBoards } from "@/api/board";
12
-import bulletinboard from "./components/bulletinboard";
13
-import { parseTime } from "@/utils";
17
+  import { getBoards } from '@/api/board'
18
+  import bulletinboard from './components/bulletinboard'
19
+  import { parseTime } from '@/utils'
20
+  import BreadCrumb from '../components/bread-crumb'
14 21
 
15
-export default {
16
-    components: { bulletinboard },
22
+  export default {
23
+    components: { BreadCrumb, bulletinboard },
17 24
     name: 'bulletinBoard',
18
-    
19
-    methods:{
20
-        fullscreenboard:function(){
21
-            let routeData = this.$router.resolve({ path: '/fullscreenboard'});
22
-            window.open(routeData.href, '_blank');
23
-        },
25
+    data(){
26
+      return{
27
+        crumbs: [
28
+          { path: false, name: '透析管理' },
29
+          { path: 'dialysis/board', name: '数据看板' },
30
+        ],
31
+
32
+      }
33
+    },
34
+
35
+    methods: {
36
+      fullscreenboard: function() {
37
+        let routeData = this.$router.resolve({ path: '/fullscreenboard' })
38
+        window.open(routeData.href, '_blank')
39
+      }
24 40
     }
25
-}
41
+  }
26 42
 </script>

+ 1 - 1
src/xt_pages/dialysis/dialysisPrepare.vue View File

@@ -14,7 +14,7 @@
14 14
              <el-date-picker v-model="time" type="daterange"  start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
15 15
          </el-form-item>
16 16
          <el-form-item label-width="0" style="margin:0 0 10px  0;" >
17
-            <div class="cell">
17
+            <div class="cell clearfix">
18 18
                 <label class="name">排班班次 : </label>
19 19
                 <div class="type">
20 20
                   <ul>

+ 5 - 5
src/xt_pages/dialysis/doctorAdvice.vue View File

@@ -13,7 +13,7 @@
13 13
              <el-date-picker v-model="time" type="daterange"  start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
14 14
          </el-form-item>
15 15
          <el-form-item label-width="0" style="margin:0 0 10px  0;" >
16
-            <div class="cell">
16
+            <div class="cell clearfix">
17 17
                 <label class="name">排班班次 : </label>
18 18
                 <div class="type">
19 19
                   <ul>
@@ -26,7 +26,7 @@
26 26
             </div>
27 27
          </el-form-item>
28 28
          <el-form-item label-width="0" style="margin:0 0 10px  0;" >
29
-            <div class="cell">
29
+            <div class="cell clearfix">
30 30
                 <label class="name">医嘱类型 : </label>
31 31
                 <div class="type">
32 32
                   <ul>
@@ -38,7 +38,7 @@
38 38
             </div>
39 39
          </el-form-item>
40 40
          <el-form-item label-width="0" style="margin:0 0 10px  0;" >
41
-            <div class="cell">
41
+            <div class="cell clearfix">
42 42
                 <label class="name">显示范围 : </label>
43 43
                 <div class="type">
44 44
                   <ul>
@@ -50,7 +50,7 @@
50 50
             </div>
51 51
          </el-form-item>
52 52
          <el-form-item label-width="0" style="margin:0 0 10px 0;" >
53
-            <div class="cell">
53
+            <div class="cell clearfix">
54 54
                 <label class="name">医嘱确认 : </label>
55 55
                 <div class="type">
56 56
                   <ul>
@@ -62,7 +62,7 @@
62 62
             </div>
63 63
          </el-form-item>
64 64
          <el-form-item label-width="0" style="margin:0 0 10px  0;" >
65
-            <div class="cell">
65
+            <div class="cell clearfix">
66 66
                 <label class="name">其他 : </label>
67 67
                 <div class="collate">
68 68
                   <label class="tit">医嘱核对 : </label>

+ 9 - 5
src/xt_pages/dialysis/schedualPatient.vue View File

@@ -1,15 +1,15 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
   </div>
6 6
   <div class="app-container">
7
-    <div class="cell">
8
-      <label class="title"><span class="name">病人查询</span> : </label>      
7
+    <div class="cell clearfix">
8
+      <label class="title"><span class="name">病人查询</span> : </label>
9 9
       <el-input size="small" style="width: 280px;" v-model="search_input" class="filter-item"/>
10 10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
11 11
     </div>
12
-    <div class="cell">
12
+    <div class="cell clearfix">
13 13
       <label class="title"><span class="name">日期查询</span> : </label>
14 14
       <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
15 15
     </div>
@@ -60,6 +60,10 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
60 60
     },
61 61
     data() {
62 62
       return {
63
+        crumbs: [
64
+          { path: false, name: '透析管理' },
65
+          { path: 'dialysis/dialysisrecord', name: '透析记录' },
66
+        ],
63 67
         selected_date: new Date(), // this.$store.getters.app.dialysis_area.schedule_date,
64 68
         schedule_type_selected: 0, // this.$store.getters.app.dialysis_area.schedule_type_select_index,
65 69
         schedule_type_options: [
@@ -318,7 +322,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
318 322
         cursor: pointer;
319 323
       }
320 324
     }
321
-  
325
+
322 326
     .amount {
323 327
       font-weight: normal;
324 328
       padding: 10px 0 0 0;

+ 1 - 1
src/xt_pages/dialysis/schedualPatient2.vue View File

@@ -4,7 +4,7 @@
4 4
       <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
5 5
       <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
6 6
     </div>
7
-    <div class="cell">
7
+    <div class="cell clearfix">
8 8
       <label class="title"><span class="name">日期查询</span> : </label>
9 9
       <el-date-picker v-model="time" prefix-icon="el-icon-date" @change="changeTime" :editable="false"
10 10
                       style="width: 196px;" type="date" placeholder="选择日期时间" align="right"

+ 2 - 2
src/xt_pages/qcd/dialysisTotal.vue View File

@@ -4,7 +4,7 @@
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
     </div>
6 6
     <div class="app-container">
7
-      <div class="cell">
7
+      <div class="cell clearfix">
8 8
         <label class="title">
9 9
           <span class="name">日期查询</span> :
10 10
         </label>
@@ -65,7 +65,7 @@
65 65
         </div>
66 66
       </div>
67 67
 
68
-      <div class="cell">
68
+      <div class="cell clearfix">
69 69
         <label class="title">
70 70
           <span class="name">透析模式</span> :
71 71
         </label>

+ 2 - 2
src/xt_pages/qcd/outcomeIndicators/control.vue View File

@@ -9,7 +9,7 @@
9 9
           <el-tab-pane label="指标查询" name="query"></el-tab-pane>
10 10
       </el-tabs>
11 11
 
12
-      <div class="cell">
12
+      <div class="cell clearfix">
13 13
         <label class="title">
14 14
           <span class="name">日期查询</span> :
15 15
         </label>
@@ -70,7 +70,7 @@
70 70
         </div>
71 71
       </div>
72 72
 
73
-      <div class="cell">
73
+      <div class="cell clearfix">
74 74
         <label class="title">
75 75
           <span class="name">检验项目</span> :
76 76
         </label>

+ 3 - 3
src/xt_pages/qcd/outcomeIndicators/query.vue View File

@@ -9,7 +9,7 @@
9 9
           <el-tab-pane label="指标查询" name="query"></el-tab-pane>
10 10
       </el-tabs>
11 11
 
12
-      <div class="cell">
12
+      <div class="cell clearfix">
13 13
         <el-form :inline="true" :model="listQuery" >
14 14
           <el-form-item label="">
15 15
             <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
@@ -19,7 +19,7 @@
19 19
           </el-form-item>
20 20
         </el-form>
21 21
       </div>
22
-      <div class="cell">
22
+      <div class="cell clearfix">
23 23
         <label class="title">
24 24
           <span class="name">日期查询</span> :
25 25
         </label>
@@ -50,7 +50,7 @@
50 50
         ></el-date-picker>
51 51
       </div>
52 52
 
53
-      <div class="cell">
53
+      <div class="cell clearfix">
54 54
         <label class="title">
55 55
           <span class="name">检验项目</span> :
56 56
         </label>

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/bloodPressure.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container" id="outcome-indicators-query">
7 7
       <analysis-nav activeName="bloodpressure"></analysis-nav>
8 8
 
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <label class="title">
11 11
           <span class="name">日期查询</span> :
12 12
         </label>

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/complication.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container" id="outcome-indicators-query">
7 7
       <analysis-nav activeName="complication"></analysis-nav>
8 8
 
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <label class="title">
11 11
           <span class="name">日期查询</span> :
12 12
         </label>

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/dialysisAge.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container" id="outcome-indicators-query">
7 7
       <analysis-nav activeName="dialysisage"></analysis-nav>
8 8
 
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <label class="title">
11 11
           <span class="name">日期查询</span> :
12 12
         </label>

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/lapseto.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container" id="outcome-indicators-query">
7 7
       <analysis-nav activeName="lapseto"></analysis-nav>
8 8
 
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <label class="title">
11 11
           <span class="name">日期查询</span> :
12 12
         </label>

+ 2 - 2
src/xt_pages/qcd/patientAnalysis/total.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container" id="outcome-indicators-query">
7 7
       <analysis-nav activeName="total"></analysis-nav>
8 8
 
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <el-form :inline="true" :model="listQuery" >
11 11
           <el-form-item label="">
12 12
             <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
@@ -16,7 +16,7 @@
16 16
           </el-form-item>
17 17
         </el-form>
18 18
       </div>
19
-      <div class="cell">
19
+      <div class="cell clearfix">
20 20
         <label class="title">
21 21
           <span class="name">日期查询</span> :
22 22
         </label>

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/weight.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container" id="outcome-indicators-query">
7 7
       <analysis-nav activeName="weight"></analysis-nav>
8 8
 
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <label class="title">
11 11
           <span class="name">日期查询</span> :
12 12
         </label>

+ 2 - 2
src/xt_pages/qcd/processIndicators.1.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="app-container">
3
-    <div class="cell">
3
+    <div class="cell clearfix">
4 4
       <label class="title">
5 5
         <span class="name">日期查询</span> :
6 6
       </label>
@@ -63,7 +63,7 @@
63 63
       </div>
64 64
     </div>
65 65
 
66
-    <div class="cell">
66
+    <div class="cell clearfix">
67 67
       <label class="title">
68 68
         <span class="name">检验项目</span> :
69 69
       </label>

+ 2 - 2
src/xt_pages/qcd/processIndicators.vue View File

@@ -4,7 +4,7 @@
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
     </div>
6 6
     <div class="app-container">
7
-      <div class="cell">
7
+      <div class="cell clearfix">
8 8
         <label class="title">
9 9
           <span class="name">日期查询</span> :
10 10
         </label>
@@ -65,7 +65,7 @@
65 65
         </div>
66 66
       </div>
67 67
 
68
-      <div class="cell">
68
+      <div class="cell clearfix">
69 69
         <label class="title">
70 70
           <span class="name">检验项目</span> :
71 71
         </label>

+ 13 - 1
src/xt_pages/sign/index.vue View File

@@ -1,4 +1,9 @@
1 1
 <template>
2
+
3
+    <div class="main-contain">
4
+    <div class="position">
5
+        <bread-crumb :crumbs='crumbs'></bread-crumb>
6
+    </div>
2 7
     <div class="app-container sign-and-weigh-box">
3 8
         <el-row :gutter="20">
4 9
             <el-col :span="7">
@@ -134,15 +139,22 @@
134 139
                 </el-form>
135 140
             </el-col>
136 141
         </el-row>
137
-    </div>
142
+    </div>   
143
+   </div>
138 144
 </template>
139 145
 
140 146
 <script>
141 147
 import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata } from '@/api/signandweigh'
148
+import BreadCrumb from '../components/bread-crumb'
142 149
 export default {
143 150
   name: 'sign',
151
+  components: { BreadCrumb },
144 152
   data() {
145 153
     return {
154
+      crumbs: [
155
+          { path: false, name: '签到称重' },
156
+          { path: '/sign/index', name: '签到称重' }
157
+        ],
146 158
       patientlist: [],
147 159
       signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
148 160
       queryParams: {

+ 12 - 7
src/xt_pages/statistics/index.vue View File

@@ -1,7 +1,8 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
     <div class="position">
4
-        <bread-crumb></bread-crumb>
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+
5 6
     </div>
6 7
     <div class="app-container" v-loading="pageLoad">
7 8
         <el-row :gutter="40" class="panel-group">
@@ -61,7 +62,7 @@
61 62
         <line-chart :options="modelLineOpstions" title="透析模式" v-if="modeLineFlag" />
62 63
         </el-row>
63 64
 
64
-        
65
+
65 66
         <el-row >
66 67
         <el-table
67 68
             :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
@@ -112,6 +113,10 @@ export default {
112 113
   name: "Statistics",
113 114
   data() {
114 115
     return {
116
+      crumbs: [
117
+        { path: 'statistics', name: '统计分析' },
118
+
119
+      ],
115 120
         pageLoad:true,
116 121
         patientCount:0,
117 122
         todayDialysisCount:0,
@@ -236,7 +241,7 @@ export default {
236 241
                               item.name = "其他";
237 242
                               break;
238 243
                       }
239
-                      
244
+
240 245
                       this.ageOptions.legend.push(item.name);
241 246
                       this.ageOptions.series.push({
242 247
                           value:item.count,name:item.name
@@ -258,7 +263,7 @@ export default {
258 263
 
259 264
                   var thisDate = new Date()
260 265
                   var thisYear = thisDate.getFullYear()
261
-             
266
+
262 267
                   for (let index = 1; index <= 12; index++) {
263 268
                       var month = index < 10 ? ('0' + index) : ('' + index);
264 269
                       this.modelLineOpstions.xAxis.push(thisYear + '-' + month);
@@ -271,7 +276,7 @@ export default {
271 276
                       for ( var key in modeCountMap) {
272 277
 
273 278
                           if(key == this.modelLineOpstions.xAxis[index]) {
274
-                              
279
+
275 280
                               if (1 in modeCountMap[key]) {
276 281
                                 hd = modeCountMap[key][1]["count"];
277 282
                               }
@@ -295,13 +300,13 @@ export default {
295 300
                             continue;
296 301
                           }
297 302
                       }
298
-                      
303
+
299 304
                     this.modelLineOpstions.series["HD"].push(hd);
300 305
                     this.modelLineOpstions.series["HDF"].push(hdf);
301 306
                     this.modelLineOpstions.series["HD+HP"].push(hdhp);
302 307
                     this.modelLineOpstions.series["HP"].push(hp);
303 308
                   }
304
-                  
309
+
305 310
                   this.diseaseFlag = true;
306 311
                   this.genderFlag = true;
307 312
                   this.ageFlag = true;

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

@@ -111,10 +111,14 @@
111 111
         })
112 112
       },
113 113
       cancle: function(formName) {
114
+        this.goodInfo = []
115
+        this.goodInfoTableData = []
114 116
         this.$emit('dialog-cancle', this.getValue())
115 117
         this.$refs.multipleTable.clearSelection()
116 118
       },
117 119
       comfirm: function(formName) {
120
+        this.goodInfo = []
121
+        this.goodInfoTableData = []
118 122
         this.$emit('dialog-comfirm', this.getValue())
119 123
         this.$refs.multipleTable.clearSelection()
120 124
       },

+ 3 - 3
src/xt_pages/stock/cancelStockOrder.vue View File

@@ -11,12 +11,12 @@
11 11
     <div class="app-container">
12 12
 
13 13
 
14
-      <div class="cell" style="margin-top:20px">
14
+      <div class="cell clearfix" style="margin-top:20px">
15 15
         <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
16 16
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17 17
       </div>
18 18
 
19
-      <div class="cell">
19
+      <div class="cell clearfix">
20 20
         <label class="title"><span class="name">退库时间</span> : </label>
21 21
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
22 22
                         type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
@@ -278,7 +278,7 @@
278 278
           }
279 279
         }
280 280
       }, handleEdit: function(index, row) {
281
-        this.$router.push({ name: 'cancelStockDetail', query: { id: row.id }})
281
+        this.$router.push({ name: 'cancelStockDetail', query: { id: row.id,type: this.type }})
282 282
       }, handleDelete: function(index, row) {
283 283
         const ids = []
284 284
         ids.push(row.id)

+ 9 - 2
src/xt_pages/stock/cancelStockOrderAdd.vue View File

@@ -18,7 +18,7 @@
18 18
     <div class="filter-container">
19 19
 
20 20
 
21
-        <div class="cell">
21
+        <div class="cell clearfix">
22 22
           <label class="title"><span class="name">退库时间</span> : </label>
23 23
 
24 24
           <el-date-picker v-model="return_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
@@ -27,7 +27,7 @@
27 27
         </div>
28 28
         <div class="cell clearfix">
29 29
           <label class="title"><span class="name">厂商</span> : </label>
30
-          <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" >
30
+          <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()">
31 31
             <el-option
32 32
               v-for="(option, index) in manufacturer"
33 33
               :key="index"
@@ -344,6 +344,13 @@
344 344
             return false
345 345
           }
346 346
         })
347
+      },changeManufacturer(){
348
+        this.recordInfo.recordData = []
349
+        const tempObj = {}
350
+        tempObj['good_type_id'] = 0
351
+        tempObj['good_id'] = 0
352
+        tempObj['return_count'] = ''
353
+        this.recordInfo.recordData.push(tempObj)
347 354
       }
348 355
     },
349 356
     created() {

+ 1 - 1
src/xt_pages/stock/cancelStockOrderDetail.vue View File

@@ -14,7 +14,7 @@
14 14
 
15 15
 
16 16
 
17
-    <div class="cell">
17
+    <div class="cell clearfix">
18 18
       <span style="width: 300px">单据日期:  {{CancelStockInfo.cancelStock.return_time | parseTime('{y}-{m}-{d}')}} </span>
19 19
       <span style="width: 300px">厂商 {{getManufactuerName(CancelStockInfo.cancelStock.manufacturer)}}</span>
20 20
       <span style="width: 300px">经销商 {{getDealerName(CancelStockInfo.cancelStock.dealer)}}</span>

+ 1 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue View File

@@ -13,7 +13,7 @@
13 13
                            v-on:dialog-comfirm="comfirm"
14 14
                            v-on:dialog-cancle="cancle"></sales-return-dialog>
15 15
 
16
-      <div class="cell">
16
+      <div class="cell clearfix">
17 17
 
18 18
         <label class="title"><span class="name">退库时间</span> : </label>
19 19
         <el-date-picker v-model="return_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"

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

@@ -10,12 +10,12 @@
10 10
 
11 11
     <div class="app-container">
12 12
 
13
-      <div class="cell" style="margin-top:20px">
13
+      <div class="cell clearfix" style="margin-top:20px">
14 14
         <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15 15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16 16
       </div>
17 17
 
18
-      <div class="cell">
18
+      <div class="cell clearfix">
19 19
         <label class="title"><span class="name">退库时间</span> : </label>
20 20
 
21 21
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"

+ 3 - 3
src/xt_pages/stock/otherSalesReturnOrder.vue View File

@@ -10,12 +10,12 @@
10 10
 
11 11
     <div class="app-container">
12 12
 
13
-      <div class="filter-container" style="margin-top:20px">
14
-        <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
13
+      <div class="cell">
14
+        <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15 15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16 16
       </div>
17 17
 
18
-      <div class="cell">
18
+      <div class="cell clearfix">
19 19
         <label class="title"><span class="name">退货时间</span> : </label>
20 20
 
21 21
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"

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

@@ -9,12 +9,12 @@
9 9
 
10 10
     <div class="app-container">
11 11
 
12
-      <div class="cell">
12
+      <div class="cell clearfix">
13 13
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
14 14
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
15 15
       </div>
16 16
 
17
-      <div class="cell">
17
+      <div class="cell clearfix">
18 18
         <label class="title"><span class="name">入库时间</span> : </label>
19 19
 
20 20
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"

+ 332 - 306
src/xt_pages/stock/otherStockOutOrder.vue View File

@@ -8,13 +8,12 @@
8 8
       </el-button>
9 9
     </div>
10 10
     <div class="app-container">
11
-      <div class="cell">
12
-        <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
11
+      <div class="cell clearfix">
12
+        <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
13 13
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
14 14
       </div>
15 15
 
16
-
17
-      <div class="cell">
16
+      <div class="cell clearfix">
18 17
         <label class="title"><span class="name">出库时间</span> : </label>
19 18
 
20 19
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
@@ -119,366 +118,393 @@
119 118
 </template>
120 119
 
121 120
 <script>
122
-  import { uParseTime } from '@/utils/tools'
123
-  import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
124
-
125
-  import { deleteWarehouseOut, GetAllConfig, getWarehouseOutList } from '@/api/stock'
126
-  import BreadCrumb from '../components/bread-crumb'
127
-
128
-  export default {
129
-    name: 'salesReturnOrder',
130
-    components: { BreadCrumb },
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
121
+import { uParseTime } from "@/utils/tools";
122
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
123
+
124
+import {
125
+  deleteWarehouseOut,
126
+  GetAllConfig,
127
+  getWarehouseOutList
128
+} from "@/api/stock";
129
+import BreadCrumb from "../components/bread-crumb";
130
+
131
+export default {
132
+  name: "salesReturnOrder",
133
+  components: { BreadCrumb },
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;
158
+    this.GetWarehouseOut();
159
+    this.GetConfigInfo();
160
+    this.fetchAllAdminUsers();
161
+  },
162
+  data() {
163
+    return {
164
+      crumbs: [
165
+        { path: false, name: "库存管理" },
166
+        { path: "/stock/out", name: "其他出库单" }
167
+      ],
168
+      page: 1,
169
+      limit: 7,
170
+      checked: false,
171
+      total: 0,
172
+      pageTotal: 0,
173
+      pageSelect: 0,
174
+      adminUserOptions: [],
175
+      multipleSelection: [],
176
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
177
+      start_time: "",
178
+      warehouseOutDate: [],
179
+      end_time: "",
180
+      goodType: [],
181
+      goodInfo: [],
182
+      manufacturer: [],
183
+      selectedTableData: [],
184
+      dealer: [],
185
+      type: 2
186
+    };
187
+  },
188
+  methods: {
189
+    AddNewOrder: function() {
190
+      this.$router.push({
191
+        name: "stockOutOrderAdd",
192
+        query: { type: this.type }
193
+      });
194
+    },
195
+    GetWarehouseOut: function() {
196
+      const Params = {
197
+        page: this.page,
198
+        limit: this.limit,
199
+        start_time: this.start_time,
200
+        end_time: this.end_time,
201
+        type: this.type
202
+      };
203
+      this.warehouseOutDate = [];
204
+      getWarehouseOutList(Params).then(response => {
205
+        if (response.data.state == 0) {
206
+          this.$message.error(response.data.msg);
207
+          return false;
208
+        } else {
209
+          this.total = response.data.data.total;
210
+          for (let i = 0; i < response.data.data.list.length; i++) {
211
+            this.warehouseOutDate.push(response.data.data.list[i]);
212
+          }
213
+        }
214
+      });
215
+    },
216
+    getXuserName(id) {
217
+      if (id <= 0) {
218
+        return "";
140 219
       }
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
220
+      var name = "";
221
+      if (
222
+        this.adminUserOptions == null ||
223
+        typeof this.adminUserOptions.length === "undefined"
224
+      ) {
225
+        return name;
149 226
       }
150
-      if (parseInt(day) < 10) {
151
-        day = '0' + day
227
+      var leng = this.adminUserOptions.length;
228
+      if (leng == 0) {
229
+        return name;
152 230
       }
153
-      const startTime = year + '-' + month + '-' + day
154
-      this.start_time = startTime
155
-      this.GetWarehouseOut()
156
-      this.GetConfigInfo()
157
-      this.fetchAllAdminUsers()
158
-    },
159
-    data() {
160
-      return {
161
-        crumbs: [
162
-          { path: false, name: '库存管理' },
163
-          { path: '/stock/out', name: '其他出库单' }
164
-        ],
165
-        page: 1,
166
-        limit: 7,
167
-        checked: false,
168
-        total: 0,
169
-        pageTotal: 0,
170
-        pageSelect: 0,
171
-        adminUserOptions: [],
172
-        multipleSelection: [],
173
-        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
174
-        start_time: '',
175
-        warehouseOutDate: [],
176
-        end_time: '',
177
-        goodType: [],
178
-        goodInfo: [],
179
-        manufacturer: [],
180
-        selectedTableData: [],
181
-        dealer: [],
182
-        type: 2
183
-
231
+      for (let index = 0; index < leng; index++) {
232
+        if (this.adminUserOptions[index].id == id) {
233
+          name = this.adminUserOptions[index].name;
234
+          break;
235
+        }
184 236
       }
237
+      return name;
185 238
     },
186
-    methods: {
187
-      AddNewOrder: function() {
188
-        this.$router.push({ name: 'stockOutOrderAdd', query: { type: this.type } })
189
-      },
190
-      GetWarehouseOut: function() {
191
-        const Params = {
192
-          page: this.page,
193
-          limit: this.limit,
194
-          start_time: this.start_time,
195
-          end_time: this.end_time,
196
-          type: this.type
197
-        }
198
-        this.warehouseOutDate = []
199
-        getWarehouseOutList(Params).then(response => {
200
-          if (response.data.state == 0) {
201
-            this.$message.error(response.data.msg)
202
-            return false
203
-          } else {
204
-            this.total = response.data.data.total
205
-            for (let i = 0; i < response.data.data.list.length; i++) {
206
-              this.warehouseOutDate.push(response.data.data.list[i])
239
+    fetchAllAdminUsers() {
240
+      fetchAllAdminUsers().then(response => {
241
+        console.log(response);
242
+        if (response.data.state == 1) {
243
+          this.adminUserOptions = response.data.data.users;
244
+          var alen = this.adminUserOptions.length;
245
+          for (let index = 0; index < alen; index++) {
246
+            if (this.adminUserOptions[index].user_type == 2) {
247
+              // this.doctorOptions.push(this.adminUserOptions[index]);
207 248
             }
208 249
           }
209
-        })
210
-      }, getXuserName(id) {
211
-        if (id <= 0) {
212
-          return ''
213
-        }
214
-        var name = ''
215
-        if (this.adminUserOptions == null || typeof (this.adminUserOptions.length) === 'undefined') {
216
-          return name
217
-        }
218
-        var leng = this.adminUserOptions.length
219
-        if (leng == 0) {
220
-          return name
221
-        }
222
-        for (let index = 0; index < leng; index++) {
223
-          if (this.adminUserOptions[index].id == id) {
224
-            name = this.adminUserOptions[index].name
225
-            break
226
-          }
227 250
         }
228
-        return name
229
-      }, fetchAllAdminUsers() {
230
-        fetchAllAdminUsers().then(response => {
231
-          console.log(response)
232
-          if (response.data.state == 1) {
233
-            this.adminUserOptions = response.data.data.users
234
-            var alen = this.adminUserOptions.length
235
-            for (let index = 0; index < alen; index++) {
236
-              if (this.adminUserOptions[index].user_type == 2) {
237
-                // this.doctorOptions.push(this.adminUserOptions[index]);
238
-              }
239
-            }
240
-          }
241
-        })
242
-      }, handleSelectionChange: function(val) {
243
-        this.multipleSelection = val
244
-      }, handleSizeChange(val) {
245
-        this.limit = val
246
-        this.GetWarehouse()
247
-      }, handleCurrentChange(val) {
248
-        this.page = val
249
-        this.GetWarehouse()
250
-      }, startTimeChange(val) {
251
-        this.GetWarehouse()
252
-      }, endTimeChange(val) {
253
-        this.GetWarehouse()
254
-      }, calculate: function(val) {
255
-        return Math.round(parseFloat(val) * 100) / 100
256
-      }, GetConfigInfo: function() {
257
-        GetAllConfig().then(response => {
258
-          if (response.data.state == 0) {
259
-            this.$message.error(response.data.msg)
260
-            return false
261
-          } else {
262
-            this.manufacturer = response.data.data.manufacturer
263
-            this.dealer = response.data.data.dealer
264
-          }
265
-        })
266
-      }, getManufactuerName: function(manufacturer_id) {
267
-        for (let i = 0; i < this.manufacturer.length; i++) {
268
-          if (this.manufacturer[i].id == manufacturer_id) {
269
-            return this.manufacturer[i].manufacturer_name
270
-          }
251
+      });
252
+    },
253
+    handleSelectionChange: function(val) {
254
+      this.multipleSelection = val;
255
+    },
256
+    handleSizeChange(val) {
257
+      this.limit = val;
258
+      this.GetWarehouse();
259
+    },
260
+    handleCurrentChange(val) {
261
+      this.page = val;
262
+      this.GetWarehouse();
263
+    },
264
+    startTimeChange(val) {
265
+      this.GetWarehouse();
266
+    },
267
+    endTimeChange(val) {
268
+      this.GetWarehouse();
269
+    },
270
+    calculate: function(val) {
271
+      return Math.round(parseFloat(val) * 100) / 100;
272
+    },
273
+    GetConfigInfo: function() {
274
+      GetAllConfig().then(response => {
275
+        if (response.data.state == 0) {
276
+          this.$message.error(response.data.msg);
277
+          return false;
278
+        } else {
279
+          this.manufacturer = response.data.data.manufacturer;
280
+          this.dealer = response.data.data.dealer;
271 281
         }
272
-      }, getDealerName: function(dealer_id) {
273
-        for (let i = 0; i < this.dealer.length; i++) {
274
-          if (this.dealer[i].id == dealer_id) {
275
-            return this.dealer[i].dealer_name
276
-          }
282
+      });
283
+    },
284
+    getManufactuerName: function(manufacturer_id) {
285
+      for (let i = 0; i < this.manufacturer.length; i++) {
286
+        if (this.manufacturer[i].id == manufacturer_id) {
287
+          return this.manufacturer[i].manufacturer_name;
277 288
         }
278
-      }, handleEdit: function(index, row) {
279
-        this.$router.push({ name: 'stockOutDetail', query: { id: row.id, type: this.type } })
280
-      }, handleDelete: function(index, row) {
281
-        const ids = []
282
-        ids.push(row.id)
283
-        const idStr = ids.join(',')
284
-
285
-        const params = {
286
-          ids: idStr
289
+      }
290
+    },
291
+    getDealerName: function(dealer_id) {
292
+      for (let i = 0; i < this.dealer.length; i++) {
293
+        if (this.dealer[i].id == dealer_id) {
294
+          return this.dealer[i].dealer_name;
287 295
         }
288
-
289
-        this.$confirm('确认删除退货单记录?', '删除退货单记录', {
290
-          confirmButtonText: '确定',
291
-          cancelButtonText: '取消',
292
-          type: 'warning'
293
-        }).then(() => {
296
+      }
297
+    },
298
+    handleEdit: function(index, row) {
299
+      this.$router.push({
300
+        name: "stockOutDetail",
301
+        query: { id: row.id, type: this.type }
302
+      });
303
+    },
304
+    handleDelete: function(index, row) {
305
+      const ids = [];
306
+      ids.push(row.id);
307
+      const idStr = ids.join(",");
308
+
309
+      const params = {
310
+        ids: idStr
311
+      };
312
+
313
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
314
+        confirmButtonText: "确定",
315
+        cancelButtonText: "取消",
316
+        type: "warning"
317
+      })
318
+        .then(() => {
294 319
           deleteWarehouseOut(params).then(response => {
295 320
             if (response.data.state == 0) {
296
-              this.$message.error(response.data.msg)
297
-              return false
321
+              this.$message.error(response.data.msg);
322
+              return false;
298 323
             } else {
299 324
               this.$notify({
300
-                title: '成功',
301
-                message: '删除成功',
302
-                type: 'success',
325
+                title: "成功",
326
+                message: "删除成功",
327
+                type: "success",
303 328
                 duration: 2000
304
-              })
329
+              });
305 330
               for (let i = 0; i < ids.length; i++) {
306 331
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
307 332
                   if (ids[i] == this.warehouseOutDate[y].id) {
308
-                    this.warehouseOutDate.splice(y, 1)
333
+                    this.warehouseOutDate.splice(y, 1);
309 334
                   }
310 335
                 }
311 336
               }
312 337
             }
313
-          })
314
-        }).catch(() => {
338
+          });
315 339
         })
316
-      }, changeAllSelected: function(val) {
317
-        if (val) {
318
-          this.$refs.multipleTable.toggleAllSelection()
319
-        } else {
320
-          this.$refs.multipleTable.clearSelection()
321
-        }
322
-      }, select(selection) {
323
-        this.selectedTableData = selection
324
-      }, batchDelete() {
325
-        if (this.selectedTableData.length <= 0) {
326
-          this.$message.error('请选择要删除的记录')
327
-          return
328
-        }
329
-        const ids = []
330
-        for (let i = 0; i < this.selectedTableData.length; i++) {
331
-          ids.push(this.selectedTableData[i].id)
332
-        }
333
-        const idStr = ids.join(',')
334
-        const params = {
335
-          ids: idStr
336
-        }
337
-        this.$confirm('确认删除退货单记录?', '删除退货单记录', {
338
-          confirmButtonText: '确定',
339
-          cancelButtonText: '取消',
340
-          type: 'warning'
341
-        }).then(() => {
340
+        .catch(() => {});
341
+    },
342
+    changeAllSelected: function(val) {
343
+      if (val) {
344
+        this.$refs.multipleTable.toggleAllSelection();
345
+      } else {
346
+        this.$refs.multipleTable.clearSelection();
347
+      }
348
+    },
349
+    select(selection) {
350
+      this.selectedTableData = selection;
351
+    },
352
+    batchDelete() {
353
+      if (this.selectedTableData.length <= 0) {
354
+        this.$message.error("请选择要删除的记录");
355
+        return;
356
+      }
357
+      const ids = [];
358
+      for (let i = 0; i < this.selectedTableData.length; i++) {
359
+        ids.push(this.selectedTableData[i].id);
360
+      }
361
+      const idStr = ids.join(",");
362
+      const params = {
363
+        ids: idStr
364
+      };
365
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
366
+        confirmButtonText: "确定",
367
+        cancelButtonText: "取消",
368
+        type: "warning"
369
+      })
370
+        .then(() => {
342 371
           deleteWarehouseOut(params).then(response => {
343 372
             if (response.data.state == 0) {
344
-              this.$message.error(response.data.msg)
345
-              return false
373
+              this.$message.error(response.data.msg);
374
+              return false;
346 375
             } else {
347 376
               this.$notify({
348
-                title: '成功',
349
-                message: '删除成功',
350
-                type: 'success',
377
+                title: "成功",
378
+                message: "删除成功",
379
+                type: "success",
351 380
                 duration: 2000
352
-              })
381
+              });
353 382
 
354 383
               for (let i = 0; i < ids.length; i++) {
355 384
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
356 385
                   if (ids[i] == this.warehouseOutDate[y].id) {
357
-                    this.warehouseOutDate.splice(y, 1)
386
+                    this.warehouseOutDate.splice(y, 1);
358 387
                   }
359 388
                 }
360 389
               }
361 390
             }
362
-          })
363
-        }).catch(() => {
391
+          });
364 392
         })
365
-      }
393
+        .catch(() => {});
366 394
     }
367 395
   }
396
+};
368 397
 </script>
369 398
 
370 399
 <style rel="stylesheet/scss" lang="scss" scoped>
371
-  .app-container {
372
-
373
-    font-size: 15px;
374
-
400
+.app-container {
401
+  font-size: 15px;
375 402
   .filter-container {
376 403
     padding-bottom: 5px;
377 404
   }
378
-
379 405
   .search-component {
380 406
     width: 500px;
381 407
 
382
-  .searchBox {
383
-    width: 300px;
384
-    height: 36px;
385
-    line-height: 36px;
386
-    padding-left: 15px;
387
-    border: 1px #dcdfe6 solid;
388
-    border-right: none;
389
-    outline: none;
390
-    float: left;
391
-    border-radius: 6px 0 0 6px;
392
-    font-size: 14px;
393
-    color: #333;
394
-    background: #fff;
395
-    box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
396
-  }
397
-
398
-  .searchBtn {
399
-    background-color: #409eff;
400
-    color: #fff;
401
-    font-size: 15px;
402
-    text-align: center;
403
-    height: 36px;
404
-    line-height: 36px;
405
-    float: left;
406
-    outline: none;
407
-    width: 70px;
408
-    border: none;
409
-    border-radius: 0 6px 6px 0;
410
-    font-family: "Microsoft Yahei";
411
-    cursor: pointer;
412
-  }
413
-
414
-  }
415
-  .cell {
416
-    margin: 0px 0 15px 0;
417
-    -moz-box-sizing: border-box;
418
-    -webkit-box-sizing: border-box;
419
-    -o-box-sizing: border-box;
420
-    -ms-box-sizing: border-box;
421
-    box-sizing: border-box;
422
-    display: -webkit-box;
423
-    display: -ms-flexbox;
424
-    -webkit-box-align: flex-start;
425
-    -ms-flex-align: flex-start;
426
-    align-items: flex-start;
427
-    text-align: left;
428
-    justify-content: flex-start;
429
-    color: #333;
430
-
431
-
432
-  .time {
433
-    -webkit-box-flex: 1;
434
-    -ms-flex: 1;
435
-    flex: 1;
436
-
437
-  ul {
438
-    padding: 0;
439
-    margin: 0;
440
-
441
-  li {
442
-    float: left;
443
-    list-style: none;
444
-    cursor: pointer;
445
-    padding: 3px 0;
446
-    width: 70px;
447
-    color: #606266;
448
-    border-radius: 4px;
449
-    margin: 0 10px 0 0;
450
-    color: #409eff;
451
-    border: 1px #409eff solid;
452
-    text-align: center;
453
-
454
-  &
455
-  :hover {
456
-    background: #409eff;
457
-    color: #fff;
458
-  }
408
+    .searchBox {
409
+      width: 300px;
410
+      height: 36px;
411
+      line-height: 36px;
412
+      padding-left: 15px;
413
+      border: 1px #dcdfe6 solid;
414
+      border-right: none;
415
+      outline: none;
416
+      float: left;
417
+      border-radius: 6px 0 0 6px;
418
+      font-size: 14px;
419
+      color: #333;
420
+      background: #fff;
421
+      box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
422
+    }
459 423
 
460
-  }
461
-  .active {
462
-    background: #409eff;
463
-    color: #fff;
424
+    .searchBtn {
425
+      background-color: #409eff;
426
+      color: #fff;
427
+      font-size: 15px;
428
+      text-align: center;
429
+      height: 36px;
430
+      line-height: 36px;
431
+      float: left;
432
+      outline: none;
433
+      width: 70px;
434
+      border: none;
435
+      border-radius: 0 6px 6px 0;
436
+      font-family: "Microsoft Yahei";
437
+      cursor: pointer;
438
+    }
464 439
   }
465 440
 
466
-  }
467
-  }
468
-  }
469 441
   .amount {
470 442
     font-weight: normal;
471 443
     padding: 10px 0 0 0;
472 444
     color: #606266;
473 445
     font-size: 14px;
474 446
 
475
-  span {
476
-    color: #ef2525;
477
-    font-family: "Arial";
478
-    padding: 0 2px;
479
-  }
480
-
481
-  }
447
+    span {
448
+      color: #ef2525;
449
+      font-family: "Arial";
450
+      padding: 0 2px;
451
+    }
482 452
   }
453
+}
483 454
 </style>
484 455
 
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
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
+

+ 6 - 1
src/xt_pages/stock/salesReturnEdit.vue View File

@@ -15,7 +15,7 @@
15 15
                      v-on:dialog-comfirm="comfirm"
16 16
                      v-on:dialog-cancle="cancle"></sales-return-dialog>
17 17
 
18
-    <div class="cell">
18
+    <div class="cell clearfix">
19 19
             <label class="title"><span class="name">退货时间</span> : </label>
20 20
             <el-date-picker v-model="return_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
21 21
                             type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
@@ -217,6 +217,10 @@
217 217
               obj3[next.id] ? '' : obj3[next.id] = true && cur.push(next)
218 218
               return cur
219 219
             }, [])
220
+            console.log(this.propForm.goodInfo)
221
+            console.log(this.propForm.goodType)
222
+
223
+
220 224
           }
221 225
         })
222 226
       }, typeName: function(good_type_id) {
@@ -228,6 +232,7 @@
228 232
         }
229 233
         return name
230 234
       }, specificationName: function(good_info_id) {
235
+
231 236
         let name = ''
232 237
         for (let i = 0; i < this.propForm.goodInfo.length; i++) {
233 238
           if (this.propForm.goodInfo[i].id == good_info_id) {

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

@@ -10,12 +10,12 @@
10 10
 
11 11
     <div class="app-container">
12 12
 
13
-      <div class="filter-container" >
13
+      <div class="cell" >
14 14
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15 15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16 16
       </div>
17 17
 
18
-      <div class="cell">
18
+      <div class="cell clearfix">
19 19
         <label class="title"><span class="name">退货时间</span> : </label>
20 20
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
21 21
                         type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"

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

@@ -13,7 +13,7 @@
13 13
                            :visibility="isVisibility"
14 14
                            v-on:dialog-comfirm="comfirm"
15 15
                            v-on:dialog-cancle="cancle"></sales-return-dialog>
16
-      <div class="cell">
16
+      <div class="cell clearfix">
17 17
         <label class="title"><span class="name">退货时间</span> : </label>
18 18
         <el-date-picker v-model="return_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
19 19
                         type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
@@ -23,7 +23,7 @@
23 23
 
24 24
       <div class="cell clearfix">
25 25
         <label class="title"><span class="name">厂商</span> : </label>
26
-        <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商">
26
+        <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer()">
27 27
           <el-option
28 28
             v-for="(option, index) in manufacturer"
29 29
             :key="index"
@@ -354,6 +354,14 @@
354 354
             return false
355 355
           }
356 356
         })
357
+      },changeManufacturer(){
358
+        this.recordInfo.recordData = []
359
+        const tempObj = {}
360
+        tempObj['good_type_id'] = 0
361
+        tempObj['good_id'] = 0
362
+        tempObj['return_count'] = ''
363
+        tempObj['price'] = ''
364
+        this.recordInfo.recordData.push(tempObj)
357 365
       }
358 366
     },
359 367
     created() {

+ 1 - 1
src/xt_pages/stock/salesReturnOrderDetail.vue View File

@@ -14,7 +14,7 @@
14 14
       </div>
15 15
 
16 16
 
17
-      <div class="cell">
17
+      <div class="cell clearfix">
18 18
         <span style="width: 300px">单据日期:  {{ReturnInfo.salesReturn.return_time | parseTime('{y}-{m}-{d}')}} </span>
19 19
         <span style="width: 300px">厂商: {{getManufactuerName(ReturnInfo.salesReturn.manufacturer)}}</span>
20 20
         <span style="width: 300px">经销商: {{getDealerName(ReturnInfo.salesReturn.dealer)}}</span>

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

@@ -8,12 +8,12 @@
8 8
     </div>
9 9
 
10 10
     <div class="app-container">
11
-    <div class="filter-container">
11
+    <div class="cell">
12 12
       <el-input   style="width: 400px;" v-model="searchKey" class="filter-item"  placeholder="单据日期/单据编码/制单人/供应商" />
13 13
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" >搜索</el-button>
14 14
     </div>
15 15
 
16
-      <div class="cell">
16
+      <div class="cell clearfix">
17 17
         <label class="title"><span class="name">入库时间</span> : </label>
18 18
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
19 19
                         type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"

+ 18 - 2
src/xt_pages/stock/stockInOrderAdd.vue View File

@@ -16,14 +16,14 @@
16 16
                        v-on:dialog-cancle="cancle"></stock-in-dialog>
17 17
 
18 18
 
19
-      <div class="cell">
19
+      <div class="cell clearfix">
20 20
         <label class="title"><span class="name">入库时间</span> : </label>
21 21
         <el-date-picker v-model="warehousing_time"  prefix-icon="el-icon-date"  :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
22 22
       </div>
23 23
 
24 24
       <div class="cell clearfix">
25 25
         <label class="title"><span class="name">厂商</span> : </label>
26
-        <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" >
26
+        <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()" >
27 27
           <el-option
28 28
             v-for="(option, index) in manufacturer"
29 29
             :key="index"
@@ -462,6 +462,7 @@
462 462
           const params = {
463 463
             id: this.form.manufacturer
464 464
           }
465
+          this.propForm.goodType = []
465 466
           GetAllGoodInfoByID(params).then(response => {
466 467
             if (response.data.state == 0) {
467 468
               this.$message.error(response.data.msg)
@@ -550,6 +551,21 @@
550 551
             return false
551 552
           }
552 553
         })
554
+      },changeManufacturer(){
555
+        this.recordInfo.recordData = []
556
+        const tempObj = {}
557
+        tempObj['good_type_id'] = 0
558
+        tempObj['good_id'] = 0
559
+        tempObj['number'] = ''
560
+        tempObj['product_date'] = ''
561
+        tempObj['expiry_date'] = ''
562
+        tempObj['warehousing_count'] = ''
563
+        tempObj['price'] = ''
564
+        tempObj['remark'] = ''
565
+        tempObj['dealer'] = ''
566
+        tempObj['manufacturer'] = ''
567
+        this.recordInfo.recordData.push(tempObj)
568
+
553 569
       }
554 570
     },
555 571
     created() {

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

@@ -11,13 +11,13 @@
11 11
       </el-row>
12 12
     </div>
13 13
 
14
-    <div class="cell">
14
+    <div class="cell clearfix">
15 15
       <span style="width: 300px">单据日期:  {{WarehouseInfo.warehouse.warehousing_time | parseTime('{y}-{m}-{d}')}}</span>
16 16
       <span style="width: 300px">厂商: {{getManufactuerName(WarehouseInfo.warehouse.manufacturer)}}</span>
17 17
       <span style="width: 300px">经销商: {{getDealerName(WarehouseInfo.warehouse.dealer)}}</span>
18 18
     </div>
19 19
 
20
-    <div class="cell" style="margin-top: 10px">
20
+    <div class="cell clearfix" style="margin-top: 10px">
21 21
       <el-button size="small" icon="el-icon-edit" @click="editRecord">编辑</el-button>
22 22
       <el-button size="small" icon="el-icon-delete" @click="deleteRecord">删除</el-button>
23 23
     </div>

+ 2 - 1
src/xt_pages/stock/stockInOrderEdit.vue View File

@@ -17,7 +17,7 @@
17 17
 
18 18
 
19 19
 
20
-    <div class="cell">
20
+    <div class="cell clearfix">
21 21
       <label class="title"><span class="name">入库时间</span> : </label>
22 22
       <el-date-picker v-model="warehousing_time"  prefix-icon="el-icon-date"  :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
23 23
     </div>
@@ -377,6 +377,7 @@ export default {
377 377
           const params = {
378 378
             id: this.form.manufacturer
379 379
           }
380
+          this.propForm.goodType = []
380 381
           GetAllGoodInfoByID(params).then(response => {
381 382
             if (response.data.state == 0) {
382 383
               this.$message.error(response.data.msg)

+ 335 - 299
src/xt_pages/stock/stockOutOrder.vue View File

@@ -6,13 +6,12 @@
6 6
       <el-button size="small"  @click="AddNewOrder" class="filter-item" style="float:right;" type="primary" icon="el-icon-circle-plus-outline" >新增</el-button>
7 7
     </div>
8 8
     <div class="app-container">
9
-      <div class="cell">
9
+      <div class="cell clearfix">
10 10
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
11 11
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
12 12
       </div>
13 13
 
14
-
15
-      <div class="cell">
14
+      <div class="cell clearfix">
16 15
         <label class="title"><span class="name">出库时间</span> : </label>
17 16
         <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
18 17
                         type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
@@ -118,357 +117,394 @@
118 117
 </template>
119 118
 
120 119
 <script>
121
-  import { uParseTime } from '@/utils/tools'
122
-  import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
123
-
124
-  import {
125
-    deleteWarehouseOut,
126
-    GetAllConfig,
127
-    getWarehouseOutList
128
-  } from '@/api/stock'
129
-  import BreadCrumb from '../components/bread-crumb'
130
-
131
-  export default {
132
-    name: 'salesReturnOrder',
133
-    components: { BreadCrumb },
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
120
+import { uParseTime } from "@/utils/tools";
121
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
122
+
123
+import {
124
+  deleteWarehouseOut,
125
+  GetAllConfig,
126
+  getWarehouseOutList
127
+} from "@/api/stock";
128
+import BreadCrumb from "../components/bread-crumb";
129
+
130
+export default {
131
+  name: "salesReturnOrder",
132
+  components: { BreadCrumb },
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;
157
+    this.GetWarehouseOut();
158
+    this.GetConfigInfo();
159
+    this.fetchAllAdminUsers();
160
+  },
161
+  data() {
162
+    return {
163
+      crumbs: [
164
+        { path: false, name: "库存管理" },
165
+        { path: "/stock/out", name: "出库单" }
166
+      ],
167
+      page: 1,
168
+      limit: 7,
169
+      checked: false,
170
+      total: 0,
171
+      pageTotal: 0,
172
+      pageSelect: 0,
173
+      adminUserOptions: [],
174
+      multipleSelection: [],
175
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
176
+      start_time: "",
177
+      warehouseOutDate: [],
178
+      end_time: "",
179
+      goodType: [],
180
+      goodInfo: [],
181
+      manufacturer: [],
182
+      selectedTableData: [],
183
+      dealer: [],
184
+      type: 1
185
+    };
186
+  },
187
+  methods: {
188
+    AddNewOrder: function() {
189
+      this.$router.push({
190
+        name: "stockOutOrderAdd",
191
+        query: { type: this.type }
192
+      });
193
+    },
194
+    GetWarehouseOut: function() {
195
+      const Params = {
196
+        page: this.page,
197
+        limit: this.limit,
198
+        start_time: this.start_time,
199
+        end_time: this.end_time,
200
+        type: this.type
201
+      };
202
+      this.warehouseOutDate = [];
203
+      getWarehouseOutList(Params).then(response => {
204
+        if (response.data.state == 0) {
205
+          this.$message.error(response.data.msg);
206
+          return false;
207
+        } else {
208
+          this.total = response.data.data.total;
209
+          for (let i = 0; i < response.data.data.list.length; i++) {
210
+            this.warehouseOutDate.push(response.data.data.list[i]);
211
+          }
212
+        }
213
+      });
214
+    },
215
+    getXuserName(id) {
216
+      if (id <= 0) {
217
+        return "";
143 218
       }
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
219
+      var name = "";
220
+      if (
221
+        this.adminUserOptions == null ||
222
+        typeof this.adminUserOptions.length === "undefined"
223
+      ) {
224
+        return name;
152 225
       }
153
-      if (parseInt(day) < 10) {
154
-        day = '0' + day
226
+      var leng = this.adminUserOptions.length;
227
+      if (leng == 0) {
228
+        return name;
155 229
       }
156
-      const startTime = year + '-' + month + '-' + day
157
-      this.start_time = startTime
158
-      this.GetWarehouseOut()
159
-      this.GetConfigInfo()
160
-      this.fetchAllAdminUsers()
161
-    },
162
-    data() {
163
-      return {
164
-        crumbs: [
165
-          { path: false, name: '库存管理' },
166
-          { path: '/stock/out', name: '出库单' }
167
-        ],
168
-        page: 1,
169
-        limit: 7,
170
-        checked: false,
171
-        total: 0,
172
-        pageTotal: 0,
173
-        pageSelect: 0,
174
-        adminUserOptions: [],
175
-        multipleSelection: [],
176
-        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
177
-        start_time: '',
178
-        warehouseOutDate: [],
179
-        end_time: '',
180
-        goodType: [],
181
-        goodInfo: [],
182
-        manufacturer: [],
183
-        selectedTableData: [],
184
-        dealer: [],
185
-        type: 1
186
-
230
+      for (let index = 0; index < leng; index++) {
231
+        if (this.adminUserOptions[index].id == id) {
232
+          name = this.adminUserOptions[index].name;
233
+          break;
234
+        }
187 235
       }
236
+      return name;
188 237
     },
189
-    methods: {
190
-      AddNewOrder: function() {
191
-        this.$router.push({ name: 'stockOutOrderAdd', query: { type: this.type }})
192
-      },
193
-      GetWarehouseOut: function() {
194
-        const Params = {
195
-          page: this.page,
196
-          limit: this.limit,
197
-          start_time: this.start_time,
198
-          end_time: this.end_time,
199
-          type: this.type
200
-        }
201
-        this.warehouseOutDate = []
202
-        getWarehouseOutList(Params).then(response => {
203
-          if (response.data.state == 0) {
204
-            this.$message.error(response.data.msg)
205
-            return false
206
-          } else {
207
-            this.total = response.data.data.total
208
-            for (let i = 0; i < response.data.data.list.length; i++) {
209
-              this.warehouseOutDate.push(response.data.data.list[i])
238
+    fetchAllAdminUsers() {
239
+      fetchAllAdminUsers().then(response => {
240
+        console.log(response);
241
+        if (response.data.state == 1) {
242
+          this.adminUserOptions = response.data.data.users;
243
+          var alen = this.adminUserOptions.length;
244
+          for (let index = 0; index < alen; index++) {
245
+            if (this.adminUserOptions[index].user_type == 2) {
246
+              // this.doctorOptions.push(this.adminUserOptions[index]);
210 247
             }
211 248
           }
212
-        })
213
-      }, getXuserName(id) {
214
-        if (id <= 0) {
215
-          return ''
216
-        }
217
-        var name = ''
218
-        if (this.adminUserOptions == null || typeof (this.adminUserOptions.length) === 'undefined') {
219
-          return name
220
-        }
221
-        var leng = this.adminUserOptions.length
222
-        if (leng == 0) {
223
-          return name
224
-        }
225
-        for (let index = 0; index < leng; index++) {
226
-          if (this.adminUserOptions[index].id == id) {
227
-            name = this.adminUserOptions[index].name
228
-            break
229
-          }
230 249
         }
231
-        return name
232
-      }, fetchAllAdminUsers() {
233
-        fetchAllAdminUsers().then(response => {
234
-          console.log(response)
235
-          if (response.data.state == 1) {
236
-            this.adminUserOptions = response.data.data.users
237
-            var alen = this.adminUserOptions.length
238
-            for (let index = 0; index < alen; index++) {
239
-              if (this.adminUserOptions[index].user_type == 2) {
240
-                // this.doctorOptions.push(this.adminUserOptions[index]);
241
-              }
242
-            }
243
-          }
244
-        })
245
-      }, handleSelectionChange: function(val) {
246
-        this.multipleSelection = val
247
-      }, handleSizeChange(val) {
248
-        this.limit = val
249
-        this.GetWarehouse()
250
-      }, handleCurrentChange(val) {
251
-        this.page = val
252
-        this.GetWarehouse()
253
-      }, startTimeChange(val) {
254
-        this.GetWarehouse()
255
-      }, endTimeChange(val) {
256
-        this.GetWarehouse()
257
-      }, calculate: function(val) {
258
-        return Math.round(parseFloat(val) * 100) / 100
259
-      }, GetConfigInfo: function() {
260
-        GetAllConfig().then(response => {
261
-          if (response.data.state == 0) {
262
-            this.$message.error(response.data.msg)
263
-            return false
264
-          } else {
265
-            this.manufacturer = response.data.data.manufacturer
266
-            this.dealer = response.data.data.dealer
267
-          }
268
-        })
269
-      }, getManufactuerName: function(manufacturer_id) {
270
-        for (let i = 0; i < this.manufacturer.length; i++) {
271
-          if (this.manufacturer[i].id == manufacturer_id) {
272
-            return this.manufacturer[i].manufacturer_name
273
-          }
250
+      });
251
+    },
252
+    handleSelectionChange: function(val) {
253
+      this.multipleSelection = val;
254
+    },
255
+    handleSizeChange(val) {
256
+      this.limit = val;
257
+      this.GetWarehouse();
258
+    },
259
+    handleCurrentChange(val) {
260
+      this.page = val;
261
+      this.GetWarehouse();
262
+    },
263
+    startTimeChange(val) {
264
+      this.GetWarehouse();
265
+    },
266
+    endTimeChange(val) {
267
+      this.GetWarehouse();
268
+    },
269
+    calculate: function(val) {
270
+      return Math.round(parseFloat(val) * 100) / 100;
271
+    },
272
+    GetConfigInfo: function() {
273
+      GetAllConfig().then(response => {
274
+        if (response.data.state == 0) {
275
+          this.$message.error(response.data.msg);
276
+          return false;
277
+        } else {
278
+          this.manufacturer = response.data.data.manufacturer;
279
+          this.dealer = response.data.data.dealer;
274 280
         }
275
-      }, getDealerName: function(dealer_id) {
276
-        for (let i = 0; i < this.dealer.length; i++) {
277
-          if (this.dealer[i].id == dealer_id) {
278
-            return this.dealer[i].dealer_name
279
-          }
281
+      });
282
+    },
283
+    getManufactuerName: function(manufacturer_id) {
284
+      for (let i = 0; i < this.manufacturer.length; i++) {
285
+        if (this.manufacturer[i].id == manufacturer_id) {
286
+          return this.manufacturer[i].manufacturer_name;
280 287
         }
281
-      }, handleEdit: function(index, row) {
282
-        this.$router.push({ name: 'stockOutDetail', query: { id: row.id, type: this.type }})
283
-      }, handleDelete: function(index, row) {
284
-        const ids = []
285
-        ids.push(row.id)
286
-        const idStr = ids.join(',')
287
-
288
-        const params = {
289
-          ids: idStr
288
+      }
289
+    },
290
+    getDealerName: function(dealer_id) {
291
+      for (let i = 0; i < this.dealer.length; i++) {
292
+        if (this.dealer[i].id == dealer_id) {
293
+          return this.dealer[i].dealer_name;
290 294
         }
291
-
292
-        this.$confirm('确认删除退货单记录?', '删除退货单记录', {
293
-          confirmButtonText: '确定',
294
-          cancelButtonText: '取消',
295
-          type: 'warning'
296
-        }).then(() => {
295
+      }
296
+    },
297
+    handleEdit: function(index, row) {
298
+      this.$router.push({
299
+        name: "stockOutDetail",
300
+        query: { id: row.id, type: this.type }
301
+      });
302
+    },
303
+    handleDelete: function(index, row) {
304
+      const ids = [];
305
+      ids.push(row.id);
306
+      const idStr = ids.join(",");
307
+
308
+      const params = {
309
+        ids: idStr
310
+      };
311
+
312
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
313
+        confirmButtonText: "确定",
314
+        cancelButtonText: "取消",
315
+        type: "warning"
316
+      })
317
+        .then(() => {
297 318
           deleteWarehouseOut(params).then(response => {
298 319
             if (response.data.state == 0) {
299
-              this.$message.error(response.data.msg)
300
-              return false
320
+              this.$message.error(response.data.msg);
321
+              return false;
301 322
             } else {
302 323
               this.$notify({
303
-                title: '成功',
304
-                message: '删除成功',
305
-                type: 'success',
324
+                title: "成功",
325
+                message: "删除成功",
326
+                type: "success",
306 327
                 duration: 2000
307
-              })
328
+              });
308 329
               for (let i = 0; i < ids.length; i++) {
309 330
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
310 331
                   if (ids[i] == this.warehouseOutDate[y].id) {
311
-                    this.warehouseOutDate.splice(y, 1)
332
+                    this.warehouseOutDate.splice(y, 1);
312 333
                   }
313 334
                 }
314 335
               }
315 336
             }
316
-          })
317
-        }).catch(() => {
337
+          });
318 338
         })
319
-      }, changeAllSelected: function(val) {
320
-        if (val) {
321
-          this.$refs.multipleTable.toggleAllSelection()
322
-        } else {
323
-          this.$refs.multipleTable.clearSelection()
324
-        }
325
-      }, select(selection) {
326
-        this.selectedTableData = selection
327
-      }, batchDelete() {
328
-        if (this.selectedTableData.length <= 0) {
329
-          this.$message.error('请选择要删除的记录')
330
-          return
331
-        }
332
-        const ids = []
333
-        for (let i = 0; i < this.selectedTableData.length; i++) {
334
-          ids.push(this.selectedTableData[i].id)
335
-        }
336
-        const idStr = ids.join(',')
337
-        const params = {
338
-          ids: idStr
339
-        }
340
-        this.$confirm('确认删除退货单记录?', '删除退货单记录', {
341
-          confirmButtonText: '确定',
342
-          cancelButtonText: '取消',
343
-          type: 'warning'
344
-        }).then(() => {
339
+        .catch(() => {});
340
+    },
341
+    changeAllSelected: function(val) {
342
+      if (val) {
343
+        this.$refs.multipleTable.toggleAllSelection();
344
+      } else {
345
+        this.$refs.multipleTable.clearSelection();
346
+      }
347
+    },
348
+    select(selection) {
349
+      this.selectedTableData = selection;
350
+    },
351
+    batchDelete() {
352
+      if (this.selectedTableData.length <= 0) {
353
+        this.$message.error("请选择要删除的记录");
354
+        return;
355
+      }
356
+      const ids = [];
357
+      for (let i = 0; i < this.selectedTableData.length; i++) {
358
+        ids.push(this.selectedTableData[i].id);
359
+      }
360
+      const idStr = ids.join(",");
361
+      const params = {
362
+        ids: idStr
363
+      };
364
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
365
+        confirmButtonText: "确定",
366
+        cancelButtonText: "取消",
367
+        type: "warning"
368
+      })
369
+        .then(() => {
345 370
           deleteWarehouseOut(params).then(response => {
346 371
             if (response.data.state == 0) {
347
-              this.$message.error(response.data.msg)
348
-              return false
372
+              this.$message.error(response.data.msg);
373
+              return false;
349 374
             } else {
350 375
               this.$notify({
351
-                title: '成功',
352
-                message: '删除成功',
353
-                type: 'success',
376
+                title: "成功",
377
+                message: "删除成功",
378
+                type: "success",
354 379
                 duration: 2000
355
-              })
380
+              });
356 381
 
357 382
               for (let i = 0; i < ids.length; i++) {
358 383
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
359 384
                   if (ids[i] == this.warehouseOutDate[y].id) {
360
-                    this.warehouseOutDate.splice(y, 1)
385
+                    this.warehouseOutDate.splice(y, 1);
361 386
                   }
362 387
                 }
363 388
               }
364 389
             }
365
-          })
366
-        }).catch(() => {
390
+          });
367 391
         })
368
-      }
392
+        .catch(() => {});
369 393
     }
370 394
   }
395
+};
371 396
 </script>
372 397
 
398
+<<<<<<< .mine
373 399
 <style rel="stylesheet/scss" lang="scss" scoped>
374
-  .app-container {
400
+.app-container {
375 401
   // margin: 20px;
376
-    font-size: 15px;
402
+  font-size: 15px;
377 403
   .filter-container {
378 404
     padding-bottom: 5px;
379 405
   }
380 406
   .search-component {
381 407
     width: 500px;
382
-  .searchBox {
383
-    width: 300px;
384
-    height: 36px;
385
-    line-height: 36px;
386
-    padding-left: 15px;
387
-    border: 1px #dcdfe6 solid;
388
-    border-right: none;
389
-    outline: none;
390
-    float: left;
391
-    border-radius: 6px 0 0 6px;
392
-    font-size: 14px;
393
-    color: #333;
394
-    background: #fff;
395
-    box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
396
-  }
397
-  .searchBtn {
398
-    background-color: #409eff;
399
-    color: #fff;
400
-    font-size: 15px;
401
-    text-align: center;
402
-    height: 36px;
403
-    line-height: 36px;
404
-    float: left;
405
-    outline: none;
406
-    width: 70px;
407
-    border: none;
408
-    border-radius: 0 6px 6px 0;
409
-    font-family: "Microsoft Yahei";
410
-    cursor: pointer;
411
-  }
412
-  }
413
-  .cell {
414
-    margin: 0px 0 15px 0;
415
-    -moz-box-sizing: border-box;
416
-    -webkit-box-sizing: border-box;
417
-    -o-box-sizing: border-box;
418
-    -ms-box-sizing: border-box;
419
-    box-sizing: border-box;
420
-    display: -webkit-box;
421
-    display: -ms-flexbox;
422
-  // display: flex;
423
-    -webkit-box-align: flex-start;
424
-    -ms-flex-align: flex-start;
425
-    align-items: flex-start;
426
-    text-align: left;
427
-    justify-content: flex-start;
428
-    color: #333;
429
-
430
-  .time {
431
-    -webkit-box-flex: 1;
432
-    -ms-flex: 1;
433
-    flex: 1;
434
-  ul {
435
-    padding: 0;
436
-    margin: 0;
437
-  li {
438
-    float: left;
439
-    list-style: none;
440
-    cursor: pointer;
441
-    padding: 3px 0;
442
-    width: 70px;
443
-    color: #606266;
444
-    border-radius: 4px;
445
-    margin: 0 10px 0 0;
446
-    color: #409eff;
447
-    border: 1px #409eff solid;
448
-    text-align:center;
449
-  &:hover {
450
-     background: #409eff;
451
-     color: #fff;
452
-   }
453
-  }
454
-  .active {
455
-    background: #409eff;
456
-    color: #fff;
457
-  }
458
-  }
459
-  }
408
+    .searchBox {
409
+      width: 300px;
410
+      height: 36px;
411
+      line-height: 36px;
412
+      padding-left: 15px;
413
+      border: 1px #dcdfe6 solid;
414
+      border-right: none;
415
+      outline: none;
416
+      float: left;
417
+      border-radius: 6px 0 0 6px;
418
+      font-size: 14px;
419
+      color: #333;
420
+      background: #fff;
421
+      box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
422
+    }
423
+    .searchBtn {
424
+      background-color: #409eff;
425
+      color: #fff;
426
+      font-size: 15px;
427
+      text-align: center;
428
+      height: 36px;
429
+      line-height: 36px;
430
+      float: left;
431
+      outline: none;
432
+      width: 70px;
433
+      border: none;
434
+      border-radius: 0 6px 6px 0;
435
+      font-family: "Microsoft Yahei";
436
+      cursor: pointer;
437
+    }
460 438
   }
439
+
461 440
   .amount {
462 441
     font-weight: normal;
463 442
     padding: 10px 0 0 0;
464 443
     color: #606266;
465 444
     font-size: 14px;
466
-  span {
467
-    color: #ef2525;
468
-    font-family: "Arial";
469
-    padding: 0 2px;
470
-  }
471
-  }
445
+    span {
446
+      color: #ef2525;
447
+      font-family: "Arial";
448
+      padding: 0 2px;
449
+    }
472 450
   }
451
+}
473 452
 </style>
474 453
 
454
+=======
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
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
+>>>>>>> .theirs

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

@@ -16,7 +16,7 @@
16 16
                          v-on:dialog-comfirm="comfirm"
17 17
                          v-on:dialog-cancle="cancle"></sales-return-dialog>
18 18
 
19
-    <div class="cell">
19
+    <div class="cell clearfix">
20 20
         <label class="title"><span class="name">出库时间</span> : </label>
21 21
           <el-date-picker v-model="warehouse_out_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
22 22
                           type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
@@ -26,7 +26,7 @@
26 26
 
27 27
     <div class="cell clearfix">
28 28
       <label class="title"><span class="name">厂商</span> : </label>
29
-      <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" >
29
+      <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商"  @change="changeManufacturer()">
30 30
         <el-option
31 31
           v-for="(option, index) in manufacturer"
32 32
           :key="index"
@@ -380,6 +380,15 @@
380 380
             return false
381 381
           }
382 382
         })
383
+      },changeManufacturer(){
384
+        this.recordInfo.recordData = []
385
+        const tempObj = {}
386
+        tempObj['good_type_id'] = 0
387
+        tempObj['good_id'] = 0
388
+        tempObj['return_count'] = 0
389
+        tempObj['price'] = ''
390
+        tempObj['remark'] = ''
391
+        this.recordInfo.recordData.push(tempObj)
383 392
       }
384 393
     },
385 394
     created() {

+ 1 - 1
src/xt_pages/stock/stockOutOrderDetail.vue View File

@@ -14,7 +14,7 @@
14 14
       </div>
15 15
 
16 16
 
17
-      <div class="cell">
17
+      <div class="cell clearfix">
18 18
         <span style="width: 300px;">单据日期:  {{warehousingOutInfo.info.warehouse_out_time | parseTime('{y}-{m}-{d}')}} </span>
19 19
         <span style="width: 300px;">厂商 {{getManufactuerName(warehousingOutInfo.info.manufacturer)}}</span>
20 20
         <span style="width: 300px;">经销商 {{getDealerName(warehousingOutInfo.info.dealer)}}</span>

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue View File

@@ -15,7 +15,7 @@
15 15
                      v-on:dialog-comfirm="comfirm"
16 16
                      v-on:dialog-cancle="cancle"></sales-return-dialog>
17 17
 
18
-    <div class="cell">
18
+    <div class="cell clearfix">
19 19
       <label class="title"><span class="name">出库时间</span> : </label>
20 20
       <el-date-picker v-model="warehouse_out_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
21 21
                             type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"

+ 41 - 39
src/xt_pages/user/components/PatientDetail.vue View File

@@ -1,10 +1,10 @@
1 1
 <template>
2 2
   <div class="app-container ">
3 3
     <el-form ref="form" :rules="rules" :model="form" label-width="134px" class="clearfix" id="patient-info" >
4
-    <div style="float:right;z-index:999;position: absolute;right: 0;">
5
-      <el-button type="primary" @click="printCard()" style="margin:0 6px 6px 0;z-index:1;">打印签到卡</el-button>
6
-      <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="$router.push('/patients/patient/'+patientID+'/edit')" style="margin:0 0 6px 0;z-index:1;">修改</el-button>
7
-      <el-button type="primary" @click="printThisInfo()" style="margin:0 6px 6px 0;z-index:1;">打印</el-button>
4
+    <div style="float:right;z-index:8;position: absolute;right: 30px;">
5
+      <el-button size="small" type="primary" @click="printCard()" style="margin:0 6px 6px 0;z-index:1;">打印签到卡</el-button>
6
+      <el-button size="small" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="$router.push('/patients/patient/'+patientID+'/edit')" style="margin:0 0 6px 0;z-index:1;">修改</el-button>
7
+      <el-button size="small" type="primary" @click="printThisInfo()" style="margin:0 6px 6px 0;z-index:1;">打印</el-button>
8 8
     </div>
9 9
       <div class="dataTitle">一般资料</div>
10 10
       <el-row >
@@ -21,7 +21,7 @@
21 21
                   <el-input v-model="form.name" disabled></el-input>
22 22
               </el-form-item>
23 23
             </el-col>
24
-            <el-col :span="8">
24
+            <el-col :span="8" style="height:59px;">
25 25
                 <el-form-item label="性别 : " class="is-required" prop="gender" >
26 26
                   <el-radio-group v-model="form.gender">
27 27
                     <el-radio v-for="item in sexOptions" :key="item.value" :label="item.value" :value="item.value" disabled>{{item.label}}</el-radio>
@@ -54,13 +54,20 @@
54 54
                 <el-input v-model="form.homeTelephone" maxlength="20" disabled></el-input>
55 55
               </el-form-item>
56 56
             </el-col>
57
-            <el-col :span="8">
57
+            <el-col :span="8" style="height:59px;">
58 58
               <el-form-item label="患者来源 : " class="is-required" prop="source" >
59 59
                 <el-radio-group v-model="form.source">
60 60
                   <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" disabled>{{item.label}}</el-radio>
61 61
                 </el-radio-group>
62 62
               </el-form-item>
63 63
             </el-col>
64
+            <el-col :span="8" style="height:59px;"> 
65
+              <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto"  >
66
+                <el-radio-group v-model="form.lapseto">
67
+                  <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" disabled>{{item.label}}</el-radio>
68
+                </el-radio-group>
69
+              </el-form-item>
70
+            </el-col>
64 71
             <el-col :span="8">
65 72
               <el-form-item label="民族 : " prop="nation">
66 73
                 <el-input v-model="form.nation" maxlength="30" disabled></el-input>
@@ -71,7 +78,7 @@
71 78
                 <el-input v-model="form.native_place" maxlength="30" disabled></el-input>
72 79
               </el-form-item>
73 80
             </el-col>
74
-            <el-col :span="24">
81
+            <el-col :span="8">
75 82
               <el-form-item label="家庭住址 : " prop="homeAddress">
76 83
                 <el-input v-model="form.homeAddress" disabled></el-input>
77 84
               </el-form-item>
@@ -96,10 +103,10 @@
96 103
                 </el-form-item>
97 104
             </el-col>
98 105
             <el-col :span="8">
99
-                <el-form-item label="子女情况 : " style="width:80%;float:left;"  prop="children">
106
+                <el-form-item label="子女情况 : " style="width:90%;float:left;"  prop="children">
100 107
                   <el-input maxlength="5" v-model="form.children" disabled></el-input>
101 108
                 </el-form-item>
102
-                <el-form-item label="孩 " style="width:20%;float:left;" label-width="50px">
109
+                <el-form-item label="孩 " style="float:left;" label-width="30px" >
103 110
                 </el-form-item>
104 111
             </el-col>
105 112
             <el-col :span="8">
@@ -143,18 +150,18 @@
143 150
                 </el-select>
144 151
               </el-form-item>
145 152
             </el-col>
146
-            <el-col :span="24">
153
+            <el-col :span="8">
147 154
               <el-form-item label="工作单位 : " prop="work">
148 155
                 <el-input v-model="form.work" disabled></el-input>
149 156
               </el-form-item>
150 157
             </el-col>
151
-            <el-col :span="20" >
158
+            <el-col :span="8" >
152 159
               <el-form-item label="单位地址 : " prop="unit_address">
153 160
                 <el-input v-model="form.unit_address" disabled></el-input>
154 161
               </el-form-item>
155 162
             </el-col>
156 163
             </div>
157
-            <el-col :span="24">
164
+            <el-col :span="8">
158 165
               <el-form-item>
159 166
                 <el-button type="text" @click="generic_info_fold = !generic_info_fold">{{ generic_info_fold ? "更多资料" : "收起" }}<i class="el-icon--right" :class="generic_fold_icon"></i></el-button>
160 167
               </el-form-item>
@@ -228,13 +235,7 @@
228 235
             </el-checkbox-group>
229 236
           </el-form-item>
230 237
         </el-col>
231
-        <el-col :span="24">
232
-          <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
233
-            <el-radio-group v-model="form.lapseto">
234
-              <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" disabled>{{item.label}}</el-radio>
235
-            </el-radio-group>
236
-          </el-form-item>
237
-        </el-col>
238
+       
238 239
         <el-col :span="24">
239 240
           <el-form-item label="诊断 : " prop="diagnose">
240 241
             <!-- <textarea v-model="form.diagnose" class="textarea" disabled></textarea> -->
@@ -1061,6 +1062,7 @@ export default {
1061 1062
     },
1062 1063
 
1063 1064
     qrcode(patientID, name, gender, idCardNo, dialysisNo, phone, healthCareNo) {
1065
+      document.getElementById("qrcode").innerHTML = "";
1064 1066
       new QRCode('qrcode', {
1065 1067
         width: 200,
1066 1068
         height: 200,
@@ -1079,25 +1081,25 @@ export default {
1079 1081
 </script>
1080 1082
 
1081 1083
 <style rel="stylesheet/scss" lang="scss" scoped>
1082
-.dataTitle {
1083
-  color: #409eff;
1084
-  font-size: 16px;
1085
-  border-bottom: 1px #409eff solid;
1086
-  height: 36px;
1087
-  line-height: 30px;
1088
-  margin: 0 0 15px 0;
1089
-  // position: relative;
1090
-  padding: 0 0 6px 15px;
1091
-  &::before {
1092
-    position: absolute;
1093
-    left: 0;
1094
-    bottom: 10px;
1095
-    content: "";
1096
-    width: 2px;
1097
-    height: 20px;
1098
-    background: #409eff;
1099
-  }
1100
-}
1084
+// .dataTitle {
1085
+//   color: #409eff;
1086
+//   font-size: 16px;
1087
+//   border-bottom: 1px #409eff solid;
1088
+//   height: 36px;
1089
+//   line-height: 30px;
1090
+//   margin: 0 0 15px 0;
1091
+//   // position: relative;
1092
+//   padding: 0 0 6px 15px;
1093
+//   &::before {
1094
+//     position: absolute;
1095
+//     left: 0;
1096
+//     bottom: 10px;
1097
+//     content: "";
1098
+//     width: 2px;
1099
+//     height: 20px;
1100
+//     background: #409eff;
1101
+//   }
1102
+// }
1101 1103
 .uploadHead {
1102 1104
   margin-top: 25%;
1103 1105
 }
@@ -1111,7 +1113,7 @@ export default {
1111 1113
     width: 360px;
1112 1114
   }
1113 1115
   .el-form-item {
1114
-    margin-bottom: 17px !important;
1116
+    // margin-bottom: 17px !important;
1115 1117
     .el-select {
1116 1118
       width: 100%;
1117 1119
     }

+ 51 - 38
src/xt_pages/user/components/PatientForm.vue View File

@@ -1,9 +1,10 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+
5 6
     <div class="" style="float:right;">
6
-       <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>       
7
+       <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
7 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>
8 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>
9 10
        <el-button v-if="this.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>
@@ -25,7 +26,7 @@
25 26
                   <el-input v-model="form.idCardNo" @blur="checkIdCardNo" ></el-input>
26 27
               </el-form-item>
27 28
             </el-col>
28
-            
29
+
29 30
             <template v-if="this.isEdit">
30 31
               <!-- <el-col  :span="8" :style="isEdit?'width:360px':''">
31 32
                 <el-form-item label="患者类型 : " class="is-required" >
@@ -36,8 +37,8 @@
36 37
               </el-col> -->
37 38
               <el-col :span="8" :style="isEdit?'width:360px':''">
38 39
                 <el-form-item label="透析号 : " class="is-required">
39
-                    <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input> 
40
-                    <el-button style="width:70px;padding:10px 0;" disabled type="primary">自动生成</el-button>
40
+                    <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input> 
41
+                    <el-button style="width:36%;padding:10px 0;" disabled type="primary">自动生成</el-button>
41 42
                 </el-form-item>
42 43
               </el-col>
43 44
             </template>
@@ -49,25 +50,31 @@
49 50
                   </el-select>
50 51
                 </el-form-item>
51 52
               </el-col> -->
53
+              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;" >
54
+                <el-form-item label="性别 : " class="is-required" prop="gender" >
55
+                  <el-radio-group v-model="form.gender" @change="changeGender">
56
+                    <el-radio v-for="item in sexOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
57
+                  </el-radio-group>
58
+                </el-form-item>
59
+              </el-col>
52 60
               <el-col :span="8" >
53 61
                 <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
54
-                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input> 
62
+<<<<<<< .mine
63
+                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input> 
64
+                    <el-button style="width:36%;padding:10px 0;" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" @click="generatedialysisno">自动生成</el-button>
65
+=======
66
+                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input>
55 67
                     <el-button style="width:70px;padding:10px 0;" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" @click="generatedialysisno">自动生成</el-button>
68
+>>>>>>> .theirs
56 69
                 </el-form-item>
57 70
               </el-col>
58 71
             </template>
59
-            <el-col :span="8" :style="isEdit?'width:360px':''">
60
-                <el-form-item label="性别 : " class="is-required" prop="gender" >
61
-                  <el-radio-group v-model="form.gender" @change="changeGender">
62
-                    <el-radio v-for="item in sexOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
63
-                  </el-radio-group>
64
-                </el-form-item>
65
-            </el-col>
72
+            
66 73
             <el-col :span="8" :style="isEdit?'width:360px':''">
67 74
               <el-form-item label="出生日期 : "  class="is-required" prop="birth" >
68 75
                   <el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'" @change="hadSelectBirth" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
69 76
               </el-form-item>
70
-            </el-col> 
77
+            </el-col>
71 78
             <el-col :span="8" :style="isEdit?'width:360px':''">
72 79
               <el-form-item label="本人电话 : " class="is-required" prop="phone">
73 80
                 <el-input v-model="form.phone" maxlength="20"></el-input>
@@ -78,19 +85,27 @@
78 85
                 <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
79 86
               </el-form-item>
80 87
             </el-col>
81
-            <el-col :span="8" :style="isEdit?'width:360px':''">
88
+            <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;" >
82 89
               <el-form-item label="患者来源 : " class="is-required" prop="source" >
83 90
                 <el-radio-group v-model="form.source">
84 91
                   <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
85 92
                 </el-radio-group>
86 93
               </el-form-item>
87 94
             </el-col>
95
+            <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
96
+              <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
97
+                <el-radio-group v-model="form.lapseto">
98
+                  <!-- <el-radio :disabled="isEdit" v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio> -->
99
+                  <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
100
+                </el-radio-group>
101
+              </el-form-item>
102
+            </el-col>
88 103
             <el-col :span="8" :style="isEdit?'width:360px':''">
89 104
               <el-form-item label="民族 : " prop="nation">
90 105
                 <el-input v-model="form.nation" maxlength="30"></el-input>
91 106
               </el-form-item>
92 107
             </el-col>
93
-            
108
+
94 109
             <el-col :span="8" :style="isEdit?'width:360px':''">
95 110
               <el-form-item label="籍贯 : " prop="native_place">
96 111
                 <el-input v-model="form.native_place" maxlength="30"></el-input>
@@ -111,7 +126,7 @@
111 126
             </el-col>
112 127
             <el-col :span="8" :style="isEdit?'width:360px':''">
113 128
                 <el-form-item label="身高(cm) : "  prop="height">
114
-                  <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>              
129
+                  <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
115 130
                 </el-form-item>
116 131
             </el-col>
117 132
             <el-col :span="8" :style="isEdit?'width:360px':''">
@@ -123,7 +138,7 @@
123 138
             </el-col>
124 139
             <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
125 140
                 <el-form-item label="子女情况 : " style="width:90%;float:left;"  prop="children">
126
-                  <el-input maxlength="5" v-model="form.children" ></el-input>              
141
+                  <el-input maxlength="5" v-model="form.children" ></el-input>
127 142
                 </el-form-item>
128 143
                 <el-form-item label="孩 " style="float:left;" label-width="30px">
129 144
                 </el-form-item>
@@ -142,7 +157,7 @@
142 157
             </el-col>
143 158
             <el-col :span="8" :style="isEdit?'width:360px':''">
144 159
                 <el-form-item label="医保号 : " prop="healthCareNo">
145
-                  <el-input v-model="form.healthCareNo" ></el-input>              
160
+                  <el-input v-model="form.healthCareNo" ></el-input>
146 161
                 </el-form-item>
147 162
             </el-col>
148 163
             <el-col :span="8" :style="isEdit?'width:360px':''">
@@ -205,7 +220,7 @@
205 220
           <el-dialog :visible.sync="dialogVisible">
206 221
             <img width="100%" :src="dialogImageUrl" alt="">
207 222
           </el-dialog>
208
-          <el-upload 
223
+          <el-upload
209 224
           :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
210 225
             :data="uploadData"
211 226
             :multiple="false"
@@ -221,7 +236,7 @@
221 236
           </el-form-item>
222 237
         </el-col>
223 238
       </el-row>
224
-      
239
+
225 240
 
226 241
       <div class="dataTitle">治疗信息</div>
227 242
       <el-row :span="24">
@@ -269,7 +284,7 @@
269 284
           </el-form-item>
270 285
         </el-col>
271 286
         <el-col>
272
-          
287
+
273 288
         </el-col>
274 289
         <el-col :span="24">
275 290
           <el-form-item label="" prop="remark">
@@ -282,7 +297,7 @@
282 297
               <el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id" :value="item.id">{{item.name}}</el-checkbox>
283 298
             </el-checkbox-group>
284 299
           </el-form-item>
285
-        </el-col> 
300
+        </el-col>
286 301
         <el-col :span="24" >
287 302
           <el-form-item label="慢性病 : " prop="diseases">
288 303
             <el-checkbox-group  v-model="form.diseases" >
@@ -290,14 +305,7 @@
290 305
             </el-checkbox-group>
291 306
           </el-form-item>
292 307
         </el-col>
293
-        <el-col :span="24" :style="isEdit?'width:360px':''">
294
-          <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
295
-            <el-radio-group v-model="form.lapseto">
296
-              <!-- <el-radio :disabled="isEdit" v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio> -->
297
-              <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
298
-            </el-radio-group>
299
-          </el-form-item>
300
-        </el-col>
308
+        
301 309
         <el-col :span="24">
302 310
           <el-form-item label="诊断 : " prop="diagnose">
303 311
             <el-input type="textarea" :rows="3" v-model="form.diagnose" resize="none" placeholder=""></el-input>
@@ -328,7 +336,7 @@
328 336
               <el-checkbox v-for="item in predialysisConditionOptions"  :label="item.label" :key="item.value" :value="item.label">{{item.label}}</el-checkbox>
329 337
             </el-checkbox-group>
330 338
           </el-form-item>
331
-        </el-col> 
339
+        </el-col>
332 340
         <el-col :span="6" :style="isEdit?'width:360px':''">
333 341
           <el-form-item label="本院前透析频率 : " prop="pre_hospital_dialysis_frequency">
334 342
             <el-input v-model="form.pre_hospital_dialysis_frequency"></el-input>
@@ -359,14 +367,14 @@
359 367
 
360 368
         <el-col :span="24" align="center">
361 369
           <el-form-item>
362
-            
370
+
363 371
           </el-form-item>
364 372
         </el-col>
365 373
       </el-row>
366
-      
374
+
367 375
     </el-form>
368
-  </div>  
369
-  </div>  
376
+  </div>
377
+  </div>
370 378
 
371 379
 </template>
372 380
 
@@ -459,6 +467,7 @@ const defaultForm = {
459 467
 export default {
460 468
   name: 'patientForm',
461 469
   props: {
470
+
462 471
     isEdit: {
463 472
       type: Boolean,
464 473
       default: false
@@ -485,6 +494,10 @@ export default {
485 494
     }
486 495
 
487 496
     return {
497
+      crumbs: [
498
+        { path: false, name: '病人管理' },
499
+        { path: '/patients/create', name: '新增病人' },
500
+      ],
488 501
       generic_info_fold: true,
489 502
       treat_info_fold: true,
490 503
 
@@ -987,7 +1000,7 @@ export default {
987 1000
 <style rel="stylesheet/scss" lang="scss" scoped>
988 1001
 
989 1002
 .uploadHead {
990
-  margin-top: 25%;
1003
+  // margin-top: 25%;
991 1004
 }
992 1005
 .uploadHeadBtn {
993 1006
   width: 148px;
@@ -995,7 +1008,7 @@ export default {
995 1008
 }
996 1009
 .el-form{
997 1010
     .el-col-6,.el-col-8{
998
-    // width: 430px;
1011
+    width: 430px;
999 1012
     }
1000 1013
   .el-form-item {
1001 1014
     // margin-bottom: 17px !important;

+ 1 - 1
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -202,7 +202,7 @@
202 202
     float: left;
203 203
     bottom: 0;
204 204
     left: 0;
205
-    z-index: 1001;
205
+    /* z-index: 99; */
206 206
     overflow: hidden;
207 207
   }
208 208
 

File diff suppressed because it is too large
+ 2009 - 1766
src/xt_pages/user/doctorAdvice.vue


+ 1 - 1
src/xt_pages/user/patient.vue View File

@@ -11,7 +11,7 @@
11 11
       <input type="text" class="searchBox" placeholder="姓名/首拼/透析号" v-model="searchVal">
12 12
       <button class="searchBtn">搜 索</button>
13 13
     </div> -->
14
-    <div class="cell">
14
+    <div class="cell clearfix">
15 15
 	    <label class="title"><span class="name">日期查询</span> : </label>
16 16
        <el-date-picker v-model="listQuery.start_time"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" :picker-options="pickerOptions1"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
17 17
        <span class="">-</span>

+ 12 - 40
src/xt_pages/user/patients.vue View File

@@ -1,21 +1,21 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb></bread-crumb>
4
+    <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" @click="$router.push({path:'/patients/create'})" class="filter-item" style="float:right;" type="primary" icon="el-icon-circle-plus-outline" size="small">新增</el-button>
6 6
   </div>
7 7
   <div class="app-container">
8
-    <div class="cell">
8
+    <div class="cell clearfix">
9 9
       <label class="title"><span class="name">病人搜索</span> : </label>
10 10
       <el-input   style="width: 400px;" v-model="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
11 11
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" size="small" >搜索</el-button>
12 12
     </div>
13
-   
14
-    <div class="cell">
13
+
14
+    <div class="cell clearfix">
15 15
       <label class="title"><span class="name">日期查询</span> : </label>
16
-      <el-date-picker v-model="listQuery.start_time" size="small"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" :picker-options="pickerOptions1"  format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
16
+      <el-date-picker clearable v-model="listQuery.start_time" size="small"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"   format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
17 17
       <span class="">-</span>
18
-      <el-date-picker v-model="listQuery.end_time" size="small"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" :picker-options="pickerOptions1"  format="yyyy-MM-dd" value-format="yyyy-MM-dd"> </el-date-picker>
18
+      <el-date-picker clearable v-model="listQuery.end_time" size="small"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"   format="yyyy-MM-dd" value-format="yyyy-MM-dd"> </el-date-picker>
19 19
     </div>
20 20
     <div class="cell clearfix">
21 21
       <label class="title"><span class="name">排班班次</span> : </label>
@@ -142,10 +142,10 @@
142 142
           <el-tooltip class="item" effect="dark" content="转归" placement="top">
143 143
             <el-button type="primary" icon="el-icon-edit" size="small" @click="OpenSetLapseto(scope.row, scope.$index)"></el-button>
144 144
           </el-tooltip>
145
-          <el-tooltip class="item" effect="dark" content="预览" placement="top">          
145
+          <el-tooltip class="item" effect="dark" content="预览" placement="top">
146 146
             <el-button type="danger" icon="el-icon-tickets" size="small" @click="OpenView(scope.row.name,scope.row.dialysis_no,scope.row.id)"></el-button>
147 147
           </el-tooltip>
148
-          
148
+
149 149
         </template>
150 150
       </el-table-column>
151 151
     </el-table>
@@ -259,6 +259,10 @@
259 259
     },
260 260
     data() {
261 261
       return {
262
+        crumbs: [
263
+          { path: false, name: '病人管理' },
264
+          { path: '/patients/patients', name: '病人管理' },
265
+        ],
262 266
         lapsetoRules: {
263 267
           lapseto_type: [
264 268
             { required: true, message: '请选择治疗状态' }
@@ -331,38 +335,6 @@
331 335
           }
332 336
         ],
333 337
         tableData: null,
334
-        pickerOptions1: {
335
-          shortcuts: [
336
-            {
337
-              text: '今天',
338
-              onClick(picker) {
339
-                picker.$emit('pick', new Date())
340
-              }
341
-            },
342
-            {
343
-              text: '昨天',
344
-              onClick(picker) {
345
-                const date = new Date()
346
-                date.setTime(date.getTime() - 3600 * 1000 * 24)
347
-                picker.$emit('pick', date)
348
-              }
349
-            },
350
-            {
351
-              text: '一周前',
352
-              onClick(picker) {
353
-                const date = new Date()
354
-                date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
355
-                picker.$emit('pick', date)
356
-              }
357
-            },
358
-            {
359
-              text: '清空',
360
-              onClick(picker) {
361
-                picker.$emit('pick')
362
-              }
363
-            }
364
-          ]
365
-        },
366 338
         searchKey: '',
367 339
         // value2: '',
368 340
         total: 0,

+ 1 - 1
src/xt_pages/user/proeducation.vue View File

@@ -2,7 +2,7 @@
2 2
     <div class="patient-container">
3 3
         <patient-sidebar :id="patientID" defaultActive="2-5" v-on:tran-patient="onTranPatient"></patient-sidebar>
4 4
         <div class="patient-app-container advice-container app-container">
5
-            <div class="cell">
5
+            <div class="cell clearfix">
6 6
                 <label class="title"><span class="name">日期查询</span> : </label>
7 7
                 <el-date-picker v-model="listQuery.start_time"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
8 8
                 <span class="">-</span>

+ 8 - 4
src/xt_pages/workforce/appointment.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
  <div class="main-contain">
3 3
   <div class="position">
4
-      <bread-crumb></bread-crumb>
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
       <el-col :span="5" style="text-align: right;">
6 6
         <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印</el-button>
7 7
         <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板</el-button>
@@ -26,10 +26,10 @@
26 26
         </el-tabs>
27 27
       <!-- </el-col>
28 28
     </el-row> -->
29
-    
29
+
30 30
     <table-data :week-time="activeName" :partitions-prop="partitions" :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone" title=""></table-data>
31
-  </div>   
32
- </div>   
31
+  </div>
32
+ </div>
33 33
 </template>
34 34
 
35 35
 <script>
@@ -41,6 +41,10 @@ export default {
41 41
   name: "appointment",
42 42
   data() {
43 43
     return {
44
+      crumbs: [
45
+        { path: false, name: '排班管理' },
46
+        { path: '/workforce/appointment', name: '排班管理' },
47
+      ],
44 48
       activeName: "thisWeek",
45 49
       tabPosition: "top",
46 50
       partitions: {},

+ 11 - 10
src/xt_pages/workforce/remind.vue View File

@@ -1,12 +1,7 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-      <el-breadcrumb separator="/" style="float:left;">
5
-        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
6
-        <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
7
-        <el-breadcrumb-item>活动列表</el-breadcrumb-item>
8
-        <el-breadcrumb-item>活动详情</el-breadcrumb-item>
9
-      </el-breadcrumb>
4
+     <bread-crumb :crumbs="crumbs"></bread-crumb>
10 5
   </div>
11 6
   <div class="app-container">
12 7
     <el-tabs v-model="activeName">
@@ -14,11 +9,11 @@
14 9
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
15 10
         </el-tab-pane>
16 11
         <el-tab-pane name="nextWeek">
17
-            <span slot="label"><i class="el-icon-date"></i> 下周({{theWeek.nextWeek}})</span>            
12
+            <span slot="label"><i class="el-icon-date"></i> 下周({{theWeek.nextWeek}})</span>
18 13
         </el-tab-pane>
19 14
     </el-tabs>
20 15
     <table-push v-if="activeName=='pushTime'"></table-push>
21
-    <table-weeks v-else :week-time="activeName"> </table-weeks>    
16
+    <table-weeks v-else :week-time="activeName"> </table-weeks>
22 17
   </div>
23 18
 </div>
24 19
 </template>
@@ -27,20 +22,26 @@
27 22
 import {getWeekPanels} from '@/api/schedule';
28 23
 import tableWeeks from './components/tableWeeks'
29 24
 import tablePush from './components/tablePush'
25
+import BreadCrumb from '../components/bread-crumb'
30 26
 export default {
31 27
     name:'remind',
32 28
      data() {
33
-      return {   
29
+      return {
30
+        crumbs: [
31
+          { path: false, name: '排班管理' },
32
+          { path: '/workforce/remind', name: '排班提醒' },
33
+        ],
34 34
         activeName: 'thisWeek',
35 35
         theWeek:{thisWeek:0,nextWeek:0,}
36 36
       };
37 37
     },
38 38
     components:{
39
+      BreadCrumb,
39 40
         tableWeeks,
40 41
         tablePush
41 42
     },
42 43
     methods: {
43
-        
44
+
44 45
       getWeekPanels(){
45 46
         getWeekPanels(0).then(response=>{
46 47
           if (response.data.state==0) {