Commit eabc404e by 前端

Merge branch 'wuwx_dev_v2.6.0' into 'v2.6.0'

Wuwx dev v2.6.0

See merge request !216
2 parents 14e59b7c 7a3b76fc
......@@ -54,5 +54,14 @@ const getCouponList = params => {
sign: true
})
}
export { getOrderListApi, getOrderPageDetail, orderExportApi ,orderRefund,getCouponList}
// 集团套餐订单是否允许退款
const ordeRefundApi = params => {
params.method = 'scrm.api.equity.merchant.order.refund.check'
return http({
url: '/rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export { getOrderListApi, getOrderPageDetail, orderExportApi, orderRefund, getCouponList, ordeRefundApi }
......@@ -107,4 +107,15 @@ const getBusinessTypeByIdApi = params => {
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
const deleteGoodsApi = params => {
params.method = 'scrm.api.shopmall.goods.deleteGoods'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi, deleteGoodsApi }
......@@ -38,6 +38,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, 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.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$tracker = common.tracker
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } })
......
......@@ -462,6 +462,7 @@ export default {
type: 'success',
message: '操作成功!'
})
this.$tracker.track(Object.assign({},{pageName:'群发助手',name:'新建客户群发',params}))
} else {
this.$message({
type: 'error',
......
......@@ -336,6 +336,7 @@ export default {
message: '操作成功!'
})
// this.$router.push('/customerTransform/index')
this.$tracker.track(Object.assign({},{pageName:'群发助手',name:'新建客户群群发',params}))
} else {
this.$message({
type: 'error',
......
......@@ -67,6 +67,14 @@
</span>
</GLTable>
</div>
<glsx-dialog class="refund-fill-boxss" :width="'576px'" title="提示" :show-close="true" :isVisible="isShow" @confirmDialog="isShow = false" @closeDialog="isShow = false" :noCancel="true">
<div class="dialog-refund">
<img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div>
<div style="color: #FF4D4F;padding: 6px 0;">(时间:{{orderDate}} 金额:{{orderPrice}}元)</div>
<div>暂不支持退款</div>
</div>
</glsx-dialog>
<glsx-dialog class="refund-fill-box" :width="'720px'" title="退款确认" :isVisible="refundVisible" @confirmDialog="refundConfirmDialog" @closeDialog="refundVisible = false" :isShowCloseBtn="true">
<div class="dialog-form">
<label>说明:</label>
......@@ -79,10 +87,13 @@
<script>
import { orderTypesList, orderStatusList, exportFn } from '@/common/constant'
import url from '@/assets/empty.png'
import { getOrderListApi, orderExportApi, orderRefund } from '@/api/modules/order'
import { getOrderListApi, orderExportApi, orderRefund,ordeRefundApi } from '@/api/modules/order'
export default {
data() {
return {
isShow:false,
orderPrice:'',
orderDate:'',
orderCode: '',
refund: '',
refundVisible: false,
......@@ -168,7 +179,11 @@ export default {
fn: '退款'
},
condition: row => {
if(row.packageType == 2) {
return row.refundFlag == 1 && row.show
} else {
return row.refundFlag == 1
}
},
listeners: {
click: this.handleRefund
......@@ -349,10 +364,26 @@ export default {
resolve()
})
},
ordeRefund(orderCode) {
ordeRefundApi({orderCode}).then(res => {
if(res != null) {
this.orderDate = res.orderDate
this.orderPrice = res.orderPrice
this.isShow = true
} else {
this.refundVisible = true
}
})
},
handleRefund(data) {
this.orderCode = data.orderCode
this.refund = ''
this.refundVisible = !this.refundVisible
// this.refundVisible = !this.refundVisible
if(data.packageType == 2) {
this.ordeRefund(data.orderCode)
} else {
this.refundVisible = true
}
},
refundConfirmDialog() {
if (this.refund == '') {
......@@ -400,6 +431,19 @@ export default {
setTableFinishFun() {
//接收到的数据为空
this.$refs.memberOrderRef.data.length ? (this.$refs.memberOrderRef.tableHeightValues = '') : this.$refs.memberOrderRef.setTableHeightFun()
let arr = this.$refs.memberOrderRef.data
if(arr.length > 0) {
arr.map(e => {
if(e.refundFlag == 1 && e.packageType == 2) {
let time = new Date(`${e.createDate}`)
let timer = new Date()
if(timer.getTime() < time.getTime() + 604800000) {
e.show = true
}
}
return e
})
}
},
handleReset() {
this.isReload = false
......@@ -473,4 +517,22 @@ export default {
}
}
}
.refund-fill-boxss {
height: 320px;
.dialog-refund {
box-sizing: border-box;
display: flex;
align-items: center;
flex-direction: column;
padding-bottom: 19px;
img {
width: 32px;
height: 32px;
padding-bottom: 12px;
}
}
::v-deep .el-dialog__footer {
text-align: center;
}
}
</style>
......@@ -197,6 +197,10 @@
</div>
</el-radio-group>
</template>
<template slot="serviceDescHtml">
<el-input type="textarea" v-model="editForm.serviceDesc" style="width: 320px" placeholder="请输入商品描述"
:autosize="{ minRows: 2, maxRows: 4 }" maxlength="30" :disabled="isDisabled" />
</template>
<div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<div>
<el-radio-group v-model="editForm.takeAllMerchant" :disabled="isDisabled">
......@@ -511,7 +515,8 @@ export default {
expressFee: '',
// 带货是否选择全部商户(0:否,1:是)
takeAllMerchant: '1',
supplyMerchantList: []
supplyMerchantList: [],
serviceDesc:''
},
isEdit: true,
labelWidth: '144px',
......@@ -813,7 +818,12 @@ export default {
width: '320px',
isHide: false,
isDisabled: false
}
},
{
label: '服务说明',
name: 'serviceDesc',
addHtml: 'serviceDescHtml'
},
]
},
{
......@@ -1345,7 +1355,8 @@ export default {
relatedCouponId: '',
takeAllMerchant: res.takeAllMerchant || (res.supplyMerchantList.length ? '0' : '1'),
descImgList: [],
businessType: []
businessType: [],
serviceDesc: res.serviceDesc || ''
}
this.editForm.businessType = this.editForm.businessTypeList.filter(item => item.isChoose == 1).map(item => item.businessType)
if (res.relatedCoupon) {
......@@ -1565,6 +1576,8 @@ export default {
deleteAttrList.forEach(item => {
delete params[item]
})
// 服务说明
params.serviceDesc = this.editForm.serviceDesc
this.loading = true
this.$apis.proManage
.insertOrUpdateProApi(params)
......
......@@ -142,6 +142,20 @@ export default {
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除'
},
condition: row => {
return !row.goodsStatus
},
listeners: {
click: this.del
}
},
{
type: 'el-button',
name: '分享',
attrs: {
......@@ -339,7 +353,10 @@ export default {
handleTop(row) {
this.secondConfirm('置顶', '是否确认置顶该商品?', 'proManage', 'topProApi', { id: row.id })
},
// 删除
del(row) {
this.secondConfirm('删除', '确定删除此活动?', 'proManage', 'deleteGoodsApi', { id: row.id })
},
handleShare(row) {
this.$apis.proManage.getProShareApi({ id: row.id }).then(res => {
this.shareForm = res
......
......@@ -214,6 +214,20 @@ export default {
}
},
{
type: 'GLButton',
name: '删除',
attrs: {
type: 'text',
fn: '删除'
},
condition: row => {
return !row.goodsStatus
},
listeners: {
click: this.del
}
},
{
type: 'el-button',
name: '分享',
attrs: {
......@@ -421,6 +435,10 @@ export default {
handleTakeGood(row) {
this.secondConfirm('取消带货', '是否确认取消带货该商品?', 'proManage', 'deleteTakeProApi', { id: row.id })
},
// 删除
del(row) {
this.secondConfirm('删除', '确定删除此活动?', 'proManage', 'deleteGoodsApi', { id: row.id })
},
dwonVisibleChange() {
this.$refs.downRef && this.$refs.downRef.clearValidate()
this.isDownVisible = !this.isDownVisible
......
......@@ -785,6 +785,7 @@ export default {
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.$tracker.track(Object.assign({},{pageName:'营销SOP',name:'编辑sop事件',params}))
if (res.code == '0') {
this.cancelJump()
}
......@@ -797,6 +798,7 @@ export default {
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
this.$tracker.track(Object.assign({},{pageName:'营销SOP',name:'创建sop事件',params}))
if (res.code == '0') {
this.cancelJump()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!