Commit b5abe0ff by 前端

Merge branch 'v3.19.0' into 'master'

V3.19.0

See merge request !2
2 parents e9ec6f33 3b988f8d
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
</div> </div>
<div class="container"> <div class="container">
<div class="sticky"> <div class="sticky">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex-between"> <div class="flex-between">
<div class="flex-default tabs"> <div class="flex-default tabs">
<el-tabs v-model="searchForm.requestSource" @tab-click="handleTabClick"> <el-tabs v-model="searchForm.requestSource" @tab-click="handleTabClick">
...@@ -28,22 +27,17 @@ ...@@ -28,22 +27,17 @@
<el-tab-pane label="售后订单" name="4"></el-tab-pane> <el-tab-pane label="售后订单" name="4"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<el-button v-if="configShow" class="default-blue-btn" :size="size" type="default" @click="handleExport"> <el-button v-if="configShow" class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button>
导出
</el-button>
</div> </div>
</div> </div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div class="order-manage-table"> <div class="order-manage-table">
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div slot="giveEquityCard" slot-scope="scope" v-if="showGh && scope.scope.giveEquityCard == 1"> <div slot="giveEquityCard" slot-scope="scope" v-if="showGh && scope.scope.giveEquityCard == 1">
<div class="gold-sign">送会员</div> <div class="gold-sign">送会员</div>
</div> </div>
<div slot="weChatName" class="flex-align" slot-scope="scope"> <div slot="weChatName" class="flex-align" slot-scope="scope">
<img v-if="scope.scope.weChatImageUrl" class="img-36 pointer img-circle" <img v-if="scope.scope.weChatImageUrl" class="img-36 pointer img-circle" :src="scope.scope.weChatImageUrl" />
:src="scope.scope.weChatImageUrl" />
<span class="m-l-10">{{ scope.scope.weChatName }}</span> <span class="m-l-10">{{ scope.scope.weChatName }}</span>
<span v-if="!scope.scope.shareAvatar && !scope.scope.weChatName">-</span> <span v-if="!scope.scope.shareAvatar && !scope.scope.weChatName">-</span>
</div> </div>
...@@ -51,22 +45,16 @@ ...@@ -51,22 +45,16 @@
{{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }} {{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }}
<el-popover popper-class="order-table-popover" placement="right-start" trigger="click"> <el-popover popper-class="order-table-popover" placement="right-start" trigger="click">
<p v-for="(item, index) in scope.scope.vinNo" :key="index">{{ item }}</p> <p v-for="(item, index) in scope.scope.vinNo" :key="index">{{ item }}</p>
<span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.vinNo)">...({{ <span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.vinNo)">...({{ scope.scope.vinNo.length - 1 }})</span>
scope.scope.vinNo.length - 1 }})</span>
</el-popover> </el-popover>
</template> </template>
<div slot="orderStatus" slot-scope="scope"> <div slot="orderStatus" slot-scope="scope">
<span <span :class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span>
:class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span> <span>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span>
<span>{{
baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ?
baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-'
}}</span>
</div> </div>
<div slot="shareStaffName" class="table-image" slot-scope="scope"> <div slot="shareStaffName" class="table-image" slot-scope="scope">
<div> <div>
<img v-if="scope.scope.shareStaffImageUrl" class="img-36 pointer img-circle" <img v-if="scope.scope.shareStaffImageUrl" class="img-36 pointer img-circle" style="vertical-align: middle" slot="reference" :src="scope.scope.shareStaffImageUrl" />
style="vertical-align: middle" slot="reference" :src="scope.scope.shareStaffImageUrl" />
<span class="m-l-10"> <span class="m-l-10">
<span>{{ scope.scope.shareStaffName }}</span> <span>{{ scope.scope.shareStaffName }}</span>
<span class="txt-green" v-if="scope.scope.shareStaffSource == 1">@微信</span> <span class="txt-green" v-if="scope.scope.shareStaffSource == 1">@微信</span>
...@@ -77,17 +65,15 @@ ...@@ -77,17 +65,15 @@
<span v-if="!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName">-</span> <span v-if="!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName">-</span>
</div> </div>
<div slot="assignName" slot-scope="scope"> <div slot="assignName" slot-scope="scope">
<div class="flex-align"> <div class="flex-align">
<template v-if="scope.scope.assignStaffName"> <template v-if="scope.scope.assignStaffName">
<img class="img-36 pointer img-circle" v-if="scope.scope.assignStaffImageUrl" <img class="img-36 pointer img-circle" v-if="scope.scope.assignStaffImageUrl" :src="scope.scope.assignStaffImageUrl" />
:src="scope.scope.assignStaffImageUrl" />
<span class="m-l-10"> <span class="m-l-10">
<span>{{ scope.scope.assignStaffName }}</span> <span>{{ scope.scope.assignStaffName }}</span>
</span> </span>
</template> </template>
<template v-else-if="scope.scope.shareStaffName"> <template v-else-if="scope.scope.shareStaffName">
<img class="img-36 pointer img-circle" v-if="scope.scope.shareStaffImageUrl" <img class="img-36 pointer img-circle" v-if="scope.scope.shareStaffImageUrl" :src="scope.scope.shareStaffImageUrl" />
:src="scope.scope.shareStaffImageUrl" />
<span class="m-l-10"> <span class="m-l-10">
<span>{{ scope.scope.shareStaffName }}</span> <span>{{ scope.scope.shareStaffName }}</span>
</span> </span>
...@@ -101,19 +87,18 @@ ...@@ -101,19 +87,18 @@
</div> </div>
<div slot="marketingStatus" slot-scope="scope"> <div slot="marketingStatus" slot-scope="scope">
<template v-if="scope.scope.marketingStatus"> <template v-if="scope.scope.marketingStatus">
<span <span :class="['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"></span>
:class="['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"></span>
</template> </template>
<span> <span>
{{ {{
scope.scope.marketingStatus scope.scope.marketingStatus
? { ? {
1: '已完结', 1: '已完结',
2: '已完结', 2: '已完结',
3: '未完结', 3: '未完结',
4: '已取消' 4: '已取消'
}[scope.scope.marketingStatus] }[scope.scope.marketingStatus]
: '-' : '-'
}} }}
</span> </span>
</div> </div>
...@@ -126,22 +111,15 @@ ...@@ -126,22 +111,15 @@
</div> </div>
</template> </template>
<!-- 快递信息 --> <!-- 快递信息 -->
<GLDialog v-if="isExpressVisible" title="输入快递信息" mode="mid" okText="确定" cancelText="取消" <GLDialog v-if="isExpressVisible" title="输入快递信息" mode="mid" okText="确定" cancelText="取消" :visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose">
:visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose"> <glsx-combi-form class="small-content m-t-20" ref="expressRef" :isBlock="true" defaultWidth="284px" :isEdit="isEdit" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form>
<glsx-combi-form class="small-content m-t-20" ref="expressRef" :isBlock="true" defaultWidth="284px" :isEdit="isEdit"
:formRef="editChildRef" :formObj="expressForm" :formData="expressFormData"
:formRules="expressRules"></glsx-combi-form>
</GLDialog> </GLDialog>
<!-- 订单核销 --> <!-- 订单核销 -->
<GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="mid" okText="确定" cancelText="取消" <GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="mid" okText="确定" cancelText="取消" :visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose">
:visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose"> <glsx-combi-form class="small-content m-t-20" ref="writeOffRef" :isBlock="true" defaultWidth="284px" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form>
<glsx-combi-form class="small-content m-t-20" ref="writeOffRef" :isBlock="true" defaultWidth="284px"
:formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData"
:formRules="writeOffRules"></glsx-combi-form>
</GLDialog> </GLDialog>
<!-- 退款审核 --> <!-- 退款审核 -->
<GLDialog v-if="isExamineVisible" bigTitle="退款审核" mode="big" :visible.sync="isExamineVisible" <GLDialog v-if="isExamineVisible" bigTitle="退款审核" mode="big" :visible.sync="isExamineVisible" @onOk="handleExamineConfirm" @onCancel="handleExamineClose">
@onOk="handleExamineConfirm" @onCancel="handleExamineClose">
<el-form label-width="144px"> <el-form label-width="144px">
<el-form-item label="售后类型"> <el-form-item label="售后类型">
<span>{{ orderInfo.refundTypeName }}</span> <span>{{ orderInfo.refundTypeName }}</span>
...@@ -167,14 +145,12 @@ ...@@ -167,14 +145,12 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<template v-if="orderInfo.refundType == 1 && examineForm.isAllowed == '1'"> <template v-if="orderInfo.refundType == 1 && examineForm.isAllowed == '1'">
<glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="284px" :isBlock="true" :formRef="editChildRef" <glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="284px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
:formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
</template> </template>
</el-form> </el-form>
</GLDialog> </GLDialog>
<!-- 确认收货 --> <!-- 确认收货 -->
<GLDialog v-if="isReceivingVisible" bigTitle="确认收货" mode="big" :visible.sync="isReceivingVisible" <GLDialog v-if="isReceivingVisible" bigTitle="确认收货" mode="big" :visible.sync="isReceivingVisible" @onOk="handleReceivingConfirm" @onCancel="handleReceivingClose">
@onOk="handleReceivingConfirm" @onCancel="handleReceivingClose">
<el-form label-width="140px"> <el-form label-width="140px">
<el-form-item label="售后类型"> <el-form-item label="售后类型">
<span>{{ orderInfo.refundTypeName }}</span> <span>{{ orderInfo.refundTypeName }}</span>
...@@ -197,8 +173,7 @@ ...@@ -197,8 +173,7 @@
</el-form> </el-form>
</GLDialog> </GLDialog>
<!-- 退款类型 --> <!-- 退款类型 -->
<GLDialog mode="mid" class="refund-dialog" title="退款" :visible.sync="refundVisible" <GLDialog mode="mid" class="refund-dialog" title="退款" :visible.sync="refundVisible" @onCancel="refundVisible = !refundVisible" @onOk="refundFun">
@onCancel="refundVisible = !refundVisible" @onOk="refundFun">
<div class="gl-form-page gl-form-min"> <div class="gl-form-page gl-form-min">
<el-form ref="form" label-width="154px"> <el-form ref="form" label-width="154px">
<el-form-item label="退款类型:"> <el-form-item label="退款类型:">
...@@ -222,14 +197,7 @@ ...@@ -222,14 +197,7 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import { import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
businessType,
orderManageStatusList,
afterSaleStatusList,
orderSourceList,
deliveryTypeList,
exportFn
} from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
...@@ -379,7 +347,7 @@ export default { ...@@ -379,7 +347,7 @@ export default {
}, },
condition: row => { condition: row => {
// return row.orderSource == 4 && [2, 6, 21, 22].includes(+row.orderStatus) && row.isOffline != 0 // return row.orderSource == 4 && [2, 6, 21, 22].includes(+row.orderStatus) && row.isOffline != 0
return row.showRefund == 1 && (row.orderSource !== 6 && row.orderSource !== 7)//是否展示退款按钮 1:是 0:否 return row.showRefund == 1 && row.orderSource !== 6 && row.orderSource !== 7 //是否展示退款按钮 1:是 0:否
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -389,11 +357,19 @@ export default { ...@@ -389,11 +357,19 @@ export default {
orderCode: row.orderCode, orderCode: row.orderCode,
afterSaleType: '2' afterSaleType: '2'
} }
} else this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { } else
orderCode: row.orderCode, this.secondConfirm(
afterSaleType: '1' '退款',
}, () => { '请确定是否发起退款?',
}, this.searchForm.requestSource != 0) 'orderManage',
'crowdFundRefundApi',
{
orderCode: row.orderCode,
afterSaleType: '1'
},
() => {},
this.searchForm.requestSource != 0
)
} }
} }
}, },
...@@ -406,7 +382,7 @@ export default { ...@@ -406,7 +382,7 @@ export default {
}, },
condition: row => { condition: row => {
// return row.deliveryType == 1 && row.orderStatus == 21 // return row.deliveryType == 1 && row.orderStatus == 21
return row.showVerf == 1 && (row.orderSource !== 6 && row.orderSource !== 7) //是否展示核销按钮 1:是 0:否 return row.showVerf == 1 && row.orderSource !== 6 && row.orderSource !== 7 //是否展示核销按钮 1:是 0:否
}, },
listeners: { listeners: {
click: this.handleWriteOff click: this.handleWriteOff
...@@ -421,7 +397,7 @@ export default { ...@@ -421,7 +397,7 @@ export default {
fn: '商品发货' fn: '商品发货'
}, },
condition: row => { condition: row => {
return row.deliveryType == 2 && row.orderStatus == 6 && (row.orderSource !== 6 && row.orderSource !== 7) return (row.deliveryType == 2 && row.orderStatus == 6 && row.orderSource !== 6&&row.orderSource !== 7) ||(row.orderSource == 7&& row.deliveryType == 2 && row.orderStatus == 6&&row.orderGoods[0].discoverGoodsSource == 2)
}, },
listeners: { listeners: {
click: this.handleExpressInfo click: this.handleExpressInfo
...@@ -435,7 +411,7 @@ export default { ...@@ -435,7 +411,7 @@ export default {
fn: '退款审核' fn: '退款审核'
}, },
condition: row => { condition: row => {
return row.afterSaleStatus == 1 && (row.orderSource !== 6 && row.orderSource !== 7) return row.afterSaleStatus == 1 && row.orderSource !== 6 && row.orderSource !== 7
}, },
listeners: { listeners: {
click: this.handleExamine click: this.handleExamine
...@@ -448,7 +424,7 @@ export default { ...@@ -448,7 +424,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return row.afterSaleStatus == 4 && (row.orderSource !== 6 && row.orderSource !== 7) return row.afterSaleStatus == 4 && row.orderSource !== 6 && row.orderSource !== 7
}, },
listeners: { listeners: {
click: this.handleReceiving click: this.handleReceiving
...@@ -461,7 +437,7 @@ export default { ...@@ -461,7 +437,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return row.marketingStatus && row.marketingStatus == 3 && (row.orderSource !== 6 && row.orderSource !== 7) return row.marketingStatus && row.marketingStatus == 3 && row.orderSource !== 6 && row.orderSource !== 7
}, },
listeners: { listeners: {
click: row => { click: row => {
...@@ -525,10 +501,12 @@ export default { ...@@ -525,10 +501,12 @@ export default {
this.initParams() this.initParams()
} }
} }
// 判断是否是海马刀 // 判断是否是海马刀
this.isHmd = this.merchantId == this.$hmdMerchantId this.isHmd = this.merchantId == this.$hmdMerchantId
let href = window.location.host let href = window.location.host
this.showGh = href.indexOf('cgacar') !== -1 this.showGh = href.indexOf('cgacar') !== -1
//判断链接后面是否携带参数
this.handleJudge()
}, },
mounted() { mounted() {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
...@@ -538,207 +516,207 @@ export default { ...@@ -538,207 +516,207 @@ export default {
async getCrowdfundingOrderConfig() { async getCrowdfundingOrderConfig() {
const { channelType } = this.$globalState.session const { channelType } = this.$globalState.session
let tableColumns = [ let tableColumns = [
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
width: 160, width: 160,
formatter: cellValue => { formatter: cellValue => {
return cellValue.customerName || '-' return cellValue.customerName || '-'
} }
}, },
{ {
label: '手机号', label: '手机号',
prop: 'customerPhone', prop: 'customerPhone',
width: 160, width: 160,
formatter: cellValue => { formatter: cellValue => {
return cellValue.customerPhone || '-' return cellValue.customerPhone || '-'
} }
}, },
{ {
label: '其他', label: '其他',
prop: 'otherInformation', prop: 'otherInformation',
width: 210 width: 210
}, },
{ {
label: '微信名称', label: '微信名称',
prop: 'weChatName', prop: 'weChatName',
addHtml: 'weChatName', addHtml: 'weChatName',
width: 210 width: 210
}, },
{ {
label: '推荐人', label: '推荐人',
prop: 'shareStaffName', prop: 'shareStaffName',
width: 210, width: 210,
addHtml: 'shareStaffName' addHtml: 'shareStaffName'
}, },
{ {
label: '推荐人ID', label: '推荐人ID',
name: 'shareStaffId', name: 'shareStaffId',
prop: 'shareStaffId', prop: 'shareStaffId',
width: 210 width: 210
}, },
{ {
label: '指派人', label: '指派人',
prop: 'assignName', prop: 'assignName',
width: 210, width: 210,
addHtml: 'assignName' addHtml: 'assignName'
}, },
{ {
label: '推荐人手机号', label: '推荐人手机号',
prop: 'shareStaffPhone', prop: 'shareStaffPhone',
width: 160, width: 160,
formatter: cellValue => { formatter: cellValue => {
return cellValue.shareStaffPhone || '-' return cellValue.shareStaffPhone || '-'
} }
}, },
{ {
label: '订单时间', label: '订单时间',
prop: 'createdDate', prop: 'createdDate',
width: '180', width: '180',
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
} }
}, },
{ {
label: '支付时间', label: '支付时间',
prop: 'payDate', prop: 'payDate',
width: '180', width: '180',
formatter: cellValue => { formatter: cellValue => {
return cellValue.payDate ? dayjs(cellValue.payDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.payDate ? dayjs(cellValue.payDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ {
label: '核销时间', label: '核销时间',
prop: 'verificationDate', prop: 'verificationDate',
width: '180', width: '180',
formatter: cellValue => { formatter: cellValue => {
return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-' return cellValue.verificationDate ? dayjs(cellValue.verificationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ {
label: '车架号', label: '车架号',
prop: 'vinNo', prop: 'vinNo',
width: 130, width: 130,
addHtml: 'vinNo' addHtml: 'vinNo'
}, },
{ {
label: '订单状态', label: '订单状态',
prop: 'orderStatus', prop: 'orderStatus',
addHtml: 'orderStatus', addHtml: 'orderStatus',
width: 160 width: 160
}, },
{ {
label: '业务场景', label: '业务场景',
prop: 'businessType', prop: 'businessType',
width: 120, width: 120,
formatter: cellValue => { formatter: cellValue => {
let type = cellValue.businessType let type = cellValue.businessType
if (type) { if (type) {
return businessType.find(item => item.optionId == type).optionLabel return businessType.find(item => item.optionId == type).optionLabel
} else { } else {
return '-' return '-'
}
}
},
{
label: '商品名称',
prop: '',
width: '120',
formatter: cellValue => {
return cellValue.orderGoods && cellValue.orderGoods.length ? cellValue.orderGoods.map(item => item.goodsName).join(',') : '-'
}
},
{
label: '',
addHtml: 'giveEquityCard',
width: 80
},
{
label: channelType == 2 ? '付款金额/元' : '支付定金/元',
prop: 'payPrice',
width: '120',
formatter: cellValue => {
return cellValue.payPrice || '0'
}
},
{
label: '活动名称',
prop: 'activityName',
width: '120'
},
{
label: '门店信息',
prop: 'merchantName',
line: 1,
width: 280
},
{
label: '赠送积分',
prop: 'giveIntegral',
line: 1,
width: 150
},
{
label: '订单类型',
prop: 'orderSource',
width: '100',
formatter: cellValue => {
return this.baseData.orderSourceList.map(item => item.confId).includes(cellValue.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == cellValue.orderSource).confName : '-'
}
},
{
label: '测试单',
prop: 'orderType',
width: '100',
// addHtml: 'orderType'
formatter: cellValue => {
return cellValue.orderType == 1 ? '是' : '否'
}
},
{
label: '退款类型',
prop: 'afterSaleType',
width: 100,
formatter: cellValue => {
return { 1: '退订单', 2: '退定金' }[cellValue.afterSaleType] || '-'
}
},
{
label: '营销状态',
name: 'marketingStatus',
width: 180,
addHtml: 'marketingStatus'
},
{
label: '售后状态',
prop: 'afterSaleStatus',
width: '100',
formatter: cellValue => {
return this.baseData.afterSaleStatusList.map(item => item.confId).includes(cellValue.afterSaleStatus + '') ? this.baseData.afterSaleStatusList.find(item => item.confId == cellValue.afterSaleStatus).confName : '-'
}
},
{
label: '结算方式',
prop: 'deliveryType',
width: '100',
formatter: cellValue => {
return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-'
}
},
{
label: '订单编号',
prop: 'orderCode',
width: '180'
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
} }
} }
}, ],
{
label: '商品名称',
prop: '',
width: '120',
formatter: cellValue => {
return cellValue.orderGoods&&cellValue.orderGoods.length ? cellValue.orderGoods.map(item => item.goodsName).join(',') : '-'
}
},
{
label: '',
addHtml: 'giveEquityCard',
width: 80
},
{
label: channelType == 2 ? '付款金额/元' : '支付定金/元',
prop: 'payPrice',
width: '120',
formatter: cellValue => {
return cellValue.payPrice || '0'
}
},
{
label: '活动名称',
prop: 'activityName',
width: '120'
},
{
label: '门店信息',
prop: 'merchantName',
line: 1,
width: 280
},
{
label: '赠送积分',
prop: 'giveIntegral',
line: 1,
width: 150
},
{
label: '订单类型',
prop: 'orderSource',
width: '100',
formatter: cellValue => {
return this.baseData.orderSourceList.map(item => item.confId).includes(cellValue.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == cellValue.orderSource).confName : '-'
}
},
{
label: '测试单',
prop: 'orderType',
width: '100',
// addHtml: 'orderType'
formatter: cellValue => {
return cellValue.orderType == 1 ? '是' : '否'
}
},
{
label: '退款类型',
prop: 'afterSaleType',
width: 100,
formatter: cellValue => {
return { 1: '退订单', 2: '退定金' }[cellValue.afterSaleType] || '-'
}
},
{
label: '营销状态',
name: 'marketingStatus',
width: 180,
addHtml: 'marketingStatus'
},
{
label: '售后状态',
prop: 'afterSaleStatus',
width: '100',
formatter: cellValue => {
return this.baseData.afterSaleStatusList.map(item => item.confId).includes(cellValue.afterSaleStatus + '') ? this.baseData.afterSaleStatusList.find(item => item.confId == cellValue.afterSaleStatus).confName : '-'
}
},
{
label: '结算方式',
prop: 'deliveryType',
width: '100',
formatter: cellValue => {
return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-'
}
},
{
label: '订单编号',
prop: 'orderCode',
width: '180'
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
}
],
searchFormData = [ searchFormData = [
{ {
label: '订单编号', label: '订单编号',
...@@ -959,12 +937,12 @@ export default { ...@@ -959,12 +937,12 @@ export default {
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['shareStaffName', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'], filterTableList = ['shareStaffName', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'shareStaffName', 'vin', 'shareStaffSource', 'shareStaffPhone'] filterFormList = ['afterSaleStatuses', 'shareStaffName', 'vin', 'shareStaffSource', 'shareStaffPhone']
if(!this.isHmd){ if (!this.isHmd) {
filterTableList.push('customerPhone') filterTableList.push('customerPhone')
filterFormList.push('customerPhone') filterFormList.push('customerPhone')
} }
this.configShow = res != 1||this.isHmd this.configShow = res != 1 || this.isHmd
if (res == 1||this.isHmd) { if (res == 1 || this.isHmd) {
for (let i = 0; i < tableColumns.length; i++) { for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) { if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1) tableColumns.splice(i, 1)
...@@ -1013,8 +991,8 @@ export default { ...@@ -1013,8 +991,8 @@ export default {
params.createdStartDateStr = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' params.createdStartDateStr = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdEndDateStr = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' params.createdEndDateStr = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
} }
if(this.searchForm.orderSource ==''){ if (this.searchForm.orderSource == '') {
params.orderSource =0 params.orderSource = 0
} }
if (params.orderStatuses.includes('3') && params.requestSource == '0') delete params.requestSource if (params.orderStatuses.includes('3') && params.requestSource == '0') delete params.requestSource
delete params.createDate delete params.createDate
...@@ -1081,6 +1059,14 @@ export default { ...@@ -1081,6 +1059,14 @@ export default {
// } // }
// }) // })
// }, // },
handleJudge() {
let query = this.$route.query
if (Object.keys(query).length == 0) {
this.searchForm.orderSource = ''
} else {
this.searchForm.orderSource = '4'
}
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -1180,8 +1166,7 @@ export default { ...@@ -1180,8 +1166,7 @@ export default {
}, },
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) { if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => { this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0)
}, this.searchForm.requestSource != 0)
return true return true
} }
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
...@@ -1392,4 +1377,5 @@ export default { ...@@ -1392,4 +1377,5 @@ export default {
color: #fdb757; color: #fdb757;
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
}</style> }
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!