Commit 40bd88e8 by 前端

Merge branch 'v3.4.0-0117' into 'master'

V3.4.0 0117

See merge request !30
2 parents d1e88b9a 92732727
...@@ -1860,75 +1860,6 @@ ...@@ -1860,75 +1860,6 @@
"webpack-chain": "^6.4.0", "webpack-chain": "^6.4.0",
"webpack-dev-server": "^3.11.0", "webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader-v16@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
} }
}, },
"@vue/cli-shared-utils": { "@vue/cli-shared-utils": {
...@@ -12703,6 +12634,75 @@ ...@@ -12703,6 +12634,75 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.6.5", "version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
...@@ -31,6 +31,16 @@ const getActivitylist = params => { ...@@ -31,6 +31,16 @@ const getActivitylist = params => {
sign: true sign: true
}) })
} }
//战报配置列表
const activityOpen = params => {
params.method = `scrm.api.shopmall.activity.action.report.open`
return http({
url,
method: 'post',
data: params,
sign: true
})
}
// 批量配置众筹活动战报专员 // 批量配置众筹活动战报专员
const insertStaff = params => { const insertStaff = params => {
...@@ -66,4 +76,4 @@ const getGroupList = params => { ...@@ -66,4 +76,4 @@ const getGroupList = params => {
}) })
} }
export default { getStaffList, getMerchantList, getlistDepartmentTree, getActivitylist, insertStaff, getGroupList } export default { getStaffList, getMerchantList, getlistDepartmentTree, getActivitylist, insertStaff, getGroupList, activityOpen }
...@@ -187,4 +187,16 @@ const batchRefundOrder = params => { ...@@ -187,4 +187,16 @@ const batchRefundOrder = params => {
}) })
} }
export default { getInstallInfo, orderVerfication, signerOrder, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType, batchRefundOrder } /**导入众筹订单 */
const importCrowdFundingOrder = params => {
params.method = 'scrm.api.shopmall.weapp.crowdFunding.order.import'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
export default { getInstallInfo, orderVerfication, signerOrder, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, updateOrderType, batchRefundOrder, importCrowdFundingOrder }
import { http } from '@/main'
const url1 = '/rop-scrm-entmicro/router'
const url = '/rop-scrm-shopmall/router'
//门店号选择服务
const getMerchantList = params => {
params.method = 'entmicro.api.merchant.listDepartmentTree.select.merchant'
return http({
url: url1,
method: 'post',
data: params,
sign: true
})
}
const getlistDepartmentTree = params => {
params.method = `entmicro.api.department.listDepartmentTree`
return http({
url: url1,
method: 'GET',
data: params,
sign: true
})
}
// 园区店战报配置
const getYqReportlist = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.listWithPage'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
// 更新园区店战报配置
const updateYqConfig = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.updateConfig'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true,
returnAll: true
})
}
// 批量配置众筹活动战报专员
const insertStaff = params => {
params.method = `scrm.api.shopmall.activity.action.report.staff.insert`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 根据众筹活动id获取众筹活动战报专员列表(运营版)
const getStaffList = params => {
params.method = `scrm.api.shopmall.activity.action.report.staff.list`
return http({
url,
method: 'post',
data: params,
sign: true
})
}
// 企微高级群聊列表
const getGroupList = params => {
params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list`
return http({
url: url1,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getStaffList, getMerchantList, getlistDepartmentTree, getYqReportlist, updateYqConfig, insertStaff, getGroupList }
...@@ -183,6 +183,17 @@ const getPayListApi = params => { ...@@ -183,6 +183,17 @@ const getPayListApi = params => {
}) })
} }
/**支付商户管理-下拉列表 */
const getPayMerchatListApi = params => {
params.method = 'entmicro.api.payment.pageListPayment'
return http({
url: 'rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
/**数据看板员工排名 */ /**数据看板员工排名 */
const getRankListApi = params => { const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page' params.method = 'scrm.api.shopmall.activity.ranking.page'
...@@ -281,4 +292,4 @@ const getCrowdfundingParams = params => { ...@@ -281,4 +292,4 @@ const getCrowdfundingParams = params => {
sign: true sign: true
}) })
} }
export default { getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics, getCrowdfundingParams } export default { getPayListApi, getPayMerchatListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics, getCrowdfundingParams }
...@@ -136,7 +136,7 @@ html { ...@@ -136,7 +136,7 @@ html {
.el-range-editor.is-active, .el-range-editor.is-active,
.el-range-editor.is-active:hover { .el-range-editor.is-active:hover {
border-color: #5850ff; border-color: #5850ff;
width: 215px; // width: 215px;
} }
.marketing .container { .marketing .container {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: limin * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2021-09-07 14:38:52 * @LastEditTime: 2023-01-10 10:29:41
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config') // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config') return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -87,6 +87,13 @@ const staticRoutes = Object.freeze([ ...@@ -87,6 +87,13 @@ const staticRoutes = Object.freeze([
path: '/payMerchantsManage/addPayMerchant', path: '/payMerchantsManage/addPayMerchant',
component: resolve => require([`@/views/payMerchantsManage/addPayMerchant.vue`], resolve), component: resolve => require([`@/views/payMerchantsManage/addPayMerchant.vue`], resolve),
meta: {} meta: {}
},
// 转化+订单推送
{
name: 'saasOrder',
path: '/saasOrder/index',
component: resolve => require([`@/views/saasOrder/index.vue`], resolve),
meta: {}
} }
]) ])
export default staticRoutes export default staticRoutes
...@@ -12,9 +12,10 @@ let instance = null ...@@ -12,9 +12,10 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, merchantId } = await fetchConfig() const { response, request, sign, secret, sign_common, request_common, merchantId, saasOrder } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
Vue.prototype.$saasOrder = saasOrder
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$request = request Vue.prototype.$request = request
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="recordForm.imageUrlArr && recordForm.imageUrlArr.length < 9"> <template v-if="recordForm.imageUrlArr.length < 9">
<div class="upload-img"> <div class="upload-img">
<i class="el-icon-plus avatar-uploader-desc-icon"></i> <i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div> <div class="avatar-uploader-desc-word">上传照片</div>
...@@ -143,6 +143,7 @@ export default { ...@@ -143,6 +143,7 @@ export default {
getActivityRecordDetail(id) { getActivityRecordDetail(id) {
this.$apis.record.getActivityRecordDetail({ Id: id }).then(res => { this.$apis.record.getActivityRecordDetail({ Id: id }).then(res => {
if (res) { if (res) {
if (!res.imageUrlArr) res.imageUrlArr = []
this.recordForm = res this.recordForm = res
} }
}) })
...@@ -328,6 +329,7 @@ export default { ...@@ -328,6 +329,7 @@ export default {
default: default:
this.recordForm.videoUrl = '' this.recordForm.videoUrl = ''
} }
console.log(this.recordForm, '===')
}, },
handleCancel() { handleCancel() {
this.$router.go(-1) this.$router.go(-1)
...@@ -344,6 +346,9 @@ export default { ...@@ -344,6 +346,9 @@ export default {
return return
} }
let params = JSON.parse(JSON.stringify(this.recordForm)) let params = JSON.parse(JSON.stringify(this.recordForm))
if (!params.imageUrlArr.length) {
params.imageUrlArr = ''
}
// 创建 // 创建
if (this.routeInfo.addOrEdit == 1) { if (this.routeInfo.addOrEdit == 1) {
let detailData = await this.$apis.record.findActivity({ activityId: this.recordForm.crowdFundActivityId }) let detailData = await this.$apis.record.findActivity({ activityId: this.recordForm.crowdFundActivityId })
...@@ -376,6 +381,7 @@ export default { ...@@ -376,6 +381,7 @@ export default {
} else { } else {
// 编辑 // 编辑
params.id = this.routeInfo.id params.id = this.routeInfo.id
console.log(params, '--')
this.$apis.record.updateActivityRecord(params).then(res => { this.$apis.record.updateActivityRecord(params).then(res => {
if (res) { if (res) {
this.$message({ this.$message({
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else>无</div>
</div> </div>
</div> </div>
</div> </div>
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-04 16:41:09
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-11 17:18:05
* @FilePath: \scrm-micro-battles\src\views\battle\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 专区管理 --> <!-- 专区管理 -->
<template> <template>
<div class="activity"> <div class="activity">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs> <GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">专员列表</div> <div class="title-text">专员列表</div>
<template v-if="activeName == 'first'"> <template v-if="activeName == 'first'">
...@@ -13,12 +22,14 @@ ...@@ -13,12 +22,14 @@
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable"> <GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div> <div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleClose(scope.scope, 'close')" v-if="scope.scope.actionReportSendFlag == 1">关闭</el-button>
<el-button type="text" @click="handleClose(scope.scope, 'open')" v-else>打开</el-button>
<el-button type="text" v-if="scope.scope.reportStaffs.length == 0" @click="handlebattleOn(scope.scope)">配置</el-button> <el-button type="text" v-if="scope.scope.reportStaffs.length == 0" @click="handlebattleOn(scope.scope)">配置</el-button>
<el-button type="text" v-else @click="handlebattleOn(scope.scope, 'edit')">编辑</el-button> <el-button type="text" v-else @click="handlebattleOn(scope.scope, 'edit')">编辑</el-button>
</div> </div>
</GLTable> </GLTable>
</div> </div>
<GLDialog :mode="mode" class="battle-dialog" title="配置专员" @onOk="handlebattleConfirm" @onCancel="handlebattleClose" :visible.sync="battleVisible" :beforeSearchFn="beforeSearchFn"> <GLDialog mode="big" class="battle-dialog" bigTitle="配置专员" @onOk="handlebattleConfirm" @onCancel="handlebattleClose" :visible.sync="battleVisible" :beforeSearchFn="beforeSearchFn">
<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="发送人员:">
...@@ -43,6 +54,9 @@ ...@@ -43,6 +54,9 @@
<GLFull :label="tag.staffName" :identi="`${tag.id}`" labelWidth="110" textType="user" :haveClose="true" v-for="(tag, idx) in userList" :key="idx" @handleRemove="removeStaff(idx)"></GLFull> <GLFull :label="tag.staffName" :identi="`${tag.id}`" labelWidth="110" textType="user" :haveClose="true" v-for="(tag, idx) in userList" :key="idx" @handleRemove="removeStaff(idx)"></GLFull>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="战报配置:">
<div class="config-pannel">
<div class="config-item">
<!-- 战报自动发送 --> <!-- 战报自动发送 -->
<el-form-item class="select-wrap" label="战报自动发送:"> <el-form-item class="select-wrap" label="战报自动发送:">
<div class="common el-form-item__content"> <div class="common el-form-item__content">
...@@ -101,6 +115,10 @@ ...@@ -101,6 +115,10 @@
</gl-select-menu> </gl-select-menu>
</transition> </transition>
</el-form-item> </el-form-item>
</div>
<div class="clear-btn" @click="clearWechat">清空</div>
</div>
</el-form-item>
</el-form> </el-form>
</div> </div>
</GLDialog> </GLDialog>
...@@ -146,7 +164,31 @@ export default { ...@@ -146,7 +164,31 @@ export default {
name: 'second' name: 'second'
} }
], ],
tableSearchForm: {}, searchFormData: [
{
label: '活动门店',
name: 'merchantName',
type: 'input'
},
{
label: '活动名称',
name: 'activityNames',
type: 'select',
width: '215px',
multiple: true,
attrs: {
multipleLimit: 10
},
noFilter: false,
optionList: [],
optionId: 'confId',
optionLabel: 'confName'
}
],
tableSearchForm: {
merchantName: '',
activityName: ''
},
// 表格 // 表格
userList: [], userList: [],
selectArray: [], selectArray: [],
...@@ -207,6 +249,7 @@ export default { ...@@ -207,6 +249,7 @@ export default {
}, },
mounted() { mounted() {
this.getCrowdfundingParams()
this.getMerchantList() this.getMerchantList()
}, },
computed: { computed: {
...@@ -244,6 +287,22 @@ export default { ...@@ -244,6 +287,22 @@ export default {
} }
}, },
methods: { methods: {
async getCrowdfundingParams() {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 1
})
let activityNameList = []
if (activity?.parameters && activity.parameters.length) {
activity.parameters.map(e => {
activityNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[1], 'optionList', this.$common.utils.deepClone(activityNameList))
},
clearData() { clearData() {
this.setectList = [] this.setectList = []
this.config.merchantId = this.merchantId this.config.merchantId = this.merchantId
...@@ -315,6 +374,38 @@ export default { ...@@ -315,6 +374,38 @@ export default {
this.userList = [] this.userList = []
} }
}, },
handleClose(scope, status) {
const info = status == 'close' ? '关闭' : '打开'
const infoN = status == 'close' ? '取消' : '恢复'
this.$confirm(`${info}则${infoN}战报发送功能,是否确认${info}?`, info, {
confirmButtonText: '是',
cancelButtonText: '否',
type: 'warning'
})
.then(() => {
this.activityOpen(scope)
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消'
})
})
},
activityOpen(scope) {
const { activityId, actionReportSendFlag } = scope
this.$apis.battle
.activityOpen({
activityId,
actionReportSendFlag: actionReportSendFlag == 1 ? 2 : 1
})
.then(res => {
if (res) {
this.handleSearch()
this.$message.success('操作成功')
}
})
},
battleSetHandle() { battleSetHandle() {
if (this.setectList.length == 0) { if (this.setectList.length == 0) {
this.$message({ this.$message({
...@@ -324,6 +415,7 @@ export default { ...@@ -324,6 +415,7 @@ export default {
return return
} }
this.userList = [] this.userList = []
// this.editStatus = false
this.battleVisible = true this.battleVisible = true
}, },
dateFormatFun(date) { dateFormatFun(date) {
...@@ -353,11 +445,12 @@ export default { ...@@ -353,11 +445,12 @@ export default {
}) })
return return
} }
if (this.wechat.automaticName !== ''&&this.wechat.roomName == '') { if (this.wechat.automaticName !== '' && this.wechat.roomName == '') {
this.$message({ this.$message({
message: '请选择关联群', message: '请选择关联群',
type: 'error' type: 'error'
}) })
return
} }
let staffRequestList = [] let staffRequestList = []
let batchstaffRequestList = [] let batchstaffRequestList = []
...@@ -371,13 +464,19 @@ export default { ...@@ -371,13 +464,19 @@ export default {
}) })
}) })
this.setectList.forEach(item => { this.setectList.forEach(item => {
batchstaffRequestList.push({ let autoStaff = {}
activityId: item.activityId, if (Object.keys(this.wechat).length) {
autoStaff = {
autoStaffId: this.wechat.staffId, autoStaffId: this.wechat.staffId,
autoStaffName: this.wechat.automaticName, autoStaffName: this.wechat.automaticName,
autoGroupId: this.wechat.groupId, autoGroupId: this.wechat.groupId,
autoGroupName: this.wechat.roomName, autoGroupName: this.wechat.roomName,
autoGroupMerchantId: this.$merchantId, autoGroupMerchantId: this.$merchantId
}
}
batchstaffRequestList.push({
activityId: item.activityId,
...autoStaff,
staffRequestList staffRequestList
}) })
}) })
...@@ -405,9 +504,14 @@ export default { ...@@ -405,9 +504,14 @@ export default {
this.userList = [] this.userList = []
this.setectList.push(data) this.setectList.push(data)
this.battleVisible = true this.battleVisible = true
if (sign) this.getStaffList(data) if (sign) {
this.getStaffList(data)
}
this.getDepartmentTree() this.getDepartmentTree()
}, },
clearWechat() {
this.wechat = {}
},
//获取编辑 //获取编辑
getStaffList(data) { getStaffList(data) {
this.$apis.battle.getStaffList({ id: data.activityId }).then(res => { this.$apis.battle.getStaffList({ id: data.activityId }).then(res => {
...@@ -434,8 +538,14 @@ export default { ...@@ -434,8 +538,14 @@ export default {
handleClick() { handleClick() {
this.handleSearch() this.handleSearch()
}, },
handleReset() {
this.tableSearchForm = {}
this.handleSearch()
},
getParams() { getParams() {
let params = {} let params = {
...this.tableSearchForm
}
this.activeName == 'first' ? (params.activityStatus = 2) : (params.activityStatus = 3) this.activeName == 'first' ? (params.activityStatus = 2) : (params.activityStatus = 3)
return params return params
}, },
...@@ -512,6 +622,11 @@ export default { ...@@ -512,6 +622,11 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.activity { .activity {
/deep/ {
.el-select .el-tag {
max-width: 60% !important;
}
}
.container { .container {
margin-top: 16px; margin-top: 16px;
.title { .title {
...@@ -526,7 +641,26 @@ export default { ...@@ -526,7 +641,26 @@ export default {
} }
} }
} }
.config-pannel {
background: #f9f9f9;
width: 520px;
height: 168px;
display: flex;
.config-item {
padding: 26px 20px;
}
.clear-btn {
cursor: pointer;
background: #f1f1f1;
width: 40px;
height: 100%;
line-height: 20px;
font-size: 14px;
color: #666666;
padding: 60px 13px;
box-sizing: border-box;
}
}
.input-tag-wrapper { .input-tag-wrapper {
position: relative; position: relative;
font-size: 14px; font-size: 14px;
......
...@@ -27,6 +27,13 @@ ...@@ -27,6 +27,13 @@
</template> </template>
</el-tabs> </el-tabs>
</div> </div>
<div class="btn-group">
<el-button
class="default-blue-btn"
:size="size"
type="default"
@click="visibleImportDialog(true)"
>导入</el-button>
<el-button <el-button
class="default-blue-btn" class="default-blue-btn"
:size="size" :size="size"
...@@ -35,6 +42,7 @@ ...@@ -35,6 +42,7 @@
>导出</el-button> >导出</el-button>
</div> </div>
</div> </div>
</div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<div class="order-manage-table"> <div class="order-manage-table">
<div class="table-tips"> <div class="table-tips">
...@@ -461,6 +469,53 @@ ...@@ -461,6 +469,53 @@
</div> </div>
</GLTable> </GLTable>
</GLDialog> </GLDialog>
<!-- 导入 -->
<GLDialog
mode="mid"
class="import-dialog"
title="上传文件"
:visible.sync="importVisible"
@onCancel="importVisible = !importVisible"
@onOk="importFun"
>
<div class="gl-form-page gl-form-min">
<el-form
ref="form"
label-width="154px"
>
<el-form-item label="导入文件:">
<div class="flex">
<el-input
v-model="file.fileName"
readonly
></el-input>
<div class="import-button">
<el-button
class="default-btn"
:size="size"
type="default"
>
导入文件
<input
type="file"
class="upload-input"
accept=".xlsx, .xls"
@change="e => handleXlsxChange(e)"
ref="uploadInput"
/>
</el-button>
<el-button
class="download-btn"
type="text"
@click="downloadXlsx"
>模版下载</el-button>
</div>
</div>
</el-form-item>
</el-form>
</div>
</GLDialog>
</div> </div>
</template> </template>
...@@ -1213,6 +1268,11 @@ export default { ...@@ -1213,6 +1268,11 @@ export default {
} }
] ]
},
importVisible: false,
file: {
fileName: '',
fileType: ''
} }
} }
}, },
...@@ -1628,6 +1688,68 @@ export default { ...@@ -1628,6 +1688,68 @@ export default {
}) })
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false) this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
} }
},
handleXlsxChange (e) {
let [file] = e.srcElement.files,
reader = new FileReader()
if (!file) return
this.$notify({
title: '提示',
message: '文件上传中,请稍后'
})
// 默认1MB
this.file.fileName = file.name
reader.readAsDataURL(file)
reader.onload = el => {
const imgFile = el.target.result
const arrBase64 = imgFile.split(',')
const splitStr = file.name.split('.')
this.file.fileType = splitStr[splitStr.length - 1] + '@' + arrBase64[1]
this.$notify({
title: '提示',
message: '文件上传成功',
type: 'success'
})
}
},
importFun () {
let { file: {
fileType,
fileName
} } = this
if (fileType) this.$apis.orderManage.importCrowdFundingOrder({ file: fileType }).then(res => {
console.log(res)
if (res) {
this.$notify({
title: '提示',
message: '订单导入成功',
type: 'success'
})
this.visibleImportDialog()
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
}
})
else this.$message.error(fileName ? '文件上传中,请稍后' : '请上传文件后,在点击确定')
},
downloadXlsx () {
var alink = document.createElement('a')
alink.href = '//img02.glsx.com.cn/weapp/resource/saas/scrm/xlsx/订单导入模板.xlsx'
alink.setAttribute('target', '_blank')
alink.download = '订单导入模板.xlsx'
alink.click()
alink.remove()
},
visibleImportDialog (val = false) {
if (this.$refs?.uploadInput) this.$refs.uploadInput.value = null
this.file = {
fileName: '',
fileType: ''
}
this.importVisible = val
} }
} }
} }
...@@ -1757,4 +1879,36 @@ export default { ...@@ -1757,4 +1879,36 @@ export default {
.el-select .el-tag { .el-select .el-tag {
max-width: 60% !important; max-width: 60% !important;
} }
.import-dialog {
.el-dialog__body {
height: 70px !important;
min-height: 70px !important;
max-height: 70px !important;
}
.import-button {
position: relative;
margin-left: 10px;
cursor: pointer;
.upload-input {
position: absolute;
top: 0;
left: 0;
width: 88px;
height: 100%;
opacity: 0;
z-index: 1;
cursor: pointer !important;
}
}
.download-btn {
position: absolute;
top: 110%;
right: 0;
}
}
.btn-group {
.el-button + .el-button {
margin-left: 8px;
}
}
</style> </style>
...@@ -218,6 +218,7 @@ export default { ...@@ -218,6 +218,7 @@ export default {
}, },
resetTable() { resetTable() {
this.searchForm = {} this.searchForm = {}
this.getTable()
// this.$refs.showSearch.refreshTable() // this.$refs.showSearch.refreshTable()
}, },
handleClose() { handleClose() {
......
...@@ -3,21 +3,34 @@ ...@@ -3,21 +3,34 @@
<div class="data-board-box"> <div class="data-board-box">
<p class="edit-title">数据看板</p> <p class="edit-title">数据看板</p>
<div class="p-20"> <div class="p-20">
<GLCombiForm ref="dataRef" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch"></GLCombiForm> <GLCombiForm ref="dataRef"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"></GLCombiForm>
<div class="data-view"> <div class="data-view">
<template v-for="(item, index) in dataList"> <template v-for="(item, index) in dataList">
<div :key="index" class="item"> <div :key="index"
class="item">
<div class="name"> <div class="name">
{{ item.name }} {{ item.name }}
<el-popover class="tips" placement="top" width="260" trigger="hover" :content="item.tips"> <el-popover class="tips"
<img slot="reference" class="tips-icon" src="@/components/glsx-combi-form/images/icon-tip.png" /> placement="top"
width="260"
trigger="hover"
:content="item.tips">
<img slot="reference"
class="tips-icon"
src="@/components/glsx-combi-form/images/icon-tip.png" />
</el-popover> </el-popover>
</div> </div>
<div class="value">{{ dataBoard[item.key] || 0 }}</div> <div class="value">{{ dataBoard[item.key] || 0 }}</div>
<template v-if="item.half"> <template v-if="item.half">
<div class="half"> <div class="half">
日环比: 日环比:
<div :class="['icon', { up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half] < 0 }]"></div> <div
:class="['icon', { up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half] < 0 }]">
</div>
<span class="num">{{ Math.abs(dataBoard[item.half]).toFixed(2) || 0 }}%</span> <span class="num">{{ Math.abs(dataBoard[item.half]).toFixed(2) || 0 }}%</span>
</div> </div>
</template> </template>
...@@ -37,14 +50,33 @@ ...@@ -37,14 +50,33 @@
@handleRest="handleReset"></GLCombiForm> @handleRest="handleReset"></GLCombiForm>
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title"></span> <span class="table-title"></span>
<el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('rank')">导出</el-button> <el-button :size="size"
class="default-blue-btn"
type="default"
@click="handleExport('rank')">导出</el-button>
</div> </div>
<GLTable ref="dataTableRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :hasNum="false"> <GLTable ref="dataTableRef"
<div slot="shareName" class="flex-align" slot-scope="scope"> :getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
:hasNum="false">
<div slot="shareName"
class="flex-align"
slot-scope="scope">
<template v-if="scope.scope.shareAvatar"> <template v-if="scope.scope.shareAvatar">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block"> <el-popover placement="top"
<img class="table-popover-img" :src="scope.scope.shareAvatar" /> width="160"
<img class="img-36 pointer" slot="reference" :src="scope.scope.shareAvatar" /> trigger="hover"
popper-class="table-popover-block">
<img class="table-popover-img"
:src="scope.scope.shareAvatar" />
<img class="img-36 pointer"
slot="reference"
:src="scope.scope.shareAvatar" />
</el-popover> </el-popover>
</template> </template>
<span class="m-l-10">{{ scope.scope.shareName }}</span> <span class="m-l-10">{{ scope.scope.shareName }}</span>
...@@ -58,20 +90,32 @@ ...@@ -58,20 +90,32 @@
<div class="p-20"> <div class="p-20">
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title">数据列表</span> <span class="table-title">数据列表</span>
<el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('dailyOrders')">导出</el-button> <el-button :size="size"
class="default-blue-btn"
type="default"
@click="handleExport('dailyOrders')">导出</el-button>
</div> </div>
<el-table v-if="DailyOrderQuantityList.length" :data="DailyOrderQuantityListFormat" style="width: 100%"> <el-table v-if="DailyOrderQuantityList.length"
<el-table-column :formatter="formatterHeader" label=""></el-table-column> :data="DailyOrderQuantityListFormat"
style="width: 100%">
<el-table-column :formatter="formatterHeader"
label=""></el-table-column>
<!-- width="140px" --> <!-- width="140px" -->
<el-table-column v-for="(item, index) in DailyOrderQuantityList" :key="index" :prop="item" :label="item.day"> <el-table-column v-for="(item, index) in DailyOrderQuantityList"
:key="index"
:prop="item"
:label="item.day">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span> <span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :formatter="formatterEnd" fixed="right" label="总计"></el-table-column> <el-table-column :formatter="formatterEnd"
fixed="right"
label="总计"></el-table-column>
</el-table> </el-table>
<div v-else> <div v-else>
<img src="url" alt="" /> <img src="url"
alt="" />
</div> </div>
</div> </div>
</div> </div>
...@@ -97,17 +141,32 @@ ...@@ -97,17 +141,32 @@
单 单
</span> </span>
</span> </span>
<el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('liveData')">导出</el-button> <el-button :size="size"
class="default-blue-btn"
type="default"
@click="handleExport('liveData')">导出</el-button>
</div> </div>
<!-- :searchForm="tableSearchForm" --> <!-- :searchForm="tableSearchForm" -->
<GLTable ref="dataTableRefDetailPage" :getListApi="getLiveDetailPage" :noDataImg="url" :tableParams="liveTableParams" :searchForm="LiveTableSearchForm" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="dataTableRefDetailPage"
<div slot="weChatName" class="flex-align" slot-scope="scope"> :getListApi="getLiveDetailPage"
<img v-if="scope.scope.avatar" class="img-36 pointer img-circle" :src="scope.scope.avatar" /> :noDataImg="url"
:tableParams="liveTableParams"
:searchForm="LiveTableSearchForm"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn">
<div slot="weChatName"
class="flex-align"
slot-scope="scope">
<img v-if="scope.scope.avatar"
class="img-36 pointer img-circle"
:src="scope.scope.avatar" />
<span class="m-l-10">{{ scope.scope.nickname }}</span> <span class="m-l-10">{{ scope.scope.nickname }}</span>
<span v-if="!scope.scope.avatar && !scope.scope.nickname">-</span> <span v-if="!scope.scope.avatar && !scope.scope.nickname">-</span>
</div> </div>
<div slot="orderStatus" slot-scope="scope"> <div slot="orderStatus"
<span :class="['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"></span> slot-scope="scope">
<span
:class="['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"></span>
<span>{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}</span> <span>{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}</span>
</div> </div>
</GLTable> </GLTable>
...@@ -128,7 +187,7 @@ const dataList = [ ...@@ -128,7 +187,7 @@ const dataList = [
{ name: '累计浏览量', key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' }, { name: '累计浏览量', key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' },
{ name: '累计访客数', key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' }, { name: '累计访客数', key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' },
{ name: '累计订单数', key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' } { name: '累计订单数', key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' }
], ],
optionList = [ optionList = [
{ confId: '1', confName: '转发次数' }, { confId: '1', confName: '转发次数' },
{ confId: '2', confName: '访客总数' }, { confId: '2', confName: '访客总数' },
...@@ -316,10 +375,12 @@ export default { ...@@ -316,10 +375,12 @@ export default {
...result ...result
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
handleReset() { handleReset() {
this.searchRankForm = this.$options.data.call(this).searchRankForm this.searchRankForm = this.$options.data.call(this).searchRankForm
console.log('handleReset')
this.handleSearchRank()
// this.$refs.rankRef.refreshTable() // this.$refs.rankRef.refreshTable()
// this.handleSearch() // this.handleSearch()
}, },
......
...@@ -889,7 +889,9 @@ export default { ...@@ -889,7 +889,9 @@ export default {
reservationInstallContactsName: '', reservationInstallContactsName: '',
reservationInstallContactsPhone: '', reservationInstallContactsPhone: '',
targetStock: '', targetStock: '',
paymentAccountSource: '1',
paymentAccountId: '', paymentAccountId: '',
payMannerId: '',
paymentModel: 1, paymentModel: 1,
// 战报内容配置 // 战报内容配置
activityActionReport: { activityActionReport: {
...@@ -1553,6 +1555,28 @@ export default { ...@@ -1553,6 +1555,28 @@ export default {
addHtml: 'live' addHtml: 'live'
}, },
{ {
label: '账户类型',
name: 'paymentAccountSource',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
optionList: [
{
confId: '1',
confName: '广联'
},
{
confId: '2',
confName: '服务商'
}
],
isDisabled: false,
handleRadioChange: (value, targetItem) => {
this.editForm.paymentAccountId = ''
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = value == '1' ? this.baseData.payList : this.baseData.payMerchatList
}
},
{
label: '定金收款账户', label: '定金收款账户',
name: 'paymentAccountId', name: 'paymentAccountId',
type: 'select', type: 'select',
...@@ -1676,7 +1700,11 @@ export default { ...@@ -1676,7 +1700,11 @@ export default {
COVER_LIVE: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif', COVER_LIVE: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif',
COVER_REPLAY: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_REPLAY.gif' COVER_REPLAY: 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_REPLAY.gif'
}), }),
defaultFloatingMaskDiagram: 'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif' defaultFloatingMaskDiagram: 'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif',
baseData: {
payList: [],
payMerchatList: []
}
} }
}, },
filters: { filters: {
...@@ -1699,7 +1727,7 @@ export default { ...@@ -1699,7 +1727,7 @@ export default {
this.editFormData.map(item => { this.editFormData.map(item => {
if (!['activityName', 'activityImg', 'promotion'].includes(item.name)) this.changeFormAttr('editFormData', 'isDisabled', [item.label], true) if (!['activityName', 'activityImg', 'promotion'].includes(item.name)) this.changeFormAttr('editFormData', 'isDisabled', [item.label], true)
}) })
this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true) this.changeFormAttr('configEditFormData', 'isDisabled', ['账户类型', '定金收款账户'], true)
} }
} }
}, },
...@@ -2269,6 +2297,8 @@ export default { ...@@ -2269,6 +2297,8 @@ export default {
this.handleMusicChange(this.musicList.length - 1) this.handleMusicChange(this.musicList.length - 1)
} }
} }
// 定金收款账户
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource + ''
// 表单设置 // 表单设置
this.editForm.formDescribeCheck = [] this.editForm.formDescribeCheck = []
this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1 this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1
...@@ -2423,6 +2453,9 @@ export default { ...@@ -2423,6 +2453,9 @@ export default {
param[item] = '' param[item] = ''
}) })
} }
// 定金收款账户
param.payMannerId = param.paymentAccountSource == 1 ? '' : param.paymentAccountId
param.paymentAccountId = param.paymentAccountSource == 1 ? param.paymentAccountId : ''
// 标杆门店总产值/元(已结束战报) // 标杆门店总产值/元(已结束战报)
if (param.activityActionReport.signMerchantProduceCount) { if (param.activityActionReport.signMerchantProduceCount) {
param.activityActionReport.signMerchantProduceCount = (this.editForm.activityActionReport.signMerchantProduceCount * 10000).toFixed(0) param.activityActionReport.signMerchantProduceCount = (this.editForm.activityActionReport.signMerchantProduceCount * 10000).toFixed(0)
...@@ -2655,15 +2688,27 @@ export default { ...@@ -2655,15 +2688,27 @@ export default {
this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff this.liveEditFormData.find(item => item.name == 'liveBroadcastRoomId').optionList = staff
}) })
}, },
// 定金收款账户 getPayMerchatList() {
getPayList() { this.$apis.seckillActivity.getPayMerchatListApi({ pageNum: 1, pageSize: 9999 }).then(res => {
this.$apis.seckillActivity.getPayListApi({}).then(res => { res.list.forEach(item => {
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = res item.id = item.payMannerId
this.editForm.paymentAccountId = this.editForm.paymentAccountId || res.find(item => item.isDefault == 'Y').id item.accountName = item.mchName
})
this.baseData.payMerchatList = res.list
this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = this.editForm.paymentAccountSource == 1 ? this.baseData.payList : this.baseData.payMerchatList
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
}) })
},
// 定金收款账户
getPayList() {
this.$apis.seckillActivity.getPayListApi({}).then(res => {
this.baseData.payList = res
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource || '1'
this.editForm.paymentAccountId = this.editForm.paymentAccountId || this.editForm.payMannerId || res.find(item => item.isDefault == 'Y')?.id
this.getPayMerchatList()
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!