feat: 隐藏多规格退款退回库存,修改所有page为1
This commit is contained in:
@@ -1,25 +1,17 @@
|
||||
<!-- 新增pad选菜页 -->
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog
|
||||
:title="`${preview ? '预览' : form.id ? '编辑' : '添加'}平板菜谱`"
|
||||
top="5vh"
|
||||
width="1000px"
|
||||
v-model="dialogVisible"
|
||||
:show-close="preview"
|
||||
>
|
||||
<el-dialog :title="`${preview ? '预览' : form.id ? '编辑' : '添加'}平板菜谱`" top="5vh" width="1000px" v-model="dialogVisible"
|
||||
:show-close="preview">
|
||||
<div class="content" v-loading="pageLoading">
|
||||
<div class="editor_wrap" :class="[`type${typeListActive}`]">
|
||||
<template v-if="typeListActive != 6">
|
||||
<div
|
||||
class="btn_wrap"
|
||||
:class="[`div${index + 1}`]"
|
||||
v-for="(item, index) in form.list"
|
||||
:key="index"
|
||||
@click="showSelectGoods(index)"
|
||||
>
|
||||
<div class="btn_wrap" :class="[`div${index + 1}`]" v-for="(item, index) in form.list" :key="index"
|
||||
@click="showSelectGoods(index)">
|
||||
<div class="btn" v-if="!item.id">
|
||||
<el-icon size="40" color="#dddfe6"><Plus /></el-icon>
|
||||
<el-icon size="40" color="#dddfe6">
|
||||
<Plus />
|
||||
</el-icon>
|
||||
</div>
|
||||
<div class="cover" v-else>
|
||||
<img class="img" :src="item.coverImg" />
|
||||
@@ -33,13 +25,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="goods_list" v-else>
|
||||
<div
|
||||
class="btn_wrap"
|
||||
:class="[`div${index + 1}`]"
|
||||
v-for="(item, index) in form.list"
|
||||
:key="index"
|
||||
@click="selectGoods(item)"
|
||||
>
|
||||
<div class="btn_wrap" :class="[`div${index + 1}`]" v-for="(item, index) in form.list" :key="index"
|
||||
@click="selectGoods(item)">
|
||||
<div class="info" :class="{ active: item.active }">
|
||||
<span class="t1">{{ item.name }}</span>
|
||||
<span class="t1">¥{{ item.lowPrice }}</span>
|
||||
@@ -61,12 +48,7 @@
|
||||
<el-button type="primary" :loading="loading" @click="submitHandle">保 存</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<GoodsSelect
|
||||
ref="refSelGoods"
|
||||
radio
|
||||
disableCategory
|
||||
@success="selectConfirmGoods"
|
||||
></GoodsSelect>
|
||||
<GoodsSelect ref="refSelGoods" radio disableCategory @success="selectConfirmGoods"></GoodsSelect>
|
||||
<!-- <shopList ref="shopList" disableCategory radio @success="selectConfirmGoods" /> -->
|
||||
</div>
|
||||
</template>
|
||||
@@ -109,7 +91,7 @@ export default {
|
||||
try {
|
||||
const res = await tbProduct({
|
||||
categoryId: this.category,
|
||||
page: 0,
|
||||
page: 1,
|
||||
size: 20,
|
||||
sort: "id",
|
||||
shopId: localStorage.getItem("shopId"),
|
||||
|
||||
@@ -11,13 +11,8 @@
|
||||
<div class="tree_wrap">
|
||||
<!-- <el-tree :data="treeData" node-key="id" highlight-current :props="{ label: 'name' }" default-expand-all
|
||||
@node-click="treeItemClick"></el-tree> -->
|
||||
<div
|
||||
class="item"
|
||||
:class="{ active: selectCatoryIndex == index }"
|
||||
v-for="(item, index) in treeData"
|
||||
:key="item.id"
|
||||
@click="treeItemClick(item, index)"
|
||||
>
|
||||
<div class="item" :class="{ active: selectCatoryIndex == index }" v-for="(item, index) in treeData"
|
||||
:key="item.id" @click="treeItemClick(item, index)">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -27,14 +22,7 @@
|
||||
<el-button type="primary" @click="addHandle">新建</el-button>
|
||||
</div>
|
||||
<div class="table" id="table_drag">
|
||||
<el-table
|
||||
ref="table"
|
||||
:data="tableData.list"
|
||||
border
|
||||
height="100%"
|
||||
v-loading="tableData.loading"
|
||||
row-key="id"
|
||||
>
|
||||
<el-table ref="table" :data="tableData.list" border height="100%" v-loading="tableData.loading" row-key="id">
|
||||
<el-table-column label="序号" type="index" width="80"></el-table-column>
|
||||
<el-table-column label="ID" prop="id" width="80"></el-table-column>
|
||||
<el-table-column label="菜品名称" prop="productNames"></el-table-column>
|
||||
@@ -55,14 +43,9 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="head-container">
|
||||
<el-pagination
|
||||
@size-change="paginationSizeChange"
|
||||
:total="tableData.total"
|
||||
:current-page="tableData.page"
|
||||
:page-size="tableData.size"
|
||||
@current-change="paginationChange"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
></el-pagination>
|
||||
<el-pagination @size-change="paginationSizeChange" :total="tableData.total" :current-page="tableData.page"
|
||||
:page-size="tableData.size" @current-change="paginationChange"
|
||||
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
<AddPadPage ref="AddPadPage" :category="selectCatory.id" @success="addSuccess" />
|
||||
@@ -183,7 +166,7 @@ export default {
|
||||
this.tableData.loading = true;
|
||||
try {
|
||||
const res = await paoductCategoryApi.getList({
|
||||
page: 0,
|
||||
page: 1,
|
||||
size: 100,
|
||||
});
|
||||
this.treeDataOrgin = res;
|
||||
|
||||
Reference in New Issue
Block a user