1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
| <style lang="less">
| @import "@/styles/table-common.less";
| @import "@/styles/drawer-common.less";
| @import "src/views/your/order-manage/orderEvaluateManage.less";
| </style>
| <template>
| <div class="search">
| <Card>
| <Row class="operation">
| <Date-picker clearable @on-change="time1" format="yyyy-MM-dd" type="date" placement="bottom-end" placeholder="请选择订货日期" style="width: 240px;margin-left: 20px">
| </Date-picker>
| <Button @click="init2" icon="md-refresh">查询</Button>
| <Button @click="jiexi" icon="md-redo" :loading="loading2">解析订单</Button>
| </Row>
| <Table
| :loading="loading"
| border
| :columns="columns"
| :data="data"
| ref="table"
| ></Table>
| <Row type="flex" justify="end" class="page">
| <Page
| :current="searchForm.pageNumber"
| :total="total"
| :page-size="searchForm.pageSize"
| @on-change="changePage"
| @on-page-size-change="changePageSize"
| :page-size-opts="[10, 20, 50]"
| size="small"
| show-total
| show-elevator
| show-sizer
| ></Page>
| </Row>
| </Card>
|
| <!-- 编辑 -->
| </div>
| </template>
|
| <script>
| import {
| findPageOrderTask,
| jiexiOrder
| } from "@/api/open";
| export default {
| name: "car-manage",
| data() {
| return {
| maxHeight: 510,
| openTip: true,
| loading2:false,
| openLevel: "0",
| loading: true,
| modalTitle: "",
| modalVisible:false,
| searchForm: {
| pageNumber: 1, // 当前页数
| pageSize: 10, // 页面大小
| sort: "sendDate", // 默认排序字段
| order: "desc", // 默认排序方式
| },
| searchForm2: {
| pageNumber: 1, // 当前页数
| pageSize: 10, // 页面大小
| sort: "sendDate", // 默认排序字段
| order: "desc", // 默认排序方式
| },
| submitLoading: false,
| selectList: [],
| columns: [
| {
| type: "index",
| width: 60,
| align: "center",
| },
| {
| title: "商户名称",
| key: "customerName",
| ellipsis:true,
| },
| {
| title: "商户联系人",
| key: "linker",
| width: 130,
| },
| {
| title: "分段名称",
| key: "areaSectionName",
| width: 100,
| },
| {
| title: "送货条数",
| key: "num",
| width: 100,
| },
| {
| title: "定货日期",
| key: "orderDate",
| width: 160,
| },
| {
| title: "送货日期",
| key: "sendDate",
| width: 160,
| },
| ],
| data: [],
| total: 0,
| cityList: [
| {
| value: 0,
| label: '待配送'
| },
| {
| value: 1,
| label: '已送达'
| },
| {
| value: 2,
| label: '异常签收'
| }
| ],
| };
| },
| methods: {
| init() {
| this.getDataList();
| },
| init2() {
| this.getDataList2();
| },
| jiexi(){
| if(this.searchForm.sendDate==null || this.searchForm.sendDate==''){
| this.$Message.error("请选择日期")
| return;
| }
| this.loading2 = true
| jiexiOrder({sendTime:this.searchForm.sendDate}).then((res) => {
| this.loading2 = false;
| if (res.success) {
| this.init()
| }
| });
| },
| time1(e){
| this.searchForm.sendDate = e;
| this.getDataList();
| },
| changePage(v) {
| this.searchForm.pageNumber = v;
| this.getDataList();
| this.clearSelectAll();
| },
| changePageSize(v) {
| this.searchForm.pageSize = v;
| this.getDataList();
| },
| getDataList() {
| this.loading = true;
| findPageOrderTask(this.searchForm).then((res) => {
| this.loading = false;
| if (res.success) {
| this.data = res.result.records;
| this.total = res.result.total;
| }
| });
| },
| getDataList2() {
| this.loading = true;
| findPageOrderTask(this.searchForm2).then((res) => {
| this.loading = false;
| if (res.success) {
| this.data = res.result.records;
| this.total = res.result.total;
| }
| });
| },
| },
| mounted() {
| this.maxHeight = Number(document.documentElement.clientHeight - 121) + "px";
| this.init();
| },
| };
| </script>
|
|