| | |
| | | import history from './history.vue'; |
| | | import plan from './plan.vue'; |
| | | import draw from './draw.vue'; |
| | | import {orderInit,orderDtl} from "@/api/credit"; |
| | | import {orderInit,orderDtl,orderExport} from "@/api/order"; |
| | | import uploadImg from "@/components/upload.vue"; |
| | | import downloadUrl from "@/utils/excelDownLoadConfig"; |
| | | export default { |
| | | name: "order", |
| | | components: { Etable,uploadImg,history,plan,draw }, |
| | | data() { |
| | | return { |
| | | formInline: {status:"all"}, |
| | | formInline: {promId:"all",orderStatus:"all",agencyName:'all'}, |
| | | searchData: {}, |
| | | columns: [ |
| | | { |
| | |
| | | methods: { |
| | | addProduct(){ |
| | | if(!this.exportExcelList.length){ |
| | | return this.$message.error("请选择订单后导出"); |
| | | return this.$message.error("请选择订单后导出"); |
| | | } |
| | | orderExport({orderIdList:this.exportExcelList.join(',')}).then((res) => { |
| | | downloadUrl.configDate2(res, '管理员订单列表'); |
| | | }); |
| | | }, |
| | | keyupEvent(e) { |
| | | //只能输入整数 |
| | |
| | | getDataList(e) { |
| | | }, |
| | | handleSelectionChange(list){ |
| | | this.exportExcelList = list; |
| | | this.exportExcelList = list.map(d=>{ |
| | | return d.orderId |
| | | }); |
| | | }, |
| | | getProductDetail(orderId){ |
| | | orderDtl({orderId:orderId}).then(({body})=>{ |