Commit 3896f360 by cwq0219

产品-发券宝

1 parent c53c533c
import request from './request'
const path = 'dj.api.life.merchant.'
export function getList(data) {
data.method = `${path}coupon.list`
return request(data)
}
export function addCouponApi(data) {
data.method = 'dj.api.life.coupon.info.add'
return request(data, 'post')
}
export function deleteCouponApi(data) {
data.method = `${path}coupon.delete`
return request(data)
}
export function updateCouponApi(data) {
data.method = `${path}coupon.update`
return request(data, 'post')
}
......@@ -34,7 +34,7 @@
align="center"
>
<template slot-scope="scope">
<span :class="{'red': !scope.row.isSetUpgradeSettleRule}">{{scope.row.yqMerchantName}}</span>
<span :class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{scope.row.yqMerchantName}}</span>
</template>
</el-table-column>
<el-table-column
......@@ -43,7 +43,7 @@
align="center"
>
<template slot-scope="scope">
<span :class="{'red': !scope.row.isSetUpgradeSettleRule}">{{scope.row.merchantName}}</span>
<span :class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{scope.row.merchantName}}</span>
<el-tooltip
v-if="!scope.row.isSetUpgradeSettleRule"
popper-class="tooltip-class"
......@@ -51,7 +51,7 @@
content="该门店无配置财务分润规则,无法关联!"
placement="top"
>
<span v-if="!scope.row.isSetUpgradeSettleRule" class="tip-icon">?</span>
<span v-if="!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)" class="tip-icon">?</span>
</el-tooltip>
</template></el-table-column>
</el-table>
......@@ -110,6 +110,7 @@ export default {
return {
selectedData: [],
selectingData: [],
needTip: ['editProduct'],
// 分页
total: 0,
currentPage: 1,
......
......@@ -350,7 +350,14 @@ export const resources = {
authId: '9030602',
parentId: '90306',
label: '停用',
handle: 'handleCancel'
handle: 'handleDisabled',
ruleObj: {
attr: 'enabledFlag',
rule: {
'Y': '停用',
'N': '启用'
}
}
}, {
authId: '9030603',
parentId: '90306',
......
<!-- 被选中门店展示 -->
<template>
<div>
<el-table
:data="tableData"
style="width: 690px"
border
class="store-table"
>
<el-table-column
label="序号"
align="center"
type='index'
width="64px"
>
</el-table-column>
<el-table-column
prop="yqMerchantName"
label="园区店名称"
align="center"
>
</el-table-column>
<el-table-column
prop="merchantName"
label="4s店名称"
align="center"
>
</el-table-column>
<el-table-column
prop="merchantId"
label="商户编号"
align="center"
>
</el-table-column>
<el-table-column
prop="userType"
label="商户类型"
align="center"
>
<template slot-scope="scope">
<span>{{baseData[scope.row.channelType === 2 ? 'ghUserTypeList' : 'userTypeList'][scope.row.userType]}}</span>
</template>
</el-table-column>
<el-table-column
label="删除"
align="center"
>
<template slot-scope="scope">
<el-button
class="el-icon-delete"
@click="handleDelete(scope.row)"
type="text"
>
</el-button>
</template>
</el-table-column>
<el-table-column
label="券码数量(张)"
align="center"
width="160px"
>
<template slot-scope="scope">
<slot name="num" :scope="{row: scope.row, index: scope.$index}"></slot>
<!-- <el-input-number
v-model="scope.row.amount"
:min="1"
:max="999"
size="mini"
></el-input-number> -->
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
import { userType, ghUserType } from '@/common/constants.js'
export default {
name: 'selectedShowTable',
data() {
return {
// 基本数据
baseData: {
userTypeList: userType,
ghUserTypeList: ghUserType
}
}
},
props: {
tableData: {
type: Array,
default: () => []
}
},
components: {},
computed: {},
mounted() { },
methods: {
handleDelete(row) {
this.$confirm('是否确认删除该门店?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$emit('handleTableStoreDelete', row)
})
}
}
}
</script>
<style scoped>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!