Browse Source

做到了导入

shish 1 năm trước cách đây
mục cha
commit
eff2f34d1b
2 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 7 0
      ghs/src/service/purchase-order-item/index.js
  2. 1 1
      ghs/src/views/in/list.vue

+ 7 - 0
ghs/src/service/purchase-order-item/index.js

@@ -17,5 +17,12 @@ export class PurchaseOrderService extends BaseService {
 		});
 	}
 
+	getDownExcel(data) {
+		return this.request({
+		  url: '/get-down-excel',
+		  params: data
+		});
+	}
+
 }
 export default new PurchaseOrderService();

+ 1 - 1
ghs/src/views/in/list.vue

@@ -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
           }