1368 lines
37 KiB
Vue
1368 lines
37 KiB
Vue
<!--
|
|
* @Descripttion:
|
|
* @version:
|
|
* @Author: kBank
|
|
* @Date: 2022-10-24 15:45:01
|
|
-->
|
|
<template>
|
|
<div class="page">
|
|
<topBar v-if="topList.length > 0" :top-list="topList" :moren="moren" />
|
|
<div class="main">
|
|
<el-form
|
|
ref="select"
|
|
:model="select"
|
|
label-width="100px"
|
|
style="background-color: #fff; padding: 0 10px 0 10px"
|
|
>
|
|
<el-row>
|
|
<!-- 一层 -->
|
|
<el-col :span="4">
|
|
<el-form-item :label="'会员编号'">
|
|
<el-input v-model="select.memberCode" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'会员姓名'">
|
|
<el-input v-model="select.memberName" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<!-- <el-col :span="4">
|
|
<el-form-item :label="'关联编号'">
|
|
<el-input v-model="select.relevancyMemberCode" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'关联部门'">
|
|
<el-select
|
|
v-model="select.relevancyDept"
|
|
clearable
|
|
placeholder=""
|
|
>
|
|
<el-option
|
|
v-for="item in deptList"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col> -->
|
|
<el-col :span="4">
|
|
<el-form-item :label="'联系方式'">
|
|
<el-input v-model="select.phone" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'撤单人'">
|
|
<el-input v-model="select.creatorName" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'签呈编号'">
|
|
<el-input v-model="select.approvalCode" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'订单编号'">
|
|
<el-input v-model="select.orderCode" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
|
|
<!-- <el-col :span="4">
|
|
<el-form-item :label="'服务中心编号'">
|
|
<el-input v-model="select.pkCenterCode" clearable />
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'服务中心姓名'">
|
|
<el-input v-model="select.pkCenterName" clearable />
|
|
</el-form-item>
|
|
</el-col> -->
|
|
|
|
<el-col :span="4">
|
|
<el-form-item :label="'订单类型'">
|
|
<el-select v-model="select.orderType" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in orderTypeList"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'撤单类型'">
|
|
<el-select v-model="select.chargeType" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in cancleTypeList"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'隶属体系'">
|
|
<el-select v-model="select.pkVertex" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in verList"
|
|
:key="item.value"
|
|
:label="item.vertexName"
|
|
:value="item.pkId"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'注册类型'">
|
|
<el-select v-model="select.orderSource" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in kdzcList"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="4">
|
|
<el-form-item :label="'来源'">
|
|
<el-select
|
|
v-model="select.orderChargeLogSource"
|
|
clearable
|
|
placeholder=""
|
|
>
|
|
<el-option
|
|
v-for="item in sourceList"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-collapse-transition>
|
|
<div v-show="isActive">
|
|
<!-- <el-col :span="4">
|
|
<el-form-item :label="'隶属团队'">
|
|
<el-select
|
|
v-model="select.pkTeamCode"
|
|
clearable
|
|
placeholder=""
|
|
>
|
|
<el-option
|
|
v-for="item in memberList"
|
|
:key="item.value"
|
|
:label="item.teamName"
|
|
:value="item.pkId"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col> -->
|
|
|
|
<el-col :span="8">
|
|
<el-form-item
|
|
:label="'创建日期'"
|
|
prop="creationTime"
|
|
class="el-check_s"
|
|
>
|
|
<el-date-picker
|
|
v-model="creationTime"
|
|
class="el-check_s"
|
|
value-format="yyyy-MM-dd"
|
|
type="daterange"
|
|
:range-separator="'至'"
|
|
:start-placeholder="'开始日期'"
|
|
:end-placeholder="'结束日期'"
|
|
@change="changeTime"
|
|
/>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item
|
|
:label="'支付日期'"
|
|
prop="creationTime"
|
|
class="el-check_s"
|
|
>
|
|
<el-date-picker
|
|
v-model="creationTime1"
|
|
value-format="yyyy-MM-dd"
|
|
type="daterange"
|
|
:range-separator="'至'"
|
|
:start-placeholder="'开始日期'"
|
|
:end-placeholder="'结束日期'"
|
|
@change="changeTime1"
|
|
/>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item
|
|
:label="'撤单日期'"
|
|
prop="creationTime"
|
|
class="el-check_s"
|
|
>
|
|
<el-date-picker
|
|
v-model="creationTime2"
|
|
value-format="yyyy-MM-dd"
|
|
type="daterange"
|
|
:range-separator="'至'"
|
|
:start-placeholder="'开始日期'"
|
|
:end-placeholder="'结束日期'"
|
|
@change="changeTime3"
|
|
/>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item
|
|
:label="'终审日期'"
|
|
prop="creationTime"
|
|
class="el-check_s"
|
|
>
|
|
<el-date-picker
|
|
v-model="creationTime3"
|
|
value-format="yyyy-MM-dd"
|
|
type="daterange"
|
|
:range-separator="'至'"
|
|
:start-placeholder="'开始日期'"
|
|
:end-placeholder="'结束日期'"
|
|
@change="changeTime2"
|
|
/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</div>
|
|
</el-collapse-transition>
|
|
<el-col :span="4" style="margin-left: 30px">
|
|
<el-button
|
|
type="primary"
|
|
style="background-color: #c8161d"
|
|
@click="getDataList"
|
|
>
|
|
{{ '搜索' }}</el-button>
|
|
<el-button @click="reset"> {{ '重置' }}</el-button>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="openClose" @click="changeActive">
|
|
<i :class="isActive ? 'el-icon-arrow-up' : 'el-icon-arrow-down'" />
|
|
<div>{{ isActive ? '点击收起' : '点击展开' }}</div>
|
|
</div>
|
|
</el-form>
|
|
<div class="maintop">
|
|
<div class="mainbtn">
|
|
<el-button
|
|
v-hasButtons="['removeOrderExport']"
|
|
size="small"
|
|
class="thebtn2"
|
|
@click="exports"
|
|
>
|
|
{{ '导出' }}</el-button>
|
|
</div>
|
|
<div>
|
|
<el-dropdown :hide-on-click="false">
|
|
<span class="el-dropdown-link kuang" style="margin-right: 10px">
|
|
{{ '筛选字段'
|
|
}}<i class="el-icon-arrow-down el-icon--right" />
|
|
</span>
|
|
<el-dropdown-menu
|
|
slot="dropdown"
|
|
style="overflow: auto; height: 70%"
|
|
>
|
|
<el-dropdown-item v-for="item in menuList" :key="item.id">
|
|
<el-checkbox
|
|
v-model="item.checked"
|
|
@change="getMenu($event, item.id)"
|
|
>{{ item.text }}</el-checkbox></el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</div>
|
|
</div>
|
|
<div class="maintable">
|
|
<div class="itemTrading">
|
|
<el-table
|
|
v-loading="loading"
|
|
:data="tableData.censusSummaryList"
|
|
style="width: 100%"
|
|
:header-cell-style="{ background: '#EEEEEE' }"
|
|
:row-class-name="tableRowClassName"
|
|
:summary-method="getSummaries"
|
|
show-summary
|
|
:height="isActive ? '565px' : '600px'"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
<el-table-column type="selection" width="55" />
|
|
<el-table-column
|
|
align="center"
|
|
prop="approvalCode"
|
|
width="130"
|
|
:label="'签呈编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderCode"
|
|
width="130"
|
|
:label="'订单编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderTypeStr"
|
|
width="130"
|
|
:label="'订单类型'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="chargeTypeStr"
|
|
width="130"
|
|
:label="'撤单类型'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="customerTypeStr"
|
|
width="160"
|
|
:label="'注册类型'"
|
|
/>
|
|
<!-- <el-table-column
|
|
align="center"
|
|
prop="relevancyMemberCode"
|
|
width="120"
|
|
:label="'关联编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="relevancyDeptStr"
|
|
width="120"
|
|
:label="'关联部门'"
|
|
/> -->
|
|
<el-table-column
|
|
align="center"
|
|
prop="memberCode"
|
|
width="130"
|
|
:label="'会员编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="memberName"
|
|
width="130"
|
|
:label="'会员姓名'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="phone"
|
|
width="130"
|
|
:label="'联系方式'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="parentCode"
|
|
width="130"
|
|
:label="'推荐编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="parentName"
|
|
width="130"
|
|
:label="'推荐姓名'"
|
|
/>
|
|
<!-- <el-table-column
|
|
align="center"
|
|
prop="placeParentCode"
|
|
width="130"
|
|
:label="'安置编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="placeParentName"
|
|
width="130"
|
|
:label="'安置姓名'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="placeDeptStr"
|
|
width="130"
|
|
:label="'安置部门'"
|
|
/> -->
|
|
<!-- <el-table-column
|
|
align="center"
|
|
prop="pkCenterCode"
|
|
width="130"
|
|
:label="'服务中心编号'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="pkCenterName"
|
|
width="130"
|
|
:label="'服务中心姓名'"
|
|
/> -->
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderAmount"
|
|
width="130"
|
|
:label="'消费金额' + `(${isLocalSymbol()})`"
|
|
:formatter="stateFormat"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderAchieve"
|
|
width="130"
|
|
:label="'消费业绩' + `(${isLocalSymbol()})`"
|
|
:formatter="stateFormat"
|
|
/>
|
|
|
|
<el-table-column
|
|
v-if="tableColumnVisible('vertexName')"
|
|
align="center"
|
|
prop="vertexName"
|
|
width="130"
|
|
:label="'隶属体系'"
|
|
/>
|
|
<!-- <el-table-column
|
|
v-if="menuList[4].checked == true"
|
|
align="center"
|
|
prop="pkTeamName"
|
|
width="130"
|
|
:label="'隶属团队'"
|
|
/> -->
|
|
<el-table-column
|
|
v-if="tableColumnVisible('recName')"
|
|
align="center"
|
|
prop="recName"
|
|
width="200"
|
|
:label="'收货人'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('recPhone')"
|
|
align="center"
|
|
prop="recPhone"
|
|
width="200"
|
|
:label="'收货电话'"
|
|
/>
|
|
<!-- </el-table-column>-->
|
|
<!-- <!– <el-table-column–>-->
|
|
<!-- <!– align="center"–>-->
|
|
<!-- <!– prop=""–>-->
|
|
<!-- <!– width="130"–>-->
|
|
<!-- <!– :label="'收货电话'"–>-->
|
|
<!-- <!– />–>-->
|
|
<el-table-column
|
|
v-if="tableColumnVisible('recProvinceStr')"
|
|
align="center"
|
|
prop="recProvinceStr"
|
|
width="130"
|
|
:label="'省'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('recCityStr')"
|
|
align="center"
|
|
prop="recCityStr"
|
|
width="130"
|
|
:label="'市'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('recCountyStr')"
|
|
align="center"
|
|
prop="recCountyStr"
|
|
width="130"
|
|
:label="'区/县'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('recAddress')"
|
|
align="center"
|
|
prop="recAddress"
|
|
width="130"
|
|
:label="'详细地址'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop=""
|
|
width="130"
|
|
:label="'产品名称'"
|
|
>
|
|
<template slot-scope="scope">
|
|
<div v-for="item in scope.row.itemList">
|
|
{{ item.productName }}
|
|
</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
align="center"
|
|
prop=""
|
|
width="130"
|
|
:label="'产品规格'"
|
|
>
|
|
<template slot-scope="scope">
|
|
<div v-for="item in scope.row.itemList">
|
|
{{ item.specsName }}
|
|
</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
align="center"
|
|
prop=""
|
|
width="130"
|
|
:label="'产品数量'"
|
|
>
|
|
<template slot-scope="scope">
|
|
<div v-for="item in scope.row.itemList">
|
|
{{ item.quantity }}
|
|
</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
align="center"
|
|
prop="prices"
|
|
width="130"
|
|
:label="'产品总额' + `(${isLocalSymbol()})`"
|
|
:formatter="stateFormat"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="postage"
|
|
width="130"
|
|
:label="'订单邮费' + `(${isLocalSymbol()})`"
|
|
:formatter="stateFormat"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderAmount"
|
|
width="130"
|
|
:label="'订单总额' + `(${isLocalSymbol()})`"
|
|
:formatter="stateFormat"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderStatusStr"
|
|
width="130"
|
|
:label="'订单状态'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('logisticsCompany')"
|
|
align="center"
|
|
prop=""
|
|
width="130"
|
|
:label="'物流公司'"
|
|
>
|
|
<template slot-scope="scope">
|
|
<div v-for="item in scope.row.itemList">
|
|
{{ item.logisticsCompany }}
|
|
</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('logisticsCode')"
|
|
align="center"
|
|
prop=""
|
|
width="130"
|
|
:label="'物流单号'"
|
|
>
|
|
<template slot-scope="scope">
|
|
<div v-for="item in scope.row.itemList">
|
|
{{ item.logisticsCode }}
|
|
</div>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('creationTime')"
|
|
align="center"
|
|
prop="creationTime"
|
|
width="200"
|
|
:label="'创建日期'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('payTime')"
|
|
align="center"
|
|
prop="payTime"
|
|
width="200"
|
|
:label="'支付日期'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('deliveryTime')"
|
|
align="center"
|
|
prop="deliveryTime"
|
|
width="200"
|
|
:label="'发货日期'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('deliveryWayStr')"
|
|
align="center"
|
|
prop="deliveryWayStr"
|
|
width="130"
|
|
:label="'发货方式'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('operateScopeStr')"
|
|
align="center"
|
|
prop="operateScopeStr"
|
|
width="130"
|
|
:label="'销售方式'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('tranTypeStr')"
|
|
align="center"
|
|
prop="tranTypeStr"
|
|
width="130"
|
|
:label="'运输方式'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('preSaleStatusStr')"
|
|
align="center"
|
|
prop="preSaleStatusStr"
|
|
width="130"
|
|
:label="'预售状态'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('payTypeStr')"
|
|
align="center"
|
|
prop="payTypeStr"
|
|
width="130"
|
|
:label="'支付方式'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('cancelOrderTime')"
|
|
align="center"
|
|
prop="cancelOrderTime"
|
|
width="200"
|
|
:label="'撤单日期'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('creatorName')"
|
|
align="center"
|
|
prop="creatorName"
|
|
width="130"
|
|
:label="'撤单人'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('approvalStatus')"
|
|
align="center"
|
|
prop="approvalStatus"
|
|
width="130"
|
|
:label="'审核状态'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('lastInstanceDate')"
|
|
align="center"
|
|
prop="lastInstanceDate"
|
|
width="200"
|
|
:label="'终审日期'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('lastInstanceApprover')"
|
|
align="center"
|
|
prop="lastInstanceApprover"
|
|
width="130"
|
|
:label="'终审人'"
|
|
/>
|
|
<el-table-column
|
|
v-if="tableColumnVisible('lastInstanceRemark')"
|
|
align="center"
|
|
prop="lastInstanceRemark"
|
|
width="130"
|
|
:label="'终审意见'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="lastInstanceStatus"
|
|
width="130"
|
|
:label="'终审状态'"
|
|
/>
|
|
<el-table-column
|
|
align="center"
|
|
prop="orderChargeLogSourceStr"
|
|
width="130"
|
|
:label="'来源'"
|
|
/>
|
|
|
|
</el-table>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<pagination
|
|
v-show="total > 0"
|
|
:total="total"
|
|
:page.sync="queryParams.pageNum"
|
|
:limit.sync="queryParams.pageSize"
|
|
@pagination="getDataList"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import topBar from '@/components/topBar'
|
|
import * as api from '@/api/settle.js'
|
|
import * as api_s from '@/api/product.js'
|
|
import * as apis from '@/api/site.js'
|
|
import * as man from '@/api/manage.js'
|
|
import { classifyUpdate, classifySave } from '@/api/product'
|
|
import * as log from '@/api/logistics'
|
|
import * as del from '@/api/delivery'
|
|
import { getPlacedeptList } from '@/api/specialBusiness'
|
|
import { getorderStatus } from '@/api/member'
|
|
import { isLocals, isLocalSymbol } from '@/utils/numberToCurrency'
|
|
|
|
export default {
|
|
name: 'Bzpz',
|
|
components: {
|
|
topBar
|
|
},
|
|
filters: {
|
|
isAgree(val) {
|
|
if (!val) {
|
|
return '允许'
|
|
} else {
|
|
return '禁止'
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
kdzcList: [
|
|
// {
|
|
// value: "1",
|
|
// label: '空单注册',
|
|
// },
|
|
// {
|
|
// value: "0",
|
|
// label: "实单注册",
|
|
// },
|
|
], // 注册类型
|
|
regionParams: {
|
|
label: 'name',
|
|
value: 'id',
|
|
children: 'children',
|
|
expandTrigger: 'hover'
|
|
},
|
|
isActive: false,
|
|
typeList: [
|
|
{
|
|
value: 0,
|
|
label: '前台'
|
|
},
|
|
{
|
|
value: 1,
|
|
label: '后台'
|
|
}
|
|
],
|
|
digList: [
|
|
{
|
|
value: 0,
|
|
label: '允许'
|
|
},
|
|
{
|
|
value: 1,
|
|
label: '禁止'
|
|
}
|
|
],
|
|
menuList: [
|
|
{
|
|
id: 0,
|
|
text: '全选',
|
|
checked: false
|
|
},
|
|
{
|
|
id: 3,
|
|
text: '隶属体系',
|
|
checked: true,
|
|
prop: 'vertexName'
|
|
},
|
|
// {
|
|
// id: 4,
|
|
// text: '隶属团队',
|
|
// checked: true,
|
|
// prop: "pkTeamName",
|
|
// },
|
|
{
|
|
id: 4,
|
|
text: '收货人',
|
|
checked: true,
|
|
prop: 'recName'
|
|
},
|
|
{
|
|
id: 5,
|
|
text: '收货电话',
|
|
checked: true,
|
|
prop: 'recPhone'
|
|
},
|
|
{
|
|
id: 6,
|
|
text: '省',
|
|
checked: true,
|
|
prop: 'recProvinceStr'
|
|
},
|
|
{
|
|
id: 7,
|
|
text: '市',
|
|
checked: true,
|
|
prop: 'recCityStr'
|
|
},
|
|
{
|
|
id: 8,
|
|
text: '区/县',
|
|
checked: true,
|
|
prop: 'recCountyStr'
|
|
},
|
|
{
|
|
id: 9,
|
|
text: '详细地址',
|
|
checked: true,
|
|
prop: 'recAddress'
|
|
},
|
|
{
|
|
id: 13,
|
|
text: '物流公司',
|
|
checked: true,
|
|
prop: 'logisticsCompany'
|
|
},
|
|
{
|
|
id: 14,
|
|
text: '物流单号',
|
|
checked: true,
|
|
prop: 'logisticsCode'
|
|
},
|
|
{
|
|
id: 15,
|
|
text: '创建日期',
|
|
checked: true,
|
|
prop: 'creationTime'
|
|
},
|
|
{
|
|
id: 16,
|
|
text: '支付日期',
|
|
checked: true,
|
|
prop: 'payTime'
|
|
},
|
|
{
|
|
id: 17,
|
|
text: '发货日期',
|
|
checked: true,
|
|
prop: 'deliveryTime'
|
|
},
|
|
{
|
|
id: 18,
|
|
text: '发货方式',
|
|
checked: true,
|
|
prop: 'deliveryWayStr'
|
|
},
|
|
{
|
|
id: 19,
|
|
text: '销售方式',
|
|
checked: true,
|
|
prop: 'operateScopeStr'
|
|
},
|
|
{
|
|
id: 20,
|
|
text: '运输方式',
|
|
checked: true,
|
|
prop: 'tranTypeStr'
|
|
},
|
|
{
|
|
id: 21,
|
|
text: '审核状态',
|
|
checked: true,
|
|
prop: 'approvalStatus'
|
|
},
|
|
{
|
|
id: 22,
|
|
text: '支付方式',
|
|
checked: true,
|
|
prop: 'payTypeStr'
|
|
},
|
|
{
|
|
id: 23,
|
|
text: '撤单日期',
|
|
checked: true,
|
|
prop: 'cancelOrderTime'
|
|
},
|
|
{
|
|
id: 24,
|
|
text: '撤单人',
|
|
checked: true,
|
|
prop: 'creatorName'
|
|
},
|
|
{
|
|
id: 25,
|
|
text: '终审日期',
|
|
checked: true,
|
|
prop: 'lastInstanceDate'
|
|
},
|
|
{
|
|
id: 26,
|
|
text: '终审人',
|
|
checked: true,
|
|
prop: 'lastInstanceApprover'
|
|
},
|
|
{
|
|
id: 27,
|
|
text: '终审意见',
|
|
checked: true,
|
|
prop: 'lastInstanceRemark'
|
|
},
|
|
{
|
|
id: 28,
|
|
text: '预售状态',
|
|
checked: true,
|
|
prop: 'preSaleStatusStr'
|
|
}
|
|
],
|
|
creationTime: [],
|
|
creationTime1: [],
|
|
creationTime2: [],
|
|
creationTime3: [],
|
|
select: {},
|
|
// 查询参数
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageSize: 50
|
|
},
|
|
addOrEdit: '',
|
|
total: 0,
|
|
dialogVisible: false,
|
|
loading: false,
|
|
tableData: {
|
|
censusSummaryList: []
|
|
},
|
|
moren: 'removeOrderList',
|
|
topList: [
|
|
{
|
|
name: '撤单列表',
|
|
path: 'removeOrderList'
|
|
}
|
|
],
|
|
form: {
|
|
name: ''
|
|
},
|
|
areaData: [],
|
|
rules: {
|
|
name: [
|
|
{ required: true, message: '请输入规格类型', trigger: 'blur' }
|
|
]
|
|
},
|
|
shoppingAddress: [],
|
|
acList: [],
|
|
verList: [],
|
|
memberList: [],
|
|
yieldList: [],
|
|
yieldStatus: [],
|
|
countryList: [],
|
|
orderTypeList: [],
|
|
cancleTypeList: [],
|
|
pkMemberTeam: [],
|
|
pkVertex: [],
|
|
typeId: '',
|
|
paywayList: [],
|
|
presaleStatusList: [],
|
|
orderStatusList: [],
|
|
deptList: [],
|
|
transportTypeList: [],
|
|
gyList: [],
|
|
deliveryWayList: [],
|
|
sourceList: []
|
|
}
|
|
},
|
|
mounted() {
|
|
// 获取下拉
|
|
this.getData()
|
|
// 获取列表
|
|
this.getDataList()
|
|
},
|
|
methods: {
|
|
isLocalSymbol,
|
|
isLocals,
|
|
tableColumnVisible(columnName) {
|
|
return this.menuList.find((item) => item.prop === columnName)?.checked
|
|
},
|
|
exports() {
|
|
this.download(
|
|
'/sale/manage/order-charge-log/export',
|
|
Object.assign({}, this.queryParams, this.select),
|
|
`${'撤单列表'}-${new Date().getTime()}.xlsx`
|
|
)
|
|
},
|
|
handleChange(res) {
|
|
this.form.recProvince = res[0]
|
|
this.form.recCity = res[1]
|
|
this.form.recCounty = res[2]
|
|
},
|
|
// 展开折叠
|
|
changeActive() {
|
|
this.isActive = !this.isActive
|
|
},
|
|
reset() {
|
|
this.select = {}
|
|
this.pkVertex = []
|
|
this.pkMemberTeam = []
|
|
this.typeId = ''
|
|
this.creationTime = []
|
|
this.creationTime1 = []
|
|
this.creationTime2 = []
|
|
this.creationTime3 = []
|
|
this.getDataList()
|
|
},
|
|
getMenu(e, id) {
|
|
if (e && id == 0) {
|
|
this.menuList.forEach((item) => {
|
|
this.$set(item, 'checked', true)
|
|
})
|
|
} else if (!e && id == 0) {
|
|
this.menuList.forEach((item) => {
|
|
this.$set(item, 'checked', false)
|
|
})
|
|
}
|
|
},
|
|
getData() {
|
|
del.getOrderStatus().then((res) => {
|
|
this.orderStatusList = res.data
|
|
})
|
|
del.getPresaleStatus().then((res) => {
|
|
this.presaleStatusList = res.data
|
|
})
|
|
log.getOrderPayType().then((res) => {
|
|
this.paywayList = res.data
|
|
})
|
|
del.getTransportType().then((res) => {
|
|
this.transportTypeList = res.data
|
|
})
|
|
api_s.supply_way().then((res) => {
|
|
this.gyList = res.data
|
|
})
|
|
// 获取隶属体系
|
|
api.vertexList().then((res) => {
|
|
this.verList = res.data
|
|
})
|
|
// 获取注册类型
|
|
getorderStatus().then((res) => {
|
|
this.kdzcList = res.data
|
|
})
|
|
// 获取:label="'关联部门'"
|
|
getPlacedeptList().then((res) => {
|
|
this.deptList = res.data
|
|
})
|
|
// 获取隶属团队
|
|
api.memberTeam().then((res) => {
|
|
this.memberList = res.rows
|
|
})
|
|
// 获取收益类型
|
|
log.getYieldType().then((res) => {
|
|
this.yieldList = res.rows
|
|
})
|
|
// 获取订单类型
|
|
log.getOrderType().then((res) => {
|
|
this.orderTypeList = res.data
|
|
})
|
|
// 获取撤单类型
|
|
log.getCancleType().then((res) => {
|
|
this.cancleTypeList = res.data
|
|
})
|
|
del.getDeliveryWayList().then((res) => {
|
|
this.deliveryWayList = res.data
|
|
})
|
|
apis.areaList().then((res) => {
|
|
this.areaData = res.data
|
|
})
|
|
man.noticeWebsite().then((res) => {
|
|
this.sourceList = res.data
|
|
})
|
|
},
|
|
changeTime(val) {
|
|
if (!val) {
|
|
val = ['', '']
|
|
}
|
|
this.select.startCreationTime = val[0] || ''
|
|
this.select.endCreationTime = val[1] || ''
|
|
},
|
|
changeTime1(val) {
|
|
if (!val) {
|
|
val = ['', '']
|
|
}
|
|
this.select.startPayTime = val[0] || ''
|
|
this.select.endPayTime = val[1] || ''
|
|
},
|
|
changeTime2(val) {
|
|
if (!val) {
|
|
val = ['', '']
|
|
}
|
|
this.select.startLastInstanceDate = val[0] || ''
|
|
this.select.endLastInstanceDate = val[1] || ''
|
|
},
|
|
changeTime3(val) {
|
|
if (!val) {
|
|
val = ['', '']
|
|
}
|
|
this.select.startCancelOrderTime = val[0] || ''
|
|
this.select.endCancelOrderTime = val[1] || ''
|
|
},
|
|
// 点击修改
|
|
toFixed(id) {
|
|
this.addOrEdit = false
|
|
this.dialogVisible = true
|
|
this.$router.push({
|
|
path: 'noticeList/details',
|
|
query: {
|
|
pkId: id
|
|
}
|
|
})
|
|
},
|
|
getSummaries(param) {
|
|
const { columns, data } = param
|
|
const sums = []
|
|
columns.forEach((column, index) => {
|
|
if (index === 0) {
|
|
sums[index] = ''
|
|
return
|
|
}
|
|
// 测试提交
|
|
if (index === 1) {
|
|
sums[index] = ''
|
|
return
|
|
}
|
|
const values = data.map((item) => Number(item[column.property]))
|
|
if (!values.every((value) => isNaN(value))) {
|
|
sums[index] = values.reduce((prev, curr) => {
|
|
const value = Number(curr)
|
|
if (!isNaN(value)) {
|
|
return
|
|
} else {
|
|
return
|
|
}
|
|
}, 0)
|
|
// sums[index] += ' 元'
|
|
} else {
|
|
sums[index] = ''
|
|
}
|
|
})
|
|
|
|
return sums
|
|
},
|
|
// 删除
|
|
handleDelete(id) {
|
|
this.$confirm('确认删除?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then(() => {
|
|
api.classifyDel(id).then((res) => {
|
|
this.getDataList()
|
|
})
|
|
})
|
|
},
|
|
onSubmit(formName) {
|
|
this.$refs[formName].validate((valid) => {
|
|
if (valid) {
|
|
let url = ''
|
|
if (this.addOrEdit == true) {
|
|
url = classifySave
|
|
} else {
|
|
url = classifyUpdate
|
|
}
|
|
url(this.form).then((res) => {
|
|
if (res.code == 200) {
|
|
this.$message({
|
|
message: res.msg,
|
|
type: 'success'
|
|
})
|
|
this.dialogVisible = false
|
|
// 充值数据
|
|
this.$refs[formName].resetFields()
|
|
// 获取列表
|
|
this.getDataList()
|
|
}
|
|
})
|
|
} else {
|
|
return false
|
|
}
|
|
})
|
|
},
|
|
handleClose() {
|
|
this.dialogVisible = false
|
|
this.$refs['form'].clearValidate()
|
|
this.$refs['form'].resetFields()
|
|
},
|
|
openDig() {
|
|
// 导出撤单列表
|
|
this.$router.push({
|
|
path: 'noticeList/details'
|
|
})
|
|
},
|
|
getDataList() {
|
|
this.loading = true
|
|
api_s
|
|
.orderChargeLog(Object.assign({}, this.queryParams, this.select))
|
|
.then((res) => {
|
|
res.rows.forEach((element) => {
|
|
if (element.approvalStatus == 1) {
|
|
element.approvalStatus = '审核中'
|
|
} else if (element.approvalStatus == 2) {
|
|
element.approvalStatus = '审核通过'
|
|
} else if (element.approvalStatus == 3) {
|
|
element.approvalStatus = '审核驳回'
|
|
}
|
|
})
|
|
this.tableData.censusSummaryList = res.rows
|
|
// console.error(this.tableData.censusSummaryList)
|
|
this.total = res.total
|
|
this.loading = false
|
|
})
|
|
},
|
|
handleSelectionChange(val) {},
|
|
handleExport() {
|
|
this.$confirm('是否确认导出所有数据项?', '警告', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then((_) => {
|
|
// this.download(
|
|
// '/member/manager/trade/export',
|
|
// Object.assign({}, this.queryParams, this.select),
|
|
// `撤单列表${new Date().getTime()}.xlsx`
|
|
// )
|
|
})
|
|
},
|
|
tableRowClassName({ row, rowIndex }) {
|
|
if (rowIndex % 2 == 1) {
|
|
return 'warning-row'
|
|
} else if (rowIndex % 2 == 0) {
|
|
return 'success-row'
|
|
}
|
|
return ''
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped lang="scss">
|
|
::v-deep .el-table__footer {
|
|
display: none;
|
|
}
|
|
::v-deep .el-dropdown-menu {
|
|
height: 1000px !important;
|
|
overflow: auto !important;
|
|
}
|
|
::v-deep .el-input__inner {
|
|
//text-align: center;
|
|
}
|
|
::v-deep .el-check_s .el-input__inner {
|
|
width: 100%;
|
|
}
|
|
::v-deep .el-cascader {
|
|
width: 100%;
|
|
}
|
|
//缩短间隔
|
|
::v-deep .el-form-item {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
::v-deep .el-table .warning-row {
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
::v-deep .el-table .success-row {
|
|
background: #ffffff;
|
|
}
|
|
::v-deep .el-table thead {
|
|
color: #000000;
|
|
}
|
|
::v-deep .el-select {
|
|
width: 100%;
|
|
}
|
|
.uploadIcon ::v-deep .el-upload--picture-card {
|
|
display: none !important; /* 上传按钮隐藏 */
|
|
}
|
|
.page {
|
|
padding: 10px 20px;
|
|
background: #f9f9f9;
|
|
font-size: 14px;
|
|
.main {
|
|
background: #f9f9f9;
|
|
//border-radius: 8px;
|
|
//box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
|
|
//padding-top: 20px;
|
|
.maintop {
|
|
display: flex;
|
|
//padding: 10px 0;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.mainbtn {
|
|
.thebtn1 {
|
|
background: #3181e5;
|
|
color: #ffffff;
|
|
}
|
|
.thebtn2 {
|
|
width: 68px;
|
|
height: 32px;
|
|
background: #ffad41;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
.maintitle {
|
|
font-size: 10px;
|
|
font-family: MicrosoftYaHei;
|
|
color: #999999;
|
|
}
|
|
}
|
|
}
|
|
.tem {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
img {
|
|
width: 28px;
|
|
height: 20px;
|
|
margin-right: 3px;
|
|
}
|
|
}
|
|
.isRed {
|
|
color: #ed1d25;
|
|
}
|
|
.isGreen {
|
|
color: #1ab62b;
|
|
}
|
|
.bgImg {
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
}
|
|
.openClose {
|
|
margin-right: 10px;
|
|
color: #666666;
|
|
text-align: center;
|
|
padding-bottom: 10px;
|
|
}
|
|
.kuang {
|
|
padding: 5px 20px;
|
|
background: rgba(255, 255, 255, 0);
|
|
border-radius: 4px;
|
|
border: 1px solid #cccccc;
|
|
}
|
|
.heji {
|
|
margin-top: 10px;
|
|
.dis {
|
|
display: flex;
|
|
justify-content: right;
|
|
padding: 5px 10px;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
:nth-child(1) {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #333333;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
<style>
|
|
/* .itemTrading .el-table {
|
|
overflow: auto;
|
|
}
|
|
.itemTrading .el-table__body-wrapper,
|
|
.itemTrading .el-table__header-wrapper,
|
|
.itemTrading .el-table__footer-wrapper {
|
|
overflow: visible;
|
|
}
|
|
.itemTrading .el-table::after {
|
|
position: relative !important;
|
|
}
|
|
|
|
.body-theme-grenn .el-table--scrollable-x .el-table__body-wrapper {
|
|
overflow: visible;
|
|
} */
|
|
</style>
|