商品列表,商品给分组列表接口增加参数
This commit is contained in:
parent
07d02ada45
commit
510122921e
|
|
@ -41,11 +41,11 @@
|
||||||
<view class="goods-list u-p-30">
|
<view class="goods-list u-p-30">
|
||||||
<template v-if="pageData.goodsList.length">
|
<template v-if="pageData.goodsList.length">
|
||||||
<view class="u-m-b-32" v-for="(item,index) in pageData.goodsList" :key="index">
|
<view class="u-m-b-32" v-for="(item,index) in pageData.goodsList" :key="index">
|
||||||
<my-goods :key="item.id" @update="getGoodsList" @changePrice="changePriceShow" @changeClick="goodsChangeClick"
|
<my-goods :key="item.id" @update="getGoodsList" @changePrice="changePriceShow"
|
||||||
@edit="toGoodsDetail"
|
@changeClick="goodsChangeClick" @edit="toGoodsDetail" @editStock="changeStockShow"
|
||||||
@editStock="changeStockShow" @guigeClick="editGuigeShow" @baosun="baosunShow"
|
@guigeClick="editGuigeShow" @baosun="baosunShow" @radioClick="goodsRadioClick" :index="index"
|
||||||
@radioClick="goodsRadioClick" :index="index" :data="item" @del="goodsDel"
|
:data="item" @del="goodsDel" :showChecked="showChecked"
|
||||||
:showChecked="showChecked" :showDetail="pageData.showGoodsDetail"></my-goods>
|
:showDetail="pageData.showGoodsDetail"></my-goods>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="pageData.hasAjax&&!pageData.goodsList.length">
|
<template v-if="pageData.hasAjax&&!pageData.goodsList.length">
|
||||||
|
|
@ -150,7 +150,9 @@
|
||||||
watch
|
watch
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import go from '@/commons/utils/go.js';
|
import go from '@/commons/utils/go.js';
|
||||||
import {hasPermission} from '@/commons/utils/hasPermission.js';
|
import {
|
||||||
|
hasPermission
|
||||||
|
} from '@/commons/utils/hasPermission.js';
|
||||||
import myGoods from './components/goods.vue'
|
import myGoods from './components/goods.vue'
|
||||||
import myControl from './components/control.vue'
|
import myControl from './components/control.vue'
|
||||||
import myCategory from './components/category.vue'
|
import myCategory from './components/category.vue'
|
||||||
|
|
@ -191,9 +193,12 @@
|
||||||
query: {
|
query: {
|
||||||
page: 0,
|
page: 0,
|
||||||
size: 10,
|
size: 10,
|
||||||
|
createdAt: [],
|
||||||
|
id: "",
|
||||||
categoryId: '',
|
categoryId: '',
|
||||||
name: '',
|
name: '',
|
||||||
isPauseSale: '',
|
isPauseSale: '',
|
||||||
|
sort: "createdAt,desc",
|
||||||
isGrounding: ''
|
isGrounding: ''
|
||||||
},
|
},
|
||||||
category: '',
|
category: '',
|
||||||
|
|
@ -393,6 +398,7 @@
|
||||||
pageData.totalElements = res.totalElements
|
pageData.totalElements = res.totalElements
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function watchEmitInit() {
|
function watchEmitInit() {
|
||||||
uni.$off('update:productIndex')
|
uni.$off('update:productIndex')
|
||||||
uni.$on('update:productIndex', (data) => {
|
uni.$on('update:productIndex', (data) => {
|
||||||
|
|
@ -425,6 +431,7 @@
|
||||||
pageData.reportData = pageData.goodsList[index]
|
pageData.reportData = pageData.goodsList[index]
|
||||||
reportDamage.value.open();
|
reportDamage.value.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
function returnGoodsStockData() {
|
function returnGoodsStockData() {
|
||||||
return reactive({
|
return reactive({
|
||||||
sort: 0,
|
sort: 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue