更新
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
<div class="table">
|
||||
<div class="operation">
|
||||
<!-- <el-button icon="el-icon-upload2" @click="addition">炼厂入驻</el-button> -->
|
||||
<el-button icon="el-icon-upload2" @click="exportData">导出</el-button>
|
||||
</div>
|
||||
<el-table v-if="tableHeight" ref="multipleTable" :height="tableHeight" :data="tableData" style="width: 100%">
|
||||
<el-table-column prop="id" label="订单ID" show-overflow-tooltip minWidth="250"> </el-table-column>
|
||||
@@ -272,6 +272,17 @@ export default {
|
||||
this.getByPage()
|
||||
},
|
||||
methods: {
|
||||
exportData() {
|
||||
order.exportRefineryOrders({}).then(res => {
|
||||
let element = document.createElement('a')
|
||||
let blob = new Blob([res], { type: 'application/vnd.ms-excel' })
|
||||
element.href = URL.createObjectURL(blob)
|
||||
let { y, M, d, h, m } = this.$utils.parseTime(new Date())
|
||||
element.download = `订单列表 ${y}-${M}${d} ${h}:${m}`
|
||||
element.click()
|
||||
URL.revokeObjectURL(element.href)
|
||||
})
|
||||
},
|
||||
payTagType(val) {
|
||||
switch (val) {
|
||||
case 'PREPAID':
|
||||
@@ -369,6 +380,9 @@ export default {
|
||||
await order.findByOrderId(row.id).then(res => {
|
||||
this.billData.orderInfo = res.data
|
||||
})
|
||||
await order.get(row.refineryId).then(res => {
|
||||
this.billData.refineryInfo = res.data
|
||||
})
|
||||
this.controlWindows.addInfo = row
|
||||
this.controlWindows.bill = true
|
||||
},
|
||||
@@ -483,7 +497,7 @@ export default {
|
||||
border: 1px solid #e3e3e5;
|
||||
> .operation {
|
||||
box-sizing: content-box;
|
||||
// padding: 15px;
|
||||
padding: 15px;
|
||||
}
|
||||
.gray {
|
||||
color: #999;
|
||||
|
||||
Reference in New Issue
Block a user