Authored by lzhy

修改

... ... @@ -28,7 +28,7 @@
</div>
</i-col>
</Row>
<Button type="primary" @click="PrevStep(orderCode)">上一步</Button>
<Button type="primary" @click="prevStep(orderCode)">上一步</Button>
<Button type="primary" @click="nextStep(orderCode)">下一步</Button>
</div>
</template>
... ... @@ -66,7 +66,7 @@ export default {
},
});
},
PrevStep(code) {
prevStep(code) {
this.$router.push({
name: 'order.deliver.step1',
params: {},
... ...
... ... @@ -26,6 +26,7 @@
<filter-item>
<Button type="primary" @click="search">筛选</Button>
<Button @click="reset">全部</Button>
<Button type="success" @click="exportData">导出</Button>
</filter-item>
</layout-filter>
<layout-list>
... ... @@ -40,9 +41,10 @@
<script>
import { ListTabs, DataTable } from './components';
import OrderService from 'services/order/order-service';
import { OrderService } from 'services/order';
import _ from 'lodash';
import { OrderConfig } from '../configs';
import qs from 'querystringify';
export default {
components: { ListTabs, DataTable },
data() {
... ... @@ -101,6 +103,11 @@ export default {
this.query.pageNo = 1;
this.search();
},
exportData() {
const querystring = qs.stringify(this.query, true);
const href = `${OrderService.exportOrdersByStatus}${querystring}`;
window.open(href, '_blank');
},
},
};
</script>
... ...
... ... @@ -71,4 +71,5 @@ class OrderService extends Service {
}
}
OrderService.exportOrdersByStatus = '/Api/erp/exportOrdersByStatus';
export default OrderService;
... ...