Commit cc3ac5ac by 王志慧

fix:修补bug

1 parent 2b5bdf8d
......@@ -77,6 +77,16 @@ const exportGiftInfoApi = params => {
// 编辑-选择定向礼包列表
const getDirectionalGiftListApi = params => {
params.method = 'scrm.api.coupon.directional.gift.coupon.list'
// params.method = 'scrm.api.coupon.gh.group.equity.coupon.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
const getghDirectionalGiftListApi = params => {
// params.method = 'scrm.api.coupon.directional.gift.coupon.list'
params.method = 'scrm.api.coupon.gh.group.equity.coupon.list'
return http({
......@@ -85,7 +95,7 @@ const getDirectionalGiftListApi = params => {
data: params,
sign: true
})
}
}
const insertGiftApi = params => {
params.method = 'scrm.api.coupon.directional.gift.create'
......@@ -109,4 +119,4 @@ const templateModal = params => {
})
}
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi, getReceivedGiftInfoApi, exportGiftInfoApi, getDirectionalGiftListApi, insertGiftApi, templateModal }
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi, getReceivedGiftInfoApi, exportGiftInfoApi, getDirectionalGiftListApi, insertGiftApi, templateModal ,getghDirectionalGiftListApi }
......@@ -27,9 +27,13 @@
<template slot="orderType" slot-scope="scope">
<span>{{ scope.scope.orderType == 1 ? '套餐' : '权益卡' }}</span>
</template>
<template slot="amount">
<template slot="amount">
<span>1</span>
</template>
<template slot="totalPrice" slot-scope="scope">
<span>{{ scope.scope.originalPrice * 1 }}</span>
</template>
<template slot="orderStatus" slot-scope="scope">
<span>{{ scope.scope.orderStatus == 2 ? '待收货' : scope.scope.orderStatus == 3 ? '已完成' : scope.scope.orderStatus == 4 ? '售后中' : scope.scope.orderStatus == 5 ? '退款失败' : scope.scope.orderStatus == 6 ? '已退款' : '' }}</span>
</template>
......@@ -162,8 +166,8 @@ export default {
},
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '数量', name: 'amount',addHtml: 'amount' },
{ thColspan: 1, tdColspan: 2, label: '小计/元', name: 'totalPrice' }
{ thColspan: 1, tdColspan: 2, label: '数量', name: 'amount', addHtml: 'amount' },
{ thColspan: 1, tdColspan: 2, label: '小计/元', name: 'totalPrice', addHtml: 'totalPrice' }
]
},
{
......
......@@ -23,6 +23,9 @@
<span slot="effectiveType" slot-scope="scope">
<span>{{ toLabelText(scope.scope) }}</span>
</span>
<span slot="stock" slot-scope="scope">
<span>{{ scope.scope.limitStockFlag == 1 ? scope.scope.stock : '无限制' }}</span>
</span>
<span slot="useType" slot-scope="scope">
<span>{{ toRestrictLabelText(scope.scope) }}</span>
</span>
......@@ -31,6 +34,9 @@
<span slot="effectiveType" slot-scope="scope">
<span>{{ toLabelText(scope.scope) }}</span>
</span>
<span slot="stock" slot-scope="scope">
<span>{{ scope.scope.limitStockFlag == 1 ? scope.scope.stock : '无限制' }}</span>
</span>
<span slot="useType" slot-scope="scope">
<span>{{ toCashRestrictLabelText(scope.scope) }}</span>
</span>
......@@ -39,6 +45,9 @@
<span slot="effectiveType" slot-scope="scope">
<span>{{ toLabelText(scope.scope) }}</span>
</span>
<span slot="stock" slot-scope="scope">
<span>{{ scope.scope.limitStockFlag == 1 ? scope.scope.stock : '无限制' }}</span>
</span>
<span slot="useType">
<span>-</span>
</span>
......@@ -47,6 +56,9 @@
<span slot="effectiveType" slot-scope="scope">
<span>{{ toLabelText(scope.scope) }}</span>
</span>
<span slot="stock" slot-scope="scope">
<span>{{ scope.scope.limitStockFlag == 1 ? scope.scope.stock : '无限制' }}</span>
</span>
<span slot="useType">
<span>-</span>
</span>
......@@ -142,13 +154,6 @@ export default {
label: '名称',
prop: 'couponName'
},
// {
// label: '预估成本/元',
// prop: 'anticipatedCost',
// formatter: cellValue => {
// return (cellValue.anticipatedCost / 100).toFixed(2)
// }
// },
{
label: '有效期',
prop: 'effectiveType',
......@@ -156,8 +161,8 @@ export default {
},
{
label: '可用次数',
prop: 'effectiveType',
addHtml: 'effectiveType'
prop: 'useType',
addHtml: 'useType'
},
{
label: '适用范围',
......@@ -172,7 +177,8 @@ export default {
},
{
label: '剩余库存',
prop: 'residueAmount'
prop: 'stock',
addHtml: 'stock'
}
]
}
......@@ -236,7 +242,7 @@ export default {
}
this.loading = true
this.$apis.giftBag
.getDirectionalGiftListApi(params)
.getghDirectionalGiftListApi(params)
.then(res => {
// 重置分页组件
if (this.$refs[this.activeName + 'Ref'] && isResetPage) {
......
......@@ -143,7 +143,7 @@ export default {
{
label: '套餐名称',
prop: 'packageName',
width: 200
width: 220
},
{
label: '套餐售价/元',
......@@ -152,13 +152,12 @@ export default {
{
label: '说明',
prop: 'notes',
width: 200,
width: 300,
line: 4
},
{
label: '售出数量',
prop: 'buyNumber',
line: 1
prop: 'buyNumber'
},
{
label: '状态',
......@@ -227,8 +226,7 @@ export default {
let { activetab, accountLevel } = this
const saleParam = {
label: '售出数量',
prop: 'buyNumber',
width: 140
prop: 'buyNumber'
}
const referencePrice = {
label: '套餐总价',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!