Commit dad70b5a by 前端

Merge branch 'feat_v3.2.0' into 'develop'

Feat v3.2.0

See merge request !377
2 parents 5b397f04 c8f6aefa
......@@ -15,6 +15,11 @@
"js-message": "1.0.7"
}
},
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": {
"version": "2.2.0",
"resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.2.0.tgz",
......@@ -2078,6 +2083,17 @@
"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"
}
},
"cliui": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz",
......@@ -2119,6 +2135,13 @@
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"dev": 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
},
"is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
......@@ -2160,6 +2183,28 @@
"ansi-regex": "^5.0.1"
}
},
"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@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"
}
},
"wrap-ansi": {
"version": "6.2.0",
"resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
......@@ -3567,6 +3612,11 @@
"upper-case": "^1.1.1"
}
},
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
},
"camelcase-keys": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
......@@ -6644,14 +6694,16 @@
}
},
"glsx-components": {
"version": "1.5.2",
"resolved": "https://registry.npmmirror.com/glsx-components/-/glsx-components-1.5.2.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==",
"version": "1.5.3",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.3.tgz",
"integrity": "sha512-tj/2DSGKpbwrlP7ByBZQrgEgCcmrP2iR8p/BafY6BFr0/q4sJuxQx6of586rJuoVUasRveIIuFmUcLCkBSnQFA==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3"
}
},
......@@ -12465,6 +12517,14 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true
},
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
}
},
"uri-js": {
"version": "4.4.1",
"resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz",
......@@ -12646,6 +12706,14 @@
"resolved": "https://registry.npmmirror.com/vue/-/vue-2.6.14.tgz",
"integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ=="
},
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
}
},
"vue-cli-plugin-element": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz",
......@@ -12741,75 +12809,6 @@
}
}
},
"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": {
"version": "3.5.4",
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.5.4.tgz",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.2",
"glsx-components": "^1.5.3",
"lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vue": "^2.6.10",
......
......@@ -161,4 +161,15 @@ const getMerchantInfoApi = params => {
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi }
// 根据商户号最上级工厂商户号
const getSuperMerchantApi = params => {
params.method = 'merchants.api.open.findSuperlativeMerchant'
return http_merchant({
url: '/rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getMerchantGoodsListApi, getGoodsListApi, uploadImgApi, uploadMusicApi, uploadVideoApi, uploadFundingVideoApi, getMerchantList, getSimpleMerchantList, getZoneListApi, getClassifyListApi, pictureUpload, querylabeltree, getCrowdTreeListApi, getStaffFollowerListApi, getMerchantInfoApi, getSuperMerchantApi }
......@@ -53,6 +53,18 @@ const getGiftInfoApi = params => {
returnAll: true
})
}
// 获取已领取详情
const getReceivedGiftDetail = params => {
params.method = 'scrm.api.coupon.received.directional.gift.detail'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 根据条件获取已领取定向礼包列表
const getReceivedGiftInfoApi = params => {
params.method = 'scrm.api.coupon.user.saas.directional.gift.list'
......@@ -140,4 +152,13 @@ const getQrcode = params => {
})
}
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi, getReceivedGiftInfoApi, exportGiftInfoApi, getDirectionalGiftListApi, insertGiftApi, templateModal, getghDirectionalGiftListApi, toVoidGift, getQrcode }
const getGroupGift = params => {
params.method = 'scrm.api.coupon.group.directional.gift.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi, getReceivedGiftDetail, getReceivedGiftInfoApi, exportGiftInfoApi, getDirectionalGiftListApi, insertGiftApi, templateModal, getghDirectionalGiftListApi, toVoidGift, getQrcode, getGroupGift }
import { http,http_merchant } from '@/main'
const getListApi = params => {
params.method = 'scrm.api.coupon.group.directional.gift.page'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
const giftExportApi = params => {
params.method = 'scrm.api.coupon.group.directional.gift.list.export'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//删除
const deleteGiftApi = params => {
params.method = 'scrm.api.coupon.group.directional.gift.delete'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getMerchantListApi = params => {
params.method = 'merchants.api.open.findMerchantBySupMerchantNo'
return http_merchant({
url: 'rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
const insertGiftApi = params => {
params.method = 'scrm.api.coupon.group.directional.gift.create'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取详情
const getGiftInfoApi = params => {
params.method = 'scrm.api.coupon.group.directional.gift.detail'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 根据条件获取已领取定向礼包列表
const getReceivedGiftInfoApi = params => {
params.method = 'scrm.api.coupon.group.user.saas.directional.gift.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
// returnAll: true
})
}
// 导出已领取礼包
const exportGiftInfoApi = params => {
params.method = 'scrm.api.coupon.group.user.saas.directional.gift.list.export'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
const toVoidGift = params => {
params.method = 'scrm.api.coupon.user.directional.gift.cancel'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getListApi, giftExportApi, deleteGiftApi, getMerchantListApi, insertGiftApi, getGiftInfoApi, getReceivedGiftInfoApi, exportGiftInfoApi,toVoidGift }
\ No newline at end of file
......@@ -126,4 +126,15 @@ const confirmReceiptGoodsApi = params => {
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi }
// 审计-特殊账号
const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, checkMerchartApi }
......@@ -171,6 +171,16 @@ const getLiveListApi = params => {
sign: true
})
}
/**定金收款账户下拉列表 */
const getPayListApi = params => {
params.method = 'scrm.api.shopmall.activity.payment.account.list'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
/**数据看板员工排名 */
const getRankListApi = params => {
......@@ -202,4 +212,59 @@ const getDataBoardApi = params => {
sign: true
})
}
export default { getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi }
/**每日订单量统计 */
const getDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**导出每日订单量统计 */
const exportDailyOrderQuantityStatistics = params => {
params.method = 'scrm.api.shopmall.activity.daily.order.quantity.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-详情导出 */
const liveroomDetailexport = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailexport'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-分页详情 */
const liveroomDetailpage = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.detailpage'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**活动直播间数据统计-概览 */
const liveroomOverview = params => {
params.method = 'scrm.api.shopmall.activity.liveroom.overview'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { exportDailyOrderQuantityStatistics, liveroomDetailexport, liveroomDetailpage, getDailyOrderQuantityStatistics, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getPayListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi }
......@@ -102,13 +102,16 @@ const orderManageStatusList = [
{ confId: '1', confName: '待付款' },
{ confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' },
{ confId: '21', confName: '待收货(待核销)' },
{ confId: '22', confName: '已收货(已核销)' },
// { confId: '21', confName: '待收货(待核销)' },
{ confId: '21', confName: '待核销' },
{ confId: '22', confName: '已核销' },
// { confId: '22', confName: '已收货(已核销)' },
{ confId: '6', confName: '待发货' },
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' }
{ confId: '10', confName: '售后完成' },
{ confId: '11', confName: '待审批' }
]
const afterSaleStatusList = [
......@@ -225,7 +228,20 @@ const stateList = [
confName: '已下架'
}
]
const businessType = [
{
optionId: 1,
optionLabel: '1.2'
},
{
optionId: 2,
optionLabel: '1.3'
},
{
optionId: 3,
optionLabel: '2.0'
}
]
function setMinHeight(calssName = '.edit-container') {
let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px'
let minHeight = 'calc(100vh - ' + height + ')'
......@@ -247,4 +263,4 @@ function isShowBtn(value) {
}
return isShowStatus
}
export { isShowBtn, limitPrice, getExplorer, exportFn, aToExport, downloadIamge, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
export { isShowBtn, limitPrice, getExplorer, exportFn, aToExport, downloadIamge, businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
......@@ -45,6 +45,10 @@ export default {
selectedProInfo: {
type: Object,
default: () => { }
},
propSearch: {
type: Object,
default: () => { }
}
},
......@@ -62,7 +66,8 @@ export default {
goodsStatus: 1,
goodsSource: 1,
pageNum: 1,
pageSize: 100000
pageSize: 100000,
...this.propSearch
}
var that = this
this.$apis.common.getMerchantGoodsListApi(params).then(res => {
......
......@@ -239,6 +239,30 @@ const staticRoutes = Object.freeze([
meta: {}
},
{
name: 'groupGiftBag',
path: '/groupGiftBag/index',
component: resolve => require([`@/views/groupGiftBag/index.vue`], resolve),
meta: {}
},
{
name: 'groupGiftDetail',
path: '/groupGiftBag/giftDetail',
component: resolve => require([`@/views/groupGiftBag/giftDetail.vue`], resolve),
meta: {}
},
{
name: 'groupEditGift',
path: '/groupGiftBag/editGift',
component: resolve => require([`@/views/groupGiftBag/editGift.vue`], resolve),
meta: {}
},
{
name: 'receivedGiftDetail',
path: '/groupGiftBag/receivedGiftDetail',
component: resolve => require([`@/views/groupGiftBag/receivedGiftDetail.vue`], resolve),
meta: {}
},
{
name: 'sopIndex',
path: '/sop/index',
component: resolve => require([`@/views/sop/index.vue`], resolve),
......
......@@ -104,9 +104,8 @@
</el-form-item>
</template>
<template slot="denominationHtml">
<el-input v-model="editForm.denomination" id="denomination" placeholder="请输入面值" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
<!-- <span slot="append">元</span> -->
</el-input>
<el-input v-model="editForm.denomination" id="denomination" placeholder="请输入面值" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)"></el-input>
元
<span style="color: red; margin-left: 15px" v-if="priceFlag && editForm.useChannel == 1">{{
selectedAllProList.length ? '存在零售价低于代金券的商品' : '系统暂无已创建的商品,请先创建好商品后再配置代金券'
}}</span>
......@@ -114,9 +113,10 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<!-- <span slot="suffix">张</span> -->
</el-input>
<div v-else>
<el-input :disabled="apear != 'couponAdd'" class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存"></el-input>
张
</div>
</template>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<template slot="goodsHtml">
......@@ -145,11 +145,11 @@
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</template>
</glsx-combi-form>
<div v-if="$isGroupUp">
<!-- <div v-if="$isGroupUp">
<p class="edit-title">适用门店配置</p>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule">
</glsx-combi-form>
</div>
</div> -->
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
......@@ -202,8 +202,8 @@ export default {
full: '',
goods: '1',
goodsRefList: [],
directionalFlag: '1',
scopeApplication: ''
directionalFlag: '1'
// scopeApplication: ''
},
//商品列表
tableParams: {
......@@ -297,12 +297,12 @@ export default {
isHide: true
},
{
label: '面值/元',
label: '面值',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存/张',
label: '库存',
name: 'stock',
addHtml: 'stock'
// width: '150px',
......@@ -326,29 +326,29 @@ export default {
}
],
// 适用门店
merchantRule: {
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
confName: '旗下所有店通用'
},
{
confId: '2',
confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
}
]
}
]
// merchantRule: {
// scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
// },
// merchantEditFormData: [
// {
// label: '适用范围',
// name: 'scopeApplication',
// type: 'radio',
// optionId: 'confId',
// optionLabel: 'confName',
// isDisabled: false,
// optionList: [
// {
// confId: '1',
// confName: '旗下所有店通用'
// },
// {
// confId: '2',
// confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
// }
// ]
// }
// ]
}
},
......@@ -624,9 +624,9 @@ export default {
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useBarriers = this.editForm.useBarriers + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
// if (this.$isGroupUp) {
// this.editForm.scopeApplication = this.editForm.scopeApplication + ''
// }
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
if (this.editForm.effectiveType == 2) {
......@@ -723,9 +723,10 @@ export default {
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
// else {
// obj.scopeApplication = form.scopeApplication
// }
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
obj.useType = 1
//有效期或者间隔天数使用次数
......@@ -758,20 +759,21 @@ export default {
handleConfirm() {
this.validateRules()
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
if (this.$isGroupUp) {
this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
merchantval = merchantVaild
merchantErrorObj = errorObj
})
}
// var merchantval = true
// var merchantErrorObj = []
// if (this.$isGroupUp) {
// this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
// merchantval = merchantVaild
// merchantErrorObj = errorObj
// })
// }
if (!valid) {
this.whereToGo(Object.keys(errorObj)[0])
} else if (!merchantval) {
this.whereToGo(Object.keys(merchantErrorObj)[0])
}
if (valid && merchantval) {
// else if (!merchantval) {
// this.whereToGo(Object.keys(merchantErrorObj)[0])
// }
if (valid) {
if (this.priceFlag && this.editForm.useChannel == 1) {
//存在零售价低于代金券的商品
this.whereToGo('denomination')
......
......@@ -98,9 +98,8 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<!-- <span slot="suffix">张</span> -->
</el-input>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存"></el-input>
张
</template>
<template slot="useDescriptionHtml">
<el-input type="textarea" v-model="editForm.useDescription" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
......@@ -109,10 +108,10 @@
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</template>
</glsx-combi-form>
<div v-if="$isGroupUp">
<!-- <div v-if="$isGroupUp">
<p class="edit-title">适用门店配置</p>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule"></glsx-combi-form>
</div>
</div> -->
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
......@@ -174,8 +173,8 @@ export default {
effectiveDays: '',
anticipatedCost: '',
discountIntensity: '',
directionalFlag: '1',
scopeApplication: ''
directionalFlag: '1'
// scopeApplication: ''
},
editRule: {
anticipatedCost: [{ required: true, message: '请输入预估成本', trigger: 'change' }],
......@@ -215,7 +214,7 @@ export default {
addHtml: 'useLimitHtml'
},
{
label: '库存/张',
label: '库存',
name: 'stock',
addHtml: 'stock'
// width: '180px',
......@@ -245,29 +244,29 @@ export default {
}
],
// 适用门店
merchantRule: {
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
confName: '旗下所有店通用'
},
{
confId: '2',
confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
}
]
}
]
// merchantRule: {
// scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
// },
// merchantEditFormData: [
// {
// label: '适用范围',
// name: 'scopeApplication',
// type: 'radio',
// optionId: 'confId',
// optionLabel: 'confName',
// isDisabled: false,
// optionList: [
// {
// confId: '1',
// confName: '旗下所有店通用'
// },
// {
// confId: '2',
// confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
// }
// ]
// }
// ]
}
},
......@@ -397,9 +396,9 @@ export default {
this.editForm.useBarriers = this.editForm.useBarriers + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
this.editForm.discountIntensity = (this.editForm.discountIntensity / 100).toFixed(2)
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
// if (this.$isGroupUp) {
// this.editForm.scopeApplication = this.editForm.scopeApplication + ''
// }
//使用限制,满多少元可用
if (this.editForm.useBarriers == 2) {
this.editForm.full = this.editForm.full
......@@ -479,9 +478,10 @@ export default {
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
// else {
// obj.scopeApplication = form.scopeApplication
// }
//折扣
obj.discountIntensity = (form.discountIntensity * 100).toFixed(0)
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
......@@ -506,20 +506,21 @@ export default {
handleConfirm() {
this.validateRules()
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
if (this.$isGroupUp) {
this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
merchantval = merchantVaild
merchantErrorObj = errorObj
})
}
// var merchantval = true
// var merchantErrorObj = []
// if (this.$isGroupUp) {
// this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
// merchantval = merchantVaild
// merchantErrorObj = errorObj
// })
// }
if (!valid) {
this.whereToGo(Object.keys(errorObj)[0])
} else if (!merchantval) {
this.whereToGo(Object.keys(merchantErrorObj)[0])
}
if (valid && merchantval) {
// else if (!merchantval) {
// this.whereToGo(Object.keys(merchantErrorObj)[0])
// }
if (valid) {
var params = this.getCouponInfoParams()
let method = ''
if (params.couponId) {
......
......@@ -96,10 +96,10 @@
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</template>
</glsx-combi-form>
<div v-if="$isGroupUp">
<!-- <div v-if="$isGroupUp">
<p class="edit-title">适用门店配置</p>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule"></glsx-combi-form>
</div>
</div> -->
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
......@@ -158,8 +158,8 @@ export default {
effectiveTime: [],
effectiveDays: '',
anticipatedCost: '',
directionalFlag: '1',
scopeApplication: ''
directionalFlag: '1'
// scopeApplication: ''
},
editRule: {
anticipatedCost: [{ required: true, message: '请输入预估成本', trigger: 'change' }],
......@@ -215,29 +215,29 @@ export default {
}
],
// 适用门店
merchantRule: {
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
confName: '旗下所有店通用'
},
{
confId: '2',
confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
}
]
}
]
// merchantRule: {
// scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
// },
// merchantEditFormData: [
// {
// label: '适用范围',
// name: 'scopeApplication',
// type: 'radio',
// optionId: 'confId',
// optionLabel: 'confName',
// isDisabled: false,
// optionList: [
// {
// confId: '1',
// confName: '旗下所有店通用'
// },
// {
// confId: '2',
// confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
// }
// ]
// }
// ]
}
},
......@@ -344,9 +344,9 @@ export default {
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
// if (this.$isGroupUp) {
// this.editForm.scopeApplication = this.editForm.scopeApplication + ''
// }
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
if (this.editForm.effectiveType == 2) {
......@@ -409,9 +409,10 @@ export default {
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
// else {
// obj.scopeApplication = form.scopeApplication
// }
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
obj.useType = 1
//有效期或者间隔天数使用次数
......@@ -434,20 +435,21 @@ export default {
handleConfirm() {
this.validateRules()
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
if (this.$isGroupUp) {
this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
merchantval = merchantVaild
merchantErrorObj = errorObj
})
}
// var merchantval = true
// var merchantErrorObj = []
// if (this.$isGroupUp) {
// this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
// merchantval = merchantVaild
// merchantErrorObj = errorObj
// })
// }
if (!valid) {
this.whereToGo(Object.keys(errorObj)[0])
} else if (!merchantval) {
this.whereToGo(Object.keys(merchantErrorObj)[0])
}
if (valid && merchantval) {
// else if (!merchantval) {
// this.whereToGo(Object.keys(merchantErrorObj)[0])
// }
if (valid) {
var params = this.getCouponInfoParams()
let method = ''
if (params.couponId) {
......@@ -465,9 +467,9 @@ export default {
this.cancelJump()
}
})
.finally(() => {
this.loading = false
})
.finally(() => {
this.loading = false
})
}
})
},
......
......@@ -60,23 +60,22 @@
</el-radio-group>
</div>
</el-form-item>
<el-form-item v-if="!$isGroupUp" size="small" label="会员价/元:" prop="vipPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.vipPrice" placeholder="请输入会员价" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
<el-form-item v-if="!$isGroupUp" size="small" label="会员价:" prop="vipPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.vipPrice" placeholder="请输入会员价" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)"></el-input>
元
</el-form-item>
<el-form-item v-if="!$isGroupUp" size="small" label="门店价/元:" prop="shopPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.shopPrice" placeholder="请输入门店价" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
<el-form-item v-if="!$isGroupUp" size="small" label="门店价:" prop="shopPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.shopPrice" placeholder="请输入门店价" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)"></el-input>
元
</el-form-item>
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<el-form-item size="small" label="库存/张:" prop="stock">
<el-form-item size="small" label="库存:" prop="stock">
<!-- <el-input size="small" :disabled="title == '查看'" maxlength="6" v-model.number="ruleForm.stock" placeholder="请输入"></el-input> -->
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="title == '查看'" v-else class="w-150" v-model="ruleForm.stock" placeholder="请输入库存">
<!-- <span slot="suffix">张</span> -->
</el-input>
<div v-else>
<el-input :disabled="title == '查看'" class="w-150" v-model="ruleForm.stock" placeholder="请输入库存"></el-input>
张
</div>
</el-form-item>
<el-form-item size="small" label="使用说明:" prop="useDescription">
<el-input size="small" :rows="6" :disabled="disabledDescription" type="textarea" v-model="ruleForm.useDescription" placeholder="请输入" maxlength="200" show-word-limit></el-input>
......@@ -86,10 +85,10 @@
</el-form-item>
</el-form>
<div class="edit-container" v-if="$isGroupUp">
<!-- <div class="edit-container" v-if="$isGroupUp">
<p class="edit-title">适用门店配置</p>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="ruleForm" :formData="merchantEditFormData" :formRules="merchantRule"></glsx-combi-form>
</div>
</div> -->
<!-- <div class="serviceCard">
<div class="cardtop">
<img src="@/assets/serviceMemberCard.png" alt="" />
......@@ -229,8 +228,8 @@ export default {
shopPrice: '',
stock: '',
useDescription: '',
daterange: [],
scopeApplication: ''
daterange: []
// scopeApplication: ''
},
copyRuleForm: {},
rules: {
......@@ -257,29 +256,29 @@ export default {
merchantName: '',
title: this.$route.query.title || '',
// 适用门店
merchantRule: {
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
confName: '旗下所有店通用'
},
{
confId: '2',
confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
}
]
}
]
// merchantRule: {
// scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
// },
// merchantEditFormData: [
// {
// label: '适用范围',
// name: 'scopeApplication',
// type: 'radio',
// optionId: 'confId',
// optionLabel: 'confName',
// isDisabled: false,
// optionList: [
// {
// confId: '1',
// confName: '旗下所有店通用'
// },
// {
// confId: '2',
// confName: '旗下同品牌店通用(根据客户绑定车辆品牌自动筛选出适用门店)'
// }
// ]
// }
// ]
}
},
computed: {
......@@ -358,9 +357,9 @@ export default {
this.ruleForm = res
this.ruleForm.anticipatedCost = (res.anticipatedCost / 100).toFixed(2)
this.ruleForm.customUseLimit = res.useType
if (this.$isGroupUp) {
this.ruleForm.scopeApplication = res.scopeApplication + ''
}
// if (this.$isGroupUp) {
// this.ruleForm.scopeApplication = res.scopeApplication + ''
// }
if (res.effectiveType == 1) {
this.ruleForm.effectiveDays = res.effectiveDays
}
......@@ -390,20 +389,21 @@ export default {
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
if (this.$isGroupUp) {
this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
merchantval = merchantVaild
merchantErrorObj = errorObj
})
}
// var merchantval = true
// var merchantErrorObj = []
// if (this.$isGroupUp) {
// this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
// merchantval = merchantVaild
// merchantErrorObj = errorObj
// })
// }
if (!valid) {
this.whereToGo(Object.keys(errorObj)[0])
} else if (!merchantval) {
this.whereToGo(Object.keys(merchantErrorObj)[0])
}
if (valid && merchantval) {
// else if (!merchantval) {
// this.whereToGo(Object.keys(merchantErrorObj)[0])
// }
if (valid) {
if (this.isEdit == true) {
this.updateService()
} else {
......@@ -470,9 +470,10 @@ export default {
params.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
params.stock = this.ruleForm.stock
} else {
params.scopeApplication = this.ruleForm.scopeApplication
}
// else {
// params.scopeApplication = this.ruleForm.scopeApplication
// }
params.useDescription = this.ruleForm.useDescription
params.discountType = 7
......@@ -620,8 +621,8 @@ export default {
.radioGroupWrap {
width: 550px;
height: 164px;
background-color: #f9f9f9;
padding-top: 10px;
// background-color: #f9f9f9;
// padding-top: 10px;
padding-left: 20px;
}
}
......
......@@ -241,17 +241,17 @@ export default {
width: '100px',
addHtml: 'status'
},
{
label: '适用范围',
name: 'scopeApplication',
width: 160,
formatter: cellValue => {
return {
1: '旗下所有店通用',
2: '旗下品牌店通用'
}[cellValue.scopeApplication]
}
},
// {
// label: '适用范围',
// name: 'scopeApplication',
// width: 160,
// formatter: cellValue => {
// return {
// 1: '旗下所有店通用',
// 2: '旗下品牌店通用'
// }[cellValue.scopeApplication]
// }
// },
{
label: '已领取',
prop: 'getAmount'
......@@ -320,10 +320,10 @@ export default {
created() {
this.userInfo = this.$globalState.session
if (!this.$isGroupUp) {
let idx = this.tableParams.tableColumns.findIndex(item => item.label == '适用范围')
this.tableParams.tableColumns.splice(idx, 1)
}
// if (!this.$isGroupUp) {
// let idx = this.tableParams.tableColumns.findIndex(item => item.label == '适用范围')
// this.tableParams.tableColumns.splice(idx, 1)
// }
},
mounted() {
......
......@@ -39,9 +39,6 @@
<!-- 表格区域 end -->
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" :size="size" @click="goback">返回</el-button>
</div>
<!-- 作废 -->
<GLDialog title="作废确认" mode="small" :visible.sync="isCancelVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<div class="small-content">
......@@ -64,8 +61,6 @@ export default {
data() {
return {
size: 'small',
footerLeft: '0',
footerWidth: '0',
url: url,
// 作废
isCancelVisible: false,
......@@ -104,10 +99,10 @@ export default {
label: '有效期',
name: 'effectiveTxt'
},
{
label: '适用范围',
name: 'scopeApplicationTxt'
},
// {
// label: '适用范围',
// name: 'scopeApplicationTxt'
// },
{
label: '发行库存',
name: 'limitStockFlag',
......@@ -268,15 +263,13 @@ export default {
components: {},
created() {
if (!this.$isGroupUp) {
let idx = this.couponFormData.findIndex(item => item.label == '适用范围')
this.couponFormData.splice(idx, 1)
}
// if (!this.$isGroupUp) {
// let idx = this.couponFormData.findIndex(item => item.label == '适用范围')
// this.couponFormData.splice(idx, 1)
// }
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getOptionsList('searchFormData')
this.getInfo(this.$route.params.id)
},
......@@ -348,13 +341,13 @@ export default {
}
}
// 适用范围
if (this.$isGroupUp) {
this.coupon.scopeApplicationTxt =
{
1: '旗下所有店通用',
2: '旗下品牌店通用'
}[coupon.scopeApplication] || '-'
}
// if (this.$isGroupUp) {
// this.coupon.scopeApplicationTxt =
// {
// 1: '旗下所有店通用',
// 2: '旗下品牌店通用'
// }[coupon.scopeApplication] || '-'
// }
})
},
......
......@@ -17,7 +17,8 @@
<template slot="packageName" slot-scope="scope">
<span v-if="$isGroupUp">{{ scope.scope.packageId ? scope.scope.packageName : scope.scope.directionalGiftId ? scope.scope.directionalGiftName : '-' }}</span>
<div v-else>
<p>{{ packageNameTxtObj[scope.scope.receiveWay] }}</p>
<p v-if="scope.scope.receiveWay != 7">{{ packageNameTxtObj[scope.scope.receiveWay] }}</p>
<p v-else>{{ scope.scope.merchantType == 1 ? '通过自店礼包赠送' : '通过集团礼包赠送' }}</p>
<p v-if="scope.scope.receiveWay == 7 && scope.scope.receiveMethod" class="txt-grey text-10">指定{{ scope.scope.receiveMethod == 1 ? '手机号' : '车架号' }}:{{ scope.scope.receiveNumber }}</p>
</div>
</template>
......@@ -60,6 +61,8 @@ export default {
isReload: true,
size: 'small',
searchForm: {
grantMerchantId: '',
verificationMerchantId: '',
couponName: '',
userReq: '',
verificationOperator: '',
......@@ -75,12 +78,32 @@ export default {
// 搜索
searchFormData: [
{
label: '核销码',
name: 'verificationCode',
type: 'input',
label: '发放门店',
name: 'grantMerchantId',
labelWidth: 56,
maxlength: 50
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantList'
},
{
label: '核销门店',
name: 'verificationMerchantId',
labelWidth: 56,
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantList'
},
// {
// label: '核销门店',
// name: 'verificationMerchantName',
// type: 'input',
// isHide: false,
// maxlength: 50
// },
{
label: '券名称',
name: 'couponName',
......@@ -98,13 +121,6 @@ export default {
optionsName: 'discountTypeList'
},
{
label: '核销门店',
name: 'verificationMerchantName',
type: 'input',
isHide: false,
maxlength: 50
},
{
label: '核销人',
name: 'verificationOperator',
type: 'input',
......@@ -113,12 +129,19 @@ export default {
maxlength: 50
},
{
label: '用户',
label: '用户信息',
name: 'userReq',
type: 'input',
labelWidth: 42,
placeholder: '请输入用户手机号',
maxlength: 11
placeholder: '请输入用户昵称或手机号',
maxlength: 50
},
{
label: '核销码',
name: 'verificationCode',
type: 'input',
labelWidth: 56,
maxlength: 50
},
{
label: '核销日期',
......@@ -147,16 +170,11 @@ export default {
tableOption: false,
tableColumns: [
{
label: '核销码',
prop: 'verificationCode',
width: 200
},
{
label: '用户信息',
label: '领取用户',
prop: 'userName',
width: 220,
formatter: cellValue => {
return cellValue.userName + ' ' + cellValue.phone
return cellValue.userName == cellValue.phone ? cellValue.userName : cellValue.userName + ' ' + cellValue.phone
}
},
{
......@@ -180,11 +198,18 @@ export default {
}
},
{
label: '发放门店',
width: 200,
prop: 'grantMerchantName'
},
{
label: '核销门店',
width: 200,
prop: 'verificationMerchantName'
},
{
label: '核销人',
width: 120,
prop: 'verificationOperator'
},
{
......@@ -194,6 +219,11 @@ export default {
width: 240
},
{
label: '核销码',
prop: 'verificationCode',
width: 200
},
{
label: '核销日期',
prop: 'verificationTime',
width: 200,
......@@ -238,20 +268,21 @@ export default {
confName: '服务券'
}
],
packageList: []
packageList: [],
merchantList: []
}
}
},
created() {
if (this.$isGroupUp) {
this.getPackageList()
} else {
this.showOrHideAttr('searchFormData', '券来源', true)
}
this.showOrHideAttr('searchFormData', this.$isGroupUp ? '核销人' : '核销门店', true)
!this.$isGroupUp && this.showOrHideAttr('searchFormData', '券来源', true)
this.deleteAttr(this.$isGroupUp ? ['核销人'] : ['核销门店'])
},
mounted() {
this.getSuperMerchant()
this.getOptionsList('searchFormData')
},
......@@ -272,6 +303,28 @@ export default {
this.getOptionsList('searchFormData', true, 'packageId')
})
},
getSuperMerchant() {
var isFactory = this.$globalState.session.accountLevel == 1
var { merchantId } = this.$globalState?.session || ''
if (isFactory) {
this.getMerchant(merchantId)
return true
}
this.$apis.common.getSuperMerchantApi({ merchantId: merchantId }).then(res => {
merchantId = res
this.getMerchant(merchantId)
})
},
getMerchant(merchantId) {
const param = {
supMerchantNo: merchantId,
merchantAccountLevel: 4
}
this.$apis.groupGiftBag.getMerchantListApi(param).then(res => {
this.baseData.merchantList = res || []
this.getOptionsList('searchFormData')
})
},
// 跳转到礼包领取详情页
couponNameHandleDetail(row) {
// console.log('row', row)
......@@ -409,6 +462,8 @@ export default {
handleReset() {
this.isReload = false
this.searchForm = {
grantMerchantId: '',
verificationMerchantId: '',
couponName: '',
userReq: '',
verificationOperator: '',
......
<template>
<div>
<el-input @blur.stop="formatPhone" type="textarea" v-model="phones" :placeholder="placeholder"></el-input>
<span v-if="isTip" class="approval-tip" style="margin-left:0;">{{ tip }}</span>
<div style="width: 565px;">
<div :class="['tel-item', !item.valid ? 'valid-tel' : receiveType == 1 ? 'realTel' : 'realNum']" v-for="(item, index) in phoneLists" :key="index">
{{ item.tel }}
<i style="cursor:pointer" class="el-icon-close" @click="delPhone(item.tel)"></i>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'phone-area',
model: {
prop: 'newList',
event: 'changePhoneList'
},
props: {
receiveType: {
type: String,
require: true,
default: '1'
},
placeholder: {
type: String,
default: ''
},
isTip: {
type: String,
default: ''
},
phones: {
type: String,
default: ''
},
phoneLists: {
type: Array
}
},
// data() {
// return {
// phones: '',
// phoneLists: []
// }
// },
methods: {
delPhone(val) {
let phones = '\n' + this.phones + '\n'
phones = phones.replace(/[\n]/g, '\n\n')
phones = phones.replace(new RegExp('[\n]' + val + '[\n]', 'g'), '\n')
phones = phones.replace(/[\n]+/g, '\n')
phones = phones.replace(/^[\n]+/, '')
this.phones = phones
this.formatPhone()
},
formatPhone() {
let phoneLists = this.phones.split('\n')
phoneLists = [...new Set(phoneLists)]
// let phoneLists = this.phones.split(/[\n|\s|,|,]/)
let reg
if (this.receiveType == 1) {
reg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/
} else {
reg = /^[0-9a-zA-Z]{6}$/
}
let arr = []
phoneLists.forEach(item => {
arr.push({
tel: item,
valid: reg.test(item)
})
})
this.phoneLists = arr.filter(item => item.tel)
this.$emit('changePhoneList', this.phoneLists, this.phones)
},
}
}
</script>
<style scope lang="scss">
.tel-item {
height: 26px;
display: inline-block;
padding: 0 8px;
line-height: 26px;
background: #fafbfe;
border-radius: 4px;
border: 1px solid #e8e8ea;
color: #666666;
text-align: center;
margin-right: 4px;
box-sizing: border-box;
}
.valid-tel {
background: #fff1f0;
border: 1px solid #ffa39e;
color: #ff4d4f;
}
.realTel {
width: 130px;
}
.realNum {
width: 90px;
}
.el-textarea {
width: 632px;
}
</style>
......@@ -18,6 +18,7 @@
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form v-loading="loading" class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="415px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="giftNameSlot" class="gift-name-slot">{{editForm.name}} <div class="group-label" v-if="editForm.merchantType==2">集团</div></div>
<div slot="couponListBlock" class="gift-block" v-show="editForm.couponList && editForm.couponList.length != 0">
<div class="gift-title">
预估成本:
......@@ -156,7 +157,7 @@ export default {
{
label: '礼包名称',
name: 'name',
type: 'showTxt'
addHtml: 'giftNameSlot'
},
{
label: '备注名称',
......@@ -241,8 +242,9 @@ export default {
methods: {
getInfo() {
this.$apis.giftBag
.getGiftInfoApi({ id: this.routeInfo.id })
const API = this.routeInfo.type == 'received' ? 'getReceivedGiftDetail' : 'getGiftInfoApi'
const paramsKey = this.routeInfo.type == 'received' ? 'userDirectionalGiftId' : 'id'
this.$apis.giftBag[API]({ [paramsKey]: this.routeInfo.id })
.then(res => {
res.data.createdDate = dayjs(res.data.createdDate).format('YYYY-MM-DD HH:mm:ss')
res.data.updatedDate = dayjs(res.data.updatedDate).format('YYYY-MM-DD HH:mm:ss')
......@@ -337,6 +339,22 @@ export default {
}
.marketing.edit-gift {
// 礼包
.gift-name-slot{
display: flex;
align-items: center;
.group-label{
width: 42px;
height: 20px;
line-height: 20px;
text-align: center;
background: rgba(255,101,61,0.15);
border-radius: 4px;
margin-left: 4px;
font-size: 12px;
display: inline-block;
color: #FF653D;
}
}
.gift-block {
width: 878px;
border-radius: 4px;
......
......@@ -28,7 +28,12 @@
</div>
</div>
<div slot="name" slot-scope="scope">
<p class="cursor-pointer" @click="handleDetail(scope.scope)">{{ scope.scope.name }}</p>
<div class="gift-name">
<div class="group-label" v-if="scope.scope.merchantType==2">集团</div>
<el-tooltip effect="dark" :content="scope.scope.name" placement="top-start">
<div class="cursor-pointer" @click="handleDetail(scope.scope)">{{ scope.scope.name }}</div>
</el-tooltip>
</div>
</div>
<!-- <div style="display: flex;align-items: center;" slot="approveStatus" slot-scope="scope">
<div class="approve-status" :style="{ 'background-color': approvalStatusColor[scope.scope.approveStatus - 1] }"></div>
......@@ -187,7 +192,7 @@ export default {
label: '礼包名称',
prop: 'name',
addHtml: 'name',
width: 200
width: 280
},
{
label: '备注名称',
......@@ -298,9 +303,11 @@ export default {
// 正式版为:release,体验版为: trial 开发版为:develop
let merchantId = this.$globalState.session.merchantId
const appId = this.getAppId()
let href = window.location.host
let aPath = href.indexOf('cgacar') != -1 ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional'
const params = {
appId,
path: 'packageEquity/pages/directional/directional',
path: aPath,
envVersion: this.getEnvVersion(),
scene: `id=${this.curId}&merchantId=${merchantId}&staffUUID=${staffId}`
}
......@@ -544,6 +551,30 @@ export default {
}
}
}
.gift-name{
display: flex;
align-items: center;
.group-label{
width: 42px;
height: 20px;
line-height: 20px;
text-align: center;
background: rgba(255,101,61,0.15);
border-radius: 4px;
margin-right: 4px;
font-size: 12px;
color: #FF653D;
}
.cursor-pointer{
height: 20px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 200px;
line-height: 20px;
}
}
.gift-detail {
padding:0 200px 0 10px;
......
......@@ -22,15 +22,18 @@
<!-- 表格区域 开始 -->
<GLTable ref="receivedGiftListRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="directionalGiftName" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.directionalGiftName" placement="top-start">
<p class="gift-name" @click="handleDetail(scope.scope)">
{{ scope.scope.directionalGiftName }}
</p>
</el-tooltip>
<span v-if="scope.scope.receiveStatus == 2" class="void-label">已作废</span>
<el-tooltip effect="dark" :content="scope.scope.cancelReason" placement="top-start">
<p class="void-reason" v-if="scope.scope.receiveStatus == 2">作废原因:{{ scope.scope.cancelReason || '--' }}</p>
</el-tooltip>
<div class="gift-name-slot">
<div class="group-label" v-if="scope.scope.merchantType==2">集团</div>
<el-tooltip effect="dark" :content="scope.scope.directionalGiftName" placement="top-start">
<p class="gift-name" @click="handleDetail(scope.scope)">
{{ scope.scope.directionalGiftName }}
</p>
</el-tooltip>
<span v-if="scope.scope.receiveStatus == 2" class="void-label">已作废</span>
<el-tooltip effect="dark" :content="scope.scope.cancelReason" placement="top-start">
<p class="void-reason" v-if="scope.scope.receiveStatus == 2">作废原因:{{ scope.scope.cancelReason || '--' }}</p>
</el-tooltip>
</div>
</span>
<div slot="giftInfo" slot-scope="scope">
<GLTable class="secondTable" ref="giftListRef" :hasNum="false" :hasPage="false" :noDataImg="url" :tableParams="giftParams" :tableData="scope.scope | filterTable" @setTableFinishFun="setGiftTableFinishFun"></GLTable>
......@@ -279,7 +282,7 @@ export default {
{
label: '礼包名称',
width: 200,
width: 300,
addHtml: 'directionalGiftName'
},
{
......@@ -372,7 +375,7 @@ export default {
this.$router.push({
path: '/giftBag/giftDetail',
query: {
id: row.directionalGiftId,
id: row.id,
type: 'received'
}
})
......@@ -523,6 +526,22 @@ export default {
.secondTable {
padding-left: 10px;
}
.group-label{
width: 42px;
height: 20px;
line-height: 20px;
text-align: center;
background: rgba(255,101,61,0.15);
border-radius: 4px;
margin-right: 4px;
font-size: 12px;
color: #FF653D;
flex-shrink: 0;
}
.gift-name-slot{
display: flex;
align-items: center;
}
.gift-name {
color: #5850ff;
margin: 0;
......@@ -542,7 +561,7 @@ export default {
text-align: center;
line-height: 18px;
background: #eeeded;
margin-top: 2px;
flex-shrink: 0;
}
.void-reason {
font-size: 10px;
......@@ -551,7 +570,6 @@ export default {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin: 4px 0 0;
}
.void-dialog {
/deep/ .el-dialog__body {
......
<!-- 定向礼包-->
<template>
<div class="marketing">
<div class="m-b-10">
<!-- <el-button :size="size" type="primary" fn="新增礼包" class="el-icon-plus" @click="handleEdit('add')">新增礼包</el-button> -->
<GLButton :size="size" type="primary" fn="新增礼包" class="el-icon-plus" @click="handleEdit('add')">新增礼包</GLButton>
</div>
<div class="list-tips m-b-10">
<img class="tips-img" src="@/assets/icon-info.png" />
<span>集团礼包:将多种券组合成礼包,由集团指定的门店进行发放,客户领取后可在指定的门店间进行使用。</span>
</div>
<div class="container">
<div>
<GLCombiForm @handleOk="handleSearch" :rowNumber="1" @handleRest="handleReset" ref="showSearch" :formObj="searchForm" :formData="searchFormData"></GLCombiForm>
<GLButton style="float:right;margin-bottom:10px;" :size="size" class="default-blue-btn" type="default" fn="导出" @click="handleExport">导出</GLButton>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="giftListRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="giftInfo" slot-scope="scope">
<div class="p-b-12">礼包明细</div>
<div class="gift-detail flex-wrap">
<div class="gift-item" v-for="(item, index) in scope.scope.couponDTOList" :key="index">
<img :src="require(`@/assets/coupon/icon-${attrToIcon[item.discountType]}.png`)" />
<p :class="['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']">{{ item.couponName }} × {{ item.couponAmount }}</p>
<p v-show="item.status == '3'" class="gift-tips">已失效</p>
</div>
</div>
</div>
<div slot="name" slot-scope="scope">
<p class="cursor-pointer" @click="handleDetail(scope.scope)">{{ scope.scope.name }}</p>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import { aToExport } from '@/common/constant'
export default {
name: 'giftList',
data() {
return {
attrToIcon: {
2: 'discount',
3: 'cash',
4: 'exchange',
7: 'service'
},
buttonList: [
{
type: 'GLButton',
name: row => {
return '编辑'
},
attrs: {
type: 'text',
fn: '编辑'
},
listeners: {
click: row => this.handleEdit('edit', row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '删除'
},
attrs: {
type: 'text',
fn: '删除'
},
listeners: {
click: row => this.handleDelete(row.scope)
}
}
],
size: 'small',
url: url,
searchForm: {
name: '',
merchantName: ''
},
// 搜索
searchFormData: [
{
label: '礼包名称',
name: 'name',
type: 'input',
maxlength: 30,
placeholder: '请输入礼包/备注名称',
isClear: true
},
{
label: '下发门店',
name: 'merchantName',
type: 'input',
maxlength: 30,
placeholder: '请输入门店名称',
isClear: true
},
],
// 表格
getListApi: this.$apis.groupGiftBag.getListApi,
tableParams: {
listName: 'list',
tableOption: {
width: 200,
align: 'center'
},
tableColumns: [
{
label: '',
prop: '',
columnattrs: {
type: 'expand'
},
addHtml: 'giftInfo'
},
{
label: '序号',
prop: 'idx',
width: 60
},
{
label: '礼包名称',
prop: 'name',
addHtml: 'name'
},
{
label: '预估成本/元',
prop: 'anticipatedCost',
formatter: cellValue => {
let total = cellValue.couponDTOList.reduce(function(prev, cur) {
return prev + +(cur.couponAnticipatedCost * cur.couponAmount).toFixed(0)
}, 0)
return total / 100
}
},
{
label: '下发门店',
prop: 'staffList',
line: 1,
formatter: cellValue => {
return cellValue.storeList.map(item => item.merchantName).join('、')
}
},
{
label: '已领取',
prop: 'stock',
formatter: cellValue => {
return cellValue.receivedAmount || '0'
}
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
}
},
mounted() {
},
methods: {
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.$apis[apiModule][apiName](apiParams).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
fn && fn()
this.handleSearch()
}
})
}
}
})
},
handleDelete(row) {
this.secondConfirm('删除', '是否确认删除该礼包?', 'groupGiftBag', 'deleteGiftApi', { id: row.id })
},
// 导出
handleExport() {
var params = {...this.searchForm}
this.$apis.groupGiftBag.giftExportApi(params).then(res => {
aToExport(res)
})
},
// 查看
handleDetail(row) {
this.$router.push({
path: '/groupGiftBag/giftDetail',
query: {
id: row.id
}
})
},
// add-新增;edit-编辑
handleEdit(addOrEdit, row) {
var params = {
addOrEdit: addOrEdit,
$title: encodeURI(addOrEdit == 'add' ? '新增礼包' : '编辑礼包')
}
addOrEdit != 'add' && (params.id = row.id)
this.$router.push({
path: '/groupGiftBag/editGift',
query: params
})
},
setTableFinishFun() {
var page = this.$refs.giftListRef.page
// 添加序号
this.$refs.giftListRef.data.forEach((item, index) => {
item.idx = index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1
})
//接收到的数据为空
this.$refs.giftListRef.data.length ? (this.$refs.giftListRef.tableHeightValues = '') : this.$refs.giftListRef.setTableHeightFun()
},
handleSearch() {
this.$refs.giftListRef.refreshTable()
},
handleReset() {
this.searchForm = {
name: '',
merchantName: ''
},
this.handleSearch()
}
}
}
</script>
<style lang="scss" scoped>
.p-b-12 {
margin-bottom: 14px;
font-weight: 500;
padding-left: 10px;
color: #333333;
}
.approve-status {
width: 6px;
height: 6px;
border-radius: 4px;
margin-right: 8px;
display: inline-block;
}
.qr-dialog {
/deep/.el-dialog__body {
// padding: 20px;
.el-scrollbar__wrap {
overflow: hidden;
}
.qrcode-body {
display: flex;
flex-direction: column;
align-items: center;
p {
line-height: 28px;
margin-bottom: 16px;
}
.el-select {
.el-input__inner {
width: 360px;
height: 36px;
}
.el-input__icon {
line-height: 36px;
}
}
.img {
margin-top: 16px;
background: #eee;
display: flex;
align-items: center;
justify-content: center;
&,
img {
width: 160px;
height: 160px;
}
}
}
}
}
.gift-detail {
padding:0 200px 0 10px;
.gift-item {
margin-right: 80px;
display: flex;
align-items: center;
color: #333333;
width: 400px;
img {
height: 23px;
width: 58px;
margin-right: 10px;
}
.gift-coupon-name {
display: inline-block;
}
.gift-tips {
display: inline-block;
font-size: 12px;
height: 18px;
line-height: 18px;
color: #999999;
background-color: #eeeded;
margin-right: 7px;
}
}
}
.gift-detail .gift-item:last-child {
margin-right: 0;
}
</style>
<!-- 定向礼包 -->
<template>
<div class="gift-bag">
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="集团礼包" name="giftList">
<gift-list v-if="activeName == 'giftList'"></gift-list>
</el-tab-pane>
<el-tab-pane label="已领取" name="receivedGiftList">
<receivedGiftList v-if="activeName == 'receivedGiftList'"></receivedGiftList>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import giftList from './giftList.vue'
import receivedGiftList from './receivedGiftList'
export default {
name: 'gitfBag',
data() {
return {
activeName: 'giftList'
}
},
components: {
giftList,
receivedGiftList
},
created() {
// this.activeName = sessionStorage.getItem('GIFTNAME') ? sessionStorage.getItem('GIFTNAME') : 'giftList'
if (this.$route.query.type == 'received') {
this.activeName = 'receivedGiftList'
}
},
mounted() {},
methods: {
handleTabClick() {
this.$router.push({ path: this.$route.path, query: { type: this.activeName == 'receivedGiftList' ? 'received' : 'gift' } })
}
}
}
</script>
<style>
.gift-bag .el-tabs__nav-wrap:after {
opacity: 0;
}
.gift-bag .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
font-weight: 400;
font-size: 16px;
color: #717171;
height: 36px;
line-height: 36px;
}
.gift-bag .el-tabs__item:hover,
.gift-bag .el-tabs__item.is-active {
color: #5f5efb;
}
</style>
......@@ -4,10 +4,16 @@
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in detailFormDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item">
<span class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
<el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item>
......@@ -15,43 +21,61 @@
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<el-form label-width="100px"
:inline="true">
<el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ detailForm.deliveryNumber }}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length" class="p-l-40">
<div v-if="orderGoods.length"
class="p-l-40">
<table class="show-table">
<tbody>
<tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px;">
<td><img :src="item.goodsImage" class="img-60" /></td>
<tr v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px;">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 *
{{ item.goodsNumber }}</td>
</tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px;">
<td style="text-align: left;" colspan="3">优惠券</td>
<tr v-if="detailForm.subOrderCoupon"
style="height: 40px;">
<td style="text-align: left;"
colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container edit-container" v-if="orderRefund">
<div class="container edit-container"
v-if="orderRefund">
<p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
<span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in afterInfoDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || '-' }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<el-form label-width="100px" :inline="true">
<el-form label-width="100px"
:inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
<span v-for="(item, index) in orderRefund.imgUrls"
:key="index">
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
</span>
</div>
</el-form-item>
......@@ -60,7 +84,8 @@
</div>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button @click="handleCancel"
size="medium">取消</el-button>
</GLFooter>
</div>
</template>
......@@ -134,10 +159,14 @@ export default {
name: 'orderStatusName'
},
{
label: '支付总价',
label: '支付定金',
name: 'payPrice'
},
{
label: '尾款',
name: 'crowdFundingPrice'
},
{
label: '发货地址',
name: 'shipAddress'
},
......@@ -254,6 +283,10 @@ export default {
var takeFeeIdx = this.detailFormData.findIndex(item => item.name == 'takeFee')
this.detailFormData.splice(takeFeeIdx, 1)
}
if (res.orderSource == 4) {
let idx = this.detailFormData.findIndex(item => item.name == 'shipAddress')
this.detailFormData.splice(idx, 1)
}
// 其他信息
var formDescribeObj = {
label: '其他信息',
......
......@@ -2,35 +2,75 @@
<template>
<div class="marketing pro-group">
<div class="m-b-20">
<GLButton :size="size" type="primary" fn="新建商品" class="el-icon-plus" @click="handleEdit(1)">新建商品</GLButton>
<GLButton :size="size"
type="primary"
fn="新建商品"
class="el-icon-plus"
@click="handleEdit(1)">新建商品</GLButton>
</div>
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="goodsImage" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.goodsImage" />
<img class="img-60 pointer" slot="reference" :src="scope.scope.goodsImage" />
<GLTable ref="proGroupRef"
class="table-img"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="goodsImage"
slot-scope="scope">
<el-popover placement="top"
width="160"
trigger="hover"
popper-class="table-popover-block">
<img class="table-popover-img"
:src="scope.scope.goodsImage" />
<img class="img-60 pointer"
slot="reference"
:src="scope.scope.goodsImage" />
</el-popover>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<GLTableButton :buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 下架 -->
<glsx-dialog title="下架" :isVisible.sync="isDownVisible" @confirmDialog="handleDownConfirm" @closeDialog="handleDownClose">
<el-form ref="downRef" label-width="100px" :rules="downRules" :model="downForm">
<el-form-item label="下架备注" prop="offReason">
<el-input :size="size" v-model="downForm.offReason" placeholder="请输入下架备注" maxlength="30"></el-input>
<glsx-dialog title="下架"
:isVisible.sync="isDownVisible"
@confirmDialog="handleDownConfirm"
@closeDialog="handleDownClose">
<el-form ref="downRef"
label-width="100px"
:rules="downRules"
:model="downForm">
<el-form-item label="下架备注"
prop="offReason">
<el-input :size="size"
v-model="downForm.offReason"
placeholder="请输入下架备注"
maxlength="30"></el-input>
</el-form-item>
</el-form>
</glsx-dialog>
<!-- 分享 -->
<share-dialog :isShareVisible="isShareVisible" :shareForm="shareForm" @handleShareClose="handleShareClose"></share-dialog>
<share-dialog :isShareVisible="isShareVisible"
:shareForm="shareForm"
@handleShareClose="handleShareClose"></share-dialog>
</div>
</template>
......@@ -332,6 +372,10 @@ export default {
{
confId: '2',
confName: '带货'
},
{
confId: '3',
confName: '总部商品'
}
]
}
......
......@@ -64,7 +64,7 @@
<div class="wechat-block">
<div>
<div class="flex">
<div>玩家心得({{ editForm.activityExperienceDTOs.length }})</div>
<div>服务评价({{ editForm.activityExperienceDTOs.length }})</div>
<div class="sprite-icon icon-arrow"></div>
</div>
<div v-if="editForm.activityExperienceDTOs.length">
......
......@@ -2,14 +2,14 @@
<template>
<div class="marketing">
<div class="m-b-20">
<GLButton
<!-- <GLButton
:size="size"
class="default-blue-btn el-icon-plus"
type="default"
@click="handleEdit('add')"
fn="新增众筹"
mode="el-button"
>新建众筹</GLButton>
>新建众筹</GLButton> -->
<el-button
:size="size"
type="default"
......@@ -145,67 +145,74 @@ export default {
// 表格按钮
tableButtonList: [
{
type: 'el-button',
name: '开始',
attrs: {
type: 'text'
},
condition: row => {
return row.activityStatus == '1'
},
listeners: {
click: this.start
}
},
{
type: 'el-button',
name: '结束',
attrs: {
type: 'text'
},
condition: row => {
return row.activityStatus == '2'
},
listeners: {
click: this.end
}
},
{
type: 'GLButton',
name: '编辑',
name: '查看',
attrs: {
type: 'text',
fn: '编辑众筹'
},
condition: row => {
return row.activityStatus == '1' || row.activityStatus == '2' || row.activityStatus == '3'
fn: '查看众筹'
},
listeners: {
click: row => {
// var editOrDetail = {
// 1: 'edit',
// 2: 'detail',
// 3: 'detail'
// }[row.activityStatus]
// return this.handleEdit(editOrDetail, row)
this.handleEdit('edit', row)
this.handleEdit('detail', row)
}
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除众筹'
},
condition: row => {
return row.activityStatus == '3'
},
listeners: {
click: this.del
}
},
// {
// type: 'el-button',
// name: '开始',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.activityStatus == '1'
// },
// listeners: {
// click: this.start
// }
// },
// {
// type: 'el-button',
// name: '结束',
// attrs: {
// type: 'text'
// },
// condition: row => {
// return row.activityStatus == '2'
// },
// listeners: {
// click: this.end
// }
// },
// {
// type: 'GLButton',
// name: '编辑',
// attrs: {
// type: 'text',
// fn: '编辑众筹'
// },
// condition: row => {
// return row.activityStatus == '1' || row.activityStatus == '2' || row.activityStatus == '3'
// },
// listeners: {
// click: row => {
// this.handleEdit('edit', row)
// }
// }
// },
// {
// type: 'GLButton',
// name: '删除',
// attrs: {
// type: 'text',
// fn: '删除众筹'
// },
// condition: row => {
// return row.activityStatus == '3'
// },
// listeners: {
// click: this.del
// }
// },
{
type: 'el-button',
name: '置顶',
......@@ -226,18 +233,18 @@ export default {
click: this.handleShare
}
},
{
type: 'el-button',
name: '复制',
attrs: {
type: 'text'
},
listeners: {
click: row => {
this.handleEdit('copy', row)
}
}
},
// {
// type: 'el-button',
// name: '复制',
// attrs: {
// type: 'text'
// },
// listeners: {
// click: row => {
// this.handleEdit('copy', row)
// }
// }
// },
{
type: 'GLButton',
name: '数据看板',
......@@ -473,10 +480,9 @@ export default {
query: params
})
},
test (option) {
console.log(JSON.parse(JSON.stringify(option)))
},
// test (option) {
// console.log(JSON.parse(JSON.stringify(option)))
// },
// 明细
handleDetail ({ prop, scope }) {
let data = {
......
......@@ -9,7 +9,7 @@ const cdn = {
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, `${CDN_DOMAIN}ajax/libs/moment/2.24.0/moment.js`, 'https://webapi.amap.com/loader.js']
}
module.exports = {
outputDir: `../dist/${packageName}`,
outputDir: `dist`,
publicPath,
assetsDir: 'static',
productionSourceMap: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!