Commit bd0d3caa by 杨明

Merge branch 'v3.4.0-0117' of http://192.168.3.233:8090/saas/scrm-micro-battles into v3.4.0-0117

2 parents a4dcf5fe fd940d85
...@@ -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 {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
class="default-blue-btn" class="default-blue-btn"
:size="size" :size="size"
type="default" type="default"
@click="importVisible = true" @click="visibleImportDialog(true)"
>导入</el-button> >导入</el-button>
<el-button <el-button
class="default-blue-btn" class="default-blue-btn"
...@@ -501,6 +501,7 @@ ...@@ -501,6 +501,7 @@
class="upload-input" class="upload-input"
accept=".xlsx, .xls" accept=".xlsx, .xls"
@change="e => handleXlsxChange(e)" @change="e => handleXlsxChange(e)"
ref="uploadInput"
/> />
</el-button> </el-button>
<el-button <el-button
...@@ -1690,14 +1691,13 @@ export default { ...@@ -1690,14 +1691,13 @@ export default {
}, },
handleXlsxChange (e) { handleXlsxChange (e) {
console.log(e) let [file] = e.srcElement.files,
var [file] = e.srcElement.files reader = new FileReader()
if(!file) return if (!file) return
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '文件上传中,请稍后' message: '文件上传中,请稍后'
}) })
var reader = new FileReader()
// 默认1MB // 默认1MB
this.file.fileName = file.name this.file.fileName = file.name
reader.readAsDataURL(file) reader.readAsDataURL(file)
...@@ -1706,7 +1706,11 @@ export default { ...@@ -1706,7 +1706,11 @@ export default {
const arrBase64 = imgFile.split(',') const arrBase64 = imgFile.split(',')
const splitStr = file.name.split('.') const splitStr = file.name.split('.')
this.file.fileType = splitStr[splitStr.length - 1] + '@' + arrBase64[1] this.file.fileType = splitStr[splitStr.length - 1] + '@' + arrBase64[1]
console.log(el) this.$notify({
title: '提示',
message: '图片上传成功',
type: 'success'
})
} }
}, },
...@@ -1718,16 +1722,12 @@ export default { ...@@ -1718,16 +1722,12 @@ export default {
if (fileType) this.$apis.orderManage.importCrowdFundingOrder({ file: fileType }).then(res => { if (fileType) this.$apis.orderManage.importCrowdFundingOrder({ file: fileType }).then(res => {
console.log(res) console.log(res)
if (res) { if (res) {
this.importVisible = false
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '订单导入成功', message: '订单导入成功',
type: 'success' type: 'success'
}) })
this.file = { this.visibleImportDialog()
fileName: '',
fileType: ''
}
this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false) this.searchForm.requestSource != 0 ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
} }
}) })
...@@ -1741,6 +1741,15 @@ export default { ...@@ -1741,6 +1741,15 @@ export default {
alink.download = '订单导入模板.xlsx' alink.download = '订单导入模板.xlsx'
alink.click() alink.click()
alink.remove() alink.remove()
},
visibleImportDialog (val = false) {
if (this.$refs?.uploadInput) this.$refs.uploadInput.value = null
this.file = {
fileName: '',
fileType: ''
}
this.importVisible = val
} }
} }
} }
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<div class="title-text">专员列表</div> <div class="title-text">专员列表</div>
<el-button :size="size" type="primary" class="battle-set-btn" @click="battleSetHandle">批量配置专员</el-button> <el-button :size="size" type="primary" class="battle-set-btn" @click="battleSetHandle">批量配置专员</el-button>
</div> </div>
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable"> <!-- <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> -->
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @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" v-if="!scope.scope.staffId" @click="handlebattleOn(scope.scope)">配置</el-button> <el-button type="text" v-if="!scope.scope.staffId" @click="handlebattleOn(scope.scope)">配置</el-button>
...@@ -111,7 +113,26 @@ export default { ...@@ -111,7 +113,26 @@ export default {
setectList: [], setectList: [],
merchantList: [], merchantList: [],
groupList: [], groupList: [],
tableSearchForm: {}, // tableSearchForm: {},
// 搜索
searchForm: {
yqMerchantId: '',
yqMerchantName: ''
},
searchFormData: [
{
label: '园区店',
name: 'yqMerchantName',
type: 'input',
maxlength: 128
},
{
label: '商户号',
name: 'yqMerchantId',
type: 'input',
maxlength: 11
}
],
// 表格 // 表格
// userList: [], // userList: [],
selectArray: [], selectArray: [],
...@@ -141,6 +162,7 @@ export default { ...@@ -141,6 +162,7 @@ export default {
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
defaultProps: { defaultProps: {
children: 'children', children: 'children',
label: 'name' label: 'name'
...@@ -161,6 +183,9 @@ export default { ...@@ -161,6 +183,9 @@ export default {
staffId: '', staffId: '',
automaticName: '', automaticName: '',
roomName: '' roomName: ''
},
baseData: {
merchantList: []
} }
} }
}, },
...@@ -169,6 +194,7 @@ export default { ...@@ -169,6 +194,7 @@ export default {
this.merchantList = this.$saasOrder?.merchantList || [] this.merchantList = this.$saasOrder?.merchantList || []
this.config.merchantId = this.merchantList[0]?.merchantId this.config.merchantId = this.merchantList[0]?.merchantId
this.config.merchantName = this.merchantList[0]?.merchantName this.config.merchantName = this.merchantList[0]?.merchantName
// this.getOptionsList('searchFormData')
}, },
computed: { computed: {
domEl() { domEl() {
...@@ -187,8 +213,41 @@ export default { ...@@ -187,8 +213,41 @@ export default {
} }
}, },
methods: { methods: {
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
handleReset() {
this.searchForm = {
yqMerchantId: '',
yqMerchantName: ''
}
this.handleSearch()
},
clearData() { clearData() {
this.setectList = [] this.setectList = []
this.$refs.battleRef.clearMutiSelect()
this.config.merchantId = this.merchantList[0]?.merchantId this.config.merchantId = this.merchantList[0]?.merchantId
this.wechat = { this.wechat = {
automaticName: '', automaticName: '',
...@@ -241,11 +300,12 @@ export default { ...@@ -241,11 +300,12 @@ export default {
battleSetHandle() { battleSetHandle() {
if (this.setectList.length == 0) { if (this.setectList.length == 0) {
this.$message({ this.$message({
message: '请选择活动', message: '请选择园区店',
type: 'error' type: 'error'
}) })
return return
} }
this.getDepartmentTree()
this.battleVisible = true this.battleVisible = true
}, },
dateFormatFun(date) { dateFormatFun(date) {
...@@ -307,8 +367,8 @@ export default { ...@@ -307,8 +367,8 @@ export default {
}) })
}, },
handlebattleClose() { handlebattleClose() {
this.clearData()
this.battleVisible = false this.battleVisible = false
this.clearData()
}, },
handleDetails() { }, handleDetails() { },
handlebattleOn(data, sign) { handlebattleOn(data, sign) {
......
...@@ -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!