Commit cc3ac5ac by 王志慧

fix:修补bug

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