|
|
|
@ -3,17 +3,17 @@
|
|
|
|
|
<div class="avue-crud"> |
|
|
|
|
<el-row v-if="!search"> |
|
|
|
|
<!-- 查询模块 --> |
|
|
|
|
<el-form :inline="true" :model="query" class='fr-fo'> |
|
|
|
|
<el-form :inline="true" :model="query" class="fr-fo"> |
|
|
|
|
<div> |
|
|
|
|
<el-form-item label="运单号:"> |
|
|
|
|
<el-input v-model="query.waybillNo" placeholder="请输入运单号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="客户车次号:"> |
|
|
|
|
<el-input v-model="query.customerTrain" placeholder="请输入客户车次号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<el-form-item label="运单号:"> |
|
|
|
|
<el-input v-model="query.waybillNo" placeholder="请输入运单号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="客户车次号:"> |
|
|
|
|
<el-input v-model="query.customerTrain" placeholder="请输入客户车次号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<!-- 查询按钮 --> |
|
|
|
|
<el-form-item class='el-btn'> |
|
|
|
|
<el-form-item class="el-btn"> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="searchChange">搜 索</el-button> |
|
|
|
|
<el-button icon="el-icon-delete" @click="searchReset()">清 空</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
@ -27,12 +27,8 @@
|
|
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain>删 除</el-button> |
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
icon="el-icon-download" |
|
|
|
|
@click="handleExportInfo" |
|
|
|
|
plain |
|
|
|
|
>导出 |
|
|
|
|
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo" plain |
|
|
|
|
>导出 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
<div></div> |
|
|
|
@ -398,7 +394,8 @@ import {
|
|
|
|
|
add, |
|
|
|
|
update, |
|
|
|
|
remove, |
|
|
|
|
splitOrder, getWarehouseWaybillExport |
|
|
|
|
splitOrder, |
|
|
|
|
getWarehouseWaybillExport, |
|
|
|
|
} from '@/api/warehouse/warehouseWaybill'; |
|
|
|
|
import option from '@/option/warehouse/warehouseWaybill'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
@ -905,23 +902,22 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 导出 |
|
|
|
|
* */ |
|
|
|
|
handleExportInfo(){ |
|
|
|
|
handleExportInfo() { |
|
|
|
|
let row = {}; |
|
|
|
|
if (!!this.ids) { |
|
|
|
|
row.ids = this.ids; |
|
|
|
|
} |
|
|
|
|
// const ids = this.selectionList.join(','); |
|
|
|
|
// row.ids = ids; |
|
|
|
|
console.log("<><><>>",row.ids); |
|
|
|
|
row = { ...row, ...this.query }; |
|
|
|
|
console.log('<><><>>', row.ids); |
|
|
|
|
getWarehouseWaybillExport(row).then(res => { |
|
|
|
|
// console.log(res.data); |
|
|
|
|
downloadXls(res.data, '在库运单数据.xlsx'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
showdrawer(value) { |
|
|
|
|
this.drawerShow = value; |
|
|
|
@ -1379,16 +1375,16 @@ export default {
|
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
<style scoped lang='scss'> |
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
.el-form-item__label { |
|
|
|
|
justify-content: flex-start; |
|
|
|
|
} |
|
|
|
|
.fr-fo{ |
|
|
|
|
display: flex; |
|
|
|
|
width: 100%; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
.fr-fo { |
|
|
|
|
display: flex; |
|
|
|
|
width: 100%; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
} |
|
|
|
|
.el-btn{ |
|
|
|
|
margin-right:0 |
|
|
|
|
.el-btn { |
|
|
|
|
margin-right: 0; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|