Browse Source

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

zhengchengwu 6 years ago
parent
commit
cd9a39dca7

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

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

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

385
           float: left;
385
           float: left;
386
           list-style: none;
386
           list-style: none;
387
           cursor: pointer;
387
           cursor: pointer;
388
-          padding: 6px 0;
388
+          padding: 6px 20px;
389
           color: #606266;
389
           color: #606266;
390
           border-radius: 4px;
390
           border-radius: 4px;
391
           margin: 0 8px 0 0;
391
           margin: 0 8px 0 0;
392
           font-size: 14px;
392
           font-size: 14px;
393
-          width: 70px;
393
+          // width: 70px;
394
           text-align: center;
394
           text-align: center;
395
           &:hover {
395
           &:hover {
396
             background: #f5f7fa;
396
             background: #f5f7fa;
454
   margin-top: 0 !important; 
454
   margin-top: 0 !important; 
455
 }
455
 }
456
 
456
 
457
+.el-dialog__wrapper{
458
+  // z-index: 9999!important;
459
+}
457
 .el-message{
460
 .el-message{
458
   z-index: 2004!important;
461
   z-index: 2004!important;
459
-}
462
+}
463
+.el-select-dropdown{
464
+  // z-index: 2003!important;
465
+}
466
+

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

8
           <el-button round @click="deleteRecordAction">删除监测</el-button>
8
           <el-button round @click="deleteRecordAction">删除监测</el-button>
9
 
9
 
10
         </div>
10
         </div>
11
-        <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" ref="table" :data="monitors" border highlight-current-row max-height="300"
11
+        <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" ref="table" :data="monitors" border highlight-current-row 
12
                   @current-change="tableCurrentRowChange" style="width: 100%" :class="current_row_class">
12
                   @current-change="tableCurrentRowChange" style="width: 100%" :class="current_row_class">
13
           <el-table-column label="时间" align="center" width="144">
13
           <el-table-column label="时间" align="center" width="144">
14
             <template slot-scope="scope">
14
             <template slot-scope="scope">
241
           </el-row>
241
           </el-row>
242
         </el-form>
242
         </el-form>
243
 
243
 
244
-        <el-row>
245
-          <el-col :span="24">
246
-            <div style="text-align: right;">
244
+        <div slot="footer" class="dialog-footer">
247
               <el-button @click="cancelEditAction">取 消</el-button>
245
               <el-button @click="cancelEditAction">取 消</el-button>
248
               <el-button type="primary" @click="submitAction">保 存</el-button>
246
               <el-button type="primary" @click="submitAction">保 存</el-button>
249
-            </div>
250
-          </el-col>
251
-        </el-row>
247
+        </div>
252
       </div>
248
       </div>
253
     </el-dialog>
249
     </el-dialog>
254
   </div>
250
   </div>

+ 4 - 4
src/xt_pages/dialysis/schedualPatient.vue View File

5
   </div>
5
   </div>
6
   <div class="app-container">
6
   <div class="app-container">
7
     <div class="cell clearfix">
7
     <div class="cell clearfix">
8
-      <label class="title"><span class="name">病人查询</span> : </label>
8
+      <!-- <label class="title"><span class="name">病人查询</span> : </label> -->
9
       <el-input size="small" style="width: 280px;" v-model="search_input" class="filter-item"/>
9
       <el-input size="small" style="width: 280px;" v-model="search_input" class="filter-item"/>
10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
11
     </div>
11
     </div>
67
         selected_date: new Date(), // this.$store.getters.app.dialysis_area.schedule_date,
67
         selected_date: new Date(), // this.$store.getters.app.dialysis_area.schedule_date,
68
         schedule_type_selected: 0, // this.$store.getters.app.dialysis_area.schedule_type_select_index,
68
         schedule_type_selected: 0, // this.$store.getters.app.dialysis_area.schedule_type_select_index,
69
         schedule_type_options: [
69
         schedule_type_options: [
70
-          { value: 0, text: '全部' },
70
+          { value: 0, text: '全部' },
71
           { value: 1, text: '上午' },
71
           { value: 1, text: '上午' },
72
           { value: 2, text: '下午' },
72
           { value: 2, text: '下午' },
73
           { value: 3, text: '晚上' }
73
           { value: 3, text: '晚上' }
74
         ],
74
         ],
75
         zone_selected: 0, // this.$store.getters.app.dialysis_area.zone_select_index,
75
         zone_selected: 0, // this.$store.getters.app.dialysis_area.zone_select_index,
76
         zone_options: [
76
         zone_options: [
77
-          { id: 0, text: '全部分区' }
77
+          { id: 0, text: '全部' }
78
         ],
78
         ],
79
         zone_schedules: [],
79
         zone_schedules: [],
80
 
80
 
229
           if (resp.state == 1) {
229
           if (resp.state == 1) {
230
             var zones = resp.data.zones
230
             var zones = resp.data.zones
231
             var schedules = resp.data.schedules
231
             var schedules = resp.data.schedules
232
-            var zone_options = [{ id: 0, text: '全部分区' }]
232
+            var zone_options = [{ id: 0, text: '全部' }]
233
             for (let z_i = 0; z_i < zones.length; z_i++) {
233
             for (let z_i = 0; z_i < zones.length; z_i++) {
234
               const zone = zones[z_i]
234
               const zone = zones[z_i]
235
               zone_options.push({ id: zone.id, text: zone.name })
235
               zone_options.push({ id: zone.id, text: zone.name })

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

11
     <div class="app-container">
11
     <div class="app-container">
12
 
12
 
13
 
13
 
14
-      <div class="cell clearfix" style="margin-top:20px">
14
+      <div class="cell clearfix" >
15
         <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15
         <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
16
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17
       </div>
17
       </div>
37
         <el-table
37
         <el-table
38
           :data="cancelStockDate"
38
           :data="cancelStockDate"
39
           :class="signAndWeighBoxPatients"
39
           :class="signAndWeighBoxPatients"
40
-          style="width: 100%" border
40
+          border
41
           highlight-current-row
41
           highlight-current-row
42
           ref="multipleTable"
42
           ref="multipleTable"
43
           @selection-change="select"
43
           @selection-change="select"
87
                 <el-button
87
                 <el-button
88
                   size="mini"
88
                   size="mini"
89
                   type="primary"
89
                   type="primary"
90
-                  icon="el-icon-edit"
90
+                  icon="el-icon-edit-outline"
91
                   @click="handleEdit(scope.$index, scope.row)">
91
                   @click="handleEdit(scope.$index, scope.row)">
92
                 </el-button>
92
                 </el-button>
93
               </el-tooltip>
93
               </el-tooltip>

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

111
                   <el-button
111
                   <el-button
112
                     size="mini"
112
                     size="mini"
113
                     type="danger"
113
                     type="danger"
114
-                    icon="el-icon-remove-outline"
114
+                    icon="el-icon-delete"
115
                     @click="handleDelete(scope.$index, scope.row)">
115
                     @click="handleDelete(scope.$index, scope.row)">
116
                   </el-button>
116
                   </el-button>
117
                 </el-tooltip>
117
                 </el-tooltip>

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

85
                 <el-button
85
                 <el-button
86
                   size="mini"
86
                   size="mini"
87
                   type="danger"
87
                   type="danger"
88
-                  icon="el-icon-remove-outline"
88
+                  icon="el-icon-delete"
89
                   @click="handleDelete(scope.$index, scope.row)">
89
                   @click="handleDelete(scope.$index, scope.row)">
90
                 </el-button>
90
                 </el-button>
91
               </el-tooltip>
91
               </el-tooltip>

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

10
 
10
 
11
     <div class="app-container">
11
     <div class="app-container">
12
 
12
 
13
-      <div class="cell clearfix" style="margin-top:20px">
13
+      <div class="cell clearfix">
14
         <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
14
         <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16
       </div>
16
       </div>
86
                 <el-button
86
                 <el-button
87
                   size="mini"
87
                   size="mini"
88
                   type="primary"
88
                   type="primary"
89
-                  icon="el-icon-edit"
89
+                  icon="el-icon-edit-outline"
90
                   @click="handleEdit(scope.$index, scope.row)">
90
                   @click="handleEdit(scope.$index, scope.row)">
91
                 </el-button>
91
                 </el-button>
92
               </el-tooltip>
92
               </el-tooltip>

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

10
 
10
 
11
     <div class="app-container">
11
     <div class="app-container">
12
 
12
 
13
-      <div class="cell">
13
+      <div class="cell clearfix">
14
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
14
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16
       </div>
16
       </div>
87
               <el-button
87
               <el-button
88
                 size="mini"
88
                 size="mini"
89
                 type="primary"
89
                 type="primary"
90
-                icon="el-icon-edit"
90
+                icon="el-icon-edit-outline"
91
                 @click="handleEdit(scope.$index, scope.row)">
91
                 @click="handleEdit(scope.$index, scope.row)">
92
               </el-button>
92
               </el-button>
93
               </el-tooltip>
93
               </el-tooltip>

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

86
               <el-button
86
               <el-button
87
                 size="small"
87
                 size="small"
88
                 type="primary"
88
                 type="primary"
89
-                icon="el-icon-edit"
89
+                icon="el-icon-edit-outline"
90
                 @click="handleEdit(scope.$index, scope.row)">
90
                 @click="handleEdit(scope.$index, scope.row)">
91
               </el-button>
91
               </el-button>
92
             </el-tooltip>
92
             </el-tooltip>

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

82
               <el-button
82
               <el-button
83
                 size="mini"
83
                 size="mini"
84
                 type="primary"
84
                 type="primary"
85
-                icon="el-icon-edit"
85
+                icon="el-icon-edit-outline"
86
                 @click="handleEdit(scope.$index, scope.row)">
86
                 @click="handleEdit(scope.$index, scope.row)">
87
               </el-button>
87
               </el-button>
88
             </el-tooltip>
88
             </el-tooltip>

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

87
                   <el-button
87
                   <el-button
88
                     size="mini"
88
                     size="mini"
89
                     type="danger"
89
                     type="danger"
90
-                    icon="el-icon-remove-outline"
90
+                    icon="el-icon-delete"
91
                     @click="handleDelete(scope.$index, scope.row)">
91
                     @click="handleDelete(scope.$index, scope.row)">
92
                   </el-button>
92
                   </el-button>
93
                 </el-tooltip>
93
                 </el-tooltip>

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

10
 
10
 
11
     <div class="app-container">
11
     <div class="app-container">
12
 
12
 
13
-      <div class="cell" >
13
+      <div class="cell clearfix" >
14
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
14
         <el-input style="width: 400px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
15
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
16
       </div>
16
       </div>
85
               <el-button
85
               <el-button
86
                 size="mini"
86
                 size="mini"
87
                 type="primary"
87
                 type="primary"
88
-                icon="el-icon-edit"
88
+                icon="el-icon-edit-outline"
89
                 @click="handleEdit(scope.$index, scope.row)">
89
                 @click="handleEdit(scope.$index, scope.row)">
90
               </el-button>
90
               </el-button>
91
               </el-tooltip>
91
               </el-tooltip>

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

116
                 <el-button
116
                 <el-button
117
                   size="mini"
117
                   size="mini"
118
                   type="danger"
118
                   type="danger"
119
-                  icon="el-icon-remove-outline"
119
+                  icon="el-icon-delete"
120
                   @click="handleDelete(scope.$index, scope.row)">
120
                   @click="handleDelete(scope.$index, scope.row)">
121
                 </el-button>
121
                 </el-button>
122
               </el-tooltip>
122
               </el-tooltip>

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

8
     </div>
8
     </div>
9
 
9
 
10
     <div class="app-container">
10
     <div class="app-container">
11
-    <div class="cell">
11
+    <div class="cell clearfix">
12
       <el-input   style="width: 400px;" v-model="searchKey" class="filter-item"  placeholder="单据日期/单据编码/制单人/供应商" />
12
       <el-input   style="width: 400px;" v-model="searchKey" class="filter-item"  placeholder="单据日期/单据编码/制单人/供应商" />
13
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" >搜索</el-button>
13
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" >搜索</el-button>
14
     </div>
14
     </div>

+ 23 - 17
src/xt_pages/stock/stockInOrderAdd.vue View File

47
 
47
 
48
 
48
 
49
             <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
49
             <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
50
-              <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
50
+              <el-table   id="oictable" :data="recordInfo.recordData" :class="signAndWeighBoxPatients" border style="width: 100%"
51
                         max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
51
                         max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
52
               >
52
               >
53
 
53
 
54
-                <el-table-column min-width="35" align="center">
54
+                <el-table-column  align="center" width="200">
55
 
55
 
56
                   <template slot="header" slot-scope="scope">
56
                   <template slot="header" slot-scope="scope">
57
                     <span>物品类型<span style="color: red">*</span></span>
57
                     <span>物品类型<span style="color: red">*</span></span>
65
                     </el-form-item>
65
                     </el-form-item>
66
                   </template>
66
                   </template>
67
                 </el-table-column>
67
                 </el-table-column>
68
-                <el-table-column min-width="35" align="center">
68
+                <el-table-column align="center" width="200">
69
                   <template slot="header" slot-scope="scope">
69
                   <template slot="header" slot-scope="scope">
70
                     <span>规格名称<span style="color: red">*</span></span>
70
                     <span>规格名称<span style="color: red">*</span></span>
71
                   </template>
71
                   </template>
81
                 </el-table-column>
81
                 </el-table-column>
82
 
82
 
83
 
83
 
84
-                <el-table-column min-width="23" align="center">
84
+                <el-table-column  align="center" width="150">
85
                   <template slot="header" slot-scope="scope">
85
                   <template slot="header" slot-scope="scope">
86
                     <span>单价<span style="color: red">*</span></span>
86
                     <span>单价<span style="color: red">*</span></span>
87
                   </template>
87
                   </template>
89
                     <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
89
                     <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
90
                     <el-form-item :prop="'recordData.' + scope.$index + '.price'" :rules='tableRules.price'
90
                     <el-form-item :prop="'recordData.' + scope.$index + '.price'" :rules='tableRules.price'
91
                                   style="padding-top: 17px">
91
                                   style="padding-top: 17px">
92
-                      <el-input type="number" v-model="scope.row.price"></el-input>
92
+                      <el-input placeholder="请输入单价"  type="number" v-model="scope.row.price"></el-input>
93
                     </el-form-item>
93
                     </el-form-item>
94
 
94
 
95
 
95
 
96
                   </template>
96
                   </template>
97
                 </el-table-column>
97
                 </el-table-column>
98
 
98
 
99
-                <el-table-column min-width="23" align="center">
99
+                <el-table-column  align="center"  width="180">
100
                   <template slot="header" slot-scope="scope">
100
                   <template slot="header" slot-scope="scope">
101
                     <span>入库数量<span style="color: red">*</span></span>
101
                     <span>入库数量<span style="color: red">*</span></span>
102
                   </template>
102
                   </template>
106
 
106
 
107
                     <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
107
                     <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
108
                                   :rules='tableRules.warehousing_count' style="padding-top: 17px">
108
                                   :rules='tableRules.warehousing_count' style="padding-top: 17px">
109
-                      <el-input type="number" v-model="scope.row.warehousing_count"></el-input>
109
+                      <el-input placeholder="请输入入库数量"  type="number" v-model="scope.row.warehousing_count"></el-input>
110
                     </el-form-item>
110
                     </el-form-item>
111
                   </template>
111
                   </template>
112
                 </el-table-column>
112
                 </el-table-column>
113
 
113
 
114
-                <el-table-column label="总价" min-width="20" align="center">
114
+                <el-table-column label="总价" align="center" width="150">
115
                   <template slot-scope="scope">
115
                   <template slot-scope="scope">
116
                     {{calculate(scope.row.price*scope.row.warehousing_count)}}
116
                     {{calculate(scope.row.price*scope.row.warehousing_count)}}
117
                   </template>
117
                   </template>
118
                 </el-table-column>
118
                 </el-table-column>
119
 
119
 
120
-                <el-table-column align="center" min-width="25">
120
+                <el-table-column align="center"  width="150">
121
                   <template slot="header" slot-scope="scope">
121
                   <template slot="header" slot-scope="scope">
122
                     <span>批号<span style="color: red">*</span></span>
122
                     <span>批号<span style="color: red">*</span></span>
123
                   </template>
123
                   </template>
126
 
126
 
127
                     <el-form-item :prop="'recordData.' + scope.$index + '.number'" :rules='tableRules.number'
127
                     <el-form-item :prop="'recordData.' + scope.$index + '.number'" :rules='tableRules.number'
128
                                   style="padding-top: 17px">
128
                                   style="padding-top: 17px">
129
-                      <el-input v-model="scope.row.number"></el-input>
129
+                      <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
130
                     </el-form-item>
130
                     </el-form-item>
131
 
131
 
132
                   </template>
132
                   </template>
133
                 </el-table-column>
133
                 </el-table-column>
134
-                <el-table-column label="生产日期" min-width="43" align="center">
134
+                <el-table-column label="生产日期"  align="center" width="250">
135
                   <template slot-scope="scope">
135
                   <template slot-scope="scope">
136
                     <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
136
                     <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
137
                     <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.product_date"
137
                     <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.product_date"
140
 
140
 
141
                   </template>
141
                   </template>
142
                 </el-table-column>
142
                 </el-table-column>
143
-                <el-table-column label="有效日期" min-width="43" align="center">
143
+                <el-table-column label="有效日期"  align="center" width="250">
144
                   <template slot-scope="scope">
144
                   <template slot-scope="scope">
145
                     <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
145
                     <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
146
                     <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
146
                     <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
149
 
149
 
150
                   </template>
150
                   </template>
151
                 </el-table-column>
151
                 </el-table-column>
152
-                <el-table-column label="备注" min-width="20" align="center">
152
+                <el-table-column label="备注"  align="center" width="150">
153
                   <template slot-scope="scope">
153
                   <template slot-scope="scope">
154
-                    <el-input v-model="scope.row.remark"></el-input>
154
+                    <el-input placeholder="请输入备注"   v-model="scope.row.remark"></el-input>
155
                   </template>
155
                   </template>
156
                 </el-table-column>
156
                 </el-table-column>
157
 
157
 
158
-                <el-table-column label="操作" align="center" min-width="40">
159
-                  <template slot-scope="scope">
158
+                <el-table-column label="操作" align="center" fixed="right"  width="150">
159
+                  <template slot-scope="scope" >
160
                     <el-tooltip class="item" effect="dark" content="新增" placement="top">
160
                     <el-tooltip class="item" effect="dark" content="新增" placement="top">
161
 
161
 
162
                     <el-button
162
                     <el-button
171
                     <el-button
171
                     <el-button
172
                       size="mini"
172
                       size="mini"
173
                       type="danger"
173
                       type="danger"
174
-                      icon="el-icon-remove-outline"
174
+                      icon="el-icon-delete"
175
                       @click="handleDelete(scope.$index, scope.row)">
175
                       @click="handleDelete(scope.$index, scope.row)">
176
                     </el-button>
176
                     </el-button>
177
                     </el-tooltip>
177
                     </el-tooltip>
601
   }
601
   }
602
 </script>
602
 </script>
603
 
603
 
604
+<style>
605
+  #oictable ::-webkit-scrollbar {
606
+    height: 15px;
607
+  }
608
+</style>
609
+
604
 <style rel="stylesheet/css" lang="scss" scoped>
610
 <style rel="stylesheet/css" lang="scss" scoped>
605
   .information {
611
   .information {
606
     border: 1px #dcdfe6 solid;
612
     border: 1px #dcdfe6 solid;

+ 37 - 32
src/xt_pages/stock/stockInOrderEdit.vue View File

24
 
24
 
25
 
25
 
26
         <el-form  :rules="tableRules" :model="recordInfo" ref="tableForm">
26
         <el-form  :rules="tableRules" :model="recordInfo" ref="tableForm">
27
-          <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
27
+          <el-table id="oictable" :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
28
                     max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
28
                     max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
29
           >
29
           >
30
 
30
 
31
-            <el-table-column min-width="35" align="center">
31
+            <el-table-column  align="center" width="200" >
32
 
32
 
33
               <template slot="header" slot-scope="scope">
33
               <template slot="header" slot-scope="scope">
34
                 <span>物品类型<span style="color: red">*</span></span>
34
                 <span>物品类型<span style="color: red">*</span></span>
35
               </template>
35
               </template>
36
 
36
 
37
-              <template slot-scope="scope" >
38
-                <!--<span @click="showDialog(scope.$index, scope.row)" v-if="scope.row.good_type_id == 0" style="color:#c5c8cf">请输入类型</span>-->
39
-                <!--<span @click="showDialog(scope.$index, scope.row)" v-if="scope.row.good_type_id != 0">{{typeName(scope.row.good_type_id)}}</span>-->
40
-
41
-                <el-form-item  style="padding-top: 15px">
42
-                  <el-input placeholder="请输入物品类型"  v-model="scope.row.good_type_id" :value="typeName(scope.row.good_type_id)" @focus="showDialog(scope.$index, scope.row)" ></el-input>
37
+              <template slot-scope="scope">
38
+                <el-form-item style="padding-top: 15px">
39
+                  <el-input placeholder="请输入物品类型" v-model="scope.row.good_type_id"
40
+                            :value="typeName(scope.row.good_type_id)"
41
+                            @focus="showDialog(scope.$index, scope.row)"></el-input>
43
                 </el-form-item>
42
                 </el-form-item>
44
-
45
               </template>
43
               </template>
46
             </el-table-column>
44
             </el-table-column>
47
-            <el-table-column min-width="35" align="center">
45
+            <el-table-column align="center" width="200">
48
               <template slot="header" slot-scope="scope">
46
               <template slot="header" slot-scope="scope">
49
                 <span>规格名称<span style="color: red">*</span></span>
47
                 <span>规格名称<span style="color: red">*</span></span>
50
               </template>
48
               </template>
51
               <template slot-scope="scope">
49
               <template slot-scope="scope">
52
 
50
 
53
-                <el-form-item  style="padding-top: 15px">
54
-                  <el-input placeholder="请输入规格名称"  v-model="scope.row.good_id" :value="specificationName(scope.row.good_id)" @focus="showDialog(scope.$index, scope.row)" ></el-input>
51
+                <el-form-item style="padding-top: 15px">
52
+                  <el-input placeholder="请输入规格名称" v-model="scope.row.good_id"
53
+                            :value="specificationName(scope.row.good_id)"
54
+                            @focus="showDialog(scope.$index, scope.row)"></el-input>
55
                 </el-form-item>
55
                 </el-form-item>
56
 
56
 
57
               </template>
57
               </template>
58
             </el-table-column>
58
             </el-table-column>
59
 
59
 
60
 
60
 
61
-            <el-table-column  min-width="23" align="center">
61
+
62
+            <el-table-column  align="center" width="150">
62
               <template slot="header" slot-scope="scope">
63
               <template slot="header" slot-scope="scope">
63
                 <span>单价<span style="color: red">*</span></span>
64
                 <span>单价<span style="color: red">*</span></span>
64
               </template>
65
               </template>
65
               <template slot-scope="scope">
66
               <template slot-scope="scope">
66
                 <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
67
                 <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
67
-                <el-form-item :prop="'recordData.' + scope.$index + '.price'" :rules='tableRules.price' style="padding-top: 17px">
68
-                  <el-input type="number"  v-model="scope.row.price" ></el-input>
68
+                <el-form-item :prop="'recordData.' + scope.$index + '.price'" :rules='tableRules.price'
69
+                              style="padding-top: 17px">
70
+                  <el-input placeholder="请输入单价"  type="number" v-model="scope.row.price"></el-input>
69
                 </el-form-item>
71
                 </el-form-item>
70
 
72
 
71
 
73
 
72
-
73
-
74
               </template>
74
               </template>
75
             </el-table-column>
75
             </el-table-column>
76
 
76
 
77
-            <el-table-column  min-width="23" align="center">
77
+            <el-table-column  align="center"  width="180">
78
               <template slot="header" slot-scope="scope">
78
               <template slot="header" slot-scope="scope">
79
                 <span>入库数量<span style="color: red">*</span></span>
79
                 <span>入库数量<span style="color: red">*</span></span>
80
               </template>
80
               </template>
82
                 <!--{{scope.row.warehousing_count}}-->
82
                 <!--{{scope.row.warehousing_count}}-->
83
                 <!--<el-input type="number" v-model="scope.row.warehousing_count"   @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
83
                 <!--<el-input type="number" v-model="scope.row.warehousing_count"   @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
84
 
84
 
85
-                <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'" :rules='tableRules.warehousing_count' style="padding-top: 17px">
86
-                  <el-input type="number"  v-model="scope.row.warehousing_count" ></el-input>
85
+                <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
86
+                              :rules='tableRules.warehousing_count' style="padding-top: 17px">
87
+                  <el-input placeholder="请输入入库数量"  type="number" v-model="scope.row.warehousing_count"></el-input>
87
                 </el-form-item>
88
                 </el-form-item>
88
               </template>
89
               </template>
89
             </el-table-column>
90
             </el-table-column>
90
-
91
-            <el-table-column label="总价" min-width="20" align="center">
91
+            <el-table-column label="总价" align="center" width="150">
92
               <template slot-scope="scope">
92
               <template slot-scope="scope">
93
                 {{calculate(scope.row.price*scope.row.warehousing_count)}}
93
                 {{calculate(scope.row.price*scope.row.warehousing_count)}}
94
               </template>
94
               </template>
95
             </el-table-column>
95
             </el-table-column>
96
 
96
 
97
-            <el-table-column  align="center" min-width="25">
97
+            <el-table-column align="center"  width="150">
98
               <template slot="header" slot-scope="scope">
98
               <template slot="header" slot-scope="scope">
99
                 <span>批号<span style="color: red">*</span></span>
99
                 <span>批号<span style="color: red">*</span></span>
100
               </template>
100
               </template>
101
               <template slot-scope="scope">
101
               <template slot-scope="scope">
102
                 <!--<el-input  v-model="scope.row.numbers"></el-input>-->
102
                 <!--<el-input  v-model="scope.row.numbers"></el-input>-->
103
-
104
-                <el-form-item :prop="'recordData.' + scope.$index + '.number'" :rules='tableRules.number' style="padding-top: 17px">
105
-                  <el-input  v-model="scope.row.number" ></el-input>
103
+                <el-form-item :prop="'recordData.' + scope.$index + '.number'" :rules='tableRules.number'
104
+                              style="padding-top: 17px">
105
+                  <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
106
                 </el-form-item>
106
                 </el-form-item>
107
-
108
               </template>
107
               </template>
109
             </el-table-column>
108
             </el-table-column>
110
-            <el-table-column label="生产日期" min-width="40" align="center">
109
+
110
+            <el-table-column label="生产日期" width="250" align="center">
111
               <template slot-scope="scope" >
111
               <template slot-scope="scope" >
112
                 <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
112
                 <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
113
                 <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.product_date"
113
                 <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.product_date"
116
 
116
 
117
               </template>
117
               </template>
118
             </el-table-column>
118
             </el-table-column>
119
-            <el-table-column label="有效日期" min-width="40" align="center">
119
+            <el-table-column label="有效日期" width="250" align="center">
120
               <template slot-scope="scope">
120
               <template slot-scope="scope">
121
                 <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
121
                 <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
122
                 <el-date-picker  prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
122
                 <el-date-picker  prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
125
 
125
 
126
               </template>
126
               </template>
127
             </el-table-column>
127
             </el-table-column>
128
-            <el-table-column label="备注" min-width="20" align="center">
128
+            <el-table-column label="备注" width="150" align="center">
129
               <template slot-scope="scope">
129
               <template slot-scope="scope">
130
                 <el-input  v-model="scope.row.remark"></el-input>
130
                 <el-input  v-model="scope.row.remark"></el-input>
131
               </template>
131
               </template>
132
             </el-table-column>
132
             </el-table-column>
133
 
133
 
134
-            <el-table-column label="操作" align="center" min-width="40">
134
+            <el-table-column label="操作" align="center" width="150">
135
               <template slot-scope="scope">
135
               <template slot-scope="scope">
136
                 <el-tooltip class="item" effect="dark" content="新增" placement="top">
136
                 <el-tooltip class="item" effect="dark" content="新增" placement="top">
137
 
137
 
147
                   <el-button
147
                   <el-button
148
                     size="mini"
148
                     size="mini"
149
                     type="danger"
149
                     type="danger"
150
-                    icon="el-icon-remove-outline"
150
+                    icon="el-icon-delete"
151
                     @click="handleDelete(scope.$index, scope.row)">
151
                     @click="handleDelete(scope.$index, scope.row)">
152
                   </el-button>
152
                   </el-button>
153
                 </el-tooltip>
153
                 </el-tooltip>
472
 
472
 
473
   }
473
   }
474
 </script>
474
 </script>
475
+<style>
476
+  #oictable ::-webkit-scrollbar {
477
+    height: 15px;
478
+  }
479
+</style>
475
 
480
 
476
 <style rel="stylesheet/css" lang="scss" scoped>
481
 <style rel="stylesheet/css" lang="scss" scoped>
477
   .information {
482
   .information {

+ 16 - 3
src/xt_pages/stock/stockOutOrder.vue View File

78
             <el-button
78
             <el-button
79
               size="mini"
79
               size="mini"
80
               type="primary"
80
               type="primary"
81
-              icon="el-icon-edit"
81
+              icon="el-icon-edit-outline"
82
               @click="handleEdit(scope.$index, scope.row)">
82
               @click="handleEdit(scope.$index, scope.row)">
83
             </el-button>
83
             </el-button>
84
             </el-tooltip>
84
             </el-tooltip>
395
 };
395
 };
396
 </script>
396
 </script>
397
 
397
 
398
-<<<<<<< .mine
399
 <style rel="stylesheet/scss" lang="scss" scoped>
398
 <style rel="stylesheet/scss" lang="scss" scoped>
400
 .app-container {
399
 .app-container {
401
   // margin: 20px;
400
   // margin: 20px;
451
 }
450
 }
452
 </style>
451
 </style>
453
 
452
 
454
-=======
455
 
453
 
456
 
454
 
457
 
455
 
494
 
492
 
495
 
493
 
496
 
494
 
495
+<<<<<<< .mine
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+=======
497
 
510
 
498
 
511
 
499
 
512
 

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

136
                   <el-button
136
                   <el-button
137
                     size="mini"
137
                     size="mini"
138
                     type="danger"
138
                     type="danger"
139
-                    icon="el-icon-remove-outline"
139
+                    icon="el-icon-delete"
140
                     @click="handleDelete(scope.$index, scope.row)">
140
                     @click="handleDelete(scope.$index, scope.row)">
141
                   </el-button>
141
                   </el-button>
142
                 </el-tooltip>
142
                 </el-tooltip>

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

108
                   <el-button
108
                   <el-button
109
                     size="mini"
109
                     size="mini"
110
                     type="danger"
110
                     type="danger"
111
-                    icon="el-icon-remove-outline"
111
+                    icon="el-icon-delete"
112
                     @click="handleDelete(scope.$index, scope.row)">
112
                     @click="handleDelete(scope.$index, scope.row)">
113
                   </el-button>
113
                   </el-button>
114
                 </el-tooltip>
114
                 </el-tooltip>

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

234
       </el-row>
234
       </el-row>
235
 
235
 
236
       <div slot="footer" class="dialog-footer">
236
       <div slot="footer" class="dialog-footer">
237
-        <el-button @click="cancleDialog()">取消</el-button>
237
+        <el-button @click="cancleDialog()">取 消</el-button>
238
         <el-button
238
         <el-button
239
           :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
239
           :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
240
           type="primary"
240
           type="primary"

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

103
                 </el-form-item>
103
                 </el-form-item>
104
             </el-col>
104
             </el-col>
105
             <el-col :span="8">
105
             <el-col :span="8">
106
-                <el-form-item label="子女情况 : " style="width:90%;float:left;"  prop="children">
106
+                <el-form-item label="子女情况(个) : "  prop="children">
107
                   <el-input maxlength="5" v-model="form.children" disabled></el-input>
107
                   <el-input maxlength="5" v-model="form.children" disabled></el-input>
108
                 </el-form-item>
108
                 </el-form-item>
109
-                <el-form-item label=" " style="float:left;" label-width="30px" >
110
-                </el-form-item>
109
+                <!-- <el-form-item label=" " style="float:left;" label-width="30px" >
110
+                </el-form-item> -->
111
             </el-col>
111
             </el-col>
112
             <el-col :span="8">
112
             <el-col :span="8">
113
               <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >
113
               <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >

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

59
               </el-col>
59
               </el-col>
60
               <el-col :span="8" >
60
               <el-col :span="8" >
61
                 <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
61
                 <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
62
-                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 1%;" ></el-input>
63
-                    <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>
62
+                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input> 
63
+                    <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>
64
                 </el-form-item>
64
                 </el-form-item>
65
               </el-col>
65
               </el-col>
66
             </template>
66
             </template>
132
                 </el-form-item>
132
                 </el-form-item>
133
             </el-col>
133
             </el-col>
134
             <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
134
             <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
135
-                <el-form-item label="子女情况 : " style="width:90%;float:left;"  prop="children">
135
+                <el-form-item label="子女情况(个) : " prop="children">
136
                   <el-input maxlength="5" v-model="form.children" ></el-input>
136
                   <el-input maxlength="5" v-model="form.children" ></el-input>
137
                 </el-form-item>
137
                 </el-form-item>
138
-                <el-form-item label=" " style="float:left;" label-width="30px">
139
-                </el-form-item>
138
+                <!-- <el-form-item label=" " style="float:left;" label-width="30px">
139
+                </el-form-item> -->
140
             </el-col>
140
             </el-col>
141
             <el-col :span="8" :style="isEdit?'width:360px':''">
141
             <el-col :span="8" :style="isEdit?'width:360px':''">
142
               <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >
142
               <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >

+ 2 - 2
src/xt_pages/user/doctorAdvice.vue View File

383
                 </el-row>
383
                 </el-row>
384
 
384
 
385
                 <div slot="footer" class="dialog-footer">
385
                 <div slot="footer" class="dialog-footer">
386
-                    <el-button @click="cancleDialog()">取消</el-button>
386
+                    <el-button @click="cancleDialog()">取 消</el-button>
387
                     <el-button
387
                     <el-button
388
                     :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
388
                     :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
389
                     type="primary"
389
                     type="primary"
410
                     </el-row>
410
                     </el-row>
411
                 </el-form>
411
                 </el-form>
412
                 <div slot="footer" class="dialog-footer">
412
                 <div slot="footer" class="dialog-footer">
413
-                        <el-button  @click="templateFormVisible = false">取消</el-button>
413
+                        <el-button  @click="templateFormVisible = false">取 消</el-button>
414
                         <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addTempForm('templateForm')">保 存</el-button>
414
                         <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="addTempForm('templateForm')">保 存</el-button>
415
                 </div>
415
                 </div>
416
             </el-dialog>
416
             </el-dialog>

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

6
   </div>
6
   </div>
7
   <div class="app-container">
7
   <div class="app-container">
8
     <div class="cell clearfix">
8
     <div class="cell clearfix">
9
-      <label class="title"><span class="name">病人搜索</span> : </label>
9
+      <!-- <label class="title"><span class="name">病人搜索</span> : </label> -->
10
       <el-input   style="width: 400px;" v-model="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
10
       <el-input   style="width: 400px;" v-model="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
11
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" size="small" >搜索</el-button>
11
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" size="small" >搜索</el-button>
12
     </div>
12
     </div>

+ 5 - 0
src/xt_pages/workforce/components/tableData.vue View File

10
         :row-class-name="rowClass"
10
         :row-class-name="rowClass"
11
         :cell-class-name="cellClass"
11
         :cell-class-name="cellClass"
12
         sum-text="总数"
12
         sum-text="总数"
13
+        :height="tableContainHeight"
14
+        ref="table"
13
         style="width: 100%;cursor: pointer;">
15
         style="width: 100%;cursor: pointer;">
14
         <el-table-column  prop="area" label="分区" width="80"  align="center" fixed></el-table-column>
16
         <el-table-column  prop="area" label="分区" width="80"  align="center" fixed></el-table-column>
15
         <el-table-column  prop="cut" label="机号" width="80"  align="center" fixed></el-table-column>
17
         <el-table-column  prop="cut" label="机号" width="80"  align="center" fixed></el-table-column>
1067
         })()
1069
         })()
1068
       }
1070
       }
1069
     },
1071
     },
1072
+    mounted:function(){
1073
+       this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
1074
+    },
1070
     created(){
1075
     created(){
1071
       rowNumber = 0;
1076
       rowNumber = 0;
1072
       this.modeOptions = this.$store.getters.treatment_mode;
1077
       this.modeOptions = this.$store.getters.treatment_mode;

+ 14 - 2
src/xt_pages/workforce/components/template_table.vue View File

11
                 </div>
11
                 </div>
12
             </el-col>
12
             </el-col>
13
         </el-row>
13
         </el-row>
14
-        <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" ref="table" id="table_data" :max-height="tableHeight" :data="opera_device_numbers" :span-method="spanMethod" row-class-name="table-row-new-class schedule-table-row" @cell-click="itemClick">
14
+      
15
+      <div id="table_data" >
16
+        <el-table :height="tableContainHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" ref="table"   :data="opera_device_numbers" :span-method="spanMethod" row-class-name="table-row-new-class schedule-table-row" @cell-click="itemClick">
15
             <el-table-column label="分区" width="80" align="center" fixed style="width: 100px; background-color: red; display: block;">
17
             <el-table-column label="分区" width="80" align="center" fixed style="width: 100px; background-color: red; display: block;">
16
                 <template slot-scope="scope">
18
                 <template slot-scope="scope">
17
                     {{ scope.row.zone.name }}
19
                     {{ scope.row.zone.name }}
156
                 </template>
158
                 </template>
157
             </el-table-column>
159
             </el-table-column>
158
         </el-table>
160
         </el-table>
159
-
161
+      </div>
162
+      
160
         <schedule-selector-dialog ref="selector_dialog" :patients="patients" @did_selected="will_add_schedule_action" @did_cancel="cancel_schedule_action"></schedule-selector-dialog>
163
         <schedule-selector-dialog ref="selector_dialog" :patients="patients" @did_selected="will_add_schedule_action" @did_cancel="cancel_schedule_action"></schedule-selector-dialog>
161
     </div>
164
     </div>
162
 </template>
165
 </template>
301
       })()
304
       })()
302
     }
305
     }
303
   },
306
   },
307
+  mounted:function(){
308
+       this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 310
309
+    },
304
   methods: {
310
   methods: {
305
     // handleScroll: function() {
311
     // handleScroll: function() {
306
     //     var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
312
     //     var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
590
   font-size: 12px;
596
   font-size: 12px;
591
   white-space:nowrap !important;
597
   white-space:nowrap !important;
592
 }
598
 }
599
+#table_data{
600
+    min-height: calc(100vh - 350px);
601
+}
602
+#table_data ::-webkit-scrollbar {
603
+  height: 15px;
604
+}
593
 </style>
605
 </style>

+ 16 - 8
src/xt_pages/workforce/template.vue View File

1
 <template>
1
 <template>
2
+<div class="main-contain">
3
+    <div class="position">
4
+        <bread-crumb></bread-crumb>
5
+        <!-- <el-col :span="3" style="text-align: right;"> -->
6
+        <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
7
+        <!-- </el-col> -->
8
+    </div>
2
     <div class="app-container">
9
     <div class="app-container">
3
-        <el-row>
4
-            <el-col :span="21">
5
-                <el-tabs v-model="activeName" tab-position="top" :stretch="true">
10
+        <!-- <el-row>
11
+            <el-col :span="21"> -->
12
+                <el-tabs v-model="activeName" tab-position="top" >
6
                     <el-tab-pane name="schedules">
13
                     <el-tab-pane name="schedules">
7
                         <span slot="label"> 排班信息 </span>
14
                         <span slot="label"> 排班信息 </span>
8
                         <template-table :editable="false" :device_numbers="device_numbers" :template="this_week_schedules" :patients="patients"></template-table>
15
                         <template-table :editable="false" :device_numbers="device_numbers" :template="this_week_schedules" :patients="patients"></template-table>
16
                         <template-table :editable="true" :device_numbers="device_numbers" :template="second_template" :patients="patients"></template-table>
23
                         <template-table :editable="true" :device_numbers="device_numbers" :template="second_template" :patients="patients"></template-table>
17
                     </el-tab-pane>
24
                     </el-tab-pane>
18
                 </el-tabs>
25
                 </el-tabs>
19
-            </el-col>
20
-            <el-col :span="3" style="text-align: right;">
21
-                <el-button type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
22
-            </el-col>
23
-        </el-row>
26
+            <!-- </el-col> -->
27
+            
28
+        <!-- </el-row> -->
24
 
29
 
25
         <set-up-template-dialog ref="setup_dialog" :template_mode="template_mode" :origin_mode="origin_mode" @chenge_mode="didChangeTemplateMode"></set-up-template-dialog>
30
         <set-up-template-dialog ref="setup_dialog" :template_mode="template_mode" :origin_mode="origin_mode" @chenge_mode="didChangeTemplateMode"></set-up-template-dialog>
26
     </div>
31
     </div>
32
+ </div>
27
 </template>
33
 </template>
28
 
34
 
29
 <script>
35
 <script>
30
 import SetUpTemplateDialog from "./components/setup_template_dialog"
36
 import SetUpTemplateDialog from "./components/setup_template_dialog"
31
 import TemplateTable from "./components/template_table"
37
 import TemplateTable from "./components/template_table"
32
 import { getTemplateInitData } from "@/api/schedule_template/patient"
38
 import { getTemplateInitData } from "@/api/schedule_template/patient"
39
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
33
 
40
 
34
 export default {
41
 export default {
35
     name: "WorkforceTemplate",
42
     name: "WorkforceTemplate",
36
     components: {
43
     components: {
37
         SetUpTemplateDialog,
44
         SetUpTemplateDialog,
38
         TemplateTable,
45
         TemplateTable,
46
+        BreadCrumb
39
     },
47
     },
40
     data: function() {
48
     data: function() {
41
         return {
49
         return {

+ 13 - 13
src/xt_permission.js View File

10
 
10
 
11
 router.beforeEach((to, from, next) => {
11
 router.beforeEach((to, from, next) => {
12
   // 线上注释
12
   // 线上注释
13
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
-  //   store.dispatch('VerifyConfigList', []).then(() => {
15
-  //     next()
16
-  //   })
17
-  // }
18
-  // if (store.getters.permission_routers === undefined) {
19
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
20
-  //     next()
21
-  //   })
22
-  // } else {
23
-  //   next()
24
-  // }
25
-  // return
13
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
+    store.dispatch('VerifyConfigList', []).then(() => {
15
+      next()
16
+    })
17
+  }
18
+  if (store.getters.permission_routers === undefined) {
19
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
20
+      next()
21
+    })
22
+  } else {
23
+    next()
24
+  }
25
+  return
26
   // 线上注释
26
   // 线上注释
27
 
27
 
28
   NProgress.start()
28
   NProgress.start()