Browse Source

打印单

XMLWAN 4 years ago
parent
commit
d7433ae930

+ 2 - 1
src/xt_pages/data/components/project.vue View File

107
               {value:2,label:'否'}
107
               {value:2,label:'否'}
108
             ],
108
             ],
109
             value: '',
109
             value: '',
110
-            limit:20,
110
+            limit:10,
111
             page:1,
111
             page:1,
112
             total:0,
112
             total:0,
113
             tableData: [],
113
             tableData: [],
177
                console.log('projectlist',projecList)
177
                console.log('projectlist',projecList)
178
                this.tableData = projecList
178
                this.tableData = projecList
179
                var total = response.data.data.total
179
                var total = response.data.data.total
180
+               console.log("total-----",total)
180
                this.total = total
181
                this.total = total
181
              }
182
              }
182
           })  
183
           })  

+ 1 - 0
src/xt_pages/medicalScheduling/index.vue View File

7
                 <el-button type="primary" @click="DeleteStaffSchedule">清除</el-button>
7
                 <el-button type="primary" @click="DeleteStaffSchedule">清除</el-button>
8
                 <el-button type="primary" @click="copyStaffSchedule">复制</el-button>
8
                 <el-button type="primary" @click="copyStaffSchedule">复制</el-button>
9
                 <el-button type="primary" icon="el-icon-printer" @click="toPrint">打印</el-button>
9
                 <el-button type="primary" icon="el-icon-printer" @click="toPrint">打印</el-button>
10
+                <el-button type="primary" icon="el-icon-printer" @click="toPrint">导出</el-button>
10
             </div>
11
             </div>
11
         </div>
12
         </div>
12
         <div class="app-container">
13
         <div class="app-container">

+ 39 - 3
src/xt_pages/stock/drugs/query.vue View File

11
       >设置
11
       >设置
12
       </el-button
12
       </el-button
13
       >
13
       >
14
+     <!-- <el-button
15
+        size="small"
16
+        class="filter-item"
17
+        type="primary"
18
+        icon="el-icon-search"
19
+        @click="exportStock"
20
+      >导出
21
+      </el-button> -->
14
     </div>
22
     </div>
15
     <div class="app-container ">
23
     <div class="app-container ">
16
       <div class="cell clearfix">
24
       <div class="cell clearfix">
167
         WarehouseInfo: {
175
         WarehouseInfo: {
168
           loading: false,
176
           loading: false,
169
           warehouseInfoDate: []
177
           warehouseInfoDate: []
170
-        }
178
+        },
179
+        tableData:[]
171
       }
180
       }
172
     },
181
     },
173
     methods: {
182
     methods: {
234
           } else {
243
           } else {
235
             this.WarehouseInfo.loading = false
244
             this.WarehouseInfo.loading = false
236
             this.total = response.data.data.total
245
             this.total = response.data.data.total
246
+            var arr = []
237
             for (let i = 0; i < response.data.data.list.length; i++) {
247
             for (let i = 0; i < response.data.data.list.length; i++) {
238
-
239
               this.WarehouseInfo.warehouseInfoDate.push(
248
               this.WarehouseInfo.warehouseInfoDate.push(
240
                 response.data.data.list[i]
249
                 response.data.data.list[i]
241
               )
250
               )
251
+              arr.push(response.data.data.list[i])
242
             }
252
             }
253
+            console.log("数据源头",arr)
254
+            // for(let i=0;i<arr.length;i++){
255
+            //    arr[i].stockInCount = 
256
+            // }
243
             this.handleSpanTempArr()
257
             this.handleSpanTempArr()
244
           }
258
           }
245
         })
259
         })
325
         this.GetAllDrugStockQueryList()
339
         this.GetAllDrugStockQueryList()
326
       }, setting: function() {
340
       }, setting: function() {
327
         this.$refs.dialog.show()
341
         this.$refs.dialog.show()
328
-      }
342
+      },
343
+      //  exportStock(){
344
+      //    import('@/vendor/Export2Excel').then(excel => {
345
+      //    const tHeader = ['药品名称', '规格名称', '入库数量','入库退货','实际入库','出库数量','出库退货','实际出库','剩余库存']
346
+      //    const filterVal = ['index', 'dialysis_no', 'name','drug_name','drug_spec','Total','Count','margin','margin']
347
+      //   //  for(let i=0;i<this.tableData.length;i++){
348
+      //   //     this.tableData[i].margin = (this.tableData[i].Total?this.tableData[i].Total:0) - this.tableData[i].Count
349
+      //   //  }
350
+        
351
+      //    const data = this.formatJson(filterVal, this.tableData)
352
+      
353
+      //    excel.export_json_to_excel({
354
+      //      header: tHeader,
355
+      //      data,
356
+      //      filename: '自备药查询'
357
+      //    })
358
+      //     this.downloadLoading = false
359
+      //   })
360
+      //  },
361
+      //  formatJson(filterVal, jsonData) {
362
+      //   return jsonData.map(v => filterVal.map(j => v[j]));
363
+      // },
364
+
329
     }
365
     }
330
   }
366
   }
331
 </script>
367
 </script>