|
|
@@ -147,6 +147,7 @@ onActivated(() => { |
|
|
|
console.log('onActivated内层') |
|
|
|
getAgenCy() |
|
|
|
getEquity() |
|
|
|
getCoupon() |
|
|
|
equityDescriptionShow.value = false |
|
|
|
nextTick(() => { |
|
|
|
equityDescriptionShow.value = true |
|
|
@@ -467,6 +468,23 @@ function submit(data: any) { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const couponList = ref([]) |
|
|
|
function getCoupon() { |
|
|
|
BaseService.post('/managew/api/equity/coupon/enableList', {}).then( |
|
|
|
(res: any) => { |
|
|
|
if (res && res.statusCode === 0) { |
|
|
|
//数据转换 |
|
|
|
let bizContent = res.data |
|
|
|
couponList.value = bizContent.map((item) => { |
|
|
|
return { label: item.couponName, value: item.id } |
|
|
|
}) |
|
|
|
console.log(couponList.value, 'couponList.value') |
|
|
|
} else { |
|
|
|
ElMessage.error(res.message) |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
const agencyIdList = ref([]) |
|
|
|
function getAgenCy() { |
|
|
|
BaseService.post('/userw/agency/agencyqueryall', {}).then((res: any) => { |
|
|
@@ -879,11 +897,12 @@ let field = ref({ |
|
|
|
{ |
|
|
|
prop: 'couponId', |
|
|
|
label: '卡券', |
|
|
|
listData: couponList, |
|
|
|
form: { |
|
|
|
width: '45%', |
|
|
|
formLabelWidth: formLabelWidth, |
|
|
|
type: 'select', |
|
|
|
listData: equityData, |
|
|
|
listData: couponList, |
|
|
|
required: true, |
|
|
|
hideEdit: true, |
|
|
|
}, |