Commit 9e4e9856 by 前端

fixed

1 parent f838d605
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 14:46:30 * @Date: 2022-11-23 14:46:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-18 14:49:23 * @LastEditTime: 2023-03-31 14:41:09
* @FilePath: \live\src\api\modules\common.js * @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -77,6 +77,17 @@ const uploadFundingVideoApi = params => { ...@@ -77,6 +77,17 @@ const uploadFundingVideoApi = params => {
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const getCrowdfundingOrderConfig = (params = {}) => {
params.method = 'scrm.api.shopmall.crowd.funding.order.config'
params.requestType = 1 //0:门店;1:运营版
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
pictureUpload, pictureUpload,
getMerchantStaff, getMerchantStaff,
...@@ -84,5 +95,6 @@ export default { ...@@ -84,5 +95,6 @@ export default {
uploadImgApi, uploadImgApi,
uploadMusicApi, uploadMusicApi,
uploadVideoApi, uploadVideoApi,
uploadFundingVideoApi uploadFundingVideoApi,
getCrowdfundingOrderConfig
} }
...@@ -159,6 +159,16 @@ const getLiveListApi = params => { ...@@ -159,6 +159,16 @@ const getLiveListApi = params => {
sign: true sign: true
}) })
} }
/**支付商户管理-下拉列表 */
const getPayMerchatListApi = params => {
params.method = 'entmicro.api.payment.pageListPayment'
return http({
url: 'rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
/**定金收款账户下拉列表 */ /**定金收款账户下拉列表 */
const getPayListApi = params => { const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list' params.method = 'scrm.api.shopmall.activity.payment.account.list'
...@@ -249,4 +259,4 @@ const liveroomOverview = params => { ...@@ -249,4 +259,4 @@ const liveroomOverview = 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 } export default { getPayMerchatListApi, getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-03-24 17:46:01 * @LastEditTime: 2023-03-31 14:19:14
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
......
...@@ -337,6 +337,16 @@ ...@@ -337,6 +337,16 @@
</el-tabs> </el-tabs>
</div> </div>
</template> </template>
<!-- 收款模式 -->
<div slot="paymentModel" class="paymentModelSlot">
<el-radio-group v-model="editForm.paymentModel">
<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> </glsx-combi-form>
</div> </div>
<GLFooter> <GLFooter>
...@@ -346,9 +356,9 @@ ...@@ -346,9 +356,9 @@
<el-button v-if="routeInfo.addOrEdit != 'detail' && step == 3" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button> <el-button v-if="routeInfo.addOrEdit != 'detail' && step == 3" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter> </GLFooter>
<!-- 展示 --> <!-- 展示 -->
<GLDialog bigTitle="预览" mode="big" :visible.sync="wechatVisible" @onOk="handleWechat" @onCancel="handleWechat"> <!-- <GLDialog bigTitle="预览" mode="big" :visible.sync="wechatVisible" @onOk="handleWechat" @onCancel="handleWechat">
<crowdEditWechat ref="crowdEditWechat" :editForm="editForm" :countDownObj="countDownObj"></crowdEditWechat> <crowdEditWechat ref="crowdEditWechat" :editForm="editForm" :countDownObj="countDownObj"></crowdEditWechat>
</GLDialog> </GLDialog> -->
<select-gift-dialog :merchantId="editForm.merchantId" v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog> <select-gift-dialog :merchantId="editForm.merchantId" v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog>
<select-goods-dialog v-if="isSelectGoodsVisible" :isSelectGoodsVisible="isSelectGoodsVisible" :selectedGoodsLists="selectedGoodsList" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></select-goods-dialog> <select-goods-dialog v-if="isSelectGoodsVisible" :isSelectGoodsVisible="isSelectGoodsVisible" :selectedGoodsLists="selectedGoodsList" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></select-goods-dialog>
<select-store v-if="relateStoreVisible" ref="relateStore" :dialogVisible="relateStoreVisible" :storeSelected="selectedList" :merchantInfo="editForm.merchantId" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"></select-store> <select-store v-if="relateStoreVisible" ref="relateStore" :dialogVisible="relateStoreVisible" :storeSelected="selectedList" :merchantInfo="editForm.merchantId" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"></select-store>
...@@ -359,7 +369,7 @@ ...@@ -359,7 +369,7 @@
<script> <script>
import { limitPrice, giftPackage } from '@/common/constant' import { limitPrice, giftPackage } from '@/common/constant'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import crowdEditWechat from './crowdEditWechat.vue' // import crowdEditWechat from './crowdEditWechat.vue'
import selectStore from './components/selectStore' import selectStore from './components/selectStore'
import selectGiftDialog from './components/selectGiftDialog.vue' import selectGiftDialog from './components/selectGiftDialog.vue'
import selectGoodsDialog from './components/selectGoodsDialog.vue' import selectGoodsDialog from './components/selectGoodsDialog.vue'
...@@ -423,7 +433,6 @@ const orderShow = ['service', 'cash', 'discount', 'exchange'] ...@@ -423,7 +433,6 @@ const orderShow = ['service', 'cash', 'discount', 'exchange']
export default { export default {
name: 'editActivity', name: 'editActivity',
components: { components: {
crowdEditWechat,
selectStore, selectStore,
selectGiftDialog, selectGiftDialog,
selectGoodsDialog, selectGoodsDialog,
...@@ -570,23 +579,11 @@ export default { ...@@ -570,23 +579,11 @@ export default {
noteTouchVisitorCount: '', noteTouchVisitorCount: '',
noteTouchOrderCount: '', noteTouchOrderCount: '',
noteTouchConversionRate: '' noteTouchConversionRate: ''
} },
// formDescribeFirst: '', paymentAccountSource: '1',
// formDescribeSecond: '', paymentAccountId: '',
// formDescribeThird: '', payMannerId: '',
// showAvatarNicknameFlag: 1 paymentModel: 1
// liveFlag: false,
// liveBroadcastRoomId: '',
// groupQrCode: '',
// floatingMaskDiagram: ''
// liveBroadcastRoomCover: '',
// liveBroadcastRoomEndCover: '',
// employeeRegistrationLinkFlag: 2,
// reservationInstallContactsName: '',
// reservationInstallContactsPhone: '',
// targetStock: '',
// paymentAccountId: '',
// paymentModel: 1
}, },
reportFlag: '1', reportFlag: '1',
//商品列表 //商品列表
...@@ -1124,19 +1121,62 @@ export default { ...@@ -1124,19 +1121,62 @@ export default {
name: '', name: '',
addHtml: 'reportConfigure', addHtml: 'reportConfigure',
tips: '可自定义战报内容' tips: '可自定义战报内容'
},
// {
// 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: '定金收款账户',
name: 'paymentAccountId',
type: 'select',
tips: '定金收款账户只包含定金需要支付的目标账户',
optionId: 'id',
optionLabel: 'accountName',
isHide: this.loginstatus ? true : false,
optionList: []
},
{
label: '收款模式',
name: 'paymentModel',
isHide: this.loginstatus ? true : false,
addHtml: 'paymentModel'
} }
], ],
defaultImgObj: Object.freeze({ defaultImgObj: Object.freeze({
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: []
}
} }
}, },
mounted() { mounted() {
// this.getCrowdfundingOrderConfig()
this.couponTemplate() this.couponTemplate()
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' && this.getInfo() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getPayList()
const id = this.routeInfo.id const id = this.routeInfo.id
const detailDisableList = ['markingEditFormData'] const detailDisableList = ['markingEditFormData']
const disableObj = { const disableObj = {
...@@ -1249,9 +1289,9 @@ export default { ...@@ -1249,9 +1289,9 @@ export default {
this.editForm.goodsStock = this.maxStock this.editForm.goodsStock = this.maxStock
} }
}, },
'editForm.activityTime'(newValue) { // 'editForm.activityTime'(newValue) {
newValue && newValue.length && this.countDown() // newValue && newValue.length && this.countDown()
}, // },
'editForm.expiresType'(newValue) { 'editForm.expiresType'(newValue) {
let idx = this.projuctEditFormData.findIndex(val => val.name == 'activityTime') let idx = this.projuctEditFormData.findIndex(val => val.name == 'activityTime')
this.projuctEditFormData[idx].isHide = newValue == 0 ? false : true this.projuctEditFormData[idx].isHide = newValue == 0 ? false : true
...@@ -1300,6 +1340,16 @@ export default { ...@@ -1300,6 +1340,16 @@ export default {
// } // }
}, },
methods: { methods: {
// async getCrowdfundingOrderConfig() {
// const res = await this.$apis.common.getCrowdfundingOrderConfig(),
// filterList = ['paymentModel', 'employeeRegistrationLinkFlag']
// this.configEditFormData.map(e => {
// if (filterList.includes(e.name)) e.isHide = res == 1
// })
// this.formDescribeCheckList.map(e => {
// if (e.value == 'selectPhoneNumberFlag') e.show = res != 1
// })
// },
//获取优惠券模板 //获取优惠券模板
couponTemplate() { couponTemplate() {
this.$apis.giftBag.couponTemplate({ pageSize: 10000, pageNum: 1 }).then(res => { this.$apis.giftBag.couponTemplate({ pageSize: 10000, pageNum: 1 }).then(res => {
...@@ -1475,43 +1525,28 @@ export default { ...@@ -1475,43 +1525,28 @@ export default {
endTime: activityStatus == 1 ? startTime : activityStatus == 2 ? endTime : endTime endTime: activityStatus == 1 ? startTime : activityStatus == 2 ? endTime : endTime
} }
}, },
countDown() { getPayMerchatList() {
if (this.editForm.activityTime && this.editForm.activityTime.length) { // this.$apis.seckillActivity.getPayMerchatListApi({ pageNum: 1, pageSize: 9999 }).then(res => {
let { activityStatus, startTime, endTime } = this.findCountDownTime() // res.list.forEach(item => {
let lefttime = parseInt((endTime.getTime() - startTime.getTime()) / 1000) // item.id = item.payMannerId
let d = parseInt(lefttime / (24 * 60 * 60)) // item.accountName = item.mchName
let h = parseInt((lefttime / (60 * 60)) % 24) // })
let m = parseInt((lefttime / 60) % 60) // this.baseData.payMerchatList = res.list
let s = parseInt(lefttime % 60) // this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = this.editForm.paymentAccountSource == 1 ? this.baseData.payList : this.baseData.payMerchatList
h = this.addZero(h) // this.$nextTick(() => {
m = this.addZero(m) // this.editStatus = false
s = this.addZero(s) // })
let typeTxt = { // })
1: '距离活动开始', this.configEditFormData.find(item => item.name == 'paymentAccountId').optionList = this.baseData.payList
2: '距离活动结束', },
3: '活动倒计时' // 定金收款账户
}[activityStatus] getPayList() {
if (this.time) clearTimeout(this.time) this.$apis.seckillActivity.getPayListApi({}).then(res => {
this.time = setTimeout(() => { this.baseData.payList = res
if (d > 0) d = this.addZero(d) this.editForm.paymentAccountSource = this.editForm.paymentAccountSource || '1'
this.countDownObj = { this.editForm.paymentAccountId = this.editForm.paymentAccountId || this.editForm.payMannerId || res.find(item => item.isDefault == 'Y')?.id
typeTxt: typeTxt, this.getPayMerchatList()
d: d, })
h: h,
m: m,
s: s
}
this.countDown()
}, 1 * 1000)
} else {
this.countDownObj = {
typeTxt: '距离活动开始',
d: '',
h: '',
m: '',
s: ''
}
}
}, },
handleRelateModelClose() { handleRelateModelClose() {
this.relateModelVisible = !this.relateModelVisible this.relateModelVisible = !this.relateModelVisible
...@@ -1865,6 +1900,8 @@ export default { ...@@ -1865,6 +1900,8 @@ export default {
noteTouchConversionRate: '' noteTouchConversionRate: ''
} }
} }
// 定金收款账户
this.editForm.paymentAccountSource = this.editForm.paymentAccountSource + ''
// 标杆门店总产值/元(已结束战报) // 标杆门店总产值/元(已结束战报)
if (this.editForm.activityActionReport.signMerchantProduceCount) { if (this.editForm.activityActionReport.signMerchantProduceCount) {
this.editForm.activityActionReport.signMerchantProduceCount = (info.activityActionReport.signMerchantProduceCount / 10000).toFixed(2) this.editForm.activityActionReport.signMerchantProduceCount = (info.activityActionReport.signMerchantProduceCount / 10000).toFixed(2)
...@@ -1873,7 +1910,7 @@ export default { ...@@ -1873,7 +1910,7 @@ export default {
if (this.editForm.activityActionReport.noteTouchConversionRate) { if (this.editForm.activityActionReport.noteTouchConversionRate) {
this.editForm.activityActionReport.noteTouchConversionRate = (info.activityActionReport.noteTouchConversionRate / 100).toFixed(2) this.editForm.activityActionReport.noteTouchConversionRate = (info.activityActionReport.noteTouchConversionRate / 100).toFixed(2)
} }
// this.getPayList() this.getPayList()
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
...@@ -2009,18 +2046,9 @@ export default { ...@@ -2009,18 +2046,9 @@ export default {
let val = param.activityActionReport.noteTouchOrderCount / param.activityActionReport.noteTouchVisitorCount let val = param.activityActionReport.noteTouchOrderCount / param.activityActionReport.noteTouchVisitorCount
param.activityActionReport.noteTouchConversionRate = (val * 10000).toFixed(0) param.activityActionReport.noteTouchConversionRate = (val * 10000).toFixed(0)
} }
//直播 // 定金收款账户
// if (param.liveFlag) { param.payMannerId = param.paymentAccountSource == 1 ? '' : param.paymentAccountId
// if (!param.floatingMaskDiagram) param.floatingMaskDiagram = this.defaultFloatingMaskDiagram param.paymentAccountId = param.paymentAccountSource == 1 ? param.paymentAccountId : ''
// if (!param.liveBroadcastRoomCover) param.liveBroadcastRoomCover = this.defaultImgObj.COVER_LIVE
// if (!param.liveBroadcastRoomEndCover) param.liveBroadcastRoomEndCover = this.defaultImgObj.COVER_REPLAY
// } else {
// let resetAttr = this.liveEditFormData.map(item => item.name)
// resetAttr.forEach(item => {
// param[item] = ''
// })
// }
// delete param.liveFlag
return param return param
}, },
// 服务说明 // 服务说明
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!