Commit e76ed050 by 前端

Merge branch 'develop' into 'master'

v2.0.0版本  Develop分支  ----》 master分支

See merge request !4
2 parents 5f95803b fef509c7
......@@ -84,6 +84,23 @@ const getQrUrl = params => {
returnAll:true
})
}
/*获取用户明细列表*/
const getcardRecordList = params => {
params.method = 'scrm.api.equity.card.merchant.record.get'
return http({
data: params
})
}
/**导出用户明细列表Excel*/
const exportcardRecordList = params => {
params.method = 'scrm.api.equity.card.merchant.record.export'
return http({
data: params,
returnAll: true
})
}
export default {
getEquityCardList,
newEquityCard,
......@@ -95,5 +112,7 @@ export default {
getMerchantList,
cardExport,
getCollectionMerchantList,
getQrUrl
getQrUrl,
getcardRecordList,
exportcardRecordList
}
......@@ -61,7 +61,7 @@
</el-input>
</el-form-item>
<el-form-item label="成本含税价" prop="costPrice">
<el-input v-model="ruleForm.costPrice" :disabled="isEdit">
<el-input v-model="ruleForm.costPrice">
<span slot="suffix">元</span>
</el-input>
</el-form-item>
......
......@@ -9,17 +9,36 @@
</div>
<div class="tableBox" style="margin-left: 40px; margin-top: 20px; margin-right: 20px">
<div class="topline">
<div class="selectStore">搜索门店</div>
<!-- <div class="selectStore">搜索门店</div>
<el-select size="small" v-model="searchForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="remoteMethod" :loading="loading" clearable style="margin-left: 10px">
<el-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
<div class="operationBtn">
</el-select> -->
<el-form :inline="true" style="width: 100%; margin-left: 10px;" :model="searchForm" label-width="108px" label-position="right">
<el-row style="display: flex; align-items: center">
<el-form-item size="small" label="搜索门店">
<el-select size="small" v-model="searchForm.merchantName" remote reserve-keyword filterable placeholder="请输入门店名称" :remote-method="remoteMethod" :loading="loading" clearable >
<el-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="权益卡名称">
<el-input size="small" v-model="searchForm.cardClassName" placeholder="请输入权益卡名称"></el-input>
</el-form-item>
<el-form-item size="small" class="fr-mr0">
<el-button plain size="small" class="selectBtn" @click="selectStore('reset')">重置</el-button>
<el-button type="primary" size="small" style="margin-left: 20px" class="selectBtn" @click="selectStore('select')">搜索</el-button>
</el-form-item>
</el-row>
</el-form>
<!-- <div class="operationBtn">
<el-button plain size="small" class="selectBtn" @click="selectStore('reset')">重置</el-button>
<el-button type="primary" size="small" style="margin-left: 20px" class="selectBtn" @click="selectStore('select')">搜索</el-button>
</div>
</div> -->
</div>
<div class="tableCtn">
<GLTable ref="recordTable" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun">
<div slot="recipientCount" slot-scope="scope">
<p class="cursor-pointer" style="color:#5850ff" @click="handleDetail(scope.scope)">{{ scope.scope.recipientCount }}</p>
</div>
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLButton fn ='权益卡管理编辑' type="text" @click="edit(scope.scope)" class="tableBtn" size="small">编辑</GLButton>
<el-button type="text" :disabled="scope.scope.tryAble == 0 ? true : false" @click="extension(scope.scope)" class="tableBtn" size="small">推广</el-button>
......@@ -116,6 +135,7 @@
<el-button :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')" size="small">提交</el-button>
</span>
</el-dialog>
<detail-dialog ref="detailDetailRef"></detail-dialog>
</div>
</template>
......@@ -139,6 +159,7 @@ function date_format(date) {
return YY + MM + DD + ' ' + hh + mm + ss
}
import url from '@/assets/empty.png'
import detailDialog from './cardDetail'
// import {memberCardDetails} from "@/api/test";
export default {
data() {
......@@ -170,7 +191,7 @@ export default {
src: './images/yiquan.jpg',
inputSwitch: true,
dataSwitch: true,
tryNum: '',
tryNum: 30,
effectiveNum: '',
data: '',
ruleForm: {
......@@ -212,7 +233,8 @@ export default {
getListApi: this.$apis.equityApi.getEquityCardList,
// getListApi: none,
searchForm: {
merchantName: ''
merchantName: '',
cardClassName:''
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
......@@ -260,9 +282,10 @@ export default {
},
{
label: '领卡用户',
prop: 'recipientCount'
prop: 'recipientCount',
// width: 110,
// tagLabel: true
addHtml: 'recipientCount'
},
{
label: '状态',
......@@ -283,7 +306,9 @@ export default {
}
}
},
components: {
detailDialog
},
mounted() {
this.list = this.states.map(item => {
return { value: `value:${item}`, label: `label:${item}` }
......@@ -300,11 +325,15 @@ export default {
this.hasTryNum = true
} else {
this.hasTryNum = false
this.tryNum = ''
this.tryNum = 30
}
}
},
methods: {
handleDetail(row){
this.$refs.detailDetailRef.show(row);
// this.getcardRecordList()
},
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.table.data.length) {
......@@ -423,7 +452,7 @@ export default {
if (row.tryAble == 1) {
;(this.value = true), (this.tryNum = row.tryNum)
} else {
;(this.value = false), (this.tryNum = '')
;(this.value = false), (this.tryNum = 30)
}
// 禁用门店框
......@@ -442,7 +471,7 @@ export default {
if (row.tryAble == 1) {
;(this.value = true), (this.tryNum = row.tryNum)
} else {
;(this.value = false), (this.tryNum = '')
;(this.value = false), (this.tryNum =30)
}
},
addCard(cd) {
......@@ -489,6 +518,7 @@ export default {
selectStore(e) {
if (e == 'reset') {
this.searchForm.merchantName = ''
this.searchForm.cardClassName = ''
this.$apis.equityApi.getEquityCardList(this.searchForm).then(res => {
this.$refs.recordTable.refreshTable()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!