Browse Source

Merge branch 'vue_statistics_branch' of http://git.shengws.com/csx/Vue_New into vue_statistics_branch

See999 4 years ago
parent
commit
1743d32bb3

+ 5 - 1
src/api/common/common.js View File

@@ -34,7 +34,11 @@ export function saveConfiguration(data) {
34 34
   })
35 35
 }
36 36
 
37
-export function getConfigurationList(params) {
37
+export function getConfigurationList(limit, page) {
38
+  const params = {
39
+    limit: limit,
40
+    page: page
41
+  }
38 42
   return request({
39 43
     url: 'com/api/getconfigurationlist',
40 44
     method: 'get',

+ 32 - 6
src/xt_pages/qcd/statisticalConfiguration.vue View File

@@ -16,18 +16,20 @@
16 16
       <div class="configTable">
17 17
         <el-table :data="configuraData" border style="width: 100%">
18 18
           <el-table-column prop="date" label="检验检查大项" width="180">
19
-              <template slot-scope="scope">{{ scope.row.inspection_major }}</template>
19
+              <template slot-scope="scope">{{ scope.row.project_name }}</template>
20 20
           </el-table-column>
21 21
           <el-table-column prop="name" label="检查小项" width="180">
22
-             <template slot-scope="scope">{{ scope.row.inspection_minor }}</template>
22
+             <template slot-scope="scope">{{ scope.row.item_name }}</template>
23 23
           </el-table-column>
24 24
           <el-table-column prop="address" label="范围">
25 25
              <template slot-scope="scope">{{ scope.row.min_range }} - {{scope.row.large_range}}</template>
26 26
           </el-table-column>
27 27
            <el-table-column prop="address" label="单位">
28
-              <template slot-scope="scope">{{ scope.row.min_range }}</template>
28
+              <template slot-scope="scope">{{ scope.row.unit }}</template>
29
+            </el-table-column>
30
+            <el-table-column prop="address" label="排序">
31
+                <template slot-scope="scope">{{ scope.row.sort }}</template>
29 32
             </el-table-column>
30
-            <el-table-column prop="address" label="排序"></el-table-column>
31 33
           <el-table-column label="操作" width="180">
32 34
             <template slot-scope="scope">
33 35
               <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
@@ -35,6 +37,17 @@
35 37
             </template>
36 38
           </el-table-column>
37 39
         </el-table>
40
+
41
+          <el-pagination
42
+              @size-change="handleSizeChange"
43
+              @current-change="handleCurrentChange"
44
+              :page-sizes="[10, 20, 30, 100]"
45
+              :page-size="10"
46
+              background
47
+              style="margin-top:20px;float: right"
48
+              layout="total, sizes, prev, pager, next, jumper"
49
+              :total="total">
50
+          </el-pagination>
38 51
       </div>
39 52
 
40 53
       <el-dialog title="新增" :visible.sync="newDialog">
@@ -152,7 +165,10 @@ export default {
152 165
         inspectionMajor: [{ required: true, message: "检查大项不能为空" }],
153 166
         inspectionMinor: [{ required: true, message: "检查小项不能为空" }],
154 167
         large_range:[{required:true,message:"指控范围不能为空"}]
155
-      }
168
+      },
169
+      page:1,
170
+      limit:10,
171
+      total:0,
156 172
     };
157 173
   },
158 174
   methods: {
@@ -216,12 +232,22 @@ export default {
216 232
         }
217 233
       })
218 234
     },
235
+   handleSizeChange(limit) {
236
+     // this.listQuery.limit = limit;
237
+      this.getConfigurationList();
238
+    },
239
+    handleCurrentChange(page) {
240
+     // this.listQuery.page = page;
241
+      this.getConfigurationList();
242
+    },
219 243
     getConfigurationList(){
220
-      getConfigurationList().then(response=>{
244
+      getConfigurationList(this.limit,this.page).then(response=>{
221 245
         if(response.data.state === 1){
222 246
           var configurationlist = response.data.data.configurationlist
223 247
           console.log("列表",configurationlist)
224 248
           this.configuraData = configurationlist
249
+          var total = response.data.data.total
250
+          console.log("total",total)
225 251
         }
226 252
       })
227 253
     }

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

@@ -1,5 +1,22 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
+
4
+    <el-dialog
5
+      title="提示"
6
+      :visible.sync="exportVisible"
7
+      width="40%"
8
+    >
9
+
10
+      <div>
11
+        您提交的患者名单已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
12
+      </div>
13
+
14
+      <span slot="footer" class="dialog-footer">
15
+    <el-button @click="exportVisible = false">取 消</el-button>
16
+    <el-button type="primary" @click="exportVisible = false">确 定</el-button>
17
+  </span>
18
+    </el-dialog>
19
+
3 20
     <el-dialog
4 21
       title="提示"
5 22
       :visible.sync="dialogVisible"
@@ -573,6 +590,7 @@
573 590
         isIndeterminate: true,
574 591
         dialogVisible: false,
575 592
         exportLogVisible: false,
593
+        exportVisible:false,
576 594
         phoneVisible:false,
577 595
         idCardNoVisible:false,
578 596
         wechatbindimg: '',
@@ -1057,13 +1075,14 @@
1057 1075
                 return
1058 1076
               }
1059 1077
 
1060
-
1078
+              this.exportVisible = true
1061 1079
               let params = {
1062 1080
                 'patients': this.export_date
1063 1081
               }
1064 1082
               postExportPatients(params).then(
1065 1083
                 response => {
1066 1084
                   if (response.data.state === 1) {
1085
+
1067 1086
                     this.getList()
1068 1087
                   } else {
1069 1088
                     this.$message.error(response.data.msg)

+ 20 - 0
src/xt_pages/workforce/appointment.vue View File

@@ -1,5 +1,22 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
+    <el-dialog
4
+      title="提示"
5
+      :visible.sync="exportVisible"
6
+      width="40%"
7
+    >
8
+
9
+      <div>
10
+        您提交的排班信息已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
11
+      </div>
12
+
13
+      <span slot="footer" class="dialog-footer">
14
+    <el-button @click="exportVisible = false">取 消</el-button>
15
+    <el-button type="primary" @click="exportVisible = false">确 定</el-button>
16
+  </span>
17
+    </el-dialog>
18
+
19
+
3 20
     <el-dialog
4 21
       title="提示"
5 22
       :visible.sync="exportLogVisible"
@@ -123,6 +140,7 @@
123 140
         msgTipVisible: false,
124 141
         dialogVisible: false,
125 142
         isExistRepeatVisible: false,
143
+        exportVisible:false,
126 144
         exportLogVisible: false,
127 145
         theWeek: {
128 146
           lastWeek: 0,
@@ -822,6 +840,8 @@
822 840
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
823 841
 
824 842
             var date = day2.getFullYear() + '-' + month + '-' + day
843
+            this.exportVisible = true
844
+
825 845
             exportSchedule(params, date).then(response => {
826 846
               if (response.data.state == 0) {
827 847
                 return false

+ 31 - 2
src/xt_pages/workforce/template.vue View File

@@ -1,5 +1,23 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
+
4
+    <el-dialog
5
+      title="提示"
6
+      :visible.sync="exportVisible"
7
+      width="40%"
8
+    >
9
+
10
+      <div>
11
+        您提交的排班信息已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
12
+      </div>
13
+
14
+      <span slot="footer" class="dialog-footer">
15
+    <el-button @click="exportVisible = false">取 消</el-button>
16
+    <el-button type="primary" @click="exportVisible = false">确 定</el-button>
17
+  </span>
18
+    </el-dialog>
19
+
20
+
3 21
     <el-dialog
4 22
       title="提示"
5 23
       :visible.sync="exportLogVisible"
@@ -76,6 +94,7 @@
76 94
           class="filter-item"
77 95
           type="primary"
78 96
           size="small"
97
+          v-loading="generateLoading"
79 98
         >下载日志
80 99
         </el-button>
81 100
 
@@ -146,8 +165,9 @@
146 165
         downloadLoading: false,
147 166
         isExistRepeatVisible:false,
148 167
         exportLogVisible:false,
168
+        exportVisible:false,
149 169
         logs:[],
150
-
170
+        generateLoading:false,
151 171
 
152 172
         days:[],
153 173
         msgTipVisible: false,
@@ -256,19 +276,26 @@
256 276
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
257 277
       },
258 278
       generateLog() {
279
+        this.generateLoading = true
259 280
         let params = {
260 281
           'log_type': 3
261 282
         }
262 283
         generateLog(params).then(
263 284
           response => {
264 285
             if (response.data.state === 1) {
286
+              this.generateLoading = false
287
+
265 288
               this.logs = response.data.data.logs
266 289
               this.exportLogVisible = true
267 290
             } else {
268 291
               this.$message.error(response.data.msg)
292
+              this.generateLoading = false
293
+
269 294
             }
270 295
           }
271
-        )
296
+        ).catch(error => {
297
+          this.generateLoading = false
298
+        })
272 299
 
273 300
       },
274 301
       getInitDate(){
@@ -684,6 +711,7 @@
684 711
             this.isExistRepeatVisible = true
685 712
             return
686 713
           } else {
714
+            this.exportVisible = true
687 715
             let params = {
688 716
               schedule: datas
689 717
             }
@@ -692,6 +720,7 @@
692 720
             day2.setTime(day2.getTime())
693 721
             var month = day2.getMonth() + 1 < 10 ? '0' + (day2.getMonth() + 1).toString() : (day2.getMonth() + 1).toString()
694 722
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
723
+
695 724
             exportScheduleTemplate(params).then(response => {
696 725
               if (response.data.state == 0) {
697 726
                 return false