ソースを参照

开单上传导入

shish 1 年間 前
コミット
cabd496292

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

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

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

@@ -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() {

+ 0 - 1
ghs/src/views/member/custom-balance-list.vue

@@ -226,7 +226,6 @@ export default {
 					window.location.href = res.file
 				}
 			})
-
 		},
 		searchCpInfo(query) {
 			let that = this

+ 1 - 1
ghs/src/views/order/add.vue

@@ -91,7 +91,7 @@ export default {
 		...mapGetters(['token'])
 	},
 	created() {
-		this.fileUrl = baseUrl+'/upload/import-kd'
+		this.fileUrl = baseUrl+'/order/import-create'
 		this.getLevel();
 	},
 	mounted() {

+ 1 - 3
ghs/src/views/order/list.vue

@@ -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){
             window.location.href = res.file
           }