Commit 38fc67e5 by 李伟康

订单新增退款类型

1 parent 50c0c6ae
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<template> <template>
<div class="marketing order-manage"> <div class="marketing order-manage">
<div class="list-tips m-b-10"> <div class="list-tips m-b-10">
<img class="tips-img" src="@/assets/icon-info.png" /> <img
class="tips-img"
src="@/assets/icon-info.png"
/>
<span class="table-tips"> <span class="table-tips">
已生成有效订单 已生成有效订单
<span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span> <span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
...@@ -15,62 +18,160 @@ ...@@ -15,62 +18,160 @@
</div> </div>
<div class="container"> <div class="container">
<div class="sticky"> <div class="sticky">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm
ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"
></GLCombiForm>
<div class="flex"> <div class="flex">
<div class="flex-default tabs"> <div class="flex-default tabs">
<el-tabs v-model="searchForm.requestSource" @tab-click="handleTabClick"> <el-tabs
<el-tab-pane label="全部订单" name="0"></el-tab-pane> v-model="searchForm.requestSource"
<el-tab-pane v-if="!isSpecialMerchat" label="已付款" name="1"></el-tab-pane> @tab-click="handleTabClick"
<el-tab-pane v-if="!isSpecialMerchat" label="未付款" name="2"></el-tab-pane> >
<el-tab-pane v-if="!isSpecialMerchat" label="已退款" name="3"></el-tab-pane> <el-tab-pane
<el-tab-pane v-if="!isSpecialMerchat" label="售后订单" name="4"></el-tab-pane> label="全部订单"
name="0"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="已付款"
name="1"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="未付款"
name="2"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="已退款"
name="3"
></el-tab-pane>
<el-tab-pane
v-if="!isSpecialMerchat"
label="售后订单"
name="4"
></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button> <el-button
class="default-blue-btn"
:size="size"
type="default"
@click="handleExport"
>导出</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" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable
<div slot="weChatName" class="flex-align" slot-scope="scope"> ref="allOrderRef"
<img v-if="scope.scope.weChatImageUrl" class="img-36 pointer img-circle" :src="scope.scope.weChatImageUrl" /> :getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
>
<div
slot="weChatName"
class="flex-align"
slot-scope="scope"
>
<img
v-if="scope.scope.weChatImageUrl"
class="img-36 pointer img-circle"
: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>
<template slot="vinNo" slot-scope="scope"> <template
slot="vinNo"
slot-scope="scope"
>
{{ 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
<p v-for="(item, index) in scope.scope.vinNo" :key="index">{{ item }}</p> popper-class="order-table-popover"
<span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.vinNo)">...({{ scope.scope.vinNo.length - 1 }})</span> placement="right-start"
trigger="click"
>
<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)"
>...({{ 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 :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 :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" style="vertical-align: middle" slot="reference" :src="scope.scope.shareStaffImageUrl" /> <img
v-if="scope.scope.shareStaffImageUrl"
class="img-36 pointer img-circle"
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
<span class="txt-orange" v-if="scope.scope.shareStaffSource == 2">@企微</span> class="txt-green"
<span class="txt-blue" v-if="scope.scope.shareStaffSource == 3">@员工</span> v-if="scope.scope.shareStaffSource == 1"
>@微信</span>
<span
class="txt-orange"
v-if="scope.scope.shareStaffSource == 2"
>@企微</span>
<span
class="txt-blue"
v-if="scope.scope.shareStaffSource == 3"
>@员工</span>
</span> </span>
</div> </div>
<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> <div>
<template v-if="scope.scope.assignStaffName"> <template v-if="scope.scope.assignStaffName">
<img class="img-36 pointer img-circle" v-if="scope.scope.assignStaffImageUrl" :src="scope.scope.assignStaffImageUrl" /> <img
class="img-36 pointer img-circle"
v-if="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" :src="scope.scope.shareStaffImageUrl" /> <img
class="img-36 pointer img-circle"
v-if="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>
...@@ -82,23 +183,75 @@ ...@@ -82,23 +183,75 @@
class="assignLabel">指派</span> --> class="assignLabel">指派</span> -->
</div> </div>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> class="table-btns"
slot="auth-button"
slot-scope="scope"
>
<GLTableButton
:buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"
></GLTableButton>
</div> </div>
</GLTable> </GLTable>
</div> </div>
<!-- 表格区域 - 全部订单/售后订单 - end --> <!-- 表格区域 - 全部订单/售后订单 - end -->
</div> </div>
<!-- 快递信息 --> <!-- 快递信息 -->
<GLDialog v-if="isExpressVisible" title="输入快递信息" mode="mid" okText="确定" cancelText="取消" :visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose"> <GLDialog
<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> v-if="isExpressVisible"
title="输入快递信息"
mode="mid"
okText="确定"
cancelText="取消"
: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>
</GLDialog> </GLDialog>
<!-- 订单核销 --> <!-- 订单核销 -->
<GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="mid" okText="确定" cancelText="取消" :visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose"> <GLDialog
<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> v-if="isWriteOffVisible"
title="订单核销(请确保用户到店后核销,避免引起不必要问题)"
mode="mid"
okText="确定"
cancelText="取消"
: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>
</GLDialog> </GLDialog>
<!-- 退款审核 --> <!-- 退款审核 -->
<GLDialog v-if="isExamineVisible" bigTitle="退款审核" mode="big" :visible.sync="isExamineVisible" @onOk="handleExamineConfirm" @onCancel="handleExamineClose"> <GLDialog
v-if="isExamineVisible"
bigTitle="退款审核"
mode="big"
:visible.sync="isExamineVisible"
@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>
...@@ -113,8 +266,15 @@ ...@@ -113,8 +266,15 @@
<span>{{ orderInfo.remark || '-' }}</span> <span>{{ orderInfo.remark || '-' }}</span>
</el-form-item> </el-form-item>
<el-form-item v-if="orderInfo.imgUrls"> <el-form-item v-if="orderInfo.imgUrls">
<span v-for="(item, index) in orderInfo.imgUrls" :key="index"> <span
<el-image class="img-60" :src="item" :preview-src-list="[item]"></el-image> v-for="(item, index) in orderInfo.imgUrls"
:key="index"
>
<el-image
class="img-60"
:src="item"
:preview-src-list="[item]"
></el-image>
</span> </span>
</el-form-item> </el-form-item>
<el-form-item label="审核是否通过"> <el-form-item label="审核是否通过">
...@@ -124,12 +284,28 @@ ...@@ -124,12 +284,28 @@
</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" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form> <glsx-combi-form
ref="examineRef"
:isEdit="isEdit"
defaultWidth="284px"
:isBlock="true"
:formRef="editChildRef"
: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" @onOk="handleReceivingConfirm" @onCancel="handleReceivingClose"> <GLDialog
v-if="isReceivingVisible"
bigTitle="确认收货"
mode="big"
:visible.sync="isReceivingVisible"
@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>
...@@ -161,7 +337,7 @@ import { utils } from 'glsx-common' ...@@ -161,7 +337,7 @@ import { utils } from 'glsx-common'
import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant' import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
data() { data () {
return { return {
size: 'small', size: 'small',
isSpecialMerchat: true, isSpecialMerchat: true,
...@@ -372,6 +548,14 @@ export default { ...@@ -372,6 +548,14 @@ export default {
optionsName: 'testSheetTypeList' optionsName: 'testSheetTypeList'
}, },
{ {
label: '退款类型',
prop: 'afterSaleType',
width: 100,
formatter: cellValue => {
return { 1: '退订单', 2: '退定金' }[cellValue.afterSaleType] || '-'
}
},
{
label: '业务场景', label: '业务场景',
name: 'businessType', name: 'businessType',
type: 'select', type: 'select',
...@@ -488,11 +672,11 @@ export default { ...@@ -488,11 +672,11 @@ export default {
fn: '退款' fn: '退款'
}, },
condition: row => { condition: row => {
return row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus)&&row.isOffline!=0 return row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus) && row.isOffline != 0
}, },
listeners: { listeners: {
click: row => { click: row => {
this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0) this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
} }
} }
}, },
...@@ -762,7 +946,7 @@ export default { ...@@ -762,7 +946,7 @@ export default {
} }
} }
}, },
created() { created () {
this.checkMerchant() this.checkMerchant()
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
...@@ -773,13 +957,13 @@ export default { ...@@ -773,13 +957,13 @@ export default {
} }
}, },
mounted() { mounted () {
// this.getCount() // this.getCount()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
methods: { methods: {
initParams() { initParams () {
const cell = { const cell = {
label: '线下订单', label: '线下订单',
prop: 'isOffline', prop: 'isOffline',
...@@ -800,7 +984,7 @@ export default { ...@@ -800,7 +984,7 @@ export default {
this.tableParams.tableColumns.splice(12, 0, cell) this.tableParams.tableColumns.splice(12, 0, cell)
this.searchFormData.splice(17, 0, searchCell) this.searchFormData.splice(17, 0, searchCell)
}, },
getParams() { getParams () {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate.length) { if (this.searchForm.createDate.length) {
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'
...@@ -811,7 +995,7 @@ export default { ...@@ -811,7 +995,7 @@ export default {
return params return params
}, },
beforeSearchFn() { beforeSearchFn () {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
delete this.tableSearchForm.createDate delete this.tableSearchForm.createDate
...@@ -819,7 +1003,7 @@ export default { ...@@ -819,7 +1003,7 @@ export default {
}) })
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList (formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle) var index = this[formName].findIndex(k => k.name == refreshSigle)
...@@ -845,12 +1029,12 @@ export default { ...@@ -845,12 +1029,12 @@ export default {
} }
}, },
showOrHideAttr(formName, label, isHide) { showOrHideAttr (formName, label, isHide) {
let idx = this[formName].findIndex(item => item.label == label) let idx = this[formName].findIndex(item => item.label == label)
this[formName][idx].isHide = isHide this[formName][idx].isHide = isHide
}, },
deleteAttr(labelList) { deleteAttr (labelList) {
labelList.forEach(i => { labelList.forEach(i => {
console.log(i) console.log(i)
let idx = this.tableParams.tableColumns.findIndex(item => item.label == i) let idx = this.tableParams.tableColumns.findIndex(item => item.label == i)
...@@ -858,7 +1042,7 @@ export default { ...@@ -858,7 +1042,7 @@ export default {
}) })
}, },
checkMerchant() { checkMerchant () {
this.$apis.orderManage.checkMerchartApi({}).then(res => { this.$apis.orderManage.checkMerchartApi({}).then(res => {
this.isSpecialMerchat = res this.isSpecialMerchat = res
var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号'] var hideList = ['售后状态', '订单类型', '结算方式', '商户订单号', '车架号', '推荐人', '推荐人类型', '手机号', '推荐人手机号']
...@@ -871,7 +1055,7 @@ export default { ...@@ -871,7 +1055,7 @@ export default {
}) })
}, },
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: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -893,7 +1077,7 @@ export default { ...@@ -893,7 +1077,7 @@ export default {
}) })
}, },
getCount() { getCount () {
var params = this.getParams() var params = this.getParams()
delete params.createDate delete params.createDate
// if(params.orderStatuses.includes('3')) return // if(params.orderStatuses.includes('3')) return
...@@ -902,7 +1086,7 @@ export default { ...@@ -902,7 +1086,7 @@ export default {
}) })
}, },
handleDetail(row) { handleDetail (row) {
this.$router.push({ this.$router.push({
path: '/orderManage/orderDetail', path: '/orderManage/orderDetail',
query: { query: {
...@@ -912,7 +1096,7 @@ export default { ...@@ -912,7 +1096,7 @@ export default {
}, },
// 输入快递信息 - start // 输入快递信息 - start
handleExpressClose() { handleExpressClose () {
this.isExpressVisible = !this.isExpressVisible this.isExpressVisible = !this.isExpressVisible
this.orderCode = '' this.orderCode = ''
this.expressForm = { this.expressForm = {
...@@ -921,7 +1105,7 @@ export default { ...@@ -921,7 +1105,7 @@ export default {
} }
}, },
handleExpressConfirm() { handleExpressConfirm () {
this.$refs.expressRef.$refs[this.editChildRef].validate(valid => { this.$refs.expressRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.$common.utils.deepClone(this.expressForm) var params = this.$common.utils.deepClone(this.expressForm)
...@@ -941,14 +1125,14 @@ export default { ...@@ -941,14 +1125,14 @@ export default {
}) })
}, },
handleExpressInfo(row) { handleExpressInfo (row) {
this.isExpressVisible = !this.isExpressVisible this.isExpressVisible = !this.isExpressVisible
this.orderCode = row.orderCode this.orderCode = row.orderCode
}, },
// 输入快递信息 - end // 输入快递信息 - end
// 订单核销 - start // 订单核销 - start
handleWriteOffClose() { handleWriteOffClose () {
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
this.orderCode = '' this.orderCode = ''
this.writeOffForm = { this.writeOffForm = {
...@@ -956,7 +1140,7 @@ export default { ...@@ -956,7 +1140,7 @@ export default {
} }
}, },
handleWriteOffConfirm() { handleWriteOffConfirm () {
this.$refs.writeOffRef.$refs[this.editChildRef].validate(valid => { this.$refs.writeOffRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.$common.utils.deepClone(this.writeOffForm) var params = this.$common.utils.deepClone(this.writeOffForm)
...@@ -976,9 +1160,9 @@ export default { ...@@ -976,9 +1160,9 @@ export default {
}) })
}, },
handleWriteOff(row) { handleWriteOff (row) {
if (row.orderSource == 4) { if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => {}, this.searchForm.requestSource != 0) this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
return true return true
} }
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
...@@ -987,7 +1171,7 @@ export default { ...@@ -987,7 +1171,7 @@ export default {
// 订单核销 - end // 订单核销 - end
// 退款审核 - start // 退款审核 - start
handleExamineClose() { handleExamineClose () {
this.isExamineVisible = !this.isExamineVisible this.isExamineVisible = !this.isExamineVisible
this.orderCode = '' this.orderCode = ''
this.orderInfo = {} this.orderInfo = {}
...@@ -999,7 +1183,7 @@ export default { ...@@ -999,7 +1183,7 @@ export default {
} }
}, },
submitExamine(params) { submitExamine (params) {
this.$apis.orderManage.examineAllowApi(params).then(res => { this.$apis.orderManage.examineAllowApi(params).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : res.message, message: res.code == '0' ? '操作成功' : res.message,
...@@ -1013,7 +1197,7 @@ export default { ...@@ -1013,7 +1197,7 @@ export default {
}) })
}, },
handleExamineConfirm() { handleExamineConfirm () {
var params = { var params = {
id: this.orderInfo.id id: this.orderInfo.id
} }
...@@ -1032,7 +1216,7 @@ export default { ...@@ -1032,7 +1216,7 @@ export default {
} }
}, },
handleExamine(row) { handleExamine (row) {
this.orderCode = row.orderCode this.orderCode = row.orderCode
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => { this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
this.orderInfo = res || {} this.orderInfo = res || {}
...@@ -1044,13 +1228,13 @@ export default { ...@@ -1044,13 +1228,13 @@ export default {
// 退款审核 - end // 退款审核 - end
// 确认收货 - start // 确认收货 - start
handleReceivingClose() { handleReceivingClose () {
this.isReceivingVisible = !this.isReceivingVisible this.isReceivingVisible = !this.isReceivingVisible
this.orderCode = '' this.orderCode = ''
this.orderInfo = {} this.orderInfo = {}
}, },
handleReceivingConfirm() { handleReceivingConfirm () {
var params = { var params = {
id: this.orderInfo.id id: this.orderInfo.id
} }
...@@ -1067,7 +1251,7 @@ export default { ...@@ -1067,7 +1251,7 @@ export default {
}) })
}, },
handleReceiving(row) { handleReceiving (row) {
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => { this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
this.orderInfo = res || {} this.orderInfo = res || {}
this.orderInfo.refundTypeName = [1, 2, 3].includes(this.orderInfo.refundType) ? this.baseData.refundTypeList.find(item => item.confId == this.orderInfo.refundType + '').confName : '-' this.orderInfo.refundTypeName = [1, 2, 3].includes(this.orderInfo.refundType) ? this.baseData.refundTypeList.find(item => item.confId == this.orderInfo.refundType + '').confName : '-'
...@@ -1077,7 +1261,7 @@ export default { ...@@ -1077,7 +1261,7 @@ export default {
}, },
// 确认收货 - end // 确认收货 - end
setTableFinishFun() { setTableFinishFun () {
this.$refs.allOrderRef.data.forEach(item => { this.$refs.allOrderRef.data.forEach(item => {
item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-' item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-'
}) })
...@@ -1086,25 +1270,25 @@ export default { ...@@ -1086,25 +1270,25 @@ export default {
this.getCount() this.getCount()
}, },
handleSearch() { handleSearch () {
this.$refs.allOrderRef.refreshTable() this.$refs.allOrderRef.refreshTable()
}, },
handleTabClick() { handleTabClick () {
if (this.isSpecialMerchat) { if (this.isSpecialMerchat) {
return true return true
} }
this.handleSearch() this.handleSearch()
}, },
handleExport(row) { handleExport (row) {
var params = this.getParams() var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => { this.$apis.orderManage.orderExportApi(params).then(res => {
exportFn(res) exportFn(res)
}) })
}, },
handleReset() { handleReset () {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch() this.handleSearch()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!