Commit 0c7906dd by 杨明

fixed

1 parent b8df9b6f
......@@ -12,7 +12,7 @@ const defaultPath = 'scrm.api.shopmall.activity.'
const dropdownList = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.dropdown.list`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -22,7 +22,7 @@ const dropdownList = params => {
const tencentcloudmediaDelete = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.delete`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -42,7 +42,7 @@ const tencentcloudmediaUpdate = params => {
const tencentcloudmediaDetail = params => {
params.method = `scrm.api.shopmall.tencentcloudmedia.detail`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -62,7 +62,7 @@ const tencentcloudmediaPage = params => {
const getActivityDetailApi = params => {
params.method = `${defaultPath}detail`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -73,7 +73,7 @@ const getActivityDetailApi = params => {
const toggleStatus = params => {
params.method = `${defaultPath}toggle.status`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -83,7 +83,7 @@ const toggleStatus = params => {
const deleteApi = params => {
params.method = `${defaultPath}delete`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -93,7 +93,7 @@ const deleteApi = params => {
const pageAllApi = params => {
params.method = `scrm.api.shopmall.all.bulge.activity.page`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -102,7 +102,7 @@ const pageAllApi = params => {
const pageApi = params => {
params.method = `scrm.api.shopmall.bulge.activity.page`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -111,7 +111,7 @@ const pageApi = params => {
const updateApi = params => {
params.method = `${defaultPath}bulge.add.or.update`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -120,7 +120,7 @@ const updateApi = params => {
const getShared = params => {
params.method = `scrm.api.shopmall.bulge.activity.get.shared`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -130,7 +130,7 @@ const getShared = params => {
const activityPage = params => {
params.method = `scrm.api.shopmall.history.activity.page`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -22,7 +22,7 @@ const pictureUpload = params => {
const getMerchantStaff = params => {
params.method = 'scrm.api.shopmall.crowd.funding.staff.get'
return http({
url: '/http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -82,7 +82,7 @@ const getCrowdfundingOrderConfig = (params = {}) => {
params.method = 'scrm.api.shopmall.crowd.funding.order.config'
params.requestType = 1 //0:门店;1:运营版
return http({
url: '/http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 16:38:54
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-11 15:28:51
* @LastEditTime: 2023-07-13 14:25:32
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -66,7 +66,7 @@ const equityMerchant = params => {
const packageAdd = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.add.or.update'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -76,7 +76,7 @@ const packageAdd = params => {
const packageList = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.list'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -86,7 +86,7 @@ const packageList = params => {
const packageDetail = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.detail'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -96,7 +96,7 @@ const packageDetail = params => {
const packageDefault = params => {
params.method = 'scrm.api.shopmall.activity.coupon.package.default'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -108,7 +108,7 @@ const EntWechatQrCode = params => {
const activityDetail = params => {
params.method = 'scrm.api.shopmall.activity.detail'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -137,7 +137,7 @@ const registerSso = params => {
const updateApi = params => {
params.method = `scrm.api.shopmall.activity.bulge.add.or.update`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -3,7 +3,7 @@ const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}order.page`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -12,7 +12,7 @@ const getListApi = params => {
const getCountApi = params => {
params.method = `${defaultPath}order.count`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -21,7 +21,7 @@ const getCountApi = params => {
const getOrderDetailApi = params => {
params.method = `${defaultPath}order.detail`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -30,7 +30,7 @@ const getOrderDetailApi = params => {
const orderExportApi = params => {
params.method = `${defaultPath}order.export`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -40,7 +40,7 @@ const orderExportApi = params => {
const writeOffApi = params => {
params.method = `${defaultPath}order.verfication`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -51,7 +51,7 @@ const writeOffApi = params => {
const crowdFundWriteOffApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -62,7 +62,7 @@ const crowdFundWriteOffApi = params => {
const crowdFundRefundApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -73,7 +73,7 @@ const crowdFundRefundApi = params => {
const addDeliveryApi = params => {
params.method = `${defaultPath}order.addDelivery`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -84,7 +84,7 @@ const addDeliveryApi = params => {
const examineDetailApi = params => {
params.method = `${defaultPath}orderRefund.detail`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -94,7 +94,7 @@ const examineDetailApi = params => {
const examineAllowApi = params => {
params.method = `${defaultPath}orderRefund.allow`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -105,7 +105,7 @@ const examineAllowApi = params => {
const confirmReceiptGoodsApi = params => {
params.method = `${defaultPath}order.refund.confirmReceiptGoods`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -116,7 +116,7 @@ const confirmReceiptGoodsApi = params => {
const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -126,7 +126,7 @@ const checkMerchartApi = params => {
const orderAppointer = params => {
params.method = 'scrm.api.shopmall.order.appointer.update'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -136,7 +136,7 @@ const orderAppointer = params => {
const orderDetail = params => {
params.method = 'scrm.api.shopmall.order.detail'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -146,7 +146,7 @@ const orderDetail = params => {
const orderPage = params => {
params.method = 'scrm.api.shopmall.order.page'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -156,7 +156,7 @@ const orderPage = params => {
const goldRefund = params => {
params.method = 'scrm.api.shopmall.expanded.gold.refund'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -165,7 +165,7 @@ const goldRefund = params => {
const orderUpdate = params => {
params.method = 'scrm.api.shopmall.order.type.update'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -174,7 +174,7 @@ const orderUpdate = params => {
const orderExport = params => {
params.method = 'scrm.api.shopmall.order.export'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -4,7 +4,7 @@ const defaultPath = 'scrm.api.shopmall.activity.'
const getActivityPageApi = params => {
params.method = `${defaultPath}page`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -14,7 +14,7 @@ const getActivityPageApi = params => {
const getCrowdfundListApi = params => {
params.method = 'scrm.api.shopmall.all.crowdfunding.activity.page'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -24,7 +24,7 @@ const getCrowdfundListApi = params => {
const exportCrowdfundApi = params => {
params.method = 'scrm.api.shopmall.all.crowdfunding.activity.export'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -34,7 +34,7 @@ const exportCrowdfundApi = params => {
const getBrowseListApi = params => {
params.method = 'scrm.api.shopmall.customer.browse.records'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -44,7 +44,7 @@ const getBrowseListApi = params => {
const getVisitorListApi = params => {
params.method = 'scrm.api.shopmall.customer.visitor.records'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -54,7 +54,7 @@ const getVisitorListApi = params => {
const getSharedListApi = params => {
params.method = 'scrm.api.shopmall.customer.shared.records'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -64,7 +64,7 @@ const getSharedListApi = params => {
const getPurposeListApi = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -73,7 +73,7 @@ const getPurposeListApi = params => {
const updateFollow = params => {
params.method = 'scrm.api.shopmall.gh.customer.record.update.follow.up.flag'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -89,7 +89,7 @@ const exportBrowseApi = (params, TYPE = 1) => {
3: 'scrm.api.shopmall.customer.shared.records.export'
}[TYPE]
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -99,7 +99,7 @@ const exportBrowseApi = (params, TYPE = 1) => {
const addOrUpdateActivityApi = params => {
params.method = `${defaultPath}add.or.update`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -110,7 +110,7 @@ const addOrUpdateActivityApi = params => {
const getActivityDetailApi = params => {
params.method = `${defaultPath}detail`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -120,7 +120,7 @@ const getActivityDetailApi = params => {
const toggleStatusApi = params => {
params.method = `${defaultPath}toggle.status`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -131,7 +131,7 @@ const toggleStatusApi = params => {
const deleteActivityApi = params => {
params.method = `${defaultPath}delete`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -142,7 +142,7 @@ const deleteActivityApi = params => {
const topActivityApi = params => {
params.method = `${defaultPath}top`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
......@@ -153,7 +153,7 @@ const topActivityApi = params => {
const getSharedApi = params => {
params.method = `${defaultPath}get.shared`
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -163,7 +163,7 @@ const getSharedApi = params => {
const getCrowdSharedApi = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.get.shared'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -173,7 +173,7 @@ const getCrowdSharedApi = params => {
const getLiveListApi = params => {
params.method = 'scrm.api.shopmall.livebroadcast.dropdown.list'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -193,7 +193,7 @@ const getPayMerchatListApi = params => {
const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -203,7 +203,7 @@ const getPayListApi = params => {
const getRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.page'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -213,7 +213,7 @@ const getRankListApi = params => {
const exportRankListApi = params => {
params.method = 'scrm.api.shopmall.activity.ranking.export'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -223,7 +223,7 @@ const exportRankListApi = params => {
const getDataBoardApi = params => {
params.method = 'scrm.api.shopmall.activity.statdata'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
......@@ -233,7 +233,7 @@ const getDataBoardApi = params => {
const getDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -243,7 +243,7 @@ const getDailyOrderQuantityStatistics = params => {
const exportDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -253,7 +253,7 @@ const exportDailyOrderQuantityStatistics = params => {
const liveroomDetailexport = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailexport'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -262,7 +262,7 @@ const liveroomDetailexport = params => {
const purposeExport = params => {
params.method = 'scrm.api.shopmall.gh.customer.purpose.page.export'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -273,7 +273,7 @@ const purposeExport = params => {
const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......@@ -283,7 +283,7 @@ const liveroomDetailpage = params => {
const liveroomOverview = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.overview'
return http({
url: 'http://192.168.1.157:8558/rop-scrm-shopmall/router',
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
......
......@@ -27,7 +27,7 @@
</div>
</GLTable>
</GLDialog>
<el-dialog title="预览" :append-to-body="true" :visible.sync="dialogVisible" width="30%">
<el-dialog title="预览" :append-to-body="true" :before-close="handleClose" :visible.sync="dialogVisible" width="30%">
<phone-view v-if="dialogVisible" :activityInfo="activityInfo"></phone-view>
</el-dialog>
</div>
......@@ -156,16 +156,23 @@ export default {
this.caseVisible = false
this.getActivityInfo(row.id)
},
handleClose() {
this.dialogVisible = false
},
//预览
handleView(row) {
this.$apis.marketing.activityDetail({ id: row.id }).then(res => {
console.log(res)
if (res) {
const activityCoupon = res.activityCouponBaseInfoDTOS || res.couponList || [],
selectedGoodsList = activityCoupon.filter(i => i.discountType == 8),
couponList = activityCoupon.filter(i => i.discountType != 8)
this.activityInfo = { ...res, selectedEquityList: res.serviceMerchantPackageConfigDTOList, couponList, selectedGoodsList }
const selectedCarList = res.serviceMerchantPackageConfigDTOS || []
let activityCoupon = res.activityCouponBaseInfoDTOS || res.couponList || res.couponItemList || []
let selectedGoodsList = activityCoupon.filter(i => i.discountType == 8)
let selectedServiceList = activityCoupon.filter(i => i.discountType != 8)
this.dialogVisible = true
this.$nextTick(() => {
this.activityInfo = { ...res, selectedCarList, selectedServiceList, selectedGoodsList }
})
}
})
},
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-12 20:34:56
* @LastEditTime: 2023-07-13 11:09:28
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -157,6 +157,7 @@ export default {
{
label: '服务热线',
name: 'serviceHotline',
placeholder: '请填写真实有效的电话或手机号',
type: 'input'
},
{
......@@ -195,7 +196,7 @@ export default {
goodsStock: [{ required: true, message: '请输入库存', trigger: 'input' }],
merchantname: [{ required: true, message: '请输入门店名称', trigger: 'input' }],
merchantAddress: [{ required: true, message: '请选择门店地址', trigger: 'input' }],
serviceHotline: [{ required: true, message: '请输入服务热线', trigger: 'input' }]
serviceHotline: [{ required: true, message: '请填写真实有效的电话或手机号', trigger: 'input' }]
}
}
},
......
......@@ -148,15 +148,7 @@ export default {
handler(info) {
this.init()
this.$nextTick(() => {
if (info.serviceMerchantPackageConfigDTOS && info.serviceMerchantPackageConfigDTOS.length) {
this.selectedCarList = info.serviceMerchantPackageConfigDTOS.map(item => {
return {
packageCode: item.packageCode,
packageAmount: item.packageName
}
})
}
if (info.serviceMerchantPackageConfigDTOS) this.selectedCarList = info.serviceMerchantPackageConfigDTOS
let activityCoupon = info.activityCouponBaseInfoDTOS || info.couponList || info.couponItemList
if (activityCoupon && activityCoupon.length) {
......@@ -192,7 +184,6 @@ export default {
this.selectedServiceList = []
this.goodsList = []
this.selectedGoodsList = []
this.isInit = true
this.totalPrice = 0
this.editForm.activityPrice = ''
this.$refs['carRef'].$refs['listMutiTable'].clearSelection()
......@@ -515,14 +506,7 @@ export default {
}
this.$apis.giftBag.packageDetail({ id: this.giftValue }).then(res => {
this.$nextTick(() => {
if (res.serviceMerchantPackageConfigDTOS && res.serviceMerchantPackageConfigDTOS.length) {
this.selectedCarList = res.serviceMerchantPackageConfigDTOS.map(item => {
return {
packageCode: item.packageCode,
packageAmount: item.packageName
}
})
}
this.selectedCarList = res.serviceMerchantPackageConfigDTOS || []
let activityCoupon = res.couponList || []
......@@ -535,7 +519,7 @@ export default {
this.selectedServiceList = activityCoupon.filter(i => i.discountType != 8)
}
console.log(this.selectedCarList)
this.getList()
// this.getList()
})
})
},
......
......@@ -121,7 +121,7 @@
<script>
const config = Object.freeze({
talkId: '',
messageContent: '【广汇汽车】尊敬的客户,您获得一份续保权益套餐,您可以点击https://dwz.cn/I2gmHGBQ 查看或使用您的权益明细,退订回T'
messageContent: '【广汇汽车】诚邀您参与{0},请尽快点击链接参与,谨防错过哦! {1} 谨防错过退订回T。'
})
const taskData = { tableData: [], expand: true, assignType: 0, customerNumTotal: 0, lastFollowStaffList: [], staffList: [], excelUrl: '', isFinish: false }
import { mapActions, mapState } from 'vuex'
......@@ -288,7 +288,7 @@ export default {
this.configVisible = false
console.log(this.taskList[this.batchNo].tableData)
this.taskList[this.batchNo].tableData[this.selectIndex].talkId = this.configForm.talkId
this.taskList[this.batchNo].tableData[this.selectIndex].messageContent = this.configForm.messageContent.replace(/广汇汽车/, this.$globalState.session.merchantName)
this.taskList[this.batchNo].tableData[this.selectIndex].messageContent = this.configForm.messageContent
console.log(this.taskList)
},
......@@ -318,7 +318,7 @@ export default {
merchantId: i.merchantNo,
staffPhone: i.staffPhone,
staffName: i.staffName,
messageContent: i.messageContent,
messageContent: i.messageContent ? i.messageContent.replace(/广汇汽车/, this.$globalState.session.merchantName) : '',
registerStatus: i.registerStatus,
talkId: i.talkId,
createdBy: i.createdBy
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 10:05:36
* @LastEditTime: 2023-07-13 14:46:57
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -295,17 +295,21 @@ export default {
}
},
mounted() {
this.detail = this.activityInfo
this.isFestival = false
this.isRenewal = false
if (!this.detail) return
if (RENEWAL.includes(this.detail.codeId)) {
this.modelNum = this.detail.codeId
this.isRenewal = true
}
if (FESTIVAL.includes(this.detail.codeId)) {
this.isFestival = true
}
this.$nextTick(() => {
this.detail = this.activityInfo
this.detailCoupon = this.detail
console.log(this.activityInfo, 888, this.detail)
this.isFestival = false
this.isRenewal = false
if (!this.detail) return
if (RENEWAL.includes(this.detail.codeId)) {
this.modelNum = this.detail.codeId
this.isRenewal = true
}
if (FESTIVAL.includes(this.detail.codeId)) {
this.isFestival = true
}
})
},
watch: {
// packageList: {
......@@ -320,7 +324,6 @@ export default {
handler(val) {
this.detail = { ...this.detail, ...val[2] }
this.detailCoupon = this.$common.utils.deepClone(this.packageList)
console.log(this.detailCoupon)
this.$nextTick(async () => {
this.isFestival = false
this.isRenewal = false
......
......@@ -117,8 +117,6 @@ export default {
...mapMutations('marketing', ['SET_INIT', 'SET_STEP', 'SET_ACTIVITY_INFO']),
selectFes(item) {
this.selectItem = item
this.getTemplateInfo(item.id)
this.setSubscribe({ subscribe: 6, keywords: item.keywords })
},
handleStep(index) {
if (this.addOrEdit == 'edit' && index == 1) return
......@@ -134,6 +132,9 @@ export default {
if (index != 6) {
this.setSubscribe(index)
this.SET_ACTIVITY_INFO({})
} else {
this.getTemplateInfo(this.selectItem.id)
this.setSubscribe({ subscribe: 6, keywords: this.selectItem.keywords })
}
},
EntWechatQrCode() {
......@@ -144,6 +145,7 @@ export default {
calendarPage() {
this.$apis.marketing.calendarPage({ pageSize: 100, pageNum: 1 }).then(res => {
this.festivalList = (res.data || []).filter(item => item.marketingType == 6)
this.selectItem = this.festivalList[0]
})
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!