Browse Source

查重列表

pull/89/head
rainbro 4 days ago
parent
commit
793c52f527
  1. 126
      src/views/agent/checkOrderList.vue

126
src/views/agent/checkOrderList.vue

@ -5,16 +5,37 @@
<span class="pagetitle">查重订单</span> <span class="pagetitle">查重订单</span>
</div> </div>
<div class="elementWrap mb-10">
<el-form>
<div class="flex">
<p class="mr-12">时间范围</p>
<el-date-picker class="mr-32" v-model="searchDate" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
</el-date-picker>
<GuipSelect class="mr-32" label="服务类型" v-model="searchType" :options="siteList" valueKey="uid" labelKey="name" @change="changeSearchSite()" defaultValue="" placeholder="不限" clearable />
<GuipSelect class="mr-32" label="站点" v-model="searchUid" :options="siteList" valueKey="uid" labelKey="name" @change="changeSearchSite()" defaultValue="" placeholder="不限" clearable />
<GuipSelect class="mr-32" width="100px" label="报告状态" v-model="searchStatus" :options="searchStatusList" valueKey="uid" labelKey="name" @change="changeSearchSite()" :extraItem="{label:'全部',value:'all'}" defaultValue="" placeholder="不限" clearable />
</div>
</el-form>
</div>
<!-- page content --> <!-- page content -->
<div class="elementWrap"> <div class="elementWrap">
<div> <div>
<el-form> <el-form>
<div class="flex" style="justify-content: space-between;">
<div class="flex"> <div class="flex">
<GuipInput :label="`ID:`" v-model="searchSaleid" @blur="changeSearchSaleid()" placeholder="" ref="GuipInput" class="searchId" /> <h3 class="checktitle mr-24">查重列表</h3>
<GuipSelect class="mr-32" label="报告格式" v-model="searchUid" :options="siteList" valueKey="uid" labelKey="name" @change="changeSearchSite()" defaultValue="" placeholder="不限" clearable />
</div>
<GuipInput label="订单号" v-model="searchTid" @blur="changeSearchTid()" placeholder="请输入订单号" ref="GuipInput" />
<GuipSelect label="站点" v-model="searchUid" :options="siteList" valueKey="uid" labelKey="name" @change="changeSearchSite()" defaultValue="" placeholder="不限" clearable class="searchSite" />
</div> </div>
<PromptText class="my-32" text='订单提示:电商订单,提交检测后会自动发货,请勿手动发货、代收款订单,退款须由平台操作,不可私自退款' :type="2" />
<GuipTable :tableData="orderList" ref="multipleTable" autoColumn="true" :loading="tableLoading"> <GuipTable :tableData="orderList" ref="multipleTable" autoColumn="true" :loading="tableLoading">
<el-table-column prop="sitename" label="站点" fixed="left" min-width="60px"> <el-table-column prop="sitename" label="站点" fixed="left" min-width="60px">
<template slot-scope="scope"> <template slot-scope="scope">
@ -131,12 +152,13 @@
</template> </template>
</el-table-column> </el-table-column>
</GuipTable> </GuipTable>
<Page :total-records="orderListTotal" <!-- <Page :total-records="orderListTotalRecords"
:total-pages="orderListPageSize" :is-has-next-page="isHasNextPage"
:page-size="orderListPageSize"
:current-page="orderListCurrentPage" :current-page="orderListCurrentPage"
:next-min-id="orderListNextMinId" :next-min-id="orderListNextMinId"
:prev-max-id="orderListPrevMaxId" :prev-max-id="orderListPrevMaxId"
@page-change="handlePageChange"></Page> @page-change="handlePageChange"></Page> -->
</el-form> </el-form>
</div> </div>
<GuipDialog :dialogVisible="dialogVisibleDelReport" title="删除报告" confirmText="删除" cancelText="取消" :show-close-button="false" <GuipDialog :dialogVisible="dialogVisibleDelReport" title="删除报告" confirmText="删除" cancelText="取消" :show-close-button="false"
@ -156,7 +178,8 @@ import GuipSelect from '@/components/GuipSelect.vue';
import GuipInput from '@/components/GuipInput.vue'; import GuipInput from '@/components/GuipInput.vue';
import GuipToolTip from '@/components/GuipToolTip.vue'; import GuipToolTip from '@/components/GuipToolTip.vue';
import GuipDialog from '@/components/GuipDialog.vue'; import GuipDialog from '@/components/GuipDialog.vue';
import Page from '@/components/Page.vue'; // import Page from '@/components/Page.vue';
import PromptText from '@/components/PromptText.vue';
export default { export default {
name: 'siteList', name: 'siteList',
@ -166,7 +189,8 @@ export default {
GuipInput, GuipInput,
GuipToolTip, GuipToolTip,
GuipDialog, GuipDialog,
Page, // Page,
PromptText,
}, },
data() { data() {
return { return {
@ -176,10 +200,10 @@ export default {
tableLoading: true, tableLoading: true,
// //
orderList: [], orderList: [],
orderListTotal: 0, orderListTotalRecords: 0,
isHasNextPage: true,
orderListCurrentPage: 1, orderListCurrentPage: 1,
orderListPageSize: 100, orderListPageSize: 10,
endPageFlag: false,
orderListNextMinId: 0, orderListNextMinId: 0,
orderListPrevMaxId: 0, orderListPrevMaxId: 0,
orderListEndPage: 0, orderListEndPage: 0,
@ -187,8 +211,12 @@ export default {
siteList: [], siteList: [],
searchDate: '',
searchStatus: '',
searchStatusList: [],
searchUid: 0, searchUid: 0,
searchSaleid: 0, searchTid: 0,
searchType: 0,
dialogVisibleDelReport: false, dialogVisibleDelReport: false,
delReportId: '', delReportId: '',
@ -199,17 +227,23 @@ export default {
}, },
methods: { methods: {
getOrderList() { getOrderList() {
this.tableLoading = true var params = {
const that = this
that.orderList = []
this.$http('POST', '/agentnew/ajax_get_check_order_list', {
page: this.orderListCurrentPage, page: this.orderListCurrentPage,
pagesize: this.orderListPageSize, pagesize: this.orderListPageSize,
minid: this.orderListNextMinId, minid: this.orderListNextMinId,
maxid: this.orderListPrevMaxId, maxid: this.orderListPrevMaxId,
end_page: this.orderListEndPage, end_page: this.orderListEndPage,
jump_to_page: this.orderListJumpToPage, jump_to_page: this.orderListJumpToPage,
},{ }
if (this.searchTid) {
params = {};
params.tid = this.searchTid
}
this.tableLoading = true
const that = this
that.orderList = []
this.$http('POST', '/agentnew/ajax_get_check_order_list', params,{
headers:{ headers:{
'Auth': this.token 'Auth': this.token
} }
@ -217,9 +251,14 @@ export default {
this.tableLoading = false this.tableLoading = false
this.$nextTick(() => { this.$nextTick(() => {
that.orderList = response.data.list that.orderList = response.data.list
this.orderListTotal = response.data.total this.searchStatusList = response.data.search_check_status
this.orderListTotalRecords = response.data.total_records
this.orderListNextMinId = response.data.minid this.orderListNextMinId = response.data.minid
this.orderListPrevMaxId = response.data.maxid this.orderListPrevMaxId = response.data.maxid
this.isHasNextPage = response.data.is_has_next_page
console.log(this.isHasNextPage, 'isHasNextPage')
}) })
}).catch(error => { }).catch(error => {
console.error(error, 'error') console.error(error, 'error')
@ -235,8 +274,8 @@ export default {
console.log(this.searchUid) console.log(this.searchUid)
this.getOrderList() this.getOrderList()
}, },
changeSearchSaleid() { changeSearchTid() {
console.log(this.searchSaleid) console.log(this.searchTid)
this.getOrderList() this.getOrderList()
}, },
// ---start // ---start
@ -295,6 +334,15 @@ export default {
// APIorderListPrevMaxId // APIorderListPrevMaxId
this.orderListPrevMaxId = params.maxid; this.orderListPrevMaxId = params.maxid;
} }
if (params.isLast) {
this.orderListEndPage = params.isLast;
}
if (params.isJump) {
this.orderListJumpToPage = params.page;
}
this.getOrderList() this.getOrderList()
} }
}, },
@ -325,15 +373,6 @@ export default {
background: #fff; background: #fff;
} }
.searchId {
margin-right: 24px;
width: 200px;
}
.searchSite {
width: 300px;
}
::v-deep .custom-popover { ::v-deep .custom-popover {
position: fixed !important; position: fixed !important;
// max-height: 290px; // max-height: 290px;
@ -348,6 +387,23 @@ export default {
height: 16px; height: 16px;
z-index: 1; z-index: 1;
} }
.mb-10 {
margin-bottom: 10px;
}
.mr-12 {
margin-right: 12px;
}
.mr-24 {
margin-right: 24px;
}
.mr-32 {
margin-right: 32px;
}
.my-32 {
margin-bottom: 32px;
margin-top: 32px;
}
a { a {
text-decoration: none; text-decoration: none;
@ -443,5 +499,19 @@ a:hover {
color: #6258FF; color: #6258FF;
} }
.checktitle {
/* body/body 2_bold */
font-family: Microsoft YaHei UI;
font-size: 14px;
font-weight: bold;
line-height: normal;
letter-spacing: 0.08em;
/* text/text_1 */
color: #1E2226;
}
.el-form-item {
margin-bottom: 0px
}
</style> </style>
Loading…
Cancel
Save