feat: 商品规格功能调整

This commit is contained in:
duan
2025-02-21 14:41:43 +08:00
parent dc5f664143
commit 43ae9f371d
17 changed files with 954 additions and 140 deletions

View File

@@ -86,7 +86,7 @@
</template>
<!-- 新增添加商品 -->
<myDialog title="选择商品" width="50%" ref="myDialogRef" @Confirm="subitgood">
<page-search ref="searchRef" :search-config="searchConfig2" @query-click="handleQueryClick"
<page-search ref="searchRefs" :search-config="searchConfig2" @query-click="searchs"
@reset-click="handleResetClick" />
<page-content ref="contentRefs" :content-config="contentConfig2" @add-click="handleAddClick"
@edit-click="handleEditClick" @export-click="handleExportClick" @search-click="handleSearchClick"
@@ -168,10 +168,13 @@ import myDialog from '@/components/mycomponents/myDialog.vue'
import selectGoodslist from "./goodsGroupconfig/selectGoodslist.vue"
const {
searchRef,
searchRefs,
contentRef,
contentRefs,
addModalRef,
editModalRef,
handleQueryClick,
searchs,
handleResetClick,
// handleAddClick,
// handleEditClick,
@@ -181,6 +184,7 @@ const {
handleFilterChange,
} = usePage();
// 新增
async function handleAddClick() {
addModalRef.value?.setModalVisible();
@@ -191,7 +195,6 @@ async function handleAddClick() {
// addModalConfig.formItems[4]!.options = await RoleAPI.getOptions();
}
const myDialogRef = ref(null)
const contentRefs = ref(null)
const myDialogRefAdd = ref(null)
const elFormref = ref(null)
let title = ref("新增分组")
@@ -205,6 +208,7 @@ let forms = reactive({
sort: 1,
time: ""
})
// 添加商品
function addgoods() {
myDialogRef.value.open()

View File

@@ -7,7 +7,12 @@ const contentConfig: IContentConfig = {
showOverflowTooltip: true,
},
toolbar: [],
pagination: {
background: true,
layout: "prev,pager,next,jumper,total,sizes",
pageSize: 10,
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
return UserAPI.getPage(params);
},