| | |
| | | <div class="search"> |
| | | <Card> |
| | | <Row class="operation"> |
| | | <Input v-model="searchForm.userName" suffix="ios-search" @on-change="getDataList" placeholder="输入配送人" clearable style="width: 250px"/> |
| | | <Input v-model="searchForm.customerName" suffix="ios-search" @on-change="getDataList" placeholder="输入商户名称" clearable style="width: 250px;margin-left: 20px"/> |
| | | <Input v-model="searchForm2.userName" suffix="ios-search" @on-change="getDataList2" placeholder="输入配送人" clearable style="width: 250px"/> |
| | | <Input v-model="searchForm2.customerName" suffix="ios-search" @on-change="getDataList2" placeholder="输入商户名称" clearable style="width: 250px;margin-left: 20px"/> |
| | | <Date-picker clearable @on-change="time1" format="yyyy-MM-dd" type="date" placement="bottom-end" placeholder="请选择配送日期" style="width: 240px;margin-left: 20px"> |
| | | </Date-picker> |
| | | <Select v-model="searchForm.status" style="width:200px;margin-left: 20px" clearable> |
| | | <Select v-model="searchForm2.status" style="width:200px;margin-left: 20px" clearable> |
| | | <Option v-for="item in cityList" :value="item.value" :key="item">{{ item.label }}</Option> |
| | | </Select> |
| | | <Button @click="init" icon="md-refresh">查询</Button> |
| | | <Button @click="init2" icon="md-refresh">查询</Button> |
| | | </Row> |
| | | <Table |
| | | :loading="loading" |
| | |
| | | modalTitle: "", |
| | | modalVisible:false, |
| | | searchForm: { |
| | | pageNumber: 1, // 当前页数 |
| | | pageSize: 10, // 页面大小 |
| | | sort: "sendDate", // 默认排序字段 |
| | | order: "desc", // 默认排序方式 |
| | | }, |
| | | searchForm2: { |
| | | pageNumber: 1, // 当前页数 |
| | | pageSize: 10, // 页面大小 |
| | | sort: "sendDate", // 默认排序字段 |
| | |
| | | init() { |
| | | this.getDataList(); |
| | | }, |
| | | init2() { |
| | | this.getDataList2(); |
| | | }, |
| | | time1(e){ |
| | | this.searchForm.sendDate = e; |
| | | this.getDataList(); |
| | |
| | | getDataList() { |
| | | this.loading = true; |
| | | findPageOrderTask2(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | | this.data = res.result.records; |
| | | this.total = res.result.total; |
| | | } |
| | | }); |
| | | }, |
| | | getDataList2() { |
| | | this.loading = true; |
| | | findPageOrderTask2(this.searchForm2).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | | this.data = res.result.records; |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |