Commit 44cc7398 by wuwx

客服积分管理接口联调

1 parent 4ee392cf
......@@ -21,11 +21,19 @@ const integrateApi = {
}
}
// 客户积分兑换列表
// 客户兑换管理列表
const integralExchangeApi = {
integralExchange(data = {}) {
data.method = `${path}convert.record.list`
return request(data)
}
}
export { integrateApi, integralExchangeApi }
// 客户积分管理列表
const integralManageApi = {
integralManage(data = {}) {
data.method = `${path}record.list`
return request(data)
}
}
export { integrateApi, integralExchangeApi, integralManageApi }
......@@ -32,12 +32,12 @@
:size="btn_size"
placeholder="全部"
>
<!-- <el-option
v-for="item in $Constants.DICT_STATUS_OPTIONS"
<el-option
v-for="item in state"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option> -->
></el-option>
</el-select>
</el-form-item>
<el-form-item>
......@@ -54,9 +54,6 @@
:getListApi="getListApi"
:pageConf="pageConf"
>
<div slot="changeValue" slot-scope="scope">
<span>{{scope.scope.afterAmount - scope.scope.beforeAmount}}</span>
</div>
<div slot="recordType" slot-scope="scope">
<span v-if="scope.scope.recordType == 1">系统赠送</span>
<span v-if="scope.scope.recordType == 2">积分兑换</span>
......@@ -66,11 +63,22 @@
</template>
<script>
import { integralManageApi } from '../../../api/integrate'
const state = [
{
value: 1,
label: '系统赠送'
},
{
value: 2,
label: '积分兑换'
}
]
export default {
name: 'Conversion',
data() {
return {
state,
btn_size: 'small',
searchForm: {
name: '',
......@@ -81,12 +89,12 @@ export default {
pageConf: {
pageSize: 'pageSize',
pageNum: 'pageNum',
totalCount: 'data.count'
totalCount: 'data.total'
},
// getListApi: dictApi.findDictType,
getListApi: integralManageApi.integralManage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.data',
listName: 'data.list',
tableColumns: [
{
label: '客户姓名',
......@@ -102,8 +110,7 @@ export default {
},
{
label: '积分变更值',
prop: '',
addHtml: 'changeValue'
prop: 'amount'
},
{
label: '变更类型',
......@@ -116,7 +123,7 @@ export default {
},
{
label: '变更人',
prop: 'updateBy'
prop: 'operator'
},
{
label: '变更前积分值',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!