diff --git a/src/pages.json b/src/pages.json index 3fb7dcd..0f653a3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -347,6 +347,12 @@ "navigationBarTitleText": "出货分类" } }, + { + "path": "user", + "style": { + "navigationBarTitleText": "人员管理" + } + }, { "path": "components/addSupplierType", "style": { @@ -394,6 +400,12 @@ "style": { "navigationBarTitleText": "新增库存卡" } + }, + { + "path": "components/addUser", + "style": { + "navigationBarTitleText": "新增人员" + } } ] } diff --git a/src/pagesApp/components/addReceiveProduct.vue b/src/pagesApp/components/addReceiveProduct.vue index fbea25f..2631f03 100644 --- a/src/pagesApp/components/addReceiveProduct.vue +++ b/src/pagesApp/components/addReceiveProduct.vue @@ -51,7 +51,9 @@ @select="(v: any) => handleSelect(item.childKey, v)" @close="contrlModalParams[item.childKey].isShow = false" :closeOnClickAction="true" + :scroll="true" > + @@ -151,12 +153,12 @@ const handleSelect = (key: string, v: any) => { const save = () => { if (model1.formData.id) { GoodsApi.EditReceiveProduct(model1.formData).then((res) => { - if (res.code === 200) { - uni.redirectTo({ - url: "/pagesApp/receiveProduct", // 要跳转到的页面路径 - }); - } - }); + if (res.code === 200) { + uni.redirectTo({ + url: "/pagesApp/receiveProduct", // 要跳转到的页面路径 + }); + } + }); } else { GoodsApi.addReProducts(model1.formData).then((res) => { if (res.code === 200) { @@ -168,15 +170,12 @@ const save = () => { } }; - const getTypeList = () => { - GoodsApi.getPage({ pageNum: 1, pageSize: 10 }).then((res) => { + GoodsApi.allReCategory().then((res) => { if (res.code === 200) { - contrlModalParams.reCategory.list = (res.data as any).list.map( - (item: any) => { - return { ...item, name: item.reCategoryName }; - } - ); + contrlModalParams.reCategory.list = (res.data as any).map((item: any) => { + return { ...item, name: item.reCategoryName }; + }); } }); }; diff --git a/src/pagesApp/components/addShipmentType.vue b/src/pagesApp/components/addShipmentType.vue index 979c524..09ac4f2 100644 --- a/src/pagesApp/components/addShipmentType.vue +++ b/src/pagesApp/components/addShipmentType.vue @@ -83,20 +83,28 @@ const rules = ref({ }, }); const contrlModalParams = reactive({ - cardType: { + parent: { isShow: false, title: "标题", list: [{ - id: 1, - name: '出库卡' - },{ - id: 2, - name: '入库卡' + id: 0, + name: '主分类' }], } }); const formAttrList = reactive([ + { + name: "上级菜单", + key: "parentName", + type: "select", + required: true, + childKey: "parent", + fn: () => { + contrlModalParams.parent.isShow = true; + contrlModalParams.parent.title = "库存卡类型"; + }, + }, { name: "出货分类", key: "shmCategoryName", @@ -107,9 +115,9 @@ const formAttrList = reactive([ const handleSelect = (key: string, v: any) => { contrlModalParams[key].isShow = false; - if (key === "cardType") { - model1.formData.typeName = v.name; - model1.formData.type = v.id; + if (key === "parent") { + model1.formData.parentName = v.name; + model1.formData.parentId = v.id; } }; @@ -123,7 +131,7 @@ const save = () => { } }); } else { - GoodsApi.addShmCategory({...model1.formData, parentId: 0}).then((res) => { + GoodsApi.addShmCategory({...model1.formData}).then((res) => { if (res.code === 200) { uni.redirectTo({ url: "/pagesApp/shipmentType", // 要跳转到的页面路径 diff --git a/src/pagesApp/components/addUser.vue b/src/pagesApp/components/addUser.vue new file mode 100644 index 0000000..d95a781 --- /dev/null +++ b/src/pagesApp/components/addUser.vue @@ -0,0 +1,216 @@ + + + diff --git a/src/pagesApp/receiveProduct.vue b/src/pagesApp/receiveProduct.vue index a3c780a..5eb50bb 100644 --- a/src/pagesApp/receiveProduct.vue +++ b/src/pagesApp/receiveProduct.vue @@ -72,7 +72,7 @@ const getList = () => { let params: any = { pageSize: 10, pageNum: 1, - name: state.name, + reProductsName: state.name, }; GoodsApi.getReceiveProductListByPage(params).then((res) => { if (res.code === 200) { diff --git a/src/pagesApp/user.vue b/src/pagesApp/user.vue new file mode 100644 index 0000000..e1d771e --- /dev/null +++ b/src/pagesApp/user.vue @@ -0,0 +1,139 @@ + + + diff --git a/src/pagesHome/index.vue b/src/pagesHome/index.vue index bee8dfe..845c563 100644 --- a/src/pagesHome/index.vue +++ b/src/pagesHome/index.vue @@ -293,15 +293,6 @@ const appList = reactive([ }); }, }, - { - icon: "02.png", - title: "出货补单", - fn: () => { - uni.navigateTo({ - url: "/pagesApp/shipmentSpl", // 要跳转到的页面路径 - }); - }, - }, { icon: "03.png", title: "收货明细", @@ -311,15 +302,6 @@ const appList = reactive([ }); }, }, - { - icon: "04.png", - title: "出货明细", - fn: () => { - uni.navigateTo({ - url: "/pagesApp/shipmentDetail", // 要跳转到的页面路径 - }); - }, - }, { icon: "05.png", title: "收货作废", @@ -329,15 +311,6 @@ const appList = reactive([ }); }, }, - { - icon: "06.png", - title: "出货作废", - fn: () => { - uni.navigateTo({ - url: "/pagesApp/shipmentCl", // 要跳转到的页面路径 - }); - }, - }, { icon: "07.png", title: "供应商管理", @@ -347,6 +320,36 @@ const appList = reactive([ }); }, }, + { + icon: "02.png", + title: "出货补单", + fn: () => { + uni.navigateTo({ + url: "/pagesApp/shipmentSpl", // 要跳转到的页面路径 + }); + }, + }, + + { + icon: "04.png", + title: "出货明细", + fn: () => { + uni.navigateTo({ + url: "/pagesApp/shipmentDetail", // 要跳转到的页面路径 + }); + }, + }, + + { + icon: "06.png", + title: "出货作废", + fn: () => { + uni.navigateTo({ + url: "/pagesApp/shipmentCl", // 要跳转到的页面路径 + }); + }, + }, + { icon: "08.png", title: "客户管理", @@ -384,30 +387,39 @@ const appList = reactive([ }, }, { - icon: "12.png", - title: "支付明细", + icon: "18.png", + title: "出货分类", fn: () => { - // uni.navigateTo({ - // url: "/pagesApp/shipmentDetail", // 要跳转到的页面路径 - // }); - }, - }, - { - icon: "13.png", - title: "收入明细", - fn: () => { - // uni.navigateTo({ - // url: "/pagesApp/receiveCl", // 要跳转到的页面路径 - // }); + uni.navigateTo({ + url: "/pagesApp/shipmentType", // 要跳转到的页面路径 + }); }, }, + // { + // icon: "12.png", + // title: "支付明细", + // fn: () => { + // // uni.navigateTo({ + // // url: "/pagesApp/shipmentDetail", // 要跳转到的页面路径 + // // }); + // }, + // }, + // { + // icon: "13.png", + // title: "收入明细", + // fn: () => { + // // uni.navigateTo({ + // // url: "/pagesApp/receiveCl", // 要跳转到的页面路径 + // // }); + // }, + // }, { icon: "14.png", title: "人员管理", fn: () => { - // uni.navigateTo({ - // url: "/pagesApp/shipmentCl", // 要跳转到的页面路径 - // }); + uni.navigateTo({ + url: "/pagesApp/user", // 要跳转到的页面路径 + }); }, }, { @@ -420,16 +432,7 @@ const appList = reactive([ }, }, { - icon: "16.png", - title: "库存卡管理", - fn: () => { - uni.navigateTo({ - url: "/pagesApp/stockCard", // 要跳转到的页面路径 - }); - }, - }, - { - icon: "16.png", + icon: "17.png", title: "供应商分类", fn: () => { uni.navigateTo({ @@ -439,13 +442,15 @@ const appList = reactive([ }, { icon: "16.png", - title: "出货分类", + title: "库存卡管理", fn: () => { uni.navigateTo({ - url: "/pagesApp/shipmentType", // 要跳转到的页面路径 + url: "/pagesApp/stockCard", // 要跳转到的页面路径 }); }, }, + + ]); const tabMenuList = reactive([ diff --git a/src/pagesHome/static/17.png b/src/pagesHome/static/17.png new file mode 100644 index 0000000..d5ca9ce Binary files /dev/null and b/src/pagesHome/static/17.png differ diff --git a/src/pagesHome/static/18.png b/src/pagesHome/static/18.png new file mode 100644 index 0000000..d7c20c5 Binary files /dev/null and b/src/pagesHome/static/18.png differ diff --git a/src/services/goods.ts b/src/services/goods.ts index 905aa4b..e564e59 100644 --- a/src/services/goods.ts +++ b/src/services/goods.ts @@ -36,6 +36,14 @@ export const getPage = (data: any) => { }) } +// 收货分类查询所有 +export const allReCategory = () => { + return http({ + method: 'GET', + url: '/api/recategory/allReCategory', + }) +} + // 收货分类修改信息 export const editReceiveCategory = (data: any) => { return http({ diff --git a/src/static/style/common.scss b/src/static/style/common.scss index 10c4705..2b36649 100644 --- a/src/static/style/common.scss +++ b/src/static/style/common.scss @@ -1,4 +1,3 @@ - body { } .c-layout { @@ -30,4 +29,9 @@ body { } .mt-30 { margin-top: 30rpx; -} \ No newline at end of file +} + +.u-action-sheet > view:nth-child(2) { + height: 600rpx; + overflow-y: auto; +} diff --git a/src/types/user.d.ts b/src/types/user.d.ts index 4095a12..325cb62 100644 --- a/src/types/user.d.ts +++ b/src/types/user.d.ts @@ -19,6 +19,7 @@ interface User { updateUserName: string; isDeleted: boolean; cardCode?: string; // 卡号 + roleVos?: array } interface Customer {