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