Commit 93fc92d3 by 前端

fixed

1 parent 414ed1b7
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:56
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-18 13:56:09
* @FilePath: \scrm-micro-link\public\index.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
......@@ -18,7 +25,6 @@
<% } %>
<title>微前端子应用:博客</title>
</head>
<body>
<noscript>
<strong>We're sorry but module-report doesn't work properly without JavaScript enabled. Please enable it to
......@@ -30,5 +36,4 @@
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
</body>
</html>
\ No newline at end of file
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:56
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-16 10:24:46
* @LastEditTime: 2022-12-16 18:18:09
* @FilePath: \scrm-micro-link\src\api\modules\activity.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -108,6 +108,15 @@ const updateApi = params => {
sign: true
})
}
const getShared = params => {
params.method = `scrm.api.shopmall.goods.get.shared`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
dropdownList,
......@@ -118,5 +127,6 @@ export default {
getActivityDetailApi,
deleteApi,
pageApi,
updateApi
updateApi,
getShared
}
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 14:46:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-15 17:48:25
* @LastEditTime: 2022-12-18 14:49:23
* @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -67,11 +67,22 @@ const uploadVideoApi = params => {
noSignAttr: ['file']
})
}
const uploadFundingVideoApi = params => {
params.method = 'scrm.api.carlife.crowd.funding.uploadVideo'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
export default {
pictureUpload,
getMerchantStaff,
getMerchantList,
uploadImgApi,
uploadMusicApi,
uploadVideoApi
uploadVideoApi,
uploadFundingVideoApi
}
......@@ -12,7 +12,12 @@ html {
background: #ffffff;
padding: 20px;
}
.w-100-percent {
width: 100%;
}
.txt-center {
text-align: center;
}
.m-b-20 {
margin-bottom: 20px;
}
......
......@@ -242,6 +242,16 @@ const businessType = [
optionLabel: '2.0'
}
]
const subscribe = [
{
optionId: 1,
optionLabel: '道路救援'
},
{
optionId: 3,
optionLabel: '其他'
}
]
function setMinHeight(calssName = '.edit-container') {
let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px'
let minHeight = 'calc(100vh - ' + height + ')'
......@@ -263,4 +273,4 @@ function isShowBtn(value) {
}
return isShowStatus
}
export { isShowBtn, limitPrice, getExplorer, exportFn, aToExport, downloadIamge, businessType, orderStatus, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
export { isShowBtn, subscribe, limitPrice, getExplorer, exportFn, aToExport, downloadIamge, businessType, orderStatus, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
......@@ -77,7 +77,7 @@ export default {
map.addControl(new AMap.ToolBar())
this.geocoder = new AMap.Geocoder()
map.setDefaultCursor('pointer')
AMap.plugin(['AMap.PlaceSearch'], function () {
AMap.plugin(['AMap.PlaceSearch'], function() {
//构造地点查询类
placeSearch = new AMap.PlaceSearch({
pageSize: 8, // 单页显示结果条数
......@@ -99,7 +99,7 @@ export default {
return true
}
let _this = this
placeSearch.search(query, function (status, result) {
placeSearch.search(query, function(status, result) {
if (status === 'complete' && result.poiList.pois.length) {
_this.adrList = result.poiList.pois
}
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-13 15:29:54
* @LastEditTime: 2022-12-18 11:40:47
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-13 09:42:39
* @LastEditTime: 2022-12-18 13:58:06
* @FilePath: \scrm-micro-link\src\router\routes.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -12,6 +12,12 @@ const staticRoutes = Object.freeze([
path: '/activityLink/index',
component: resolve => require([`@/views/activityLink/index.vue`], resolve),
meta: {}
},
{
name: 'editActivity',
path: '/activityLink/editActivity',
component: resolve => require([`@/views/activityLink/editActivity.vue`], resolve),
meta: {}
}
])
export default staticRoutes
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-16 09:25:41
* @LastEditTime: 2022-12-19 10:19:53
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -27,7 +27,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-09cf702c-321e-4f06-948e-c5907fb20b92-rop' } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
<template>
<div class="wechat-box marketing">
<div class="wechat-box live-main">
<img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<img class="wechat-head" src="@/assets/seckillActivity/crowd-head.png" />
<img class="icon-server" src="@/assets/seckillActivity/icon-server.png" />
<!-- <img class="icon-server" src="@/assets/seckillActivity/icon-server.png" /> -->
<div class="wechat-inner-box">
<div class="wechat-banner-img">
<img class="icon-music" src="@/assets/seckillActivity/icon-music.png" />
<img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" />
<!-- <img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" /> -->
<div class="main-title flex-space-between">
<div class="price">
<div class="unit">¥</div>
{{ editForm.activityPrice / 100 }}
</div>
<div class="title-right" v-if="editForm.expiresType == 0">
<div class="title-tips">
活动时间:
</div>
<div class="title-time">截止至{{ editForm.activityTime[1] }}</div>
</div>
</div>
<div class="w-100-percent txt-center">
<video v-if="editForm.activityVideoList.length" class="wechat-video" controls>
<source :src="editForm.activityVideoList[0]" type="video/mp4" />
</video>
</div>
<div class="wechat-block">
<p class="wechat-block-title">活动举办方</p>
<div class="flex-center">
<div class="wechat-block" style="padding:0px">
<div class="title">
<div class="title-l">活动举办方</div>
<div class="title-r">
<span>官方合作</span>
<span>品牌授权</span>
</div>
</div>
<div class="flex-center" style="padding:10px">
<div>
<p class="m-b-10">{{ editForm.sponsorName }}</p>
<p class="m-b-10 wechat-sub-addr">{{ editForm.activityAddressDetailName }}</p>
......@@ -27,26 +45,30 @@
</div>
</div>
<div class="wechat-block">
<!-- <div class="wechat-block">
<p class="wechat-block-title">{{ countDownObj.typeTxt }}</p>
<p v-if="countDownObj.activityStatus != 3" class="wechat-count-down">
<span v-if="editForm.activityTime && editForm.activityTime.length">{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}</span>
日开始活动,还差
<span class="wechat-txt">{{ countDownObj.d }}</span>天
<span class="wechat-txt">{{ countDownObj.h }}</span>时
<span class="wechat-txt">{{ countDownObj.m }}</span>分
<span class="wechat-txt">{{ countDownObj.s }}</span>秒
<span class="wechat-txt">{{ countDownObj.d }}</span>
天
<span class="wechat-txt">{{ countDownObj.h }}</span>
时
<span class="wechat-txt">{{ countDownObj.m }}</span>
分
<span class="wechat-txt">{{ countDownObj.s }}</span>
秒
</p>
<img v-else class="count-down-img" src="@/assets/seckillActivity/count-down.png" />
</div>
</div> -->
<div class="w-100-percent txt-center">
<!-- <div class="w-100-percent txt-center">
<img class="crowd-jdt" src="@/assets/seckillActivity/crowd-jdt.png" />
</div>
</div> -->
<div class="wechat-block service">
<div class="serve" v-if="editForm.activityServices.length">
<div class="box flex">
<div class="box flex-space-between">
<div style="width: 26px;">服务</div>
<div class="serve-text flex-center">
<template v-for="(i, index) in editForm.activityServices">
......@@ -63,7 +85,7 @@
<div class="wechat-block">
<div>
<div class="flex">
<div class="flex-space-between">
<div>玩家心得({{ editForm.activityExperienceDTOs.length }})</div>
<div class="sprite-icon icon-arrow"></div>
</div>
......@@ -80,7 +102,7 @@
</div>
<div class="line"></div>
<div v-if="editForm.activityCommoditys.length">
<div class="flex m-b-10">
<div class="flex-space-between m-b-10">
<div>商品答疑({{ editForm.activityCommoditys.length }})</div>
<div class="sprite-icon icon-arrow"></div>
</div>
......@@ -118,15 +140,15 @@ export default {
props: {
editForm: {
type: Object,
default: () => { }
default: () => {}
},
countDownObj: {
type: Object,
default: () => { }
default: () => {}
}
},
mounted() { },
mounted() {},
methods: {}
}
......@@ -203,6 +225,32 @@ export default {
text-align: center;
color: #fc5b32;
}
.main-title {
font-size: 10px;
padding: 10px 5px;
background: url('../../assets/seckillActivity/banner.png');
background-size: 100% 100%;
color: #fff;
.price {
font-weight: 600;
font-size: 48rpx;
display: flex;
align-items: baseline;
margin-left: 20rpx;
margin-left: 34px;
}
.price .unit {
font-size: 24rpx;
}
.price .decimal {
font-size: 28rpx;
}
.title-right {
line-height: 36rpx;
}
}
.wechat-block {
box-sizing: border-box;
background-color: #fff;
......@@ -210,6 +258,31 @@ export default {
font-size: 14px;
padding: 10px;
margin: 10px 12px;
.title {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 28px;
background-image: linear-gradient(90deg, #fd4327 2%, #ff4317 54%, #fc2020 92%);
border-radius: 8px 8px 0 0;
padding: 0px 5px;
box-sizing: border-box;
.title-l {
font-size: 10px;
color: #ffffff;
}
.title-r {
font-size: 10px;
color: #ffffff;
letter-spacing: 2px;
}
}
.title-r span {
margin-right: 5px;
}
.wechat-sub-addr {
font-size: 12px;
color: #656566;
......
......@@ -161,12 +161,12 @@
新增表单
</el-button>
</div>
<div slot="showAvatarNicknameFlag">
<!-- <div slot="showAvatarNicknameFlag">
<el-radio-group v-model="editForm.showAvatarNicknameFlag">
<el-radio :label="1">隐藏</el-radio>
<el-radio :label="2">显示</el-radio>
</el-radio-group>
</div>
</div> -->
<!-- 服务说明 -->
<div slot="activityServices" id="activityServices" class="flex">
<span class="custom-label arrow" slot="label" @click="handleArrow('activityServices')" :style="{ width: defaultLabelWidth }">
......@@ -443,11 +443,11 @@ export default {
formDescribeCheck: ['selectCarNumberFlag', 'selectVehicleTypeFlag', 'selectPhoneNumberFlag'],
activityServices: [],
activityCommoditys: [],
activityExperienceDTOs: [],
activityExperienceDTOs: []
// formDescribeFirst: '',
// formDescribeSecond: '',
// formDescribeThird: '',
showAvatarNicknameFlag: 1
// showAvatarNicknameFlag: 1
// liveFlag: false,
// liveBroadcastRoomId: '',
// groupQrCode: '',
......@@ -939,11 +939,11 @@ export default {
name: 'formDescribe',
addHtml: 'formDescribe'
},
{
label: '头像昵称',
name: 'showAvatarNicknameFlag',
addHtml: 'showAvatarNicknameFlag'
},
// {
// label: '头像昵称',
// name: 'showAvatarNicknameFlag',
// addHtml: 'showAvatarNicknameFlag'
// },
{
label: '',
name: 'activityServices',
......@@ -1090,16 +1090,11 @@ export default {
if (id) {
if (this.routeInfo.addOrEdit == 'edit' && this.routeInfo.activityStatus == 2) {
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
this.isDisabled = this.routeInfo.addOrEdit != 'add'
this.isDisabled = this.routeInfo.addOrEdit == 'edit'
detailDisableList.forEach(attr => {
this.changeFormAttr(
attr,
'isDisabled',
this[attr].map(item => item.label),
true
)
this.changeFormAttr(attr, 'isDisabled', ['业务类型', '所属订阅'], true)
})
this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true)
// this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true)
}
}
},
......@@ -1111,7 +1106,10 @@ export default {
deep: true
},
'editForm.merchantId'() {
this.couponObj = couponObj
if (this.loading) {
return
}
this.couponObj = JSON.parse(JSON.stringify(couponObj))
this.editForm.couponList = []
this.recoveryTotalPrice()
this.hasCouponBlock(false)
......@@ -1193,6 +1191,17 @@ export default {
this.recoveryTotalPrice()
this.recoveryGiftList()
},
recoveryCoupon() {
this.orderShow.forEach(item => {
this.couponObj[item].list = []
})
this.editForm.couponList.forEach(item => {
this.couponObj[this.numToCoupon[item.discountType]].list.push(item)
})
// console.log(this.couponObj, 'this.couponObj')
// this.currentCoupons = this.$common.utils.deepClone(this.editForm.couponList)
this.hasCouponBlock(false)
},
// 计算预估成本
recoveryTotalPrice() {
this.totalEstimatedCost = 0
......@@ -1343,7 +1352,7 @@ export default {
this.handleSingleSelectClose()
if (selectedProInfo) {
this.editForm.goodsId = selectedProInfo.id
this.getGoodInfo(selectedProInfo.id)
// this.getGoodInfo(selectedProInfo.id)
}
},
handleSingleSelectClose(isCancel = false) {
......@@ -1565,8 +1574,10 @@ export default {
var info = res
this.editForm = this.$common.utils.deepClone(res)
this.activityInfo = info
this.$set(this.editForm, 'activityTime', [info.startTime, info.endTime])
this.routeInfo.addOrEdit == 'edit' && this.getGoodInfo(info.goodsId)
if (info.startTime) {
this.$set(this.editForm, 'activityTime', [info.startTime, info.endTime])
}
// this.routeInfo.addOrEdit == 'edit' && this.getGoodInfo(info.goodsId)
// if (info.activityPrice != null && info.goodsStock != null) {
// this.editForm.activityPrice = (info.activityPrice / 100).toFixed(2)
// this.editForm.goodsStock = info.goodsStock + ''
......@@ -1592,6 +1603,9 @@ export default {
this.editForm.activityDetail = decodeURIComponent(info.activityDetail)
this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].setEdit(this.editForm.activityDetail)
}
if (info.activityPrice) {
this.editForm.activityPrice = info.activityPrice / 100
}
// 活动音乐
if (info.activityMusic) {
var checkIdx = this.musicList.map(item => item.addr).findIndex(k => k == info.activityMusic)
......@@ -1607,6 +1621,12 @@ export default {
this.handleMusicChange(this.musicList.length - 1)
}
}
info.couponList.forEach(item => {
item.id = item.couponId
item.anticipatedCost = item.couponAnticipatedCost
})
this.recoveryCoupon()
this.recoveryTotalPrice()
// 表单设置
this.editForm.formDescribeCheck = []
this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1
......@@ -1639,10 +1659,10 @@ export default {
}
// 复制
if (this.routeInfo.addOrEdit == 'copy') {
let resetArr = [{ name: 'id' }, { name: 'activityTime', type: 'array' }, { name: 'liveBroadcastRoomId' }, { name: 'groupQrCode' }, { name: 'floatingMaskDiagram' }, { name: 'liveBroadcastRoomCover' }, { name: 'liveBroadcastRoomEndCover' }, { name: 'selectedProInfo', type: 'Object' }, { name: 'goodsId' }, { name: 'activityPrice' }, { name: 'crowdFundingPrice' }, { name: 'goodsStock' }]
let resetArr = [{ name: 'id' }, { name: 'activityTime', type: 'array' }, { name: 'liveBroadcastRoomId' }, { name: 'groupQrCode' }, { name: 'floatingMaskDiagram' }, { name: 'liveBroadcastRoomCover' }, { name: 'liveBroadcastRoomEndCover' }, { name: 'selectedProInfo', type: 'Object' }, { name: 'crowdFundingPrice' }]
this.copyReset(resetArr)
}
this.getPayList()
// this.getPayList()
this.$nextTick(() => {
this.editStatus = false
})
......
......@@ -47,12 +47,13 @@
</div>
</template>
<script>
import { orderStatus, businessType } from '@/common/constant'
import { orderStatus, businessType, subscribe } from '@/common/constant'
import url from '@/assets/empty.png'
export default {
name: 'LiveIndex',
data() {
return {
orderStatus,
attrToIcon: {
2: 'discount',
3: 'cash',
......@@ -86,9 +87,9 @@ export default {
},
{
label: '业务场景',
name: 'term',
name: 'businessType',
type: 'select',
optionList: businessType,
optionList: this.$common.utils.deepClone(businessType),
optionId: 'optionId',
optionLabel: 'optionLabel'
},
......@@ -96,16 +97,7 @@ export default {
label: '所属订阅',
name: 'subscribe',
type: 'select',
optionList: [
{
optionId: 1,
optionLabel: '道路救援'
},
{
optionId: 3,
optionLabel: '其他'
}
],
optionList: this.$common.utils.deepClone(subscribe),
optionId: 'optionId',
optionLabel: 'optionLabel'
},
......@@ -113,7 +105,7 @@ export default {
label: '状态',
name: 'activityStatus',
type: 'select',
optionList: orderStatus,
optionList: this.$common.utils.deepClone(orderStatus),
optionId: 'confId',
optionLabel: 'confName'
}
......@@ -147,12 +139,17 @@ export default {
},
{
label: '业务场景',
prop: 'businessType'
prop: 'businessType',
formatter: cellValue => {
return businessType.find(item => item.optionId == cellValue.subscribe).optionLabel
}
},
{
label: '所属订阅',
prop: 'subscribe ',
addHtml: 'subscribe '
prop: 'subscribe',
formatter: cellValue => {
return subscribe.find(item => item.optionId == cellValue.subscribe).optionLabel
}
},
{
label: '销量',
......@@ -211,9 +208,6 @@ export default {
attrs: {
type: 'text'
},
condition: row => {
return row.status == 1
},
listeners: {
click: row => {
this.handleEdit('edit', row)
......@@ -244,7 +238,7 @@ export default {
// return row.status == 2 || row.status == 0
// },
listeners: {
click: row => this.shareQrcode(row.scope)
click: row => this.shareQrcode(row)
}
},
{
......@@ -275,10 +269,71 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }
}
},
mounted() {},
mounted() {
this.searchFormData.forEach(item => {
if (item.type == 'select') {
item.optionList.unshift({
[item.optionLabel]: '全部',
[item.optionId]: ''
})
}
})
},
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()
}
if (res.code == '21') {
this.handleSearch()
}
})
}
}
})
},
//开始
start(item) {
this.startOrEndConfirm('开始', item)
},
//结束
end(item) {
this.startOrEndConfirm('结束', item)
},
startOrEndConfirm(txt, row) {
var title = txt
var params = {}
params.id = row.id
if (txt == '开始') {
params.activityStatus = '2' //活动状态(1:未开始,2:开始,3:结束)
} else if (txt == '结束') {
params.activityStatus = '3' //活动状态(1:未开始,2:开始,3:结束)
}
this.secondConfirm(title, '确定要' + txt + '此活动?', 'seckillActivity', 'toggleStatusApi', params)
},
//删除
del(row) {
var params = {}
params.id = row.id
this.secondConfirm('删除', '确定删除此活动?', 'seckillActivity', 'deleteActivityApi', params)
},
shareQrcode(row) {
this.isQrcodeVisible = true
this.$apis.activity.getShared({ id: row.id }).then(res => {
console.log(res)
})
},
handleBoard(row) {
this.$router.push({
......
<template>
<div class="select-staff">
<!-- class="staffDailog" -->
<GLDialog bigTitle="选择员工"
mode="big"
width="600px"
:visible.sync="dialogVisible"
:before-close="handleClose"
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<glsx-combi-form ref="showSearch"
labelWidth="105px"
:formObj="searchForm"
:formData="searchFormData">
<GLDialog bigTitle="选择员工" mode="big" width="600px" :visible.sync="dialogVisible" :before-close="handleClose" :close-on-click-modal="false" @onOk="handleConfirm" @onCancel="handleClose">
<glsx-combi-form ref="showSearch" labelWidth="105px" :formObj="searchForm" :formData="searchFormData">
<span slot="footer">
<el-button :size="size"
type="primary"
@click="getList">查询</el-button>
<el-button :size="size" type="primary" @click="getList">查询</el-button>
</span>
</glsx-combi-form>
<!-- :pageConf="pageConf" -->
<GLTable ref="staffRef"
:hasPage="false"
:hasNum="false"
:noDataImg="url"
:tableData="staffList"
:tableTotal="total"
:tableParams="tableParams"
@refreshTable="getList"
:setTableFinishFun="setTableFinishFun">
<div slot="radioHtml"
class="staff-table"
slot-scope="scope">
<el-radio v-model="staffUuid"
:label="scope.scope.uuid"
@click.native="handleClick(scope.scope)"></el-radio>
<GLTable ref="staffRef" :hasPage="false" :hasNum="false" :noDataImg="url" :tableData="staffList" :tableTotal="total" :tableParams="tableParams" @refreshTable="getList" :setTableFinishFun="setTableFinishFun">
<div slot="radioHtml" class="staff-table" slot-scope="scope">
<el-radio v-model="staffUuid" :label="scope.scope.uuid" @click.native="handleClick(scope.scope)"></el-radio>
</div>
</GLTable>
<!-- <span slot="footer" class="dialog-footer">
......@@ -180,7 +156,7 @@ export default {
subOrderCode: this.orderCode,
staffUuid: this.staffUuid
}
this.$apis.orderManage.signerOrder(parmas).then(res => {
this.$apis.orderManage.orderAppointer(parmas).then(res => {
console.log(res)
this.$emit('handleStaffConfirm', this.staffUuid)
......
......@@ -535,16 +535,13 @@ export default {
},
{
label: '链接名称',
prop: 'businessType',
prop: 'activityName',
width: 120
},
{
label: '商户名称',
prop: '',
width: '120',
formatter: cellValue => {
return cellValue.orderGoods.length ? cellValue.orderGoods.map(item => item.goodsName).join(',') : '-'
}
label: '门店名称',
prop: 'merchantName',
width: '120'
},
{
label: '测试单',
......@@ -681,6 +678,24 @@ export default {
this.orderCode = item.orderCode
this.isStaffVisible = true
},
// 改变订单类型
changeOrderType(item) {
console.log(item)
let params = {
subOrderCode: item.orderCode,
orderType: item.orderType ? 0 : 1
}
this.secondConfirm('测试单', '测试单数据不纳入对应战报和喜报的排名展示', 'orderManage', 'orderUpdate', params, false)
// return
// this.$apis.orderManage
// .updateOrderType(params)
// .then(result => {
// this.handleSearch()
// })
// .catch(err => {
// console.log(err)
// })
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn, isResetPage = true) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
......@@ -689,11 +704,8 @@ export default {
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') {
if (res) {
this.$message.success('操作成功')
fn && fn()
// this.handleSearch()
isResetPage ? this.handleSearch() : this.$refs.allOrderRef.refreshTable(false)
......@@ -904,6 +916,79 @@ export default {
min-width: 80px !important;
padding: 8px 12px !important;
}
// .order-manage {
// .container {
// padding: 20px 14px;
// }
// .table-tips {
// font-size: 14px;
// color: rgba(0, 0, 0, 0.65);
// }
// .car-no {
// cursor: pointer;
// font-size: 12px;
// border-radius: 4px;
// border: 1px solid #e8e8ea;
// padding: 2px 4px;
// line-height: 25px;
// }
// .txt-blue {
// color: #5850ff;
// }
// .list-tips {
// background: #e4e3ff;
// border-radius: 4px;
// border: none;
// }
// .order-manage-table {
// padding: 20px;
// border: 1px solid #e5e5e5;
// border-radius: 0 4px 4px 4px;
// }
// .flex-default.tabs {
// border-bottom: 1px solid #e5e5e5;
// border-bottom: 0;
// .el-tabs__item {
// background: #fafafa;
// border: 1px solid #e5e5e5 !important;
// border-radius: 4px 4px 0 0;
// border-bottom: 0;
// }
// .is-active {
// border-bottom: 1px solid #fff !important;
// font-weight: 500;
// }
// }
// .switchStyle .el-switch__label {
// position: absolute;
// display: none;
// color: #fff;
// }
// .el-switch__core {
// background-color: rgba(166, 166, 166, 1);
// }
// .switchStyle .el-switch__label--left {
// z-index: 9;
// left: 20px;
// }
// .switchStyle .el-switch__label--right {
// z-index: 9;
// left: 4px;
// }
// .switchStyle .el-switch__label.is-active {
// display: block;
// }
// .switchStyle.el-switch .el-switch__core,
// .el-switch .el-switch__label {
// width: 50px !important;
// }
// .assignLabel {
// color: var(--primaryColor, #5850ff);
// &:hover {
// cursor: pointer;
// }
// }
// }
.order-manage {
.container {
padding: 20px 14px;
......@@ -986,5 +1071,28 @@ export default {
padding: 0;
margin-right: 1px;
}
.switchStyle .el-switch__label {
position: absolute;
display: none;
color: #fff;
}
.el-switch__core {
background-color: rgba(166, 166, 166, 1);
}
.switchStyle .el-switch__label--left {
z-index: 9;
left: 20px;
}
.switchStyle .el-switch__label--right {
z-index: 9;
left: 4px;
}
.switchStyle .el-switch__label.is-active {
display: block;
}
.switchStyle.el-switch .el-switch__core,
.el-switch .el-switch__label {
width: 50px !important;
}
}
</style>
......@@ -15,7 +15,7 @@
</div>
<div class="container m-t-20">
<p class="edit-title">使用详情</p>
<GLTable class="m-t-20" ref="memberCenterRef" :tableData="tableData" :searchForm="searchFormTable" :tableParams="tableParams">
<GLTable class="m-t-20" ref="memberCenterRef" :tableData="tableData" :hasPage="false" :searchForm="searchFormTable" :tableParams="tableParams">
<div slot="cardInfo" slot-scope="scope">
<GLTable class="centerTable" ref="cardListRef" :hasNum="false" :hasPage="false" :noDataImg="url" :tableParams="cardParams" :tableData="scope.scope.list"></GLTable>
</div>
......@@ -187,7 +187,7 @@ export default {
}
},
created() {
this.formToRow('afterInfoData')
// this.formToRow('afterInfoData')
},
mounted() {
// this.setMinHeight('.edit-box')
......@@ -212,7 +212,9 @@ export default {
},
getInfo() {
this.$apis.orderManage.orderDetail({ orderCode: this.routeInfo.orderCode }).then(res => {
if (!res) return
this.detailForm = res
this.tableData = res.expandedGoldUserCouponDTOS || []
this.orderRefund = res.orderRefund || null
this.detailForm.createdDateStr = dayjs(this.detailForm.createdDate).format('YYYY-MM-DD HH:mm:ss')
if (this.orderRefund) {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-13 15:39:20
* @LastEditTime: 2022-12-18 12:37:45
* @FilePath: \scrm-micro-link\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -11,7 +11,7 @@ const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
const publicPath = node_env ? `/child/${packageName}/` : '/'
const resolve = dir => path.join(__dirname, dir)
const CDN_DOMAIN = 'https://cdn.bootcdn.net/'
const CDN_DOMAIN = 'https://img02.glsx.com.cn/'
const cdn = {
css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`],
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`, 'https://webapi.amap.com/loader.js']
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!