Commit fef509c7 by 前端

Merge branch 'zhangquan_dev_v2.0.0' into 'develop'

v2.0.0 已上线,合并到devolop

See merge request !3
2 parents 06251e9d bd535638
...@@ -84,6 +84,23 @@ const getQrUrl = params => { ...@@ -84,6 +84,23 @@ const getQrUrl = params => {
returnAll:true 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 { export default {
getEquityCardList, getEquityCardList,
newEquityCard, newEquityCard,
...@@ -95,5 +112,7 @@ export default { ...@@ -95,5 +112,7 @@ export default {
getMerchantList, getMerchantList,
cardExport, cardExport,
getCollectionMerchantList, getCollectionMerchantList,
getQrUrl getQrUrl,
getcardRecordList,
exportcardRecordList
} }
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="成本含税价" prop="costPrice"> <el-form-item label="成本含税价" prop="costPrice">
<el-input v-model="ruleForm.costPrice" :disabled="isEdit"> <el-input v-model="ruleForm.costPrice">
<span slot="suffix">元</span> <span slot="suffix">元</span>
</el-input> </el-input>
</el-form-item> </el-form-item>
......
...@@ -9,17 +9,36 @@ ...@@ -9,17 +9,36 @@
</div> </div>
<div class="tableBox" style="margin-left: 40px; margin-top: 20px; margin-right: 20px"> <div class="tableBox" style="margin-left: 40px; margin-top: 20px; margin-right: 20px">
<div class="topline"> <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-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-option v-for="(item, index) in options" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option>
</el-select> </el-select> -->
<div class="operationBtn"> <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 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-button type="primary" size="small" style="margin-left: 20px" class="selectBtn" @click="selectStore('select')">搜索</el-button>
</div> </div> -->
</div> </div>
<div class="tableCtn"> <div class="tableCtn">
<GLTable ref="recordTable" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun"> <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"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLButton fn ='权益卡管理编辑' type="text" @click="edit(scope.scope)" class="tableBtn" size="small">编辑</GLButton> <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> <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 @@ ...@@ -116,6 +135,7 @@
<el-button :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')" size="small">提交</el-button> <el-button :disabled="submitBtn" type="primary" @click="submitForm('ruleForm')" size="small">提交</el-button>
</span> </span>
</el-dialog> </el-dialog>
<detail-dialog ref="detailDetailRef"></detail-dialog>
</div> </div>
</template> </template>
...@@ -139,6 +159,7 @@ function date_format(date) { ...@@ -139,6 +159,7 @@ function date_format(date) {
return YY + MM + DD + ' ' + hh + mm + ss return YY + MM + DD + ' ' + hh + mm + ss
} }
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import detailDialog from './cardDetail'
// import {memberCardDetails} from "@/api/test"; // import {memberCardDetails} from "@/api/test";
export default { export default {
data() { data() {
...@@ -170,7 +191,7 @@ export default { ...@@ -170,7 +191,7 @@ export default {
src: './images/yiquan.jpg', src: './images/yiquan.jpg',
inputSwitch: true, inputSwitch: true,
dataSwitch: true, dataSwitch: true,
tryNum: '', tryNum: 30,
effectiveNum: '', effectiveNum: '',
data: '', data: '',
ruleForm: { ruleForm: {
...@@ -212,7 +233,8 @@ export default { ...@@ -212,7 +233,8 @@ export default {
getListApi: this.$apis.equityApi.getEquityCardList, getListApi: this.$apis.equityApi.getEquityCardList,
// getListApi: none, // getListApi: none,
searchForm: { searchForm: {
merchantName: '' merchantName: '',
cardClassName:''
}, },
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -260,9 +282,10 @@ export default { ...@@ -260,9 +282,10 @@ export default {
}, },
{ {
label: '领卡用户', label: '领卡用户',
prop: 'recipientCount' prop: 'recipientCount',
// width: 110, // width: 110,
// tagLabel: true // tagLabel: true
addHtml: 'recipientCount'
}, },
{ {
label: '状态', label: '状态',
...@@ -283,7 +306,9 @@ export default { ...@@ -283,7 +306,9 @@ export default {
} }
} }
}, },
components: {
detailDialog
},
mounted() { mounted() {
this.list = this.states.map(item => { this.list = this.states.map(item => {
return { value: `value:${item}`, label: `label:${item}` } return { value: `value:${item}`, label: `label:${item}` }
...@@ -300,11 +325,15 @@ export default { ...@@ -300,11 +325,15 @@ export default {
this.hasTryNum = true this.hasTryNum = true
} else { } else {
this.hasTryNum = false this.hasTryNum = false
this.tryNum = '' this.tryNum = 30
} }
} }
}, },
methods: { methods: {
handleDetail(row){
this.$refs.detailDetailRef.show(row);
// this.getcardRecordList()
},
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
if (!this.$refs.table.data.length) { if (!this.$refs.table.data.length) {
...@@ -423,7 +452,7 @@ export default { ...@@ -423,7 +452,7 @@ export default {
if (row.tryAble == 1) { if (row.tryAble == 1) {
;(this.value = true), (this.tryNum = row.tryNum) ;(this.value = true), (this.tryNum = row.tryNum)
} else { } else {
;(this.value = false), (this.tryNum = '') ;(this.value = false), (this.tryNum = 30)
} }
// 禁用门店框 // 禁用门店框
...@@ -442,7 +471,7 @@ export default { ...@@ -442,7 +471,7 @@ export default {
if (row.tryAble == 1) { if (row.tryAble == 1) {
;(this.value = true), (this.tryNum = row.tryNum) ;(this.value = true), (this.tryNum = row.tryNum)
} else { } else {
;(this.value = false), (this.tryNum = '') ;(this.value = false), (this.tryNum =30)
} }
}, },
addCard(cd) { addCard(cd) {
...@@ -489,6 +518,7 @@ export default { ...@@ -489,6 +518,7 @@ export default {
selectStore(e) { selectStore(e) {
if (e == 'reset') { if (e == 'reset') {
this.searchForm.merchantName = '' this.searchForm.merchantName = ''
this.searchForm.cardClassName = ''
this.$apis.equityApi.getEquityCardList(this.searchForm).then(res => { this.$apis.equityApi.getEquityCardList(this.searchForm).then(res => {
this.$refs.recordTable.refreshTable() 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!