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 @@