| | |
| | | hasIndex |
| | | hasSelection |
| | | rowKey="orderId" |
| | | httpUrl="orderList" |
| | | httpUrl="orderBaseList" |
| | | :columns="columns" |
| | | :searchData="searchData" |
| | | @getDataList="getDataList" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import Etable from "../../components/table.vue"; |
| | | import {orderInit,orderDtl} from "@/api/credit"; |
| | | import Etable from "@/components/table.vue"; |
| | | import {orderInit,orderDtl,orderBaseExport} from "@/api/order"; |
| | | import uploadImg from "@/components/upload.vue"; |
| | | import downloadUrl from "@/utils/excelDownLoadConfig"; |
| | | export default { |
| | | name: "order", |
| | | components: { Etable,uploadImg }, |
| | | data() { |
| | | return { |
| | | formInline: {status:"all"}, |
| | | formInline: {promId:"all",orderStatus:"all"}, |
| | | searchData: {}, |
| | | columns: [ |
| | | { |
| | |
| | | methods: { |
| | | addProduct(){ |
| | | if(!this.exportExcelList.length){ |
| | | return this.$message.error("请选择订单后导出"); |
| | | return this.$message.error("请选择订单后导出"); |
| | | } |
| | | orderBaseExport({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})=>{ |