This commit is contained in:
linfso 2025-03-06 13:34:59 +08:00
parent e4385fd80f
commit 364d304d36

View File

@ -298,8 +298,17 @@
plain plain
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleDownWarehouseIn" @click="handleDownWarehouseInPDF"
>下载进仓PDF</el-button> >下载进仓(PDF)</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
size="mini"
:disabled="single"
@click="handleDownWarehouseInWORD"
>下载进仓(WORD)</el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
@ -1010,16 +1019,28 @@ export default {
// }); // });
}, },
handleDownWarehouseIn() { handleDownWarehouseInPDF() {
if(this.selectionList&&this.selectionList.length>0){ if(this.selectionList&&this.selectionList.length>0){
this.selectionList.forEach(item=>{ this.selectionList.forEach(item=>{
this.download('oms2c/emisWarehouseIn/exportWarehouseInTpl', { this.download('oms2c/emisWarehouseIn/exportWarehouseInTpl', {
orderSn:item.orderSn orderSn:item.orderSn,
fileType:'pdf'
}, `${item.intoWarehouseBillCode}.pdf`) }, `${item.intoWarehouseBillCode}.pdf`)
}); });
} }
}, },
handleDownWarehouseInWORD() {
if(this.selectionList&&this.selectionList.length>0){
this.selectionList.forEach(item=>{
this.download('oms2c/emisWarehouseIn/exportWarehouseInTpl', {
orderSn:item.orderSn,
fileType:'docx'
}, `${item.intoWarehouseBillCode}.docx`)
});
}
},
onDateSelect(value){ onDateSelect(value){
// this.dateTimeRange=value; // this.dateTimeRange=value;