diff --git a/src/api/hard/hard-manager.ts b/src/api/hard/hard-manager.ts index ef11bb3..76fa206 100644 --- a/src/api/hard/hard-manager.ts +++ b/src/api/hard/hard-manager.ts @@ -1,49 +1,56 @@ import request from "/@/utils/request" +export function select(query?: Object) { + return request({ + url: "/hard/hard-manager/select", + method: "get", + params: query, + }) +} + export function pageJoin(query?: Object) { - return request({ - url: '/hard/hard-manager/page-join', - method: 'get', - params: query - }) + return request({ + url: "/hard/hard-manager/page-join", + method: "get", + params: query, + }) } export function fetchList(query?: Object) { - return request({ - url: '/hard/hard-manager/page', - method: 'get', - params: query - }) + return request({ + url: "/hard/hard-manager/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/hard/hard-manager', - method: 'post', - data: obj - }) + return request({ + url: "/hard/hard-manager", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/hard/hard-manager/' + id, - method: 'get' - }) + return request({ + url: "/hard/hard-manager/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/hard/hard-manager', - method: 'delete', - data: ids - }) + return request({ + url: "/hard/hard-manager", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/hard/hard-manager', - method: 'put', - data: obj - }) + return request({ + url: "/hard/hard-manager", + method: "put", + data: obj, + }) } - diff --git a/src/api/hard/hard-spu-category.ts b/src/api/hard/hard-spu-category.ts index a1d6d8f..a515c74 100644 --- a/src/api/hard/hard-spu-category.ts +++ b/src/api/hard/hard-spu-category.ts @@ -1,5 +1,13 @@ import request from "/@/utils/request" +export function select(query?: Object) { + return request({ + url: "/hard/hard-spu-category/select", + method: "get", + params: query, + }) +} + export function fetchList(query?: Object) { return request({ url: "/hard/hard-spu-category/page", diff --git a/src/api/hard/hard-spu.ts b/src/api/hard/hard-spu.ts index 3e60c0f..b11df26 100644 --- a/src/api/hard/hard-spu.ts +++ b/src/api/hard/hard-spu.ts @@ -1,5 +1,13 @@ import request from "/@/utils/request" +export function pageJoin(query?: Object) { + return request({ + url: "/hard/hard-spu/page-join", + method: "get", + params: query, + }) +} + export function fetchList(query?: Object) { return request({ url: "/hard/hard-spu/page", diff --git a/src/components/Select/SelectHard.vue b/src/components/Select/SelectHard.vue new file mode 100644 index 0000000..50cea9c --- /dev/null +++ b/src/components/Select/SelectHard.vue @@ -0,0 +1,115 @@ + + + diff --git a/src/components/Select/SelectHardSpuCategory.vue b/src/components/Select/SelectHardSpuCategory.vue new file mode 100644 index 0000000..7244784 --- /dev/null +++ b/src/components/Select/SelectHardSpuCategory.vue @@ -0,0 +1,117 @@ + + + diff --git a/src/components/Select/SelectMch.vue b/src/components/Select/SelectMch.vue index ef5f724..e9e0b06 100644 --- a/src/components/Select/SelectMch.vue +++ b/src/components/Select/SelectMch.vue @@ -15,7 +15,7 @@
{{ v.name }}
-
+
{{ v.deptName }} diff --git a/src/components/Select/SelectMchRule.vue b/src/components/Select/SelectMchRule.vue index db21d9d..f02ff95 100644 --- a/src/components/Select/SelectMchRule.vue +++ b/src/components/Select/SelectMchRule.vue @@ -13,7 +13,7 @@ >
-
+
超过 diff --git a/src/components/Select/SelectWalletType.vue b/src/components/Select/SelectWalletType.vue index 5aaa64f..8b7d545 100644 --- a/src/components/Select/SelectWalletType.vue +++ b/src/components/Select/SelectWalletType.vue @@ -16,7 +16,7 @@
{{ v.name }}
-
+
{{ state.walletType.find((i: any) => i.value == v.uniqueCode)?.label }} @@ -68,8 +68,6 @@ const state = reactive({ watch( selectId, (newVal, oldValue) => { - console.log(newVal, "newVal") - if (newVal == oldValue) return state.selectId = newVal getOptions() @@ -88,7 +86,7 @@ async function getOptions() { state.options = data.records ?? [] if (props.autoFirst && state.options.length != 0) { state.selectId = state.options[0].id - emit("change", state.selectId) + emit("change", selectId) } const { wallet_type } = useDict("wallet_type") state.walletType = wallet_type diff --git a/src/components/Select/selectHardGroup.vue b/src/components/Select/selectHardGroup.vue index f6f14a8..1c00765 100644 --- a/src/components/Select/selectHardGroup.vue +++ b/src/components/Select/selectHardGroup.vue @@ -12,7 +12,7 @@ @visible-change="(e: boolean) => e && getOptions()" > -
+
{{ v.name }}
diff --git a/src/components/index.ts b/src/components/index.ts index 07d5514..fe17499 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -21,10 +21,12 @@ import SelectMch from "/@/components/Select/SelectMch.vue" import SelectDept from "/@/components/Select/SelectDept.vue" import SelectCtcg from "/@/components/Select/SelectCtcg.vue" import SelectCtcgol from "/@/components/Select/SelectCtcgol.vue" -import SelectHardGroup from "/@/components/Select/selectHardGroup.vue" +import SelectHardGroup from "/@/components/Select/SelectHardGroup.vue" import SelectHandlerUser from "/@/components/Select/SelectHandlerUser.vue" import SelectSupplier from "/@/components/Select/SelectSupplier.vue" import SelectMchRule from "/@/components/Select/SelectMchRule.vue" +import SelectHardSpuCategory from "/@/components/Select/SelectHardSpuCategory.vue" +import SelectHard from "/@/components/Select/SelectHard.vue" import TreeMultipleSelect from "/@/components/TreeMultipleSelect/index.vue" // 第三方组件 @@ -63,6 +65,8 @@ export default { app.component("PreviewImage", PreviewImage) app.component("DraggableDepTree", DraggableDepTree) app.component("TreeMultipleSelect", TreeMultipleSelect) + app.component("SelectHard", SelectHard) + app.component("SelectHardSpuCategory", SelectHardSpuCategory) app.component("SelectUser", SelectUser) app.component("SelectWalletType", SelectWalletType) diff --git a/src/views/hard/hard-spu-category/form.vue b/src/views/hard/hard-spu-category/form.vue index 1c4cfaa..060accb 100644 --- a/src/views/hard/hard-spu-category/form.vue +++ b/src/views/hard/hard-spu-category/form.vue @@ -15,7 +15,7 @@ diff --git a/src/views/hard/hard-spu-repertory/index.vue b/src/views/hard/hard-spu-repertory/index.vue index aeaf442..4a2f989 100644 --- a/src/views/hard/hard-spu-repertory/index.vue +++ b/src/views/hard/hard-spu-repertory/index.vue @@ -4,7 +4,7 @@
- 新 增 + 更新库存 - - + + - - - + + + - - + + + + + + + - - + + + + + + - + - - - - + + + - - - - - - - - - - - - - - + - + + - - + + + {{ v.label }} + + + + + + + + + + {{ v.label }} + + @@ -63,8 +81,7 @@ \ No newline at end of file + openDialog, +}) +