From a999ac3192891e1ae78282befa295eddaf004d54 Mon Sep 17 00:00:00 2001 From: FrancisHu <2756004617@qq.com> Date: Tue, 16 Jul 2024 17:54:01 +0800 Subject: [PATCH] =?UTF-8?q?7.16=E5=AE=81=E5=A4=8F=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=AC=E5=91=8A-=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E4=B8=8A=E6=8B=89=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/apis.js | 18 +- apis/http.js | 8 +- manifest.json | 4 +- pages.json | 2 +- .../backMaterialReceive.vue | 18 +- .../backMaterialReceiveDetail.vue | 165 +++++++++++++++--- pages/fetchExam/fetchExam.vue | 17 +- pages/index/index.vue | 159 +++++++++++++++-- pages/newInStore/newInStore.vue | 43 +++-- pages/preCrashExam/preCrashExam.vue | 17 +- 10 files changed, 381 insertions(+), 70 deletions(-) diff --git a/apis/apis.js b/apis/apis.js index 661d637..ac3940e 100644 --- a/apis/apis.js +++ b/apis/apis.js @@ -95,7 +95,23 @@ const index = { data, header ) - } + }, + async fetchNotice (data = {} , header = {}){ + return await Http.get( + HttpConfig.systemPath, + HttpConfig.serviceUrl.index.fetchNotice, + data, + header + ) + }, + async uploadNotice (data = {} , header = {}){ + return await Http.post( + HttpConfig.systemPath, + HttpConfig.serviceUrl.index.uploadNotice, + data, + header + ) + }, } const fetchMaterial = { diff --git a/apis/http.js b/apis/http.js index 06546dc..a9c97b8 100644 --- a/apis/http.js +++ b/apis/http.js @@ -3,8 +3,8 @@ class HttpConfig { baseUrl = "/api" // #endif // #ifdef APP-PLUS - baseUrl = "http://112.29.103.165:21624" - // baseUrl = "http://192.168.0.14:21624" + // baseUrl = "http://112.29.103.165:21624" + baseUrl = "http://192.168.0.14:21624" // baseUrl = "http://112.29.103.165:21626" // baseUrl = "http://172.20.10.3:8080" // baseUrl = "http://10.40.92.8:8080" @@ -41,6 +41,8 @@ class HttpConfig { keyData: '/app/getCriticalData', // 获取关键数据 getUserInfo: '/user/getInfo', // 获取用户信息 fetchCompanyName: '/dept/getCompanyByAncestors', // 获取公司名称 + fetchNotice: '/notice/getList', // 获取未读公告 + uploadNotice: '/notice/addUserId', // 将公告置为已读 }, fetchMaterial: { fetchMaterialList: '/type/selectMaTypeListByLevelIndex', // 获取设备列表 @@ -163,7 +165,7 @@ class HttpConfig { infoByCode: '/machine/getMachineByQrCode', // 首页根据二维码查询设备信息 }, preCrashExam: { - fetchPreCrashList: '/scrap/getScrapApplyListApp', //获取预报废审核列表 + fetchPreCrashList: '/scrap/getScrapApplyList', //获取预报废审核列表 fetchPreCrashDetail: '/scrap/getScrapAuditListApp', //获取预报废审核列表详情 submitPreExam: '/scrap/forecastWasteAudit', //提交审核 }, diff --git a/manifest.json b/manifest.json index b5aecdf..769297a 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "智慧仓储", "appid" : "__UNI__9D122E1", "description" : "", - "versionName" : "1.1.4", - "versionCode" : 114, + "versionName" : "1.1.5", + "versionCode" : 115, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages.json b/pages.json index 67b894b..e118abb 100644 --- a/pages.json +++ b/pages.json @@ -291,7 +291,7 @@ "titleNView": { "buttons": [ { - "text": "结束任务", + "text": "完成退料", "fontSize": "12px", "color": "#4e6ef2", "width": "auto" diff --git a/pages/backMaterialReceive/backMaterialReceive.vue b/pages/backMaterialReceive/backMaterialReceive.vue index 7c5b282..8317d0b 100644 --- a/pages/backMaterialReceive/backMaterialReceive.vue +++ b/pages/backMaterialReceive/backMaterialReceive.vue @@ -97,6 +97,9 @@ import { basePath } from '../../public' export default { data() { return { + pageNum: 1, + pageSize: 10, + pageTotal: 0, allChecked: false, fetchMaterialList: [ @@ -241,8 +244,11 @@ import { basePath } from '../../public' // 获取退料接收列表 that.$api.backMaterialReceive.backMaterialReceiveList({ companyId: uni.getStorageSync('userInfo').sysUser.companyId, - flag: 0, - keyWord + flag: 1, + keyWord, + backSource: 2, + pageNum: that.pageNum, + pageSize: that.pageSize }).then(res => { console.log(res); if (res.data.code == 200) { @@ -252,7 +258,8 @@ import { basePath } from '../../public' title: '未查询到相关数据!' }) } else { - that.fetchMaterialList = res.data.data + that.pageTotal = res.data.data.total + that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows] console.log("fetchMaterialList",that.fetchMaterialList) } } else { @@ -271,6 +278,11 @@ import { basePath } from '../../public' }, onShow() { this.getList('') + }, + onReachBottom() { + if (this.fetchMaterialList.length >= this.pageTotal) return; + this.pageNum++ + this.getList(this.exitIpt) } } diff --git a/pages/backMaterialReceiveDetail/backMaterialReceiveDetail.vue b/pages/backMaterialReceiveDetail/backMaterialReceiveDetail.vue index ee1b759..1a96db2 100644 --- a/pages/backMaterialReceiveDetail/backMaterialReceiveDetail.vue +++ b/pages/backMaterialReceiveDetail/backMaterialReceiveDetail.vue @@ -1,17 +1,44 @@