Authored by lzhy

修改

@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 </div> 28 </div>
29 </i-col> 29 </i-col>
30 </Row> 30 </Row>
31 - <Button type="primary" @click="PrevStep(orderCode)">上一步</Button> 31 + <Button type="primary" @click="prevStep(orderCode)">上一步</Button>
32 <Button type="primary" @click="nextStep(orderCode)">下一步</Button> 32 <Button type="primary" @click="nextStep(orderCode)">下一步</Button>
33 </div> 33 </div>
34 </template> 34 </template>
@@ -66,7 +66,7 @@ export default { @@ -66,7 +66,7 @@ export default {
66 }, 66 },
67 }); 67 });
68 }, 68 },
69 - PrevStep(code) { 69 + prevStep(code) {
70 this.$router.push({ 70 this.$router.push({
71 name: 'order.deliver.step1', 71 name: 'order.deliver.step1',
72 params: {}, 72 params: {},
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
26 <filter-item> 26 <filter-item>
27 <Button type="primary" @click="search">筛选</Button> 27 <Button type="primary" @click="search">筛选</Button>
28 <Button @click="reset">全部</Button> 28 <Button @click="reset">全部</Button>
  29 + <Button type="success" @click="exportData">导出</Button>
29 </filter-item> 30 </filter-item>
30 </layout-filter> 31 </layout-filter>
31 <layout-list> 32 <layout-list>
@@ -40,9 +41,10 @@ @@ -40,9 +41,10 @@
40 41
41 <script> 42 <script>
42 import { ListTabs, DataTable } from './components'; 43 import { ListTabs, DataTable } from './components';
43 -import OrderService from 'services/order/order-service'; 44 +import { OrderService } from 'services/order';
44 import _ from 'lodash'; 45 import _ from 'lodash';
45 import { OrderConfig } from '../configs'; 46 import { OrderConfig } from '../configs';
  47 +import qs from 'querystringify';
46 export default { 48 export default {
47 components: { ListTabs, DataTable }, 49 components: { ListTabs, DataTable },
48 data() { 50 data() {
@@ -101,6 +103,11 @@ export default { @@ -101,6 +103,11 @@ export default {
101 this.query.pageNo = 1; 103 this.query.pageNo = 1;
102 this.search(); 104 this.search();
103 }, 105 },
  106 + exportData() {
  107 + const querystring = qs.stringify(this.query, true);
  108 + const href = `${OrderService.exportOrdersByStatus}${querystring}`;
  109 + window.open(href, '_blank');
  110 + },
104 }, 111 },
105 }; 112 };
106 </script> 113 </script>
@@ -71,4 +71,5 @@ class OrderService extends Service { @@ -71,4 +71,5 @@ class OrderService extends Service {
71 } 71 }
72 } 72 }
73 73
  74 +OrderService.exportOrdersByStatus = '/Api/erp/exportOrdersByStatus';
74 export default OrderService; 75 export default OrderService;