diff --git a/apis/apis.js b/apis/apis.js index ac3940e..b6cf087 100644 --- a/apis/apis.js +++ b/apis/apis.js @@ -734,8 +734,8 @@ const authManage = { const searchProjUsing = { async fetchProjUsingList(data = {}, header = {}) { - return await Http.post( - HttpConfig.basePath, + return await Http.get( + HttpConfig.materialPath, HttpConfig.serviceUrl.searchProjUsing.fetchProjUsingList, data, header diff --git a/apis/http.js b/apis/http.js index 03504e9..2c4cbca 100644 --- a/apis/http.js +++ b/apis/http.js @@ -145,7 +145,7 @@ class HttpConfig { subDel: '/appMenu/delMenuById', // 提交删除模块 }, searchProjUsing: { - fetchProjUsingList: '/leaseOutDetails/proUseRecord', // 获取工程在用列表 + fetchProjUsingList: '/projUsingRecord/getProjUsingRecordList', // 获取工程在用列表 }, searchFetchRecord: { fetchRecordList: '/leaseOutDetails/leaseOutRecord', // 获取领用记录列表 @@ -166,7 +166,7 @@ class HttpConfig { }, preCrashExam: { fetchPreCrashList: '/scrap/getScrapApplyList', //获取预报废审核列表 - fetchPreCrashDetail: '/scrap/getScrapAuditListApp', //获取预报废审核列表详情 + fetchPreCrashDetail: '/scrap/getScrapRefuseList', //获取预报废审核列表详情 submitPreExam: '/scrap/forecastWasteAudit', //提交审核 }, preCrashList: { diff --git a/manifest.json b/manifest.json index 769297a..7760bcb 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "智慧仓储", "appid" : "__UNI__9D122E1", "description" : "", - "versionName" : "1.1.5", - "versionCode" : 115, + "versionName" : "1.1.6", + "versionCode" : 116, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -44,7 +44,8 @@ "", "", "" - ] + ], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] }, /* ios打包配置 */ "ios" : { diff --git a/package.json b/package.json index c2e7a60..347bf50 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,16 @@ "qs": "^6.11.2", "uni-read-pages": "^1.0.5", "uni-simple-router": "^2.0.8-beta.4" - } + }, + "name": "smartstorage", + "version": "1.0.0", + "main": "main.js", + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "description": "" } diff --git a/pages/exitMaterialSelect/exitMaterialSelect.vue b/pages/exitMaterialSelect/exitMaterialSelect.vue index dcafb20..dfe2cfd 100644 --- a/pages/exitMaterialSelect/exitMaterialSelect.vue +++ b/pages/exitMaterialSelect/exitMaterialSelect.vue @@ -166,27 +166,41 @@ import { basePath } from '../../public'; companyId: item['companyId'] } }) - console.log(that.submitList); // 提交退料清单 - that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => { - console.log(res); - if (res.data.code == 200) { - uni.showToast({ - icon: 'none', - title: res.data.msg, - success: () => { - uni.navigateBack() - } - }) - } else { - uni.showToast({ - icon: 'none', - title: res.data.msg - }) - } - }).catch(err => { - console.log(err); + let setArr = [] + that.submitList.backApplyDetails.forEach(list => { + setArr.push(list.companyId) }) + let set = new Set(setArr) + console.log(set.size); + if (set.size == 1) { + that.submitList.companyId = that.submitList.backApplyDetails[0].companyId + console.log(that.submitList); + that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => { + console.log(res); + if (res.data.code == 200) { + uni.showToast({ + icon: 'none', + title: res.data.msg, + success: () => { + uni.navigateBack() + } + }) + } else { + uni.showToast({ + icon: 'none', + title: res.data.msg + }) + } + }).catch(err => { + console.log(err); + }) + } else { + uni.showToast({ + icon: 'none', + title: '无法同时退料机具设备和调试设备!' + }) + } } } }) diff --git a/pages/fetchExam/fetchExam.vue b/pages/fetchExam/fetchExam.vue index 3fd4c44..c6f1e20 100644 --- a/pages/fetchExam/fetchExam.vue +++ b/pages/fetchExam/fetchExam.vue @@ -1,5 +1,8 @@