Commit f19f4fea by 前端

Merge branch 'SAAS+V4.56.0-0908' into 'master'

上线合并

See merge request !16
2 parents 2a3a0053 a013d4ad
...@@ -9,6 +9,18 @@ const getMerchantList = params => { ...@@ -9,6 +9,18 @@ const getMerchantList = params => {
}) })
} }
const getMerchantList1 = params => {
params.method = 'scrm.api.carlife.merchant.listWithPageByCurMerchant1'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getMerchantList getMerchantList,
getMerchantList1
} }
\ No newline at end of file \ No newline at end of file
import { http } from '@/main' import { http, http_dj } from '@/main'
const path = 'dj.api.smarcarlife.' const path = 'dj.api.smarcarlife.'
...@@ -91,7 +91,66 @@ const getIntegralDetailList = params => { ...@@ -91,7 +91,66 @@ const getIntegralDetailList = params => {
sign: true sign: true
}) })
} }
// 阳光激励用户-列表
const getStaffScoreList = params => {
params.method = `dj.api.shopmall.staff.score.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 阳光激励用户-导出
const getStaffScoreExport = params => {
params.method = `dj.api.shopmall.staff.score.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 阳光激励用户-获取门店列表
const getShopMerchantList = params => {
params.method = `dj.smartcarlife.api.shopMerchant.list`
return http_dj({
url: 'rop-dj-smartcarlife/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分管理-积分收益列表
const getScoreDetailList = params => {
params.method = `dj.api.shopmall.staff.score.detail.list`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分管理-积分收益列表
const exportDetailScore = params => {
params.method = `dj.api.shopmall.staff.score.detail.list.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 选择订单
const deductOrderPage = params => {
params.method = `dj.api.smartcarlife.merchant.score.deduct.order.page`
return http_dj({
url: 'rop-dj-smartcarlife/router',
method: 'POST',
data: params,
sign: true
})
}
// 用户积分明细详情-客户积分详情 // 用户积分明细详情-客户积分详情
const customerDetail = params => { const customerDetail = params => {
params.method = `scrm.api.shopmall.integralcustomer.detail` params.method = `scrm.api.shopmall.integralcustomer.detail`
...@@ -242,7 +301,7 @@ const getTypeListApi = params => { ...@@ -242,7 +301,7 @@ const getTypeListApi = params => {
/** /**
* 创建积分提醒短信 * 创建积分提醒短信
*/ */
const createSmsApi = params => { const createSmsApi = params => {
params.method = 'scrm.api.shopmall.integral.remind.msg.create' params.method = 'scrm.api.shopmall.integral.remind.msg.create'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
...@@ -252,7 +311,7 @@ const getTypeListApi = params => { ...@@ -252,7 +311,7 @@ const getTypeListApi = params => {
/** /**
* 积分提醒短信详情 * 积分提醒短信详情
*/ */
const getSmsDetailApi = params => { const getSmsDetailApi = params => {
params.method = 'scrm.api.shopmall.integral.remind.msg.detail' params.method = 'scrm.api.shopmall.integral.remind.msg.detail'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
...@@ -262,7 +321,7 @@ const getTypeListApi = params => { ...@@ -262,7 +321,7 @@ const getTypeListApi = params => {
/** /**
* 开关提醒短信 * 开关提醒短信
*/ */
const openSmsApi = params => { const openSmsApi = params => {
params.method = 'scrm.api.shopmall.integral.remind.msg.onOff' params.method = 'scrm.api.shopmall.integral.remind.msg.onOff'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
...@@ -272,7 +331,7 @@ const getTypeListApi = params => { ...@@ -272,7 +331,7 @@ const getTypeListApi = params => {
/** /**
* 触达客户 * 触达客户
*/ */
const smsCustomerApi = params => { const smsCustomerApi = params => {
params.method = 'scrm.api.shopmall.integral.remind.record.page' params.method = 'scrm.api.shopmall.integral.remind.record.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
...@@ -289,6 +348,12 @@ export default { ...@@ -289,6 +348,12 @@ export default {
getIntegralCustomerList, getIntegralCustomerList,
getIntegralCustomerExport, getIntegralCustomerExport,
getIntegralDetailList, getIntegralDetailList,
getStaffScoreList,
getStaffScoreExport,
getShopMerchantList,
getScoreDetailList,
exportDetailScore,
deductOrderPage,
customerDetail, customerDetail,
getIntegralDetailExport, getIntegralDetailExport,
getghDirectionalGiftListApi, getghDirectionalGiftListApi,
......
import { http } from '@/main'
// 查询上传文件配置
const getUpDocConfig = params => {
params.method = `scrm.api.shopmall.scrm.pointsuploaddocumentconfig.findAll`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 上传文件处理配置
const updateUpDocConfig = params => {
params.method = `scrm.api.shopmall.scrm.pointsuploaddocumentconfig.update`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default {
getUpDocConfig,
updateUpDocConfig
}
...@@ -199,4 +199,107 @@ const checkRecordsTransferType = params => { ...@@ -199,4 +199,107 @@ const checkRecordsTransferType = params => {
}) })
} }
export default { getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType}
// 详情查询
const approvalDetail = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现 生成批次
const integralorderBatch = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.generate`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 生成审批-数据统计
const generateBatchCount = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.generate.count`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 操作记录列表查询
const getApprovalLog = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.log`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现审批分页查询
const getApprovalPage = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 付款OA审批提交
const applyApprovalOA = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.oa.apply`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 查询支付主体列表
const getPaymentEntityList = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.payment.entity`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 移除审批积分提现记录
const removeApproval = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.approval.remove`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 积分提现获取付款渠道收款账号
const getChannelAccount = (params={}) => {
params.method = `scrm.api.shopmall.integral.transfer.out.getChannel.account`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType}
...@@ -78,3 +78,6 @@ p{ ...@@ -78,3 +78,6 @@ p{
.el-message{ .el-message{
z-index: 9999999 !important; z-index: 9999999 !important;
} }
.el-message-box__content{
height:auto !important;
}
\ No newline at end of file \ No newline at end of file

10.3 KB | W: | H:

5.21 KB | W: | H:

src/assets/point-custom-0.png
src/assets/point-custom-0.png
src/assets/point-custom-0.png
src/assets/point-custom-0.png
  • 2-up
  • Swipe
  • Onion skin

10.5 KB | W: | H:

10.3 KB | W: | H:

src/assets/point-custom-1.png
src/assets/point-custom-1.png
src/assets/point-custom-1.png
src/assets/point-custom-1.png
  • 2-up
  • Swipe
  • Onion skin

10.2 KB | W: | H:

10.5 KB | W: | H:

src/assets/point-custom-2.png
src/assets/point-custom-2.png
src/assets/point-custom-2.png
src/assets/point-custom-2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -24,3 +24,4 @@ start() ...@@ -24,3 +24,4 @@ start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_dj = params => Vue.prototype.$http_dj(params)
...@@ -12,15 +12,16 @@ let instance = null ...@@ -12,15 +12,16 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState ,routerBase}) { export async function bootstrap({ history, common, messenger, globalState ,routerBase}) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(common) const { response, request, sign, appkey, secret, sign_common, request_common, requestDj } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token:globalState.session.token } }) 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.$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_dj = new common.Http({ response, request: requestDj, sign, secret, alert, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
......
export const colors = ['#B8B8B8', '#F59619', '#2CCA74', '#EB4E4EFF', '#2CCA74FF', '#2CCA74FF','#EB4E4EFF']
export const tableStatus = ['待审批', '审批中', '审批通过', '审批驳回', '渠道到账','用户到账', '到账异常']
export const operate_status = {
1: '付款审核',
2: '批次关闭',
3: 'OA审批',
4: '渠道到账',
5: '渠道付款'
}
export const modeTypeList = [
{
confId: '0',
confLabel: '银行卡'
},
{
confId: '1',
confLabel: '微信'
}
]
export const sourceList = [
{
confId: '0',
confLabel: '车生活助手'
},
{
confId: '1',
confLabel: '系统导入'
},
{
confId: '2',
confLabel: '生意助手员工版'
},
{
confId: '3',
confLabel: '门店助手'
}
]
export const withdrawalTypeList = [
{
confId: '0',
confLabel: '积分提现'
},
{
confId: '1',
confLabel: '普通提现'
},
{
confId: '2',
confLabel: '阳光激励'
}
]
export const PayerelList = [
{
confId: '深圳广联数科科技有限公司',
confLabel: '深圳广联数科科技有限公司'
},
{
confId: '深圳市嘀加智慧云服务有限公司',
confLabel: '深圳市嘀加智慧云服务有限公司'
},
{
confId: '深圳市优加智汇科技有限公司',
confLabel: '深圳市优加智汇科技有限公司'
}
]
export const statusList = [
{
confId: '0',
confLabel: '待审批'
},
{
confId: '1',
confLabel: '审批中'
},
{
confId: '2',
confLabel: '审批通过'
},
{
confId: '3',
confLabel: '审批驳回'
},
{
confId: '4',
confLabel: '渠道到账'
},
{
confId: '5',
confLabel: '用户到账'
},
{
confId: '6',
confLabel: '到账异常'
}
]
export const channelList = [
{
confId: '智鸟',
confLabel: '智鸟-银行卡'
},
{
confId: '身边云(江西)',
confLabel: '身边云(江西)-银行卡'
}
]
export const auditStatusStatusList = [
{
confId: '0',
confLabel: '待审核'
},
{
confId: '1',
confLabel: '已审核'
},
{
confId: '2',
confLabel: '第三方处理'
},
{
confId: '3',
confLabel: '成功'
},
{
confId: '4',
confLabel: '失败'
},
{
confId: '5',
confLabel: '驳回'
},
{
confId: '6',
confLabel: '受理失败'
},
{
confId: '7',
confLabel: '批次处理中'
}
]
export const channelObj = {
'TXIAT': '熠轩-银行卡',
'ZX': '中雄-银行卡',
'YUNHUO': '云获(嘀加)-银行卡',
"YUNHUO-ZY": '云获(中赢)-银行卡',
'YUNHUO-WX': '云获(中赢)-微信',
'SHENBIANYUN':'身边云-银行卡',
'BIRDWORK':'智鸟-银行卡',
'SHENBIANYUN_JX':'身边云(江西)-银行卡'
}
<template>
<div class="revocation-wrap">
<div class="content">
<div class="title">新增抵扣</div>
<div class="form-wrap">
<glsx-combi-form class="form-container" ref="formRef" label-width="154px" :isBlock="true" :form-ref="childRef" :form-obj="formObj" :form-data="formData" :form-rules="formRule">
<div slot="orderData">
<div class="order-btn" @click="handleChooseOrder">选择订单</div>
<d2-table :table-params="tableParams" :table-data="formObj.orderData" :has-page="false">
<div slot="orderGoodsName" slot-scope="scope">
<span v-for="(item, index) in scope.scope.subOrderList" :key="index">
<p v-if="item.upgradeGoodsId">
<el-tooltip class="item" :content="item.upgradeGoodsName" placement="right">
<span>
{{
item.upgradeGoodsName
? item.upgradeGoodsName.length > 10
? item.upgradeGoodsName.substring(0, 10) + "..."
: item.upgradeGoodsName
: "-"
}}
</span>
</el-tooltip>
</p>
<p v-else>{{ item.baseGoodsName }}</p>
</span>
</div>
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="deleteTable(scope.scope)">删除</el-button>
</div>
</d2-table>
</div>
</glsx-combi-form>
</div>
</div>
<div class="btn-wrap">
<div class="btn btn-wrap-left" @click="submit">提交</div>
<div class="btn btn-wrap-right" @click="cancel">取消</div>
</div>
<!-- 选择订单 -->
<choose-order-dialog :visible="orderDialogVisible" v-if="orderDialogVisible" :choose-order-data="formObj.orderData" @dialogClose="handleClose" @chooseOrder="chooseOrder"></choose-order-dialog>
<!-- 确认提醒 -->
<confirm-dialog :visible="confirmDialogVisible" v-if="confirmDialogVisible" :data-info="formObj" @dialogClose="handleConfirmClose" @handleConfirm="handleComfirm"></confirm-dialog>
</div>
</template>
<script>
// import { Util } from "@/common/util"
// import { manualDeduct } from "@api/point"
import ChooseOrderDialog from "./components/chooseOrderDialog"
import ConfirmDialog from "./components/ConfirmDialog"
export default {
components: {
ChooseOrderDialog,
ConfirmDialog
},
data() {
function checkPrice(rule, value, callback) {
// if (!Util.validateNumber(value)) {
// callback(new Error("输入范围为大于0的数字,至少支持小数点后两位"))
// return false
// }
callback()
}
return {
orderDialogVisible: false,
confirmDialogVisible: false, //确认提醒
formObj: {
score: "",
orderData: [],
orderCode: "",
remark: "",
operator: ""
},
confirmData: {},
formData: [
{
label: "选择订单",
name: "orderData",
addHtml: "orderData"
},
{
label: "扣减积分",
name: "score",
type: "input",
maxlength: 20,
placeholder: "请输入",
tips: "此订单需要在员工账户里扣除的积分",
width: "136px"
},
{
label: "备注",
name: "remark",
type: "input",
maxlength: 100,
placeholder: "请输入",
inputType: "textarea",
width: "580px",
rows: 3
}
],
formRule: {
orderData: [
{
required: true,
message: "选择需要关联的已退款或已付款订单",
trigger: "change"
}
],
score: [
{ required: true, message: "请输入积分", trigger: "change" },
{ validator: checkPrice, trigger: "blur" }
]
},
tableParams: {
tableOption: true,
tableColumns: [
{
label: "订单编号",
prop: "orderCode",
width: "150px"
},
{
label: "订单时间",
prop: "orderTimeStr",
width: "200px"
},
{
label: "客户姓名",
prop: "customerName",
width: "120px"
},
{
label: "商品名称",
prop: "orderGoodsName",
addHtml: "orderGoodsName",
width: 240
},
{
label: "总价",
prop: "totalPrice",
width: "120px",
formatter: (cellValue) => {
return cellValue.totalPrice ? "¥" + cellValue.totalPrice : "0"
}
}
]
},
childRef: "editChildRef"
}
},
created() { },
methods: {
//订单选择成功
chooseOrder(data) {
console.log(data, '99999')
if (data.length) {
this.$refs.formRef.$refs[this.childRef].clearValidate("orderData")
}
this.formObj.orderData = data
this.orderDialogVisible = false
},
handleClose() {
this.orderDialogVisible = false
},
handleConfirmClose() {
this.confirmDialogVisible = false
},
handleComfirm() {
let params = {
orderCode: this.formObj.orderData[0].orderCode,
score: this.formObj.score,
remark: this.formObj.remark,
operator: this.formObj.operator
}
// manualDeduct(params)
// .then((result) => {
// console.log(result)
// if (result) {
// this.$router.go(-1)
// this.$notify({
// type: "success",
// title: "新增成功"
// })
// this.confirmDialogVisible = false
// }
// })
// .catch((err) => {
// // console.error(err)
// // this.$message.error(err)
// })
},
submit() {
this.$refs.formRef.$refs[this.childRef].validate((valid) => {
if (valid) {
this.confirmDialogVisible = true
}
})
},
cancel() {
this.$router.go(-1)
},
handleChooseOrder() {
this.orderDialogVisible = true
},
deleteTable() {
this.formObj.orderData = []
}
}
}
</script>
<style lang="scss" scoped>
.revocation-wrap {
margin: 16px 24px;
.content {
background-color: #fff;
.title {
padding: 12px 16px;
font-weight: 500;
font-size: 18px;
color: #333333;
line-height: 24px;
border-bottom: 1px solid #e8e8ea;
}
.title::before {
display: inline-block;
vertical-align: middle;
margin-right: 8px;
content: '';
width: 4px;
height: 16px;
background: #185efe;
border-radius: 2px;
}
.form-wrap {
padding: 16px 0;
min-height: 500px;
.order-btn {
width: 88px;
height: 32px;
background: #f8f8f8;
border: 1px solid #e6e6e6;
border-radius: 4px;
font-size: 14px;
color: #666666;
text-align: center;
line-height: 32px;
cursor: pointer;
}
}
}
.btn-wrap {
display: flex;
align-items: center;
padding: 16px 154px;
.btn {
width: 104px;
height: 36px;
border-radius: 4px;
font-weight: 500;
font-size: 16px;
text-align: center;
line-height: 36px;
}
&-right {
color: #666666;
background: #e8e8e8;
margin-left: 16px;
}
&-left {
background: #185efe;
color: #ffffff;
}
}
}
::v-deep .form-container {
.tips-icon {
border: none;
}
.el-form-item__error {
width: 300px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<d2-dialog title="确认提醒" :is-visible="isVisible" width="720px" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="confirm-wrap">
<div class="title">请确定以下信息是否正确</div>
<div class="point-info">
<div class="label">扣减积分:<span class="integral">{{dataInfo.score}}</span></div>
<div class="label" style="margin-top:8px">
备注:<span class="remark">{{dataInfo.remark||'--'}}</span>
</div>
</div>
<div class="order-detail">
<div class="title">订单详情</div>
<div class="item">订单编号:<span>{{dataInfo.orderData[0].orderCode}}</span></div>
<div class="item">订单时间:<span>{{dataInfo.orderData[0].orderTimeStr}}</span></div>
<div class="item">客户姓名:<span>{{dataInfo.orderData[0].customerName}}</span></div>
<div class="item">商品名称:<span v-for="(item, index) in dataInfo.orderData[0].subOrderList" :key="index">
<template v-if="item.upgradeGoodsId">
<span class="upgrade-goods">
{{
item.upgradeGoodsName? item.upgradeGoodsName: "-"
}}
</span>
</template>
<span v-else class="upgrade-goods">{{ item.baseGoodsName }}</span>
</span></div>
<div class="item">总价:<span>{{dataInfo.orderData[0].totalPrice?dataInfo.orderData[0].totalPrice:'0'}}</span></div>
</div>
</div>
</d2-dialog>
</template>
<script>
export default {
data() {
return {}
},
props: {
visible: {
type: Boolean,
default: false
},
dataInfo: {
type: Object,
default:()=> {}
}
},
computed: {
isVisible: {
get() {
return this.visible
},
set(newVal) { }
}
},
mounted() {
console.log(this.dataInfo)
},
methods: {
handleConfirm() {
this.$emit("handleConfirm")
},
handleClose() {
this.$emit("dialogClose")
}
}
}
</script>
<style lang="scss" scoped>
.confirm-wrap {
.title {
font-weight: 500;
font-size: 14px;
color: #1d1d1d;
margin-bottom: 18px;
}
.point-info {
margin-bottom: 18px;
// display: flex;
// align-items: center;
// justify-content: space-between;
.label {
font-weight: 500;
font-size: 14px;
color: #1d1d1d;
}
.integral {
font-weight: 600;
font-size: 20px;
color: #185efe;
}
.remark {
font-weight: 400;
font-size: 14px;
color: #1d1d1d;
}
}
.order-detail {
height: auto;
background: #fafafa;
padding: 8px 10px;
.title {
font-weight: 500;
font-size: 14px;
color: #1d1d1d;
}
.item {
color: #666666;
font-size: 14px;
margin-bottom: 8px;
span {
color: #333333;
}
}
}
}
.upgrade-goods {
margin-right: 4px;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<GLDialog title="选择订单" mode="big" :visible.sync="visible" @before-close="handleClose" @confirmDialog="handleAddConfirm" @onCancel="handleClose">
<div class="order-list">
<div class="flex">
<GLCombiForm :formObj="searchForm" :label-width="'90px'" :form-data="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- <div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
</div> -->
</div>
<div class="table-wrap">
<el-table :data="tableData" border>
<el-table-column align="center">
<template slot-scope="scope">
<el-radio v-model="orderId" :label="scope.row.orderCode" @input="getCurrentOrderData">
<span class="order-name">{{ scope.row.orderCode }}</span>
</el-radio>
</template>
</el-table-column>
<el-table-column prop="key" label="序号" align="center" />
<el-table-column label="订单编号" align="center" width="150" prop="orderCode" />
<el-table-column label="订单状态" align="center" prop="status">
<template slot-scope="scope">
<span>{{ statusOpts[scope.row.status] }}</span>
</template>
</el-table-column>
<el-table-column label="订单时间" align="center" width="160" prop="orderTimeStr" />
<el-table-column label="客户姓名" align="center" prop="customerName" />
<el-table-column label="商品名称" align="center" width="180" prop="subOrderList">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.subOrderList" :key="index">
<p v-if="item.upgradeGoodsId">
<el-tooltip class="item" :content="item.upgradeGoodsName" placement="right">
<span>
{{
item.upgradeGoodsName
? item.upgradeGoodsName.length > 10
? item.upgradeGoodsName.substring(0, 10) + "..."
: item.upgradeGoodsName
: "-"
}}
</span>
</el-tooltip>
</p>
<p v-else>{{ item.baseGoodsName }}</p>
</span>
</template>
</el-table-column>
<el-table-column label="总价" align="center" prop="totalPrice">
<template slot-scope="scope">
<span>
{{ scope.row.totalPrice ? "¥" + scope.row.totalPrice : 0 }}</span>
</template>
</el-table-column>
</el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize" :total="total" layout="sizes,total,->,prev,pager,next,jumper" />
</div>
</div>
</GLDialog>
</template>
<script>
// import { Util } from "@/common/util"
// import { deductOrderPage } from "@api/point"
import * as dayjs from 'dayjs'
export default {
data() {
return {
sellerUserId: "",
orderId: "",
tableData: [],
orderData: [],
searchForm: {
customerName: "",
orderCode: "",
status: "",
paySuccessDate: []
},
searchFormSearch: {},
total: 0,
page: {
pageNum: 1,
pageSize: 10
},
showFormData: [
{
label: "客户",
name: "customerName",
type: "input",
isClear: true
},
{
label: "订单编号",
name: "orderCode",
type: "input",
isClear: true
},
{
label: "订单状态",
name: "status",
type: "select",
optionList: [],
optionId: "confId",
optionLabel: "confLabel",
optionsName: "orderStatusList"
},
{
label: "订单日期",
name: "paySuccessDate",
type: "datePicker",
labelWidth: 72,
isClear: true,
pickerOptions: "rangePickerOptions"
}
],
statusOpts: {
1: "待升级",
2: "战败",
3: "待支付",
4: "已支付",
// 5: '已退款',
6: "已评价",
9: "已撤销",
10: "已关闭",
11: "错误订单",
12: "已退款",
13: "待上传"
},
baseData: {
orderStatusList: [
// {
// confId: 1,
// confLabel: "待升级"
// },
// {
// confId: 2,
// confLabel: "战败"
// },
// {
// confId: 3,
// confLabel: "待支付"
// },
{
confId: 4,
confLabel: "已支付"
},
/* {
confId: 5,
confLabel: '已退款'
}, */
// {
// confId: 6,
// confLabel: "已评价"
// },
// {
// confId: 9,
// confLabel: "已撤销"
// },
// {
// confId: 10,
// confLabel: "已关闭"
// },
// {
// confId: 11,
// confLabel: "错误订单"
// },
{
confId: 12,
confLabel: "已退款"
}
]
}
}
},
props: {
visible: {
type: Boolean,
default: false
},
chooseOrderData: {
type: Array,
default: () => []
}
},
computed: {
isVisible: {
get() {
return this.visible
},
set(newVal) { }
}
},
created() {
this.searchForm.userId = this.$route.query.userId
this.searchForm.merchantId = this.$route.query.merchantId
this.getList()
},
mounted() {
this.getOptionsList()
},
methods: {
getList() {
var params = this.getParams()
params = {
...this.page,
...params
}
console.log(params)
console.log(params)
this.$apis.points.deductOrderPage(params).then((res) => {
this.tableData = res.list.map((item, index) => {
item.paySuccessDate = item.paySuccessDate ? dayjs(item.paySuccessDate).format('YYYY-MM-DD HH:mm:ss') : ''
item.key = index + 1 + this.page.pageSize * (this.page.pageNum - 1)
return item
})
this.page.pageNum = res.pageNum
this.page.pageSize = res.pageSize
this.total = res.total
this.init()
})
},
// 每页条数
handleSizeChange(value) {
this.page.pageSize = value
this.getList()
},
// 页码
handleCurrentChange(value) {
this.page.pageNum = value
this.getList()
},
init() {
this.orderId = this.chooseOrderData.length
? this.chooseOrderData[0].orderCode
: ""
this.orderData = this.chooseOrderData
},
getCurrentOrderData(value) {
this.orderData = this.tableData.filter((item) => item.orderCode == value)
},
handleAddConfirm() {
this.$emit("chooseOrder", this.orderData)
},
handleClose() {
this.$emit("dialogClose")
},
handleSearch() {
this.page.pageNum = 1
this.getList()
},
getParams() {
this.searchFormSearch = this.$common.utils.deepClone(this.searchForm)
if (this.searchFormSearch.paySuccessDate && this.searchFormSearch.paySuccessDate.length) {
this.searchFormSearch.paySuccessStartDate = dayjs(this.searchFormSearch.paySuccessDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
this.searchFormSearch.paySuccessEndDate = dayjs(this.searchFormSearch.paySuccessDate[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
delete this.searchFormSearch.paySuccessDate
return this.searchFormSearch
},
getOptionsList(hasAll = true) {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
if (
hasAll &&
this.baseData[item.optionsName]?.length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
) {
if (item.optionsName != "parkServiceList") {
// 服务对接由于是多选不应该添加全部选项
const temp = {}
temp[this.showFormData[index].optionId] = ""
temp[this.showFormData[index].optionLabel] = "全部"
this.baseData[item.optionsName].unshift(temp)
}
}
this.$set(
this.showFormData[index],
"optionList",
this.baseData[item.optionsName]
)
}
})
}
}
}
</script>
<style lang='scss' scoped>
.order-list {
height: 540px;
}
.flex {
display: flex;
align-items: center;
justify-content: space-between;
}
.table-wrap {
height: 500px;
overflow-y: auto;
}
.show-search {
display: flex;
align-items: center;
::v-deep .el-form {
display: flex;
align-items: center;
.el-form-item {
display: flex;
width: 100%;
margin-bottom: 0px;
}
.el-col {
width: auto !important;
}
.el-form-item__label {
width: 70px !important;
white-space: nowrap;
}
.el-form-item__content {
width: 170px;
}
}
::v-deep .d2-search-block {
padding: 16px 0 0 !important;
}
}
.order-name {
display: inline-block;
color: transparent;
width: 0;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" @closeDialog="handleDetailClose">
<div class="detail-content">
<div class="form_div">
<el-form class="edit-sub-block" label-width="110px" :inline="true">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="积分类型:">
{{ detailInfo.infoName ? detailInfo.infoName : "-" }}
</el-form-item></el-col>
<el-col :span="12">
<el-form-item label="积分明细:" class="halfItem">
{{
detailInfo.rewardScore
? (detailInfo.type == 0 ? "+" : "-") +
detailInfo.rewardScore
: "--"
}}
</el-form-item></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="客户名称:">
{{ detailInfo.customerName ? detailInfo.customerName : "-" }}
</el-form-item></el-col>
<el-col :span="12">
<el-form-item label="客户手机号:" class="halfItem">
{{ detailInfo.customerPhone ? detailInfo.customerPhone : "-" }}
</el-form-item></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="订单编号:">
{{ detailInfo.orderCode ? detailInfo.orderCode : "-" }}
</el-form-item></el-col>
<el-col :span="12">
<el-form-item label="商品名称:" class="halfItem">
{{ detailInfo.goodsName ? detailInfo.goodsName : "-" }}
</el-form-item></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="积分变化时间:">
{{ detailInfo.updatedTime ? detailInfo.updatedTime : "-" }}
</el-form-item></el-col>
<el-col :span="12">
<el-form-item label="员工名称:" class="halfItem">
{{ detailInfo.staffName ? detailInfo.staffName : "-" }}
</el-form-item></el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="员工手机号:" class="halfItem">
{{ detailInfo.staffPhone ? detailInfo.staffPhone : "-" }}
</el-form-item></el-col>
<el-col :span="12">
<el-form-item label="门店名称:" class="halfItem">
{{ detailInfo.merchantName ? detailInfo.merchantName : "-" }}
</el-form-item></el-col>
</el-row>
<el-row>
<el-col :span="12">
<template v-if="
detailInfo.infoName == '积分兑换' ||
detailInfo.infoName == '积分返还'
">
<el-form-item label="兑换时间:" class="halfItem">
{{
detailInfo.withdrawalTime ? detailInfo.withdrawalTime : "-"
}}
</el-form-item>
</template>
<template v-if="detailInfo.infoName == '退款抵扣'">
<el-form-item label="退款时间:" class="halfItem">
{{ detailInfo.failTime ? detailInfo.failTime : "-" }}
</el-form-item></template>
<template v-if="detailInfo.infoName == '错单抵扣'">
<el-form-item label="错单时间:" class="halfItem">
{{ detailInfo.failTime ? detailInfo.failTime : "-" }}
</el-form-item>
</template>
<template v-if="detailInfo.infoName == '撤单抵扣'">
<el-form-item label="撤单时间:" class="halfItem">
{{ detailInfo.failTime ? detailInfo.failTime : "-" }}
</el-form-item>
</template>
</el-col>
<template v-if="detailInfo.infoName =='撤销抵扣'">
<el-col :span="12" v-if="detailInfo.relationRemark">
<el-form-item label="备注:" class="halfItem">
{{
detailInfo.relationRemark ? detailInfo.relationRemark : "-"
}}
</el-form-item>
</el-col>
</template>
<template v-else-if="detailInfo.infoName =='手动抵扣'">
<el-col :span="12" v-if="detailInfo.remark">
<el-form-item label="备注:" class="halfItem">
{{
detailInfo.remark ? detailInfo.remark : "-"
}}
</el-form-item>
</el-col>
</template>
<template v-if="detailInfo.infoName =='撤销抵扣'">
<el-col :span="12" v-if="detailInfo.remark">
<el-form-item label="撤销原因:" class="halfItem">
{{ detailInfo.remark ? detailInfo.remark : "-" }}
</el-form-item></el-col>
</template>
</el-row>
</el-form>
</div>
</div>
</baseDialog>
</template>
<script>
// import { Util } from "@/common/util"
// import { getScoreDetail } from "@api/point"
export default {
name: "DetailDialog",
props: {
visible: {
type: Boolean,
default: false
},
id: {
type: String,
default: ''
}
},
computed: {
dialogShow: {
get() {
return this.visible
},
set(val) {
this.$emit("update:visible", val)
}
}
},
watch: {
id(val) {
// if (val) this.getDetail()
}
},
mounted() {
this.getDetail()
},
data() {
return {
dialogConfig: {
setting: {
showClose: true,
appendToBody: false,
btnList: []
},
config: {
title: "查看详情",
width: "1080px"
}
},
detailInfo: {}
}
},
methods: {
handleDetailClose() {
this.dialogShow = false
},
// getDetail() {
// getScoreDetail({ id: this.id }).then((res) => {
// if (res) {
// res.updatedTime = res.updatedTime
// ? Util.dateFormate(res.updatedTime, "YYYY-MM-DD HH:mm:ss")
// : "--"
// res.withdrawalTime = res.withdrawalTime
// ? Util.dateFormate(res.withdrawalTime, "YYYY-MM-DD HH:mm:ss")
// : "--"
// res.refundTime = res.refundTime
// ? Util.dateFormate(res.refundTime, "YYYY-MM-DD HH:mm:ss")
// : "--"
// res.failTime = res.failTime
// ? Util.dateFormate(res.failTime, "YYYY-MM-DD HH:mm:ss")
// : "--"
// res.revokeTime = res.revokeTime
// ? Util.dateFormate(res.revokeTime, "YYYY-MM-DD HH:mm:ss")
// : "--"
// this.detailInfo = res
// }
// })
// }
}
}
</script>
<style lang="scss" scoped>
.form_div {
color: #333333;
padding: 20px 30px;
// border-bottom: 1px solid #eee;
// .edit-sub-title {
// font-weight: bold;
// margin-bottom: 10px;
// }
.edit-sub-block {
// padding: 0 10px;
.el-form-item {
width: 100%;
margin-bottom: 0px;
}
.itemDiv {
display: flex;
.halfItem {
width: 50%;
}
}
.detail-txt {
display: inline-block;
width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 110px);
word-break: break-all;
}
}
.edit-sub-block-two {
.el-form-item {
// width: 300px;
margin-bottom: 0px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 驳回 -->
<template>
<d2-dialog
title="提示"
:is-visible="visible"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm"
>
<div class="reject-dialog">
<glsx-combi-form
class="edit-form-container"
ref="formRef"
label-width="112px"
default-width="390px"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
</div>
</d2-dialog>
</template>
<script>
// import { cancelDeduct, getScoreDetail } from "@api/point"
export default {
name: "RejectDialog",
data() {
return {
infoForm: {
remark: ""
},
dialogConfig: {
title: "提示",
width: "576px",
height: "315px"
},
rejectRef: "rejectRef",
formRules: {
// remark: [{ required: true, message: "请输入撤销原因", trigger: "blur" }]
},
editFormData: [
{
label: "撤销原因",
name: "remark",
type: "input",
maxlength: 20,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {}
}
},
props: {
visible: {
type: Boolean,
default: false
},
id: {
type: String,
default: ""
}
},
computed: {
isVisible: {
get() {
return this.visible
},
set(newVal) {}
}
},
mounted() {},
methods: {
// handleAddConfirm() {
// this.$refs.formRef.$refs[this.rejectRef].validate(async (valid) => {
// if (valid) {
// let detailData = await getScoreDetail({ id: this.id })
// let params = {}
// params.remark = this.infoForm.remark
// params.orderCode = detailData.orderCode
// params.scoreId = this.id
// cancelDeduct(params).then((res) => {
// console.log(res)
// if (res) {
// this.$emit("handleConfirm", false)
// this.notice.okTips("操作成功")
// }
// })
// }
// })
// },
handleClose() {
this.$emit("dialogClose", false)
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
margin: 21px 0 83px;
::v-deep .el-textarea__inner {
height: 70px;
}
::v-deep .el-input__count {
right: 15px !important;
bottom: 3px !important;
font-size: 12px;
color: #999999;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="points"> <div class="points">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"> <GLCombiForm ref="showSearch" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div slot="jifen">
<input-num-range :formData="searchForm" :keyObj="{ from: 'minIntegral', to: 'maxIntegral' }"></input-num-range>
</div>
</GLCombiForm>
<div class="table-header"> <div class="table-header">
<div> </div> <h2>积分明细列表</h2>
<div> <el-button size="small" @click="handleExport" type="primary" plain>导出</el-button>
<el-button size="small" @click="exportExcel" type="primary" plain>导出</el-button>
</div>
</div> </div>
<!-- 表格区域 开始 --> <GLTable ref="pointTable" :search-form="searchFormSearch" :table-params="tableParams" :get-list-api="getListApi" :pageConf="pageConf" :before-search-fn="beforeSearchFn">
<GLTable ref="pointRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end -->
</div> </div>
</div> </div>
<!-- </div> -->
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import * as dayjs from 'dayjs'
export default { export default {
props: {
// 积分渠道,1.阳光激励 2.续保用户 3.管理层
channelSource: {
type: String,
default: '1'
}
},
data() { data() {
//这里存放数据
return { return {
size: 'small', searchForm: {
url: url, staffName: '',
searchForm: {}, staffPhone: '',
showFormData: [ merchantId: '',
{ rewardTime: [],
label: '搜索', reviewTime: [],
name: 'term', successTime: []
type: 'input',
placeholder: '请输入昵称、手机号',
isClear: true,
maxlength: 100
}, },
{ searchFormSearch: {},
label: '当前积分',
name: '',
addHtml: 'jifen'
}
],
tableButtonList: [ tableButtonList: [
{ {
type: 'GLButton', type: 'GLButton',
...@@ -61,65 +50,204 @@ export default { ...@@ -61,65 +50,204 @@ export default {
} }
} }
], ],
// 表格 getListApi: this.$apis.points.getStaffScoreList,
getListApi: this.$apis.points.getIntegralCustomerList, showFormData: [
{
label: '员工名称',
name: 'staffName',
type: 'input',
isClear: true
},
{
label: '员工手机号',
name: 'staffPhone',
type: 'input',
isClear: true
},
{
label: '门店名称',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantServiceList'
},
{
label: '积分收益时间',
name: 'rewardTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '积分付款时间',
name: 'reviewTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
label: '积分到账时间',
name: 'successTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
}
],
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '昵称', label: '门店名称',
prop: 'customerWechatName' prop: 'merchantName'
},
{
label: '员工名称',
prop: 'staffName'
}, },
{ {
label: '手机号', label: '员工手机号',
prop: 'customerPhone' prop: 'staffPhone'
}, },
{ {
label: '当前积分', label: '当前积分',
prop: 'availableIntegral' prop: 'currentScore'
}, },
{ {
label: '累计收入', label: '累计收益积分',
prop: 'totalIntegral' prop: 'totalRewardScore'
}, },
{ {
label: '累计支出', label: '累计兑换积分',
prop: 'usedIntegral' prop: 'totalWithdrawalScore'
},
{
label: '累计抵扣积分',
prop: 'totalDeductScore'
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 基本数据
baseData: { baseData: {
statusList: [] merchantServiceList: []
} }
} }
}, },
mounted() { }, mounted() {
this.tableParams.tableColumns[1].label = this.channelSource == '1' ? '员工名称' : '客户名称'
this.tableParams.tableColumns[2].label = this.channelSource == '1' ? '员工手机号' : '客户手机号'
this.showFormData[0].label = this.channelSource == '1' ? '员工名称' : '客户名称'
this.showFormData[1].label = this.channelSource == '1' ? '员工手机号' : '客户手机号'
this.$apis.points.getShopMerchantList({}).then((res) => {
this.baseData.merchantServiceList = res
this.getOptionsList()
})
},
methods: { methods: {
// 导出
handleExport() {
let params = {
...this.searchFormSearch,
currentPage: 1,
pageSize: 9999
}
this.$apis.points.getStaffScoreExport(params).then((res) => {
console.log(res)
this.$utils.aToExport(res)
// this.$open(res)
})
},
handleDetail(row) { handleDetail(row) {
let obj = {}
if (this.channelSource != 1) {
obj = {
searchObj: JSON.stringify({
merchantId: row.merchantId,
staffPhone: row.staffPhone
}),
staffName: row.staffName,
channelSource: this.channelSource
}
} else {
obj = {
searchObj: JSON.stringify({
staffId: row.staffId
}),
staffName: row.staffName,
channelSource: this.channelSource
}
}
this.$router.push({ this.$router.push({
path: '/pointsList/detail', path: '/pointsList/userDetail',
query: { query: obj
id: row.id })
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
} }
}) })
}, },
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = this.$common.utils.deepClone(this.searchForm)
console.log(this.channelSource, 'channelSource-----')
this.searchFormSearch.channelSource = this.channelSource
if (this.searchFormSearch.rewardTime && this.searchFormSearch.rewardTime.length) {
this.searchFormSearch.rewardBeginTime = dayjs(this.searchFormSearch.rewardTime[0]).format('YYYY-MM-DD') + ' 00:00:00'
this.searchFormSearch.rewardEndTime = dayjs(this.searchFormSearch.rewardTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchFormSearch.reviewTime && this.searchFormSearch.reviewTime.length) {
this.searchFormSearch.reviewBeginTime = dayjs(this.searchFormSearch.reviewTime[0]).format('YYYY-MM-DD') + ' 00:00:00'
this.searchFormSearch.reviewEndTime = dayjs(this.searchFormSearch.reviewTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchFormSearch.successTime && this.searchFormSearch.successTime.length) {
this.searchFormSearch.successBeginTime = dayjs(this.searchFormSearch.successTime[0]).format('YYYY-MM-DD') + ' 00:00:00'
this.searchFormSearch.successEndTime = dayjs(this.searchFormSearch.successTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
delete this.searchFormSearch.rewardTime
delete this.searchFormSearch.successTime
delete this.searchFormSearch.reviewTime
resolve()
})
},
handleSearch() { handleSearch() {
this.$refs.pointRef.refreshTable() this.$refs.pointTable.refreshTable()
}, },
handleReset() { handleReset() {
this.searchForm = {} this.searchForm = {
this.handleSearch() staffName: '',
}, staffPhone: '',
exportExcel() { merchantId: '',
this.$apis.points.getIntegralCustomerExport(this.searchForm).then(res => { rewardTime: [],
this.$utils.aToExport(res) reviewTime: [],
}) successTime: []
} }
this.searchFormSearch = {}
this.$refs.pointTable.refreshTable(true, true)
} }
}; }
}
</script> </script>
<style scoped> <style scoped lang="scss">
.d2-container-content {
::v-deep {
.tableHeaderTitle {
font-weight: 500;
font-size: 16px;
color: #333333;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template>
<div>
<GLTabs v-model="channelSource" @tab-click="changeTab" :tabPaneList="tabPaneList"></GLTabs>
<div class="main-wrap">
<detailList v-show="channelSource == 2" :channelSource="2"></detailList>
<detailList v-show="channelSource == 1" :channelSource="1"></detailList>
<detailList v-show="channelSource == 3" :channelSource="3"></detailList>
</div>
</div>
</template>
<script>
import detailList from './detailList'
export default {
name: 'index',
components: {
detailList
},
data() {
return {
size: 'small',
loading: false,
channelSource: '2',
tabPaneList: [
{ name: '2', label: '续保用户' },
{ name: '1', label: '阳光激励用户' },
{ name: '3', label: '管理层' }
]
}
},
mounted() { },
methods: {
changeTab() { }
}
}
</script>
<style lang="scss" scoped>
.main-wrap {
background-color: #fff;
margin-top: 16px;
}
</style>
<template>
<div class="container">
<div class="config-card">
<h2 class="config-title">上传证件配置</h2>
<p class="config-desc">此开关用于配置用户提现时是否要上传身份证正反面</p>
<div class="table-container">
<GLTable :tableData="tableData" :tableParams="tableParams" :hasPage="false" :hasNum="false">
<template slot="switchSlot" slot-scope="scope">
<!-- <el-switch v-model="scope.scope.enabled" active-text="启用" inactive-text="停用"></el-switch> -->
<el-switch v-model="scope.scope.enabled"></el-switch>
<div class="switch-txt">{{ scope.scope.enabled ? '启用' : '停用' }}</div>
</template>
</GLTable>
</div>
<div class="form-actions">
<el-button type="primary" size="small" @click="handleConfirm">保存</el-button>
</div>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
props: {},
data() {
return {
url: url,
tableData: [
{ channelCode: 2, channelName: '续保用户', enabled: false },
{ channelCode: 1, channelName: '阳光激励用户', enabled: false },
{ channelCode: 3, channelName: '管理层', enabled: false }
],
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '渠道名称',
prop: 'channelName'
},
{
label: '上传身份证',
prop: 'enabled',
addHtml: 'switchSlot'
}
]
}
}
},
mounted() {
this.getConfig()
},
methods: {
getConfig() {
this.$apis.ruleConfig.getUpDocConfig({}).then(res => {
res.forEach(item => {
let idx = this.tableData.findIndex(i => i.channelCode == item.channelCode)
this.tableData[idx].id = item.id
// isEnabled 是否打开:0-关闭,1-打开
this.tableData[idx].enabled = !!item.isEnabled
})
})
},
handleConfirm() {
let params = {
uploadDocumentConfigRequestList: []
}
this.tableData.forEach(item => {
params.uploadDocumentConfigRequestList.push({
channelCode: item.channelCode,
id: item.id,
isEnabled: item.enabled ? 1 : 0
})
})
this.$apis.ruleConfig.updateUpDocConfig(params).then(res => {
let { code, message } = res
code == 0 ? this.$message.success('配置成功!') : this.$message.error(message)
})
}
}
}
</script>
<style scoped lang='scss'>
.container {
padding: 20px;
.switch-txt {
display: inline-block;
margin-left: 8px;
}
.config-card {
background: #fff;
border-radius: 4px;
padding: 20px;
position: relative;
.config-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 8px;
}
.config-desc {
color: #909399;
font-size: 14px;
margin-bottom: 20px;
}
.table-container {
width: 580px;
margin-bottom: 20px;
}
.config-table {
width: 100%;
border-collapse: collapse;
th,
td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #ebeef5;
}
th {
background-color: #f5f7fa;
color: #606266;
font-weight: 500;
}
tr:last-child td {
border-bottom: none;
}
td:first-child {
color: #606266;
width: 150px;
}
}
.form-actions {
margin-top: 30px;
text-align: left;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="set-int"> <div class="set-int">
<el-input @change="onchangeInput" class="intTime" v-model="formObj[item.attr].time" maxlength="4" oninput="if(value){value=value.replace(/[^\d]/g,'')} if(value<=0){value=''} if(value>1000){value=1000}" placeholder="请输入"></el-input> <el-input @change="onchangeInput" class="intTime" v-model="formObj[item.attr].time" maxlength="4" oninput="if(value){value=value.replace(/[^\d]/g,'')} if(value<=0){value=''} if(value>1000){value=1000}" placeholder="请输入"></el-input>
</div> </div>
<span>小时后,未提现或兑换时发送</span> <span>小时后</span>
</div> </div>
<div class="sms-box"> <div class="sms-box">
<div class="left">群发内容:</div> <div class="left">群发内容:</div>
...@@ -57,11 +57,16 @@ ...@@ -57,11 +57,16 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import glsxCombiForm from '@/components/glsx-combi-form' import glsxCombiForm from '@/components/glsx-combi-form'
import wTextarea from './tag-textarea.vue' import wTextarea from './tag-textarea.vue'
const DJ_MINI_APPID = '车生活助手' // const DJ_MINI_APPID = '车生活助手'
const JF_MINI_APPID = '积分商城'
const MINI = [ const MINI = [
// {
// confId: DJ_MINI_APPID,
// confName: '车生活助手'
// },
{ {
confId: DJ_MINI_APPID, confId: JF_MINI_APPID,
confName: '车生活助手' confName: '积分商城'
} }
] ]
export default { export default {
...@@ -78,7 +83,7 @@ export default { ...@@ -78,7 +83,7 @@ export default {
miniId: [{ required: true, message: '短信签名', trigger: 'change' }] miniId: [{ required: true, message: '短信签名', trigger: 'change' }]
}, },
formObj: { formObj: {
miniId: DJ_MINI_APPID, miniId: JF_MINI_APPID,
message_first: { message_first: {
messageContext: '', messageContext: '',
switch: false, switch: false,
......
...@@ -82,10 +82,10 @@ export default { ...@@ -82,10 +82,10 @@ export default {
prop: 'userPhone', prop: 'userPhone',
}, },
{ // {
label: '当前积分', // label: '当前积分',
prop: 'currentIntegral' // prop: 'currentIntegral'
}, // },
{ {
label: '所属门店', label: '所属门店',
prop: 'merchantName' prop: 'merchantName'
......
...@@ -16,10 +16,9 @@ ...@@ -16,10 +16,9 @@
:pageConf="pageConf" :pageConf="pageConf"
:beforeSearchFn="beforeSearchFn" :beforeSearchFn="beforeSearchFn"
> >
<template <!-- <template
slot="oilList" slot="oilList"
slot-scope="scope" slot-scope="scope">
>
<template v-if="scope.scope.oilList && scope.scope.oilList.length"> <template v-if="scope.scope.oilList && scope.scope.oilList.length">
<div class="flex"> <div class="flex">
...@@ -45,11 +44,10 @@ ...@@ -45,11 +44,10 @@
<template v-else> <template v-else>
无 无
</template> </template>
</template> </template> -->
<template <!-- <template
slot="couponList" slot="couponList"
slot-scope="scope" slot-scope="scope">
>
<template v-if="scope.scope.couponList && scope.scope.couponList.length"> <template v-if="scope.scope.couponList && scope.scope.couponList.length">
<div class="flex"> <div class="flex">
<span>{{ filterData(scope.scope.couponList,'couponList').slice(0, 1).join('、') }}</span> <span>{{ filterData(scope.scope.couponList,'couponList').slice(0, 1).join('、') }}</span>
...@@ -74,7 +72,7 @@ ...@@ -74,7 +72,7 @@
<template v-else> <template v-else>
无 无
</template> </template>
</template> </template> -->
</GLTable> </GLTable>
</GLDialog> </GLDialog>
</div> </div>
...@@ -101,21 +99,21 @@ export default { ...@@ -101,21 +99,21 @@ export default {
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableColumns: [ tableColumns: [
{ // {
label: '保单号', // label: '保单号',
prop: 'policyNo', // prop: 'policyNo',
minWidth: 200 // minWidth: 200
}, // },
{ {
label: '用户姓名', label: '用户姓名',
prop: 'customerName', prop: 'customerName',
minWidth: 100 minWidth: 100
}, },
{ // {
label: '身份证号', // label: '身份证号',
minWidth: 200, // minWidth: 200,
prop: 'idCardNo', // prop: 'idCardNo',
}, // },
{ {
label: '用户手机号', label: '用户手机号',
minWidth: 150, minWidth: 150,
...@@ -126,21 +124,21 @@ export default { ...@@ -126,21 +124,21 @@ export default {
minWidth: 150, minWidth: 150,
prop: 'cashBackValue' prop: 'cashBackValue'
}, },
{ // {
label: '商品兑换积分', // label: '商品兑换积分',
prop: 'buyValue', // prop: 'buyValue',
minWidth: 150, // minWidth: 150,
}, // },
{ // {
label: '赠送油券', // label: '赠送油券',
minWidth: 260, // minWidth: 260,
addHtml: 'oilList' // addHtml: 'oilList'
}, // },
{ // {
label: '赠送自店服务', // label: '赠送自店服务',
minWidth: 260, // minWidth: 260,
addHtml: 'couponList' // addHtml: 'couponList'
}, // },
{ {
label: '充值积分小计', label: '充值积分小计',
minWidth: 150, minWidth: 150,
......
<template> <template>
<GLDialog <GLDialog bigTitle="选择商户" mode="big" :visible.sync="dialogVisible" :before-close="handleClose" :close-on-click-modal="false" @onOk="handleConfirm" @onCancel="handleClose" class="select-store">
bigTitle="选择商户" <glsx-combi-form ref="showSearch" labelWidth="105px" :formObj="searchForm" :formData="searchFormData">
mode="big"
:visible.sync="dialogVisible"
:before-close="handleClose"
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose"
class="select-store"
>
<glsx-combi-form
ref="showSearch"
labelWidth="105px"
:formObj="searchForm"
:formData="searchFormData"
>
<span slot="footer"> <span slot="footer">
<el-button <el-button :size="size" type="primary" @click="getTable">查询</el-button>
:size="size" <el-button :size="size" @click="resetTable">重置</el-button>
type="primary"
@click="getTable"
>查询</el-button>
<el-button
:size="size"
@click="resetTable"
>重置</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
<GLTable <GLTable ref="storeRef" :tableTotal="total" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @refreshTable="getList" :tableData="storeList" :hasNum="false" :setTableFinishFun="setTableFinishFun">
ref="storeRef" <div slot="radioHtml" class="store-table" slot-scope="scope">
:tableTotal="total" <el-radio v-model="merchantId" :label="scope.scope.merchantNo" @click.native="handleClick(scope.scope)"></el-radio>
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
@refreshTable="getList"
:tableData="storeList"
:hasNum="false"
:setTableFinishFun="setTableFinishFun"
>
<div
slot="radioHtml"
class="store-table"
slot-scope="scope"
>
<el-radio
v-model="merchantId"
:label="scope.scope.merchantNo"
@click.native="handleClick(scope.scope)"
></el-radio>
</div> </div>
</GLTable> </GLTable>
</GLDialog> </GLDialog>
...@@ -55,7 +16,7 @@ ...@@ -55,7 +16,7 @@
<script> <script>
export default { export default {
name: 'selectStore', name: 'selectStore',
data () { data() {
return { return {
searchForm: { searchForm: {
merchantId: '', merchantId: '',
...@@ -150,27 +111,28 @@ export default { ...@@ -150,27 +111,28 @@ export default {
// required: true // required: true
// } // }
}, },
watch: { // watch: {
dialogVisible (n) { // dialogVisible(n) {
if (n) this.init() // if (n) this.init()
} // }
}, // },
mounted () { mounted() {
this.init()
}, },
methods: { methods: {
init () { init() {
this.merchantId = String(this.merchantInfo.merchantId) this.merchantId = String(this.merchantInfo.merchantId)
this.merchantName = this.merchantInfo.merchantName this.merchantName = this.merchantInfo.merchantName
this.getList() this.getList()
}, },
getList (pageCon) { getList(pageCon) {
pageCon && (this.pageConfig = pageCon) pageCon && (this.pageConfig = pageCon)
var params = { var params = {
merchantId: this.merchantId, merchantId: this.merchantId,
...this.searchForm, ...this.searchForm,
...this.pageConfig ...this.pageConfig
} }
this.$apis.common.getMerchantList(params).then(res => { this.$apis.common.getMerchantList1(params).then(res => {
this.storeList = res.list this.storeList = res.list
this.total = res.total this.total = res.total
let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1) let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1)
...@@ -179,26 +141,29 @@ export default { ...@@ -179,26 +141,29 @@ export default {
}) })
}) })
}, },
getTable () { getTable() {
this.$refs.storeRef.page.currentPage = 1 this.$refs.storeRef.page.currentPage = 1
this.getList() this.getList()
}, },
setTableFinishFun () { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.staffRef.tableHeightValues = '460px' this.$refs.staffRef.tableHeightValues = '460px'
}, },
handleClick (val) { handleClick(val) {
this.merchantId = val.merchantNo this.merchantId = val.merchantNo
this.merchantName = val.merchantName this.merchantName = val.merchantName
}, },
resetTable () { resetTable() {
this.searchForm = {} this.searchForm = {
merchantId: '',
merchantName: ''
}
this.getTable() this.getTable()
}, },
handleClose () { handleClose() {
this.$emit('handleRelateStoreClose') this.$emit('handleRelateStoreClose')
}, },
handleConfirm () { handleConfirm() {
const { merchantId, merchantName } = this const { merchantId, merchantName } = this
if (merchantId && merchantName) this.$emit('handleRelateStoreConfirm', { if (merchantId && merchantName) this.$emit('handleRelateStoreConfirm', {
merchantId, merchantId,
......
<!-- 到账明细 -->
<template>
<div class="points">
<div class="header">
<div class="title">到账明细</div>
</div>
<div class="container gl-form-page">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 -->
<GLTable ref="withdrawRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{ background: colors[scope.scope.status] }"></div>
<span>{{ tableStatus[scope.scope.status] }}</span>
</div> </GLTable>
<!-- 表格区域 end -->
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import { modeTypeList } from '@/utils/constants.js'
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回', '受理失败']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74']
export default {
data() {
return {
id: this.$route.query.id,
size: 'small',
url: url,
tableStatus,
colors,
searchForm: {
customerName: '',
customerPhone: ''
},
tableSearchForm: {},
showFormData: [
{
label: '客户名称',
name: 'customerName',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
}
],
// 表格
getListApi: this.$apis.withdraw.getList,
tableParams: {
listName: 'list',
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
width: 150
},
{
label: '提现方式',
prop: 'mode',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '手机号',
prop: 'customerPhone',
width: '140px'
},
{
label: '所属门店',
prop: 'merchantName',
line: 1,
width: 150
},
{
label: '提现积分',
prop: 'integralAmount',
width: 100
},
{
label: '提现金额/元',
prop: 'payAmount',
width: 110,
formatter: cellValue => {
return cellValue.payAmount ? (cellValue.payAmount / 100).toFixed(2) : '--'
}
},
{
label: '提现时间',
prop: 'createdDate',
width: 180
},
{
label: '收款人姓名',
prop: 'name',
width: '110px'
},
{
label: '收款人身份证',
prop: 'idCardNo',
width: '180px'
},
{
label: '收款银行卡号',
prop: 'recvBankCardNo',
width: 230
},
{
label: '收款银行',
prop: 'recvBank',
line: 1,
width: 150
},
{
label: '收款手机号',
prop: 'mobile',
width: '130px'
},
{
label: '到账情况',
prop: 'status',
width: '200px',
addHtml: 'colorStatus'
},
{
label: '到账时间',
prop: 'receiptDate',
width: 180
},
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {
modeTypeList
}
}
},
mounted() {},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
params.approvalId=this.id
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
handleSearch() {
this.$refs.withdrawRef.refreshTable()
},
handleReset() {
this.searchForm = {
customerName: '',
customerPhone: ''
}
this.handleSearch()
}
}
}
</script>
<style scoped lang='scss'>
.points {
.header {
padding: 14px 20px;
background: #fff;
color: #333333;
font-size: 20px;
font-weight: 600;
border-bottom: 1px solid #e5e5e5;
}
.table-header {
align-items: center;
h2 {
color: #333333;
font-size: 16px;
}
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 编辑 -->
<template>
<div class="points">
<div class="header">
<div class="title">编辑</div>
</div>
<div class="container gl-form-page">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header flex-sb">
<h2>积分提现明细</h2>
<el-button size="small" @click="handleDissolve(true)" type="primary" plain>解散批次</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="withdrawRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import { modeTypeList } from '@/utils/constants.js'
export default {
data() {
return {
id: this.$route.query.id,
size: 'small',
url: url,
searchForm: {
customerName: '',
customerPhone: ''
},
tableSearchForm: {},
tableButtonList: [
{
type: 'el-button',
name: '移除',
attrs: {
type: 'text',
fn: '移除'
},
listeners: {
click: row => {
this.handleDissolve(false, row)
}
}
}
],
showFormData: [
{
label: '客户名称',
name: 'customerName',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '手机号',
name: 'customerPhone',
type: 'input',
isClear: true,
maxlength: 11
}
],
// 表格
getListApi: this.$apis.withdraw.getList,
tableParams: {
listName: 'list',
tableOption: {
width: 100
},
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
width: 150
},
{
label: '提现方式',
prop: 'mode',
width: '200px',
formatter: cellValue => {
let arr = this.baseData.modeTypeList.filter(item => item.confId == cellValue.mode)
return arr.length > 0 ? arr[0].confLabel : '--'
}
},
{
label: '手机号',
prop: 'customerPhone',
width: '140px'
},
{
label: '所属门店',
prop: 'merchantName',
line: 1,
width: 150
},
{
label: '提现积分',
prop: 'integralAmount',
width: 100
},
{
label: '提现金额/元',
prop: 'payAmount',
width: 110,
formatter: cellValue => {
return cellValue.payAmount ? (cellValue.payAmount / 100).toFixed(2) : '--'
}
},
{
label: '提现时间',
prop: 'createdDate',
width: 180
},
{
label: '收款人姓名',
prop: 'name',
width: '110px'
},
{
label: '收款人身份证',
prop: 'idCardNo',
width: '180px'
},
{
label: '收款银行卡号',
prop: 'recvBankCardNo',
width: 230
},
{
label: '收款银行',
prop: 'recvBank',
line: 1,
width: 150
},
{
label: '收款手机号',
prop: 'mobile',
width: '130px'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {
modeTypeList
}
}
},
mounted() {},
methods: {
handleDissolve(isAll, row) {
let title = isAll ? '解散批次提示' : '移除提示',
cxt = isAll ? '解散本批次,所有未驳回的积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。' : '移除该记录,该条积分提现记录将恢复「待审核」状态,如需重新生成批次,请选中后重新生成批次。',
params = {
type: isAll ? 2 : 1
},
Method = 'removeApproval'
!isAll ? (params.id = row.id) : (params.id = this.id) //单个移除时传明细id,解散批次时传审批批次id
this.$utils.secondConfirm(this, title, cxt, 'withdraw', Method, params)
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
params.approvalId = this.id
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
handleSearch() {
this.$refs.withdrawRef.refreshTable()
},
handleReset() {
this.searchForm = {
customerName: '',
customerPhone: ''
}
this.handleSearch()
},
setTableFinishFun(data){
if(!data.length){
this.$router.back()
}
}
},
}
</script>
<style scoped lang='scss'>
.points {
.header {
padding: 14px 20px;
background: #fff;
color: #333333;
font-size: 20px;
font-weight: 600;
border-bottom: 1px solid #e5e5e5;
}
.table-header {
align-items: center;
h2 {
color: #333333;
font-size: 16px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 查看 -->
<template>
<GLDialog bigTitle="详细信息" :visible.sync="isVisible" :hasFooter="false" :before-close="handleClose" class="points" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose">
<div class="wrap edit-box">
<div>
<p class="edit-title">订单信息</p>
<el-form label-width="120px" :inline="true">
<el-row v-for="(item, index) in withdrawDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }}
</span>
<span v-else-if="subItem.addStyle" class="flex_sc">
<div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div>
{{ subItem.addStyle(recordInfo).status }}
</span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] || recordInfo[subItem.name] === 0 ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div>
<p class="edit-title">付款信息</p>
<el-form label-width="120px" :inline="true">
<el-row v-for="(item, index) in paymentDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }}
</span>
<span v-else-if="subItem.addStyle" class="flex_sc">
<div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div>
{{ subItem.addStyle(recordInfo).status }}
</span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</el-row>
</el-form>
</div>
<div v-if="operationList && operationList.length">
<p class="edit-title">操作记录</p>
<div class="block">
<el-timeline>
<template v-for="(item, index) in operationList">
<el-timeline-item :key="index">
<div class="timeline-item">
<div class="operation-result">
{{ item.operationTypetext }}
<span :class="item.active">{{ item.operationResult }}</span>
</div>
<div class="operation-Note">{{ item.operationNote }}</div>
</div>
</el-timeline-item>
</template>
</el-timeline>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
import { colors, tableStatus, operate_status } from '@/utils/constants.js'
export default {
name: 'DetailDialog',
data() {
return {
recordInfo: {},
operationList: [],
withdrawDataRow: [],
paymentDataRow: [],
withdrawData: [],
paymentData: [],
isVisible: this.detailVisible
}
},
props: {
detailVisible: {
type: Boolean,
default: false
},
id: {
type: Number,
default: 0
}
},
watch: {
detailVisible(newVal) {
this.isVisible = newVal
this.getDetails()
}
},
computed: {},
mounted() {},
methods: {
getDetails() {
this.$apis.withdraw.approvalDetail({ id: this.id }).then(res => {
this.recordInfo = res
this.getApprovalLog()
this.getConfig()
})
},
getApprovalLog() {
let arr
this.$apis.withdraw.getApprovalLog({ id: this.id }).then(res => {
arr = res.map(item => {
let active, operationTypetext
//单独处理付款审核时,屏蔽付款审核结果
if (item.operationType == 1) {
item.operationResult = ''
}
if (item.operationResult == '审批中') {
active = 'wait'
} else if (item.operationResult == '通过') {
active = 'success'
} else if (item.operationResult == '审批驳回' || item.operationResult == '不通过') {
active = 'fail'
} else {
active = 'close'
}
operationTypetext = operate_status[item.operationType]
return {
...item,
active,
operationTypetext
}
})
this.operationList = arr
})
},
getConfig() {
this.withdrawData = [
{
label: '批次号',
name: 'batchNo'
},
{
label: '客户数量',
name: 'customerCount'
},
{
label: '积分总额',
name: 'pointTotal'
},
{
label: '付款总额/元',
name: 'paymentTotal'
},
{
label: '状态',
name: 'status',
addStyle: obj => {
return {
status: tableStatus[obj.status],
color: colors[obj.status]
}
}
}
]
this.paymentData = [
{
label: '付款渠道',
name: 'paymentChannel'
},
{
label: '付款主体',
name: 'paymentSubject'
},
{
label: '渠道到账时间',
name: 'channelSettleTime'
}
]
this.formToRow('withdrawData')
this.formToRow('paymentData')
},
handleJudgment(target, key) {
let arr = target,
len = arr.length,
item
for (let i = 0; i < len; i++) {
item = arr[i]
if (item.name == key) {
arr.splice(i, 1)
}
}
},
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
if (j == 0) {
this[formName + 'Row'][i] = {
rowList: []
}
}
if (i * numOfRow + j < this[formName].length) {
this[formName + 'Row'][i].rowList.push(this[formName][i * numOfRow + j])
}
}
}
},
handleClose() {
this.isVisible = false
this.$emit('dialogClose')
}
}
}
</script>
<style scoped lang="scss">
.edit-box .row-item {
width: 30%;
/deep/ {
.el-form-item__content {
height: 30px;
}
}
}
.edit-box {
.el-form--inline {
margin-bottom: 10px;
}
}
.detail-txt {
display: inline-block;
width: 190px;
}
.edit-title {
font-weight: 600;
font-size: 16px;
color: #000000d9;
line-height: 24px;
}
.m-b-20 {
margin-top: 20px;
}
/deep/ .el-form-item {
margin-bottom: 0;
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.block {
margin-top: 20px;
max-height: 250px;
overflow-y: auto;
}
.timeline-item {
.operation-result {
color: #1d2129ff;
font-size: 14px;
line-height: 20px;
span {
margin-left: 12px;
}
.success {
color: #2cca74ff;
}
.wait {
color: #f59619ff;
}
.close {
color: #999999ff;
}
.fail {
color: #eb4e4eff;
}
}
.operation-Note {
color: #999999ff;
font-size: 12px;
margin-top: 4px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<span v-if="subItem.addHtml"> <span v-if="subItem.addHtml">
{{ subItem.addHtml(recordInfo) }} {{ subItem.addHtml(recordInfo) }}
</span> </span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '--' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div> <div class="table_point" :style="{ background: subItem.addStyle(recordInfo).color }"></div>
{{ subItem.addStyle(recordInfo).status }} {{ subItem.addStyle(recordInfo).status }}
</span> </span>
<span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span v-else class="detail-txt ellipsis-1" :title="recordInfo[subItem.name]">{{ recordInfo[subItem.name] ? recordInfo[subItem.name] + (subItem.suffix || '') : '--' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row v-if="this.recordInfo.status == 4"> <el-row v-if="this.recordInfo.status == 4">
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<div v-if="recordInfo.operationList"> <div v-if="recordInfo.operationList&&recordInfo.operationList.length">
<p class="edit-title">操作记录</p> <p class="edit-title">操作记录</p>
<template v-for="(record, recordIdx) in recordInfo.operationList"> <template v-for="(record, recordIdx) in recordInfo.operationList">
<el-form label-width="154px" :inline="true" :key="recordIdx"> <el-form label-width="154px" :inline="true" :key="recordIdx">
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div class="table_point" :style="{ background: subItem.addHtml(record).color }"></div> <div class="table_point" :style="{ background: subItem.addHtml(record).color }"></div>
{{ subItem.addHtml(record).status }} {{ subItem.addHtml(record).status }}
</span> </span>
<span v-else class="detail-txt ellipsis-1" :title="record[subItem.name]">{{ record[subItem.name] ? record[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span v-else class="detail-txt ellipsis-1" :title="record[subItem.name]">{{ record[subItem.name] ? record[subItem.name] + (subItem.suffix || '') : '--' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
...@@ -60,14 +60,8 @@ ...@@ -60,14 +60,8 @@
<script> <script>
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回'] const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E'] const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E']
const channelObj = {
'TXIAT': '熠轩-银行卡', import { channelObj,sourceList } from '@/utils/constants.js'
'ZX': '中雄-银行卡',
'YUNHUO': '云获(嘀加)-银行卡',
"YUNHUO-ZY": '云获(中赢)-银行卡',
'YUNHUO-WX': '云获(中赢)-微信',
'SHENBIANYUN':'身边云-银行卡'
}
export default { export default {
name: 'DetailDialog', name: 'DetailDialog',
data() { data() {
...@@ -80,24 +74,7 @@ export default { ...@@ -80,24 +74,7 @@ export default {
paymentData: [], paymentData: [],
operationData: [], operationData: [],
isVisible: this.detailVisible, isVisible: this.detailVisible,
sourceList: [ sourceList:sourceList
{
confId: '0',
confLabel: '车生活助手'
},
{
confId: '1',
confLabel: '系统导入'
},
{
confId: '2',
confLabel: '生意助手员工版'
},
{
confId: '3',
confLabel: '门店助手'
}
]
} }
}, },
props: { props: {
...@@ -230,6 +207,10 @@ export default { ...@@ -230,6 +207,10 @@ export default {
} }
}, },
{ {
label: '付款主体',
name: 'paymentSubject'
},
{
label: '结算金额', label: '结算金额',
name: 'settleAmount', name: 'settleAmount',
addHtml: obj => { addHtml: obj => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!