|
|
@ -29,7 +29,8 @@ |
|
|
|
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd">新 增</el-button> |
|
|
|
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd">新 增</el-button> |
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain>删 除</el-button>--> |
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain>删 除</el-button>--> |
|
|
|
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain>全部拆包</el-button>--> |
|
|
|
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain>全部拆包</el-button>--> |
|
|
|
<!-- <el-button type="danger" icon="el-icon-plus" @click="handleImport" plain>导 入</el-button>--> |
|
|
|
<!-- <el-button type="danger" icon="el-icon-plus" @click="handleImport" plain>导 入</el-button>--> |
|
|
|
|
|
|
|
<el-button type="danger" icon="el-icon-plus" @click="handleExport" plain>导 出</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
<div class="avue-crud__right"> |
|
|
|
<div class="avue-crud__right"> |
|
|
@ -309,6 +310,7 @@ import { |
|
|
|
remove, |
|
|
|
remove, |
|
|
|
addParcels, |
|
|
|
addParcels, |
|
|
|
getStockListOwn, |
|
|
|
getStockListOwn, |
|
|
|
|
|
|
|
stockExport, |
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
} from '@/api/distribution/distributionStockList'; |
|
|
|
import { getListParcelDetails } from '@/api/distribution/distributionParcelDetails'; |
|
|
|
import { getListParcelDetails } from '@/api/distribution/distributionParcelDetails'; |
|
|
|
import { getListMaterial } from '@/api/basic/basicMaterial'; |
|
|
|
import { getListMaterial } from '@/api/basic/basicMaterial'; |
|
|
@ -918,10 +920,30 @@ export default { |
|
|
|
this.query[row.prop] = index; |
|
|
|
this.query[row.prop] = index; |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//导出 |
|
|
|
|
|
|
|
handleExport() { |
|
|
|
|
|
|
|
let row = { }; |
|
|
|
|
|
|
|
if(!!this.ids){ |
|
|
|
|
|
|
|
row.ids = this.ids; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// exportBlob( |
|
|
|
|
|
|
|
// `/api/logpm-distribution/distributionStockList/export-distributionStockList?${this.website.tokenHeader}=${getToken()}`,`row = ${row}` |
|
|
|
|
|
|
|
// ).then(res => { |
|
|
|
|
|
|
|
// downloadXls(res.data, '库存品数据.xlsx'); |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stockExport(row).then( res =>{ |
|
|
|
|
|
|
|
console.log(res.data); |
|
|
|
|
|
|
|
downloadXls(res.data, '库存品数据.xlsx'); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//导入 |
|
|
|
handleImport() { |
|
|
|
handleImport() { |
|
|
|
this.excelBox = true; |
|
|
|
this.excelBox = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
refreshChange() { |
|
|
|
refreshChange() { |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page); |
|
|
|
}, |
|
|
|
}, |
|
|
|