Commit be2248ba by wangzhihui

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/scrm-micro-po…

…ints into SAAS+V4.56.0-0908
2 parents 6387276b 1d81761e
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
}

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)
......
<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: Number,
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: Number,
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,198 @@ export default { ...@@ -61,65 +50,198 @@ 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.$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
}),
channelSource: this.channelSource
}
} else {
obj = {
searchObj: JSON.stringify({
staffId: row.staffId
}),
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>
</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;
.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>
...@@ -58,10 +58,15 @@ ...@@ -58,10 +58,15 @@
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, confId: DJ_MINI_APPID,
confName: '车生活助手' confName: '车生活助手'
},
{
confId: JF_MINI_APPID,
confName: '积分商城'
} }
] ]
export default { export default {
......
...@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!