瀏覽代碼

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

See999 5 年之前
父節點
當前提交
1743d32bb3

+ 5 - 1
src/api/common/common.js 查看文件

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
   return request({
42
   return request({
39
     url: 'com/api/getconfigurationlist',
43
     url: 'com/api/getconfigurationlist',
40
     method: 'get',
44
     method: 'get',

+ 32 - 6
src/xt_pages/qcd/statisticalConfiguration.vue 查看文件

16
       <div class="configTable">
16
       <div class="configTable">
17
         <el-table :data="configuraData" border style="width: 100%">
17
         <el-table :data="configuraData" border style="width: 100%">
18
           <el-table-column prop="date" label="检验检查大项" width="180">
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
           </el-table-column>
20
           </el-table-column>
21
           <el-table-column prop="name" label="检查小项" width="180">
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
           </el-table-column>
23
           </el-table-column>
24
           <el-table-column prop="address" label="范围">
24
           <el-table-column prop="address" label="范围">
25
              <template slot-scope="scope">{{ scope.row.min_range }} - {{scope.row.large_range}}</template>
25
              <template slot-scope="scope">{{ scope.row.min_range }} - {{scope.row.large_range}}</template>
26
           </el-table-column>
26
           </el-table-column>
27
            <el-table-column prop="address" label="单位">
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
             </el-table-column>
32
             </el-table-column>
30
-            <el-table-column prop="address" label="排序"></el-table-column>
31
           <el-table-column label="操作" width="180">
33
           <el-table-column label="操作" width="180">
32
             <template slot-scope="scope">
34
             <template slot-scope="scope">
33
               <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
35
               <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
35
             </template>
37
             </template>
36
           </el-table-column>
38
           </el-table-column>
37
         </el-table>
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
       </div>
51
       </div>
39
 
52
 
40
       <el-dialog title="新增" :visible.sync="newDialog">
53
       <el-dialog title="新增" :visible.sync="newDialog">
152
         inspectionMajor: [{ required: true, message: "检查大项不能为空" }],
165
         inspectionMajor: [{ required: true, message: "检查大项不能为空" }],
153
         inspectionMinor: [{ required: true, message: "检查小项不能为空" }],
166
         inspectionMinor: [{ required: true, message: "检查小项不能为空" }],
154
         large_range:[{required:true,message:"指控范围不能为空"}]
167
         large_range:[{required:true,message:"指控范围不能为空"}]
155
-      }
168
+      },
169
+      page:1,
170
+      limit:10,
171
+      total:0,
156
     };
172
     };
157
   },
173
   },
158
   methods: {
174
   methods: {
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
     getConfigurationList(){
243
     getConfigurationList(){
220
-      getConfigurationList().then(response=>{
244
+      getConfigurationList(this.limit,this.page).then(response=>{
221
         if(response.data.state === 1){
245
         if(response.data.state === 1){
222
           var configurationlist = response.data.data.configurationlist
246
           var configurationlist = response.data.data.configurationlist
223
           console.log("列表",configurationlist)
247
           console.log("列表",configurationlist)
224
           this.configuraData = configurationlist
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 查看文件

1
 <template>
1
 <template>
2
   <div class="main-contain">
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
     <el-dialog
20
     <el-dialog
4
       title="提示"
21
       title="提示"
5
       :visible.sync="dialogVisible"
22
       :visible.sync="dialogVisible"
573
         isIndeterminate: true,
590
         isIndeterminate: true,
574
         dialogVisible: false,
591
         dialogVisible: false,
575
         exportLogVisible: false,
592
         exportLogVisible: false,
593
+        exportVisible:false,
576
         phoneVisible:false,
594
         phoneVisible:false,
577
         idCardNoVisible:false,
595
         idCardNoVisible:false,
578
         wechatbindimg: '',
596
         wechatbindimg: '',
1057
                 return
1075
                 return
1058
               }
1076
               }
1059
 
1077
 
1060
-
1078
+              this.exportVisible = true
1061
               let params = {
1079
               let params = {
1062
                 'patients': this.export_date
1080
                 'patients': this.export_date
1063
               }
1081
               }
1064
               postExportPatients(params).then(
1082
               postExportPatients(params).then(
1065
                 response => {
1083
                 response => {
1066
                   if (response.data.state === 1) {
1084
                   if (response.data.state === 1) {
1085
+
1067
                     this.getList()
1086
                     this.getList()
1068
                   } else {
1087
                   } else {
1069
                     this.$message.error(response.data.msg)
1088
                     this.$message.error(response.data.msg)

+ 20 - 0
src/xt_pages/workforce/appointment.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="main-contain">
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
     <el-dialog
20
     <el-dialog
4
       title="提示"
21
       title="提示"
5
       :visible.sync="exportLogVisible"
22
       :visible.sync="exportLogVisible"
123
         msgTipVisible: false,
140
         msgTipVisible: false,
124
         dialogVisible: false,
141
         dialogVisible: false,
125
         isExistRepeatVisible: false,
142
         isExistRepeatVisible: false,
143
+        exportVisible:false,
126
         exportLogVisible: false,
144
         exportLogVisible: false,
127
         theWeek: {
145
         theWeek: {
128
           lastWeek: 0,
146
           lastWeek: 0,
822
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
840
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
823
 
841
 
824
             var date = day2.getFullYear() + '-' + month + '-' + day
842
             var date = day2.getFullYear() + '-' + month + '-' + day
843
+            this.exportVisible = true
844
+
825
             exportSchedule(params, date).then(response => {
845
             exportSchedule(params, date).then(response => {
826
               if (response.data.state == 0) {
846
               if (response.data.state == 0) {
827
                 return false
847
                 return false

+ 31 - 2
src/xt_pages/workforce/template.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="main-contain">
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
     <el-dialog
21
     <el-dialog
4
       title="提示"
22
       title="提示"
5
       :visible.sync="exportLogVisible"
23
       :visible.sync="exportLogVisible"
76
           class="filter-item"
94
           class="filter-item"
77
           type="primary"
95
           type="primary"
78
           size="small"
96
           size="small"
97
+          v-loading="generateLoading"
79
         >下载日志
98
         >下载日志
80
         </el-button>
99
         </el-button>
81
 
100
 
146
         downloadLoading: false,
165
         downloadLoading: false,
147
         isExistRepeatVisible:false,
166
         isExistRepeatVisible:false,
148
         exportLogVisible:false,
167
         exportLogVisible:false,
168
+        exportVisible:false,
149
         logs:[],
169
         logs:[],
150
-
170
+        generateLoading:false,
151
 
171
 
152
         days:[],
172
         days:[],
153
         msgTipVisible: false,
173
         msgTipVisible: false,
256
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
276
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
257
       },
277
       },
258
       generateLog() {
278
       generateLog() {
279
+        this.generateLoading = true
259
         let params = {
280
         let params = {
260
           'log_type': 3
281
           'log_type': 3
261
         }
282
         }
262
         generateLog(params).then(
283
         generateLog(params).then(
263
           response => {
284
           response => {
264
             if (response.data.state === 1) {
285
             if (response.data.state === 1) {
286
+              this.generateLoading = false
287
+
265
               this.logs = response.data.data.logs
288
               this.logs = response.data.data.logs
266
               this.exportLogVisible = true
289
               this.exportLogVisible = true
267
             } else {
290
             } else {
268
               this.$message.error(response.data.msg)
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
       getInitDate(){
301
       getInitDate(){
684
             this.isExistRepeatVisible = true
711
             this.isExistRepeatVisible = true
685
             return
712
             return
686
           } else {
713
           } else {
714
+            this.exportVisible = true
687
             let params = {
715
             let params = {
688
               schedule: datas
716
               schedule: datas
689
             }
717
             }
692
             day2.setTime(day2.getTime())
720
             day2.setTime(day2.getTime())
693
             var month = day2.getMonth() + 1 < 10 ? '0' + (day2.getMonth() + 1).toString() : (day2.getMonth() + 1).toString()
721
             var month = day2.getMonth() + 1 < 10 ? '0' + (day2.getMonth() + 1).toString() : (day2.getMonth() + 1).toString()
694
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
722
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
723
+
695
             exportScheduleTemplate(params).then(response => {
724
             exportScheduleTemplate(params).then(response => {
696
               if (response.data.state == 0) {
725
               if (response.data.state == 0) {
697
                 return false
726
                 return false