diff --git a/src/api/hard/hard-spu-repertory.ts b/src/api/hard/hard-spu-repertory.ts
index 4519dc6..6b65e91 100644
--- a/src/api/hard/hard-spu-repertory.ts
+++ b/src/api/hard/hard-spu-repertory.ts
@@ -1,8 +1,8 @@
import request from "/@/utils/request"
-export function select(query?: Object) {
+export function pageJoin(query?: Object) {
return request({
- url: "/hard/hard-spu-repertory/select",
+ url: "/hard/hard-spu-repertory/page-join",
method: "get",
params: query,
})
diff --git a/src/views/hard/hard-order/index.vue b/src/views/hard/hard-order/index.vue
index 0399ef1..01d6d7e 100644
--- a/src/views/hard/hard-order/index.vue
+++ b/src/views/hard/hard-order/index.vue
@@ -10,7 +10,7 @@
-
+
diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue
index d6cad2f..4efaf55 100644
--- a/src/views/hard/hard-sh/index.vue
+++ b/src/views/hard/hard-sh/index.vue
@@ -21,7 +21,7 @@
-
+
diff --git a/src/views/hard/hard-spu-repertory/form.vue b/src/views/hard/hard-spu-repertory/form.vue
index 34034c8..4c8f9e9 100644
--- a/src/views/hard/hard-spu-repertory/form.vue
+++ b/src/views/hard/hard-spu-repertory/form.vue
@@ -41,7 +41,7 @@ const form = reactive({
userId: "",
hardId: "",
spuId: "",
- count: "",
+ count: 5,
})
// 定义校验规则
diff --git a/src/views/hard/hard-spu-repertory/index.vue b/src/views/hard/hard-spu-repertory/index.vue
index 4a2f989..aa397d5 100644
--- a/src/views/hard/hard-spu-repertory/index.vue
+++ b/src/views/hard/hard-spu-repertory/index.vue
@@ -36,11 +36,59 @@
@sort-change="sortChangeHandle"
>
-
-
-
-
-
+
+
+
+
+ {{ row.username }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.spuName }}
+
+
+
+
+
+
+ {{ row.spuCategoryName }}
+
+
+
+
+
+
+
+
+ {{ row.merchantName }}
+
+
+
+
+
+
+ {{ row.hardName }}
+
+
+
+
+
+ {{ row.hardDoorNumber }}层
+
+
+
import { BasicTableProps, useTable } from "/@/hooks/table"
-import { fetchList, delObjs } from "/@/api/hard/hard-spu-repertory"
+import * as hardSpuRepertory from "/@/api/hard/hard-spu-repertory"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
// 定义查询字典
-
+const { hard_spu_repertory_type } = useDict("hard_spu_repertory_type")
// 定义变量内容
const formDialogRef = ref()
// 搜索变量
@@ -86,7 +134,7 @@ const multiple = ref(true)
const state: BasicTableProps = reactive({
queryForm: {},
- pageList: fetchList,
+ pageList: hardSpuRepertory.pageJoin,
})
// table hook
@@ -121,7 +169,7 @@ const handleDelete = async (ids: string[]) => {
}
try {
- await delObjs(ids)
+ await hardSpuRepertory.delObjs(ids)
getDataList()
useMessage().success("删除成功")
} catch (err: any) {
@@ -129,3 +177,57 @@ const handleDelete = async (ids: string[]) => {
}
}
+
+
diff --git a/src/views/hard/hard-spu/form.vue b/src/views/hard/hard-spu/form.vue
index f4b8625..362dfa4 100644
--- a/src/views/hard/hard-spu/form.vue
+++ b/src/views/hard/hard-spu/form.vue
@@ -10,7 +10,7 @@
- 商品层数
+ 放置层数
@@ -101,7 +101,7 @@ const form = reactive({
salesCount: 0,
repertoryCount: 0,
sort: 0,
- hardDoorNumber: "",
+ hardDoorNumber: 1,
status: "1",
isDefault: "0",
})
diff --git a/src/views/hard/hard-spu/index.vue b/src/views/hard/hard-spu/index.vue
index 485dfc5..04d38ff 100644
--- a/src/views/hard/hard-spu/index.vue
+++ b/src/views/hard/hard-spu/index.vue
@@ -42,6 +42,11 @@
{{ row.merchantName }}
+
+
+ {{ row.hardDoorNumber }}层
+
+
{{ row.hardName }}