Commit 76dd9d56 by 前端

Merge branch 'v3.3.1' of http://192.168.3.233:8090/saas/scrm-micro-marketing into xuyl_dev_v3.3.1

2 parents 2198d7a6 c5211256
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
<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" <img class="tips-img" src="@/assets/icon-info.png" />
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>
...@@ -16,113 +15,62 @@ ...@@ -16,113 +15,62 @@
</div> </div>
<div class="container"> <div class="container">
<div class="sticky"> <div class="sticky">
<GLCombiForm ref="showSearch" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
: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" <el-tabs v-model="searchForm.requestSource" @tab-click="handleTabClick">
@tab-click="handleTabClick"> <el-tab-pane label="全部订单" name="0"></el-tab-pane>
<el-tab-pane label="全部订单" <el-tab-pane v-if="!isSpecialMerchat" label="已付款" name="1"></el-tab-pane>
name="0"></el-tab-pane> <el-tab-pane v-if="!isSpecialMerchat" label="未付款" name="2"></el-tab-pane>
<el-tab-pane v-if="!isSpecialMerchat" <el-tab-pane v-if="!isSpecialMerchat" label="已退款" name="3"></el-tab-pane>
label="已付款" <el-tab-pane v-if="!isSpecialMerchat" label="售后订单" name="4"></el-tab-pane>
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" <el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button>
: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" <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
:getListApi="getListApi" <div slot="weChatName" class="flex-align" slot-scope="scope">
:noDataImg="url" <img v-if="scope.scope.weChatImageUrl" class="img-36 pointer img-circle" :src="scope.scope.weChatImageUrl" />
: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" <template slot="vinNo" slot-scope="scope">
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" <el-popover popper-class="order-table-popover" placement="right-start" trigger="click">
placement="right-start" <p v-for="(item, index) in scope.scope.vinNo" :key="index">{{ item }}</p>
trigger="click"> <span class="car-no" slot="reference" v-show="Array.isArray(scope.scope.vinNo)">...({{ scope.scope.vinNo.length - 1 }})</span>
<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" <div slot="orderStatus" slot-scope="scope">
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" <div slot="shareStaffName" class="table-image" slot-scope="scope">
class="table-image"
slot-scope="scope">
<div> <div>
<img v-if="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" />
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" <span class="txt-green" v-if="scope.scope.shareStaffSource == 1">@微信</span>
v-if="scope.scope.shareStaffSource == 1">@微信</span> <span class="txt-orange" v-if="scope.scope.shareStaffSource == 2">@企微</span>
<span class="txt-orange" <span class="txt-blue" v-if="scope.scope.shareStaffSource == 3">@员工</span>
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" <div slot="assignName" slot-scope="scope">
slot-scope="scope">
<div> <div>
<template v-if="scope.scope.assignStaffName"> <template v-if="scope.scope.assignStaffName">
<img class="img-36 pointer img-circle" <img class="img-36 pointer img-circle" v-if="scope.scope.assignStaffImageUrl" :src="scope.scope.assignStaffImageUrl" />
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" <img class="img-36 pointer img-circle" v-if="scope.scope.shareStaffImageUrl" :src="scope.scope.shareStaffImageUrl" />
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>
...@@ -134,61 +82,23 @@ ...@@ -134,61 +82,23 @@
class="assignLabel">指派</span> --> class="assignLabel">指派</span> -->
</div> </div>
</div> </div>
<div class="table-btns" <div class="table-btns" slot="auth-button" slot-scope="scope">
slot="auth-button" <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
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" <GLDialog v-if="isExpressVisible" title="输入快递信息" mode="mid" okText="确定" cancelText="取消" :visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose">
title="输入快递信息" <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>
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" <GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="mid" okText="确定" cancelText="取消" :visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose">
title="订单核销(请确保用户到店后核销,避免引起不必要问题)" <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>
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" <GLDialog v-if="isExamineVisible" bigTitle="退款审核" mode="big" :visible.sync="isExamineVisible" @onOk="handleExamineConfirm" @onCancel="handleExamineClose">
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>
...@@ -203,11 +113,8 @@ ...@@ -203,11 +113,8 @@
<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" <span v-for="(item, index) in orderInfo.imgUrls" :key="index">
:key="index"> <el-image class="img-60" :src="item" :preview-src-list="[item]"></el-image>
<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="审核是否通过">
...@@ -217,24 +124,12 @@ ...@@ -217,24 +124,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" <glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="284px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
: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" <GLDialog v-if="isReceivingVisible" bigTitle="确认收货" mode="big" :visible.sync="isReceivingVisible" @onOk="handleReceivingConfirm" @onCancel="handleReceivingClose">
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>
...@@ -593,11 +488,11 @@ export default { ...@@ -593,11 +488,11 @@ export default {
fn: '退款' fn: '退款'
}, },
condition: row => { condition: row => {
return !this.isSpecialMerchat && row.orderSource == 4 && [2, 6, 21].includes(+row.orderStatus) 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)
} }
} }
}, },
...@@ -859,12 +754,23 @@ export default { ...@@ -859,12 +754,23 @@ export default {
{ confId: '0', confName: '否' }, { confId: '0', confName: '否' },
{ confId: '1', confName: '是' } { confId: '1', confName: '是' }
], ],
isOffSheetTypeList: [
{ confId: '0', confName: '是' },
{ confId: '1', confName: '否' }
],
businessTypeList: utils.deepClone(businessType) businessTypeList: utils.deepClone(businessType)
} }
} }
}, },
created() { created() {
this.checkMerchant() this.checkMerchant()
if (window.__POWERED_BY_QIANKUN__) {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
if (this.merchantModel == 2 && this.accountLevel == 4) {
this.initParams()
}
}
}, },
mounted() { mounted() {
...@@ -873,6 +779,27 @@ export default { ...@@ -873,6 +779,27 @@ export default {
}, },
methods: { methods: {
initParams() {
const cell = {
label: '线下订单',
prop: 'isOffline',
width: 120,
formatter: cellValue => {
return cellValue.isOffline == 1 ? '否' : cellValue.isOffline == 0 ? '是' : '-'
}
}
const searchCell = {
label: '线下订单',
name: 'isOffline',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'isOffSheetTypeList'
}
this.tableParams.tableColumns.splice(12, 0, cell)
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) {
...@@ -1051,7 +978,7 @@ export default { ...@@ -1051,7 +978,7 @@ 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
......
...@@ -465,7 +465,8 @@ export default { ...@@ -465,7 +465,8 @@ export default {
var txtObj = { var txtObj = {
add: '新建', add: '新建',
edit: '编辑', edit: '编辑',
copy: '复制' copy: '复制',
detail: '编辑'
}[addOrEdit] }[addOrEdit]
var params = { var params = {
addOrEdit: addOrEdit, addOrEdit: addOrEdit,
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import { downLoadFile, orderManageStatusList } from '@/common/constant' import { exportFn, orderManageStatusList } from '@/common/constant'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
const dataList = [ const dataList = [
...@@ -425,18 +425,17 @@ export default { ...@@ -425,18 +425,17 @@ export default {
if (name == 'rank') { if (name == 'rank') {
let params = this.getParams() let params = this.getParams()
this.$apis.seckillActivity.exportRankListApi(params).then(res => { this.$apis.seckillActivity.exportRankListApi(params).then(res => {
downLoadFile(res) exportFn(res)
}) })
} }
if (name == 'dailyOrders') { if (name == 'dailyOrders') {
this.$apis.seckillActivity.exportDailyOrderQuantityStatistics({ id: this.activityId }).then(result => { this.$apis.seckillActivity.exportDailyOrderQuantityStatistics({ id: this.activityId }).then(result => {
downLoadFile(result) exportFn(result)
}) })
} }
if (name == 'liveData') { if (name == 'liveData') {
this.$apis.seckillActivity.liveroomDetailexport({ activityId: this.activityId, currentPage: 1, pageSize: 100000 }).then(result => { this.$apis.seckillActivity.liveroomDetailexport({ activityId: this.activityId, currentPage: 1, pageSize: 100000 }).then(result => {
console.log(result) exportFn(result)
// downLoadFile(result)
}) })
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!