Commit 1b51a376 by 前端

Merge branch 'master' into 'v3.5.0'

合并3.4.2

See merge request !427
2 parents 7fb5d511 be5eb999
<!-- 订单管理 -->
<template>
<div class="marketing order-manage">
<div class="list-tips m-b-10">
<img
class="tips-img"
src="@/assets/icon-info.png"
/>
<span class="table-tips">
已生成有效订单
<span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
项 累计订单总额:
<span class="txt-blue">{{ statisticsInfo.payPriceTotal || 0 }}&nbsp;</span>
元 累计退款总额:
<span class="txt-blue">{{ statisticsInfo.refundTotal || 0 }}&nbsp;</span>
元
</span>
</div>
<div class="container">
<div class="sticky">
<GLCombiForm
ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"
></GLCombiForm>
<template v-if="showTable">
<div class="list-tips m-b-10">
<img
class="tips-img"
src="@/assets/icon-info.png"
/>
<span class="table-tips">
已生成有效订单
<span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
项 累计订单总额:
<span class="txt-blue">{{ statisticsInfo.payPriceTotal || 0 }}&nbsp;</span>
元 累计退款总额:
<span class="txt-blue">{{ statisticsInfo.refundTotal || 0 }}&nbsp;</span>
元
</span>
</div>
<div class="container">
<div class="sticky">
<GLCombiForm
ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"
></GLCombiForm>
<div class="flex">
<div class="flex-default tabs">
<el-tabs
v-model="searchForm.requestSource"
@tab-click="handleTabClick"
>
<el-tab-pane
label="全部订单"
name="0"
></el-tab-pane>
<el-tab-pane
label="已付款"
name="1"
></el-tab-pane>
<el-tab-pane
label="未付款"
name="2"
></el-tab-pane>
<el-tab-pane
label="已退款"
name="3"
></el-tab-pane>
<el-tab-pane
label="售后订单"
name="4"
></el-tab-pane>
</el-tabs>
<div class="flex">
<div class="flex-default tabs">
<el-tabs
v-model="searchForm.requestSource"
@tab-click="handleTabClick"
>
<el-tab-pane
label="全部订单"
name="0"
></el-tab-pane>
<el-tab-pane
label="已付款"
name="1"
></el-tab-pane>
<el-tab-pane
label="未付款"
name="2"
></el-tab-pane>
<el-tab-pane
label="已退款"
name="3"
></el-tab-pane>
<el-tab-pane
label="售后订单"
name="4"
></el-tab-pane>
</el-tabs>
</div>
<el-button
class="default-blue-btn"
:size="size"
type="default"
@click="handleExport"
>导出</el-button>
</div>
<el-button
class="default-blue-btn"
:size="size"
type="default"
@click="handleExport"
>导出</el-button>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div class="order-manage-table">
<template v-if="showTable">
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div class="order-manage-table">
<GLTable
ref="allOrderRef"
:getListApi="getListApi"
......@@ -187,7 +188,12 @@
<template v-if="scope.scope.marketingStatus">
<span :class="['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"></span>
</template>
<span>{{ baseData.marketingStatusList.map(item => item.confId).includes(scope.scope.marketingStatus + '') ? baseData.marketingStatusList.find(item => item.confId == scope.scope.marketingStatus).confName : '-' }}</span>
<span>{{ scope.scope.marketingStatus ?{
1:'已完结',
2:'已完结',
3:'未完结',
4:'已取消'
}[scope.scope.marketingStatus]: '-' }}</span>
</div>
<div
class="table-btns"
......@@ -201,11 +207,11 @@
></GLTableButton>
</div>
</GLTable>
</template>
</div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
</template>
<!-- 快递信息 -->
<GLDialog
v-if="isExpressVisible"
......@@ -378,202 +384,7 @@ export default {
refundTotal: ''
},
// 搜索
searchFormData: [
{
label: '订单编号',
name: 'orderCode',
type: 'input'
},
{
label: '订单状态',
name: 'orderStatuses',
type: 'select',
multiple: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'searchOrderStatusList',
changeAttr: (value, targetItem) => {
var isAdd = value.length > this.oldVal.orderStatuses.length
var targetVal = value[value.length - 1]
var formIdx = this.searchFormData.findIndex(item => item.label == '订单状态')
if (!isAdd) {
for (var i = 0; i < this.oldVal.orderStatuses.length; i++) {
if (!value.includes(this.oldVal.orderStatuses[i])) {
targetVal = this.oldVal.orderStatuses[i]
break
}
}
}
!targetVal && (this.searchForm.orderStatuses = isAdd ? this.searchFormData[formIdx].optionList.map(item => item.confId) : [])
if (targetVal) {
var idx = value.findIndex(item => item == '')
if (idx != -1 && this.searchForm.orderStatuses.length < this.searchFormData[formIdx].optionList.length) {
this.searchForm.orderStatuses.splice(idx, 1)
} else if (idx == -1 && this.searchForm.orderStatuses.length == this.searchFormData[formIdx].optionList.length - 1) {
this.searchForm.orderStatuses.push('')
}
}
this.oldVal.orderStatuses = this.$common.utils.deepClone(this.searchForm.orderStatuses)
}
},
{
label: '售后状态',
name: 'afterSaleStatuses',
type: 'select',
labelWidth: 72,
multiple: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'searchAfterSaleStatusList',
changeAttr: (value, targetItem) => {
var isAdd = value.length > this.oldVal.afterSaleStatuses.length
var targetVal = value[value.length - 1]
var formIdx = this.searchFormData.findIndex(item => item.label == '售后状态')
if (!isAdd) {
for (var i = 0; i < this.oldVal.afterSaleStatuses.length; i++) {
if (!value.includes(this.oldVal.afterSaleStatuses[i])) {
targetVal = this.oldVal.afterSaleStatuses[i]
break
}
}
}
!targetVal && (this.searchForm.afterSaleStatuses = isAdd ? this.searchFormData[formIdx].optionList.map(item => item.confId) : [])
if (targetVal) {
var idx = value.findIndex(item => item == '')
if (idx != -1 && this.searchForm.afterSaleStatuses.length < this.searchFormData[formIdx].optionList.length) {
this.searchForm.afterSaleStatuses.splice(idx, 1)
} else if (idx == -1 && this.searchForm.afterSaleStatuses.length == this.searchFormData[formIdx].optionList.length - 1) {
this.searchForm.afterSaleStatuses.push('')
}
}
this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses)
}
},
{
label: '门店',
name: 'merchantName',
type: 'input',
labelWidth: 56
},
{
label: '客户姓名',
name: 'customerName',
type: 'input'
},
{
label: '订单日期',
name: 'createDate',
type: 'datePicker',
labelWidth: 72,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '订单类型',
name: 'orderSource',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'orderSourceList'
},
{
label: '结算方式',
name: 'deliveryType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'deliveryTypeList'
},
{
label: '商户订单号',
name: 'outTradeNo',
type: 'input',
maxlength: 50
},
// {
// label: '车架号',
// name: 'vin',
// labelWidth: 56,
// type: 'input',
// maxlength: 50
// },
// {
// label: '推荐人',
// name: 'shareStaffName',
// labelWidth: 56,
// type: 'input',
// maxlength: 100
// },
// {
// label: '推荐人类型',
// name: 'shareStaffSource',
// type: 'select',
// optionList: [],
// optionId: 'confId',
// optionLabel: 'confName',
// optionsName: 'shareStaffSourceList'
// },
{
label: '活动名称',
name: 'activityName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '商品名称',
name: 'goodsName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
// {
// label: '手机号',
// name: 'customerPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
// {
// label: '推荐人手机号',
// name: 'shareStaffPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
{
label: '测试单',
name: 'orderType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'testSheetTypeList'
},
{
label: '业务场景',
name: 'businessType',
type: 'select',
optionList: [],
optionId: 'optionId',
optionLabel: 'optionLabel',
optionsName: 'businessTypeList'
},
{
label: '营销状态',
name: 'marketingStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'marketingStatusList'
}
],
searchFormData: [],
// 快递信息
isExpressVisible: false,
editChildRef: 'editChildRef',
......@@ -797,8 +608,7 @@ export default {
],
businessTypeList: utils.deepClone(businessType),
marketingStatusList: [
{ confId: '1', confName: '已完结(自动)' },
{ confId: '2', confName: '已完结(手动)' },
{ confId: '1', confName: '已完结' },
{ confId: '3', confName: '未完结' },
{ confId: '4', confName: '已取消' }
],
......@@ -820,7 +630,6 @@ export default {
mounted () {
this.getCrowdfundingOrderConfig()
// this.getCount()
this.getOptionsList('searchFormData')
},
methods: {
......@@ -1016,23 +825,227 @@ export default {
return cellValue.outTradeNo || '-'
}
}
]
],
searchFormData = [
{
label: '订单编号',
name: 'orderCode',
type: 'input'
},
{
label: '订单状态',
name: 'orderStatuses',
type: 'select',
multiple: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'searchOrderStatusList',
changeAttr: (value, targetItem) => {
var isAdd = value.length > this.oldVal.orderStatuses.length
var targetVal = value[value.length - 1]
var formIdx = this.searchFormData.findIndex(item => item.label == '订单状态')
if (!isAdd) {
for (var i = 0; i < this.oldVal.orderStatuses.length; i++) {
if (!value.includes(this.oldVal.orderStatuses[i])) {
targetVal = this.oldVal.orderStatuses[i]
break
}
}
}
!targetVal && (this.searchForm.orderStatuses = isAdd ? this.searchFormData[formIdx].optionList.map(item => item.confId) : [])
if (targetVal) {
var idx = value.findIndex(item => item == '')
if (idx != -1 && this.searchForm.orderStatuses.length < this.searchFormData[formIdx].optionList.length) {
this.searchForm.orderStatuses.splice(idx, 1)
} else if (idx == -1 && this.searchForm.orderStatuses.length == this.searchFormData[formIdx].optionList.length - 1) {
this.searchForm.orderStatuses.push('')
}
}
this.oldVal.orderStatuses = this.$common.utils.deepClone(this.searchForm.orderStatuses)
}
},
{
label: '售后状态',
name: 'afterSaleStatuses',
type: 'select',
labelWidth: 72,
multiple: true,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'searchAfterSaleStatusList',
changeAttr: (value, targetItem) => {
var isAdd = value.length > this.oldVal.afterSaleStatuses.length
var targetVal = value[value.length - 1]
var formIdx = this.searchFormData.findIndex(item => item.label == '售后状态')
if (!isAdd) {
for (var i = 0; i < this.oldVal.afterSaleStatuses.length; i++) {
if (!value.includes(this.oldVal.afterSaleStatuses[i])) {
targetVal = this.oldVal.afterSaleStatuses[i]
break
}
}
}
!targetVal && (this.searchForm.afterSaleStatuses = isAdd ? this.searchFormData[formIdx].optionList.map(item => item.confId) : [])
if (targetVal) {
var idx = value.findIndex(item => item == '')
if (idx != -1 && this.searchForm.afterSaleStatuses.length < this.searchFormData[formIdx].optionList.length) {
this.searchForm.afterSaleStatuses.splice(idx, 1)
} else if (idx == -1 && this.searchForm.afterSaleStatuses.length == this.searchFormData[formIdx].optionList.length - 1) {
this.searchForm.afterSaleStatuses.push('')
}
}
this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses)
}
},
{
label: '门店',
name: 'merchantName',
type: 'input',
labelWidth: 56
},
{
label: '客户姓名',
name: 'customerName',
type: 'input'
},
{
label: '订单日期',
name: 'createDate',
type: 'datePicker',
labelWidth: 72,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '订单类型',
name: 'orderSource',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'orderSourceList'
},
{
label: '结算方式',
name: 'deliveryType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'deliveryTypeList'
},
{
label: '商户订单号',
name: 'outTradeNo',
type: 'input',
maxlength: 50
},
{
label: '车架号',
name: 'vin',
labelWidth: 56,
type: 'input',
maxlength: 50
},
{
label: '推荐人',
name: 'shareStaffName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '推荐人类型',
name: 'shareStaffSource',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'shareStaffSourceList'
},
{
label: '活动名称',
name: 'activityName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '商品名称',
name: 'goodsName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '手机号',
name: 'customerPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
},
{
label: '推荐人手机号',
name: 'shareStaffPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
},
{
label: '测试单',
name: 'orderType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'testSheetTypeList'
},
{
label: '业务场景',
name: 'businessType',
type: 'select',
optionList: [],
optionId: 'optionId',
optionLabel: 'optionLabel',
optionsName: 'businessTypeList'
},
{
label: '营销状态',
name: 'marketingStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'marketingStatusList'
}
]
try {
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterList = ['customerPhone', 'otherInformation', 'shareStaffName', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus']
filterTableList = ['customerPhone', 'otherInformation', 'shareStaffName', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffName', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
if (res == 1) {
for (let i = 0; i < tableColumns.length; i++) {
if (filterList.includes(tableColumns[i].prop)) {
if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1)
i--
}
}
for (let i = 0; i < searchFormData.length; i++) {
if (filterFormList.includes(searchFormData[i].name)) {
searchFormData.splice(i, 1)
i--
}
}
}
} catch (error) {
console.log(error)
}
this.tableParams.tableColumns = tableColumns
this.searchFormData = searchFormData
this.showTable = true
this.getOptionsList('searchFormData')
},
initParams () {
const cell = {
......
......@@ -4,78 +4,56 @@
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in detailFormDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item">
<span class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
<!-- <el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item> -->
<template v-if="detailForm.formDescribe">
<el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item>
</template>
</el-form>
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px"
:inline="true">
<el-form label-width="100px" :inline="true">
<el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length"
class="p-l-40">
<div v-if="orderGoods.length" class="p-l-40">
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px;">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;">
<td><img :src="item.goodsImage" class="img-60" /></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 *
{{ item.goodsNumber }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
</tr>
<tr v-if="detailForm.subOrderCoupon"
style="height: 40px;">
<td style="text-align: left;"
colspan="3">优惠券</td>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container edit-container"
v-if="orderRefund">
<div class="container edit-container" v-if="orderRefund">
<p class="edit-title">售后信息</p>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in afterInfoDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<el-form label-width="100px"
:inline="true">
<el-form label-width="100px" :inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls"
:key="index">
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
</span>
</div>
</el-form-item>
......@@ -84,8 +62,7 @@
</div>
</div>
<GLFooter>
<el-button @click="handleCancel"
size="medium">取消</el-button>
<el-button @click="handleCancel" size="medium">取消</el-button>
</GLFooter>
</div>
</template>
......@@ -108,7 +85,67 @@ export default {
orderGoods: [],
// 订单信息
detailFormDataRow: [],
detailFormData: [
detailFormData: [],
// 售后信息
afterInfoDataRow: [],
afterInfoData: [
{
label: '售后类型',
name: 'refundTypeName'
},
{
label: '申请金额',
name: 'refundPrice'
},
{
label: '申请时间',
name: 'createdDateStr'
},
{
label: '申请描述',
name: 'remark'
},
{
label: '快递公司',
name: 'deliveryCompany'
},
{
label: '快递单号',
name: 'deliveryNumber'
}
// {
// label: '售后凭证',
// name: ''
// }
],
// 基本数据
baseData: {
orderStatusList: orderManageStatusList,
orderSourceList: orderSourceList,
deliveryTypeList: deliveryTypeList,
refundTypeList: [
{ confId: '1', confName: '退款退货' },
{ confId: '2', confName: '退款不退货' },
{ confId: '3', confName: '众筹订单退款' }
],
shareStaffTypeList: [
{ confId: '1', confName: '个微' },
{ confId: '2', confName: '企微' }
]
},
hideStatus: false
}
},
created() {},
mounted() {
this.getCrowdfundingOrderConfig()
},
methods: {
async getCrowdfundingOrderConfig() {
let detailFormData = [
{
label: '订单编号',
name: 'orderCode'
......@@ -121,22 +158,26 @@ export default {
label: '订单时间',
name: 'createdDateStr'
},
// {
// label: '手机号码',
// name: 'customerPhone'
// },
// {
// label: '推荐人',
// name: 'shareStaffName'
// },
// {
// label: '推荐人类型',
// name: 'shareStaffTypeName'
// },
// {
// label: '车架号',
// name: 'vin'
// },
{
label: '手机号码',
name: 'customerPhone'
},
{
label: '推荐人',
name: 'shareStaffName'
},
{
label: '推荐人ID',
name: 'shareStaffId'
},
{
label: '推荐人类型',
name: 'shareStaffTypeName'
},
{
label: '车架号',
name: 'vin'
},
{
label: '门店信息',
name: 'merchantName'
......@@ -166,10 +207,10 @@ export default {
label: '尾款',
name: 'crowdFundingPrice'
},
// {
// label: '发货地址',
// name: 'shipAddress'
// },
{
label: '发货地址',
name: 'shipAddress'
},
{
label: '微信名称',
name: 'weChatName'
......@@ -182,68 +223,25 @@ export default {
label: '商品名称',
name: 'goodsName'
}
],
// 售后信息
afterInfoDataRow: [],
afterInfoData: [
{
label: '售后类型',
name: 'refundTypeName'
},
{
label: '申请金额',
name: 'refundPrice'
},
{
label: '申请时间',
name: 'createdDateStr'
},
{
label: '申请描述',
name: 'remark'
},
{
label: '快递公司',
name: 'deliveryCompany'
},
{
label: '快递单号',
name: 'deliveryNumber'
]
const res = await this.$apis.common.getCrowdfundingOrderConfig()
let hideStatus = res == 1
if (hideStatus) {
const filterFormList = ['customerPhone', 'shareStaffName', 'shareStaffTypeName', 'vin', 'shipAddress']
for (let i = 0; i < detailFormData.length; i++) {
if (filterFormList.includes(detailFormData[i].name)) {
detailFormData.splice(i, 1)
i--
}
}
// {
// label: '售后凭证',
// name: ''
// }
],
// 基本数据
baseData: {
orderStatusList: orderManageStatusList,
orderSourceList: orderSourceList,
deliveryTypeList: deliveryTypeList,
refundTypeList: [
{ confId: '1', confName: '退款退货' },
{ confId: '2', confName: '退款不退货' },
{ confId: '3', confName: '众筹订单退款' }
],
shareStaffTypeList: [
{ confId: '1', confName: '个微' },
{ confId: '2', confName: '企微' }
]
}
}
},
created() {
this.formToRow('afterInfoData')
},
mounted() {
this.setMinHeight('.edit-box')
this.routeInfo = this.$route.query
this.getInfo()
},
methods: {
this.hideStatus = hideStatus
this.detailFormData = detailFormData
this.setMinHeight('.edit-box')
this.routeInfo = this.$route.query
this.getInfo()
this.formToRow('afterInfoData')
},
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
......@@ -276,6 +274,9 @@ export default {
this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2)
}
this.orderGoods = res.orderGoods || []
if ((res.crowdFundingPrice || res.crowdFundingPrice == 0) && (res.payPrice || res.payPrice == 0)) {
this.detailForm.crowdFundingPrice = (res.crowdFundingPrice - res.payPrice).toFixed(2) + '元'
}
this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元'
this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-'
this.detailForm.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-'
......@@ -288,22 +289,24 @@ export default {
this.detailFormData.splice(idx, 1)
}
// 其他信息
// var formDescribeObj = {
// label: '其他信息',
// name: 'formDescribe',
// contentName: 'formContent',
// attrList: ['First', 'Second']
// }
// this.detailForm[formDescribeObj.name] = ''
// this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
// this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
// formDescribeObj.attrList.forEach(item => {
// let label = this.detailForm[formDescribeObj.name + item]
// let value = this.detailForm[formDescribeObj.contentName + item]
// if (label) {
// this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
// }
// })
if (!this.hideStatus) {
var formDescribeObj = {
label: '其他信息',
name: 'formDescribe',
contentName: 'formContent',
attrList: ['First', 'Second']
}
this.detailForm[formDescribeObj.name] = ''
this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
formDescribeObj.attrList.forEach(item => {
let label = this.detailForm[formDescribeObj.name + item]
let value = this.detailForm[formDescribeObj.contentName + item]
if (label) {
this.detailForm[formDescribeObj.name] += label + ':' + value + ' '
}
})
}
// 商品名称
this.detailForm.goodsName = this.detailForm.orderGoods.length ? this.detailForm.orderGoods.map(item => item.goodsName).join(',') : '-'
this.formToRow('detailFormData')
......
......@@ -74,7 +74,7 @@
slot="linkText"
slot-scope="scope"
>
<template v-if="scope.scope.incrementFlag == 'Y'">
<template v-if="scope.scope.incrementFlag == 'Y' || hideStatus">
{{scope.scope[scope.prop] || 0 }}
</template>
<template v-else>
......@@ -337,7 +337,8 @@ export default {
1: '广联收定金和尾款',
2: '广联收定金门店收尾款',
3: '广联收定金门店收全款退定金',
4: '门店收定金和尾款'
4: '门店收定金和尾款',
5: '服务商收定金门店收尾款'
}
return model[cellValue.paymentModel] || '--'
}
......@@ -411,7 +412,8 @@ export default {
confName: '已结束'
}
]
}
},
hideStatus: false
}
},
......@@ -421,10 +423,15 @@ export default {
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getOptionsList('searchFormData')
},
methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig()
this.hideStatus = res == 1
},
getParams () {
var params = JSON.parse(JSON.stringify(this.searchForm))
return params
......
......@@ -335,6 +335,34 @@
</glsx-combi-form>
</div>
</div>
<!-- 收款模式 -->
<div
slot="paymentModel"
class="paymentModelSlot"
>
<el-radio-group v-model="editForm.paymentModel" :disabled="isDisabled">
<el-radio
:disabled="isDisabled"
:label="1"
>广联收定金和尾款</el-radio>
<el-radio
:disabled="isDisabled"
:label="2"
>广联收定金门店收尾款</el-radio>
<el-radio
:disabled="isDisabled"
:label="3"
>广联收定金门店收全款退定金</el-radio>
<el-radio
:disabled="isDisabled"
:label="4"
>门店收定金和尾款</el-radio>
<el-radio
:disabled="isDisabled"
:label="5"
>服务商收定金门店收尾款</el-radio>
</el-radio-group>
</div>
</glsx-combi-form>
</div>
<GLFooter>
......@@ -447,7 +475,7 @@ export default {
forwardTitle: '',
posterImg: '',
// 1-否,2-是
orderEndDays: 30,//订单完结时间天数
orderEndDays: 60,//订单完结时间天数
selectCarNumberFlag: 2,
selectVehicleTypeFlag: 2,
selectPhoneNumberFlag: 2,
......@@ -1144,6 +1172,11 @@ export default {
optionId: 'id',
optionLabel: 'accountName',
optionList: []
},
{
label: '收款模式',
name: 'paymentModel',
addHtml: 'paymentModel'
}
],
//直播配置
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!