@@ -17,5 +17,12 @@ export class PurchaseOrderService extends BaseService {
});
}
+ getDownExcel(data) {
+ return this.request({
+ url: '/get-down-excel',
+ params: data
+ });
+ }
+
export default new PurchaseOrderService();
@@ -261,7 +261,7 @@ export default {
})
if(cmd == 'downExcel'){
- this.$service.orderItem.getDownExcel({id:info.id}).then(res => {
+ this.$service.purchaseOrderItem.getDownExcel({id:data.id}).then(res => {
if(res.file){
window.location.href = res.file