@@ -36,5 +36,12 @@ export class OrderItemService extends BaseService {
});
}
+ getDownExcel(data) {
+ return this.request({
+ url: '/get-down-excel',
+ params: data
+ });
+ }
+
export default new OrderItemService();
@@ -75,7 +75,7 @@ export default {
...mapGetters(['token'])
},
created() {
- this.fileUrl = baseUrl+'/upload/import-cg'
+ this.fileUrl = baseUrl+'/purchase-order/import-create'
this.getLevel();
mounted() {
@@ -226,7 +226,6 @@ export default {
window.location.href = res.file
})
-
searchCpInfo(query) {
let that = this
@@ -91,7 +91,7 @@ export default {
- this.fileUrl = baseUrl+'/upload/import-kd'
+ this.fileUrl = baseUrl+'/order/import-create'
@@ -466,9 +466,7 @@ export default {
if(cmd == 'downExcel'){
- this.$message.error('开发中')
- return false
- this.$service.customBalanceChange.getChangeList({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,customId:this.customId,pageSize:9999999,export:1}).then(res => {
+ this.$service.orderItem.getDownExcel({id:info.id}).then(res => {
if(res.file){