diff --git a/src/PagesStatistics/components/TimeDialog.vue b/src/PagesStatistics/components/TimeDialog.vue deleted file mode 100644 index 4bf11dc..0000000 --- a/src/PagesStatistics/components/TimeDialog.vue +++ /dev/null @@ -1,167 +0,0 @@ - - - diff --git a/src/PagesStatistics/customerRanking.vue b/src/PagesStatistics/customerRanking.vue index 5607584..2e8d4f1 100644 --- a/src/PagesStatistics/customerRanking.vue +++ b/src/PagesStatistics/customerRanking.vue @@ -60,7 +60,7 @@ /> diff --git a/src/components/NavBar/NavBar.vue b/src/components/NavBar/NavBar.vue index 46f1fe3..97ebcab 100644 --- a/src/components/NavBar/NavBar.vue +++ b/src/components/NavBar/NavBar.vue @@ -12,7 +12,7 @@ @@ -22,37 +22,36 @@ - diff --git a/src/pagesApp/components/addCustomer.vue b/src/pagesApp/components/addCustomer.vue index f312323..5d6c884 100644 --- a/src/pagesApp/components/addCustomer.vue +++ b/src/pagesApp/components/addCustomer.vue @@ -273,7 +273,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addIncomeDetail.vue b/src/pagesApp/components/addIncomeDetail.vue index 2f200d6..4e0f447 100644 --- a/src/pagesApp/components/addIncomeDetail.vue +++ b/src/pagesApp/components/addIncomeDetail.vue @@ -309,7 +309,7 @@ const handleUpload = () => { ...(res.data as any), businessId: model1.order.id, imagesType: ImagesType.NORMARL, // 普通资源 - orderType: OrderType.Income, // 收入明细 + orderType: OrderType.Income, // 收款明细 }); } }) @@ -420,7 +420,8 @@ const handleTime = (v: any) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addPayment.vue b/src/pagesApp/components/addPayment.vue index 76a5d2a..41151bd 100644 --- a/src/pagesApp/components/addPayment.vue +++ b/src/pagesApp/components/addPayment.vue @@ -428,7 +428,7 @@ const handleUpload = () => { ...(res.data as any), businessId: model1.order.id, imagesType: ImagesType.NORMARL, // 普通资源 - orderType: OrderType.Pay, // 收入明细 + orderType: OrderType.Pay, // 收款明细 }); } }) @@ -542,7 +542,8 @@ const handleTime = (v: any) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addReceiveProduct.vue b/src/pagesApp/components/addReceiveProduct.vue index b726d62..b31244a 100644 --- a/src/pagesApp/components/addReceiveProduct.vue +++ b/src/pagesApp/components/addReceiveProduct.vue @@ -349,7 +349,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addReceiveType.vue b/src/pagesApp/components/addReceiveType.vue index 547f017..4270bd8 100644 --- a/src/pagesApp/components/addReceiveType.vue +++ b/src/pagesApp/components/addReceiveType.vue @@ -190,7 +190,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addRole.vue b/src/pagesApp/components/addRole.vue index fcf2380..6cc8720 100644 --- a/src/pagesApp/components/addRole.vue +++ b/src/pagesApp/components/addRole.vue @@ -259,7 +259,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addShipmentProduct.vue b/src/pagesApp/components/addShipmentProduct.vue index c5a3615..61e2110 100644 --- a/src/pagesApp/components/addShipmentProduct.vue +++ b/src/pagesApp/components/addShipmentProduct.vue @@ -267,7 +267,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addShipmentType.vue b/src/pagesApp/components/addShipmentType.vue index 02cb097..587e766 100644 --- a/src/pagesApp/components/addShipmentType.vue +++ b/src/pagesApp/components/addShipmentType.vue @@ -231,7 +231,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addStockCard.vue b/src/pagesApp/components/addStockCard.vue index 812852f..81d3963 100644 --- a/src/pagesApp/components/addStockCard.vue +++ b/src/pagesApp/components/addStockCard.vue @@ -209,7 +209,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addSupplier.vue b/src/pagesApp/components/addSupplier.vue index 00b0ce4..79068d9 100644 --- a/src/pagesApp/components/addSupplier.vue +++ b/src/pagesApp/components/addSupplier.vue @@ -412,7 +412,8 @@ onLoad((option: any) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addSupplierType.vue b/src/pagesApp/components/addSupplierType.vue index ec358f3..8d3280c 100644 --- a/src/pagesApp/components/addSupplierType.vue +++ b/src/pagesApp/components/addSupplierType.vue @@ -190,7 +190,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; +width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/components/addUser.vue b/src/pagesApp/components/addUser.vue index 0bfb50b..782cc37 100644 --- a/src/pagesApp/components/addUser.vue +++ b/src/pagesApp/components/addUser.vue @@ -3,7 +3,7 @@ + + + + - + { model1.formData[item.key] = temp; }, 10); } - if (item.key === "password") { - const temp = e?.replace(valid.valid_no_cn, ""); - setTimeout(() => { - (model1.formData as any)[item.key] = temp; - }, 10); - } }; const model1 = reactive({ - formData: {}, + formData: { + gender: 1 + }, }); const rules1 = ref({ "formData.roleName": { @@ -101,30 +112,16 @@ const rules1 = ref({ message: "请选择用户角色", trigger: ["blur", "change"], }, - "formData.userName": { + "formData.name": { type: "string", required: true, - message: "请输入账号", + message: "请输入姓名", trigger: ["blur", "change"], }, - "formData.password": { + "formData.phone": { type: "string", required: true, - message: "请输入密码", - trigger: ["blur", "change"], - }, -}); -const rules2 = ref({ - "formData.roleName": { - type: "string", - required: true, - message: "请选择用户角色", - trigger: ["blur", "change"], - }, - "formData.userName": { - type: "string", - required: true, - message: "请输入账号", + message: "请输入手机号", trigger: ["blur", "change"], }, }); @@ -155,16 +152,22 @@ const formAttrList1 = reactive([ name: "姓名", key: "name", type: "input", + required: true, }, { name: "性别", - key: "genderName", - type: "select", - childKey: "gender", - fn: () => { - contrlModalParams.gender.isShow = true; - contrlModalParams.gender.title = "选择性别"; - }, + key: "gender", + type: "radio", + child: [ + { + id: 1, + name: "男", + }, + { + id: 2, + name: "女", + }, + ], }, { name: "用户角色", @@ -178,74 +181,18 @@ const formAttrList1 = reactive([ }, }, { - name: "账号", - key: "userName", - type: "input", - required: true, - }, - { - name: "密码", - key: "password", - type: "input", - required: true, - }, - { - name: "联系手机", + name: "手机号", key: "phone", type: "input", - }, -]); - -const formAttrList2 = reactive([ - { - name: "姓名", - key: "name", - type: "input", - }, - { - name: "性别", - key: "genderName", - type: "select", - childKey: "gender", - fn: () => { - contrlModalParams.gender.isShow = true; - contrlModalParams.gender.title = "选择性别"; - }, - }, - { - name: "用户角色", - key: "roleName", - type: "select", - childKey: "role", - required: true, - fn: () => { - contrlModalParams.role.isShow = true; - contrlModalParams.role.title = "选择角色"; - }, - }, - { - name: "账号", - key: "userName", - type: "input", required: true, }, - { - name: "联系手机", - key: "phone", - type: "input", - }, ]); - const handleSelect = (key: string, v: any) => { contrlModalParams[key].isShow = false; if (key === "role") { model1.formData.roleName = v.name; model1.formData.roleIds = [v.id]; } - if (key === "gender") { - model1.formData.genderName = v.name; - model1.formData.gender = v.id; - } }; const form = ref(); @@ -273,17 +220,6 @@ const save = () => { return; } } - if (!model1.formData.id) { - if (model1.formData.password) { - if (!valid.valid_password.pattern.test(model1.formData.password)) { - uni.showToast({ - icon: "none", - title: valid.valid_password.message, - }); - return; - } - } - } check().then((res) => { if (res) { @@ -295,7 +231,7 @@ const save = () => { const startSave = () => { if (model1.formData.id) { ProfileApi.updateUserById({ - name: model1.formData.name, + name: model1.formData.name, id: model1.formData.id, roleIds: model1.formData.roleIds, userName: model1.formData.userName, @@ -330,15 +266,19 @@ onMounted(() => { getRoleList(); }); -onLoad((option) => { +onLoad((option: any) => { // 接收传递的标题参数; - const title = (option as any).title; - const obj = JSON.parse((option as any).item); - model1.formData = { ...obj, genderName: ["未知", "男", "女"][obj.gender] }; - if (obj.roleVos.length > 0) { - model1.formData.roleIds = [obj.roleVos[0].id]; - model1.formData.roleName = obj.roleVos[0].roleName; + const title = option.title; + if (option.item) { + const obj = JSON.parse(option.item); + model1.formData = { ...obj, genderName: ["未知", "男", "女"][obj.gender] }; + debugger + if (obj.roleVos.length > 0) { + model1.formData.roleIds = [obj.roleVos[0].id]; + model1.formData.roleName = obj.roleVos[0].roleName; + } } + // 设置页面标题; if (title) { uni.setNavigationBarTitle({ @@ -368,7 +308,8 @@ onLoad((option) => { box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); border-radius: 13rpx 13rpx 0rpx 0rpx; padding: 25rpx 50rpx; - position: sticky; + position: fixed; + width: calc(100vw - 100rpx); bottom: 0rpx; z-index: 999; ::v-deep button { diff --git a/src/pagesApp/customerMgt.vue b/src/pagesApp/customerMgt.vue index 8f4dff5..b040951 100644 --- a/src/pagesApp/customerMgt.vue +++ b/src/pagesApp/customerMgt.vue @@ -11,7 +11,6 @@ @search="handleSearch()" @clear="handleSearch()" > - 新增 + + + + { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const add = () => { uni.navigateTo({ diff --git a/src/pagesApp/incomeDetail.vue b/src/pagesApp/incomeDetail.vue index 81b9460..2e869be 100644 --- a/src/pagesApp/incomeDetail.vue +++ b/src/pagesApp/incomeDetail.vue @@ -113,7 +113,7 @@ import { FinanceApi } from "@/services"; import PageView from "@/components/PageView/index.vue"; import { formatDate, getCurrentMonthStartAndEnd } from "@/utils"; -import TimeDialog from "./components/TimeDialog.vue"; +import TimeDialog from "@/components/Dialog/TimeDialog.vue"; import FilterDialog from "./components/CustomFilterDialog.vue"; import { onShow } from "@dcloudio/uni-app"; @@ -190,7 +190,7 @@ const resetPageList = () => { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const handleSearch = () => { resetPageList(); diff --git a/src/pagesApp/paymentDetail.vue b/src/pagesApp/paymentDetail.vue index 4835b19..d1cba4b 100644 --- a/src/pagesApp/paymentDetail.vue +++ b/src/pagesApp/paymentDetail.vue @@ -108,7 +108,7 @@ import { FinanceApi } from "@/services"; import PageView from "@/components/PageView/index.vue"; import { formatDate, getCurrentMonthStartAndEnd } from "@/utils"; -import TimeDialog from "./components/TimeDialog.vue"; +import TimeDialog from "@/components/Dialog/TimeDialog.vue"; import FilterDialog from "./components/CustomFilterDialog.vue"; import { onShow } from "@dcloudio/uni-app"; @@ -194,7 +194,7 @@ const resetPageList = () => { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const handleSearch = () => { resetPageList(); diff --git a/src/pagesApp/receiveCl.vue b/src/pagesApp/receiveCl.vue index 62fa78e..8d4f956 100644 --- a/src/pagesApp/receiveCl.vue +++ b/src/pagesApp/receiveCl.vue @@ -160,7 +160,7 @@ const resetPageList = () => { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const handleSearch = () => { diff --git a/src/pagesApp/receiveDetail.vue b/src/pagesApp/receiveDetail.vue index 3051d11..e24c6ce 100644 --- a/src/pagesApp/receiveDetail.vue +++ b/src/pagesApp/receiveDetail.vue @@ -159,7 +159,7 @@ import { getCurrentMonthStartAndEnd, filterNullUndefined, } from "@/utils"; -import TimeDialog from "./components/TimeDialog.vue"; +import TimeDialog from "@/components/Dialog/TimeDialog.vue"; import FilterDialog from "./components/FilterDialog.vue"; const showDialog = < { @@ -350,7 +350,7 @@ const resetPageList = () => { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const handleOk = (obj: any) => { diff --git a/src/pagesApp/receiveProduct.vue b/src/pagesApp/receiveProduct.vue index 1d4584d..2cab7fb 100644 --- a/src/pagesApp/receiveProduct.vue +++ b/src/pagesApp/receiveProduct.vue @@ -11,7 +11,6 @@ @search="handleSearch()" @clear="handleSearch()" > - 新增 + + + + { deleteId.value = id; }; const handleOk = () => { - update({id: deleteId.value}) + update({ id: deleteId.value }); }; const state = reactive({ name: "", @@ -74,7 +77,7 @@ const pageList: PageResult<{ reProductsName: string; minPrice: number; maxPrice: number; - id: number + id: number; }> = reactive({ isLoading: false, noMoreData: false, @@ -88,7 +91,7 @@ const resetPageList = () => { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const handleSearch = () => { resetPageList(); @@ -96,7 +99,6 @@ const handleSearch = () => { }; const update = (item: any) => { - GoodsApi.deleteReceiveProduct({ id: item.id }).then((res) => { if (res.code === 200) { resetPageList(); @@ -127,7 +129,7 @@ const getList = (v?: boolean) => { reProductsName: state.name, }; pageList.isLoading = true; - GoodsApi.getReceiveProductListByPage(params).then((res:any) => { + GoodsApi.getReceiveProductListByPage(params).then((res: any) => { if (res.code === 200) { pageList.isLoading = false; (pageList as any).list = (pageList as any).list = pageList.list.concat( @@ -143,7 +145,7 @@ const add = () => { }); }; onShow(() => { - resetPageList() + resetPageList(); getList(); }); diff --git a/src/pagesApp/receiveSpl.vue b/src/pagesApp/receiveSpl.vue index 3bd577d..db24c65 100644 --- a/src/pagesApp/receiveSpl.vue +++ b/src/pagesApp/receiveSpl.vue @@ -32,7 +32,12 @@ :customStyle="{}" border="none" :disabled="item.disabled || item.type === 'select'" - :disabledColor="['补单时间','站点磅秤','供应商','收货产品'].indexOf(item.name) > -1?'#ffffff':'#f5f7fa'" + :disabledColor=" + ['补单时间', '站点磅秤', '供应商', '收货产品'].indexOf(item.name) > + -1 + ? '#ffffff' + : '#f5f7fa' + " @change="(e:any) => {handleInput(e, item)}" @clear="handleClear(item)" > @@ -84,7 +89,9 @@ > - - { - (model1.order as any)[item.key] = ''; -} +const handleClear = (item: any) => { + (model1.order as any)[item.key] = ""; +}; // 供应商选择 const showDialog = < { [key: string]: boolean; } >reactive({ - showSupplier: false, showProduct: false, }); @@ -148,11 +146,6 @@ const handleDialog = (key: string, v: boolean) => { showDialog[key] = v; }; -const changeUser = (obj: any) => { - model1.order.userName = obj.name; // 供应商名称 - model1.order.userId = obj.id; // 供应商Id, -}; - // 收货产品选择 const changeProduct = (obj: any) => { model1.order.productName = obj.reProductsName; // 收货产品名称 @@ -226,7 +219,8 @@ const model1 = reactive({ splTime: "", subtractType: 1, netWeight: 0, - totalPrice: 0 + totalPrice: 0, + repairTime: formatDate(new Date(), "{y}-{m}-{d} {h}:{i}:{s}"), }, }); const rules = reactive({ @@ -287,11 +281,6 @@ const contrlModalParams = reactive({ title: "标题", list: [], }, - user: { - isShow: false, - title: "标题", - list: [], - }, product: { isShow: false, title: "标题", @@ -326,14 +315,12 @@ const formAttrList = reactive([ name: "供应商", key: "userName", type: "select", - childKey: "user", required: true, unit: "", fn: () => { - // contrlModalParams.user.isShow = true; - // contrlModalParams.user.title = "供应商"; - handleDialog("showSupplier", true); - uni.hideKeyboard(); + uni.navigateTo({ + url: `/pagesApp/supplierOrCustomerList?isShipment=false`, + }); }, }, { @@ -350,8 +337,6 @@ const formAttrList = reactive([ required: true, unit: "", fn: () => { - // contrlModalParams.product.isShow = true; - // contrlModalParams.product.title = "收货产品"; handleDialog("showProduct", true); uni.hideKeyboard(); }, @@ -436,7 +421,9 @@ watch( 预估总价: 结算单价*结算重量 实际收入:实际结算金额-运费-杂费 */ - model1.order.netWeight = ((parseFloat(grossWeightNew) || 0) - (parseFloat(tareNew) || 0)).toFixed(2); + model1.order.netWeight = ( + (parseFloat(grossWeightNew) || 0) - (parseFloat(tareNew) || 0) + ).toFixed(2); if (model1.order.buttonType === 0) { if (model1.order.subtractNum) { model1.order.netWeight = @@ -448,9 +435,10 @@ watch( model1.order.netWeight * ((100 - model1.order.subtractNum) / 100); } } - model1.order.totalPrice = - Math.floor((model1.order.price || 0) * (model1.order.netWeight || 0)) ; - // 实际付款默认=预估总价,当系统自动算出预估总价时,值需同步 + model1.order.totalPrice = Math.floor( + (model1.order.price || 0) * (model1.order.netWeight || 0) + ); + // 实际付款默认=预估总价,当系统自动算出预估总价时,值需同步 model1.order.balanceTotalPrice = model1.order.totalPrice; } ); @@ -495,10 +483,7 @@ const handleUpload = () => { }; const handleSelect = (key: string, v: any) => { contrlModalParams[key].isShow = false; - if (key === "user") { - model1.order.userName = v.name; - model1.order.userId = v.id; - } else if (key === "product") { + if (key === "product") { model1.order.productName = v.name; model1.order.productId = v.id; } else if (key === "device") { @@ -506,12 +491,6 @@ const handleSelect = (key: string, v: any) => { model1.order.deviceId = v.id; } }; -// 供应商信息 -SupplierApi.getSupplierUserList({}).then((res) => { - if (res.code === 200) { - contrlModalParams.user.list = res.data; - } -}); // 产品信息 ReceiveProductApi.getAllReProducts().then((res) => { if (res.code === 200) { @@ -598,7 +577,7 @@ const startSave = () => { if (res.code === 200) { model1.order.id = res.data; upload(); - uni.navigateBack() + uni.navigateBack(); } }); }; @@ -606,6 +585,17 @@ const handleTime = (v: any) => { model1.order.repairTime = formatDate(v.value, "{y}-{m}-{d} {h}:{i}:{s}"); contrlModalParams.isShowSplTime = false; }; + +onLoad((option: any) => { + uni.$on("getSupplier", (data) => { + model1.order.userName = data.item.name; // 供应商名称 + model1.order.userId = data.item.id; // 供应商Id, + }); +}); + +onUnmounted(() => { + uni.$off("getSupplier", () => {}); +}); diff --git a/src/pagesApp/supplierType.vue b/src/pagesApp/supplierType.vue index fe0bc20..bdb9e79 100644 --- a/src/pagesApp/supplierType.vue +++ b/src/pagesApp/supplierType.vue @@ -11,7 +11,6 @@ @search="handleSearch()" @clear="handleSearch()" > - 新增 + + + { deleteId.value = id; }; const handleOk = () => { - deleteType({id: deleteId.value}) + deleteType({ id: deleteId.value }); }; const state = reactive({ name: "", @@ -77,7 +80,7 @@ const resetPageList = () => { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const add = () => { uni.navigateTo({ @@ -138,7 +141,7 @@ const getList = (v?: boolean) => { }; onShow(() => { - resetPageList() + resetPageList(); getList(); }); diff --git a/src/pagesApp/user.vue b/src/pagesApp/user.vue index 7558c0b..832a18b 100644 --- a/src/pagesApp/user.vue +++ b/src/pagesApp/user.vue @@ -11,7 +11,6 @@ @search="handleSearch()" @clear="handleSearch()" > - 新增 {{ item.name || item.userName }} - {{ item.phone || "-" }} - {{ + 手机号:{{ item.phone || "-" }} + 关联角色:{{ item.roleVos.length > 0 ? item.roleVos[0].roleName : "-" }} @@ -43,6 +42,10 @@ + + + + { pageList.total = 0; pageList.list = []; pageList.pageNum = 1; - pageList.pageSize = 10; + pageList.pageSize = 100; }; const handleSearch = () => { resetPageList(); diff --git a/src/pagesConfig/components/avatar-input.vue b/src/pagesConfig/components/avatar-input.vue new file mode 100644 index 0000000..edb1109 --- /dev/null +++ b/src/pagesConfig/components/avatar-input.vue @@ -0,0 +1,71 @@ + + + + diff --git a/src/pagesConfig/index.vue b/src/pagesConfig/index.vue new file mode 100644 index 0000000..e6235ba --- /dev/null +++ b/src/pagesConfig/index.vue @@ -0,0 +1,247 @@ +