合并内容

master
lemon橪 2022-02-16 11:26:01 +08:00
commit a220339fd6
5 changed files with 38 additions and 12 deletions

View File

@ -7,7 +7,7 @@
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px" /> <Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px" />
</Form-item> </Form-item>
<Form-item label="审核状态" prop="applyStatus"> <Form-item label="审核状态" prop="applyStatus">
<Select v-model="searchForm.memberName" clearable style="width: 200px"> <Select v-model="searchForm.applyStatus" clearable style="width: 200px">
<Option value="APPLY">申请中</Option> <Option value="APPLY">申请中</Option>
<Option value="VIA_AUDITING">审核通过(提现成功)</Option> <Option value="VIA_AUDITING">审核通过(提现成功)</Option>
<Option value="FAIL_AUDITING">审核拒绝</Option> <Option value="FAIL_AUDITING">审核拒绝</Option>

View File

@ -5,14 +5,14 @@
ref="searchForm" ref="searchForm"
:model="searchForm" :model="searchForm"
inline inline
:label-width="70" :label-width="75"
class="search-form mb_10" class="search-form mb_10"
> >
<Form-item label="活动名称" prop="couponName"> <Form-item label="优惠券名称" prop="couponName">
<Input <Input
type="text" type="text"
v-model="searchForm.couponName" v-model="searchForm.couponName"
placeholder="请输入活动名称" placeholder="请输入优惠券名称"
clearable clearable
style="width: 200px" style="width: 200px"
/> />
@ -349,6 +349,7 @@ export default {
getPlatformCouponList(this.searchForm).then((res) => { getPlatformCouponList(this.searchForm).then((res) => {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
console.log(res)
this.data = res.result.records; this.data = res.result.records;
this.total = res.result.total; this.total = res.result.total;
} }

View File

@ -219,6 +219,7 @@ export default {
getFullDiscountList(this.searchForm).then((res) => { getFullDiscountList(this.searchForm).then((res) => {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
console.log(res)
this.data = res.result.records; this.data = res.result.records;
this.total = res.result.total; this.total = res.result.total;
} }

View File

@ -256,8 +256,8 @@ export const lowGoods = params => {
}; };
// 获取商品单位列表 // 获取商品单位列表
export const getGoodsUnitList = () => { export const getGoodsUnitList = params => {
return getRequest(`/goods/goodsUnit`); return getRequest(`/goods/goodsUnit`,params);
}; };
//根据分类id获取关联品牌 //根据分类id获取关联品牌
export const getCategoryBrandListDataSeller = (category_id, params) => { export const getCategoryBrandListDataSeller = (category_id, params) => {

View File

@ -67,12 +67,14 @@
prop="goodsUnit" prop="goodsUnit"
> >
<Select v-model="baseInfoForm.goodsUnit" style="width: 100px"> <Select v-model="baseInfoForm.goodsUnit" style="width: 100px">
<Scroll :on-reach-bottom="handleReachBottom" >
<Option <Option
v-for="(unit, i) in goodsUnitList" v-for="(item, index) in goodsUnitList"
:key="i" :key="index"
:value="unit" :value="item"
>{{ unit }} >{{ item }}
</Option> </Option>
</Scroll>
</Select> </Select>
</FormItem> </FormItem>
<FormItem <FormItem
@ -602,6 +604,7 @@ export default {
}; };
return { return {
regular, regular,
total:0,
accessToken: "", //token accessToken: "", //token
goodsParams: "", goodsParams: "",
categoryId: "", // id categoryId: "", // id
@ -686,6 +689,10 @@ export default {
value: [regular.REQUIRED, regular.VARCHAR60], value: [regular.REQUIRED, regular.VARCHAR60],
templateId: [regular.REQUIRED], templateId: [regular.REQUIRED],
}, },
params:{
pageNumber:1,
pageSize:10
},
skuInfoRules: {}, skuInfoRules: {},
/** 品牌列表 */ /** 品牌列表 */
brandList: [], brandList: [],
@ -863,12 +870,23 @@ export default {
this.brandList = response; this.brandList = response;
} }
); );
},
//
handleReachBottom(){
setTimeout(() => {
if (this.params.pageNumber * this.params.pageSize <= this.total) {
this.params.pageNumber++;
this.GET_GoodsUnit();
}
}, 1000);
}, },
// //
GET_GoodsUnit() { GET_GoodsUnit() {
API_GOODS.getGoodsUnitList().then((res) => { API_GOODS.getGoodsUnitList(this.params).then((res) => {
if (res.success) { if (res.success) {
this.goodsUnitList = res.result.records.map((i) => i.name); console.log(res)
this.goodsUnitList.push(...res.result.records.map((i) => i.name));
this.total = res.result.total;
} }
}); });
}, },
@ -1476,3 +1494,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./addGoods.scss"; @import "./addGoods.scss";
</style> </style>
<style>
.ivu-select .ivu-select-dropdown{
overflow: hidden !important;
}
</style>