diff --git a/apis/http.js b/apis/http.js index 117fad0..95a7b76 100644 --- a/apis/http.js +++ b/apis/http.js @@ -3,9 +3,9 @@ class HttpConfig { baseUrl = "/api" // #endif // #ifdef APP-PLUS - // baseUrl = "http://112.29.103.165:21624" + baseUrl = "http://112.29.103.165:21624" // baseUrl = "http://192.168.0.14:21624" - baseUrl = "http://112.29.103.165:21626" + // baseUrl = "http://112.29.103.165:21626" // baseUrl = "http://172.20.10.3:8080" // baseUrl = "http://10.40.92.8:8080" // baseUrl = "http://10.40.92.52:28080" diff --git a/manifest.json b/manifest.json index db8f123..9c4ac37 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "智慧仓储", "appid" : "__UNI__9D122E1", "description" : "", - "versionName" : "1.1.1", - "versionCode" : 111, + "versionName" : "1.1.2", + "versionCode" : 112, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/exitMaterial/exitMaterial.vue b/pages/exitMaterial/exitMaterial.vue index 56ff791..3a4cc75 100644 --- a/pages/exitMaterial/exitMaterial.vue +++ b/pages/exitMaterial/exitMaterial.vue @@ -574,10 +574,6 @@ import { basePath } from '../../public' .select-area{ width: 85%; margin: 40rpx auto; - .submit-btn{ - background-color: #409EFF; - color: #fff; - } } } diff --git a/pages/fetchExam/fetchExam.vue b/pages/fetchExam/fetchExam.vue index 9357edf..d907ae6 100644 --- a/pages/fetchExam/fetchExam.vue +++ b/pages/fetchExam/fetchExam.vue @@ -334,7 +334,8 @@ import { basePath } from '../../public' this.examList = { taskId: that.modalList.taskId, taskStatus: that.modalList.taskStatus + 1, - leaseApplyInfoList: that.modalList.leaseApplyInfoList + leaseApplyInfoList: that.modalList.leaseApplyInfoList, + leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails } } if (that.roles.includes('fgs') && that.modalList.taskStatus == 30) { @@ -389,7 +390,8 @@ import { basePath } from '../../public' this.examList = { taskId: that.modalList.taskId, taskStatus: that.modalList.taskStatus + 1, - leaseApplyInfoList: that.modalList.leaseApplyInfoList + leaseApplyInfoList: that.modalList.leaseApplyInfoList, + leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails } if (that.roles.includes('fgs')) { for (let k = 0; k < that.examList.leaseApplyInfoList.length; k++) { @@ -591,6 +593,7 @@ import { basePath } from '../../public' }, */ toggleSubmit (list) { let that = this + console.log(list); that.$api.fetchExam.subExam(list).then(res => { console.log(res); if (res.data.code == 200) { diff --git a/pages/innerFix/innerFix.vue b/pages/innerFix/innerFix.vue index a8b5fd7..6f40a2d 100644 --- a/pages/innerFix/innerFix.vue +++ b/pages/innerFix/innerFix.vue @@ -63,6 +63,7 @@ 维修完成 @@ -110,7 +111,8 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form'; id: '', taskId: '', maId: '', - typeId: '' + typeId: '', + btnDisabled: false } }, methods: { @@ -130,6 +132,7 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form'; }, subForm () { let that = this + that.btnDisabled = true this.submitForm = this.allForm for (let i = 0; i < this.submitForm.length; i++) { this.submitForm[i].partId = this.submitForm[i].partId[0] @@ -153,13 +156,13 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form'; title: res.data.msg, success: () => { that.showLoading = false - uni.navigateBack({ - delta: 2 - }) + that.btnDisabled = false + uni.navigateBack() } }) } else { that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: res.data.msg @@ -167,6 +170,8 @@ import form from '../../uni_modules/uview-ui/libs/config/props/form'; } }).catch(err => { console.log(err); + that.showLoading = false + that.btnDisabled = false }) }, handleTree (data, id, parentId, children) { diff --git a/pages/numReceive/numReceive.vue b/pages/numReceive/numReceive.vue index d14022c..9dd0387 100644 --- a/pages/numReceive/numReceive.vue +++ b/pages/numReceive/numReceive.vue @@ -26,9 +26,10 @@ - + 确认 + @@ -47,7 +48,9 @@ waitRepairNum: '', waitCrashNum: '' }, - totalNum: 0 + totalNum: 0, + showLoading: false, + btnDisabled: false } }, methods: { @@ -63,7 +66,11 @@ // "createBy": "1" // } let that = this + that.showLoading = true + that.btnDisabled = true if (!this.lowerIpt.passedNum && !this.lowerIpt.waitRepairNum && !this.lowerIpt.waitCrashNum) { + that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: '请至少填写一个数据!' @@ -75,11 +82,15 @@ .lowerIpt.waitCrashNum) console.log(that.totalNum); if (that.totalNum > that.upperInfo.num) { + that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: '接收总量不能大于退库数量!' }) } else if (that.totalNum == 0) { + that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: '请确保退料总量不为0!' @@ -91,6 +102,8 @@ arr: this.handleSubmitData() }).then(res => { console.log("res===", res) + that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: '接收成功' diff --git a/pages/returnFix/returnFix.vue b/pages/returnFix/returnFix.vue index c4beef8..d34568a 100644 --- a/pages/returnFix/returnFix.vue +++ b/pages/returnFix/returnFix.vue @@ -59,7 +59,12 @@ 维修完成 --> - + @@ -96,7 +101,8 @@ import { basePath } from '../../public' id: '', taskId: '', maId: '', - typeId: '' + typeId: '', + btnDisabled: false } }, methods: { @@ -120,6 +126,8 @@ import { basePath } from '../../public' }, */ subForm () { let that = this + that.btnDisabled = true + that.showLoading = true this.totalSub.partStrList = JSON.stringify(this.returnForm) this.totalSub.id = this.id this.totalSub.taskId = this.taskId @@ -129,7 +137,6 @@ import { basePath } from '../../public' this.totalSub.userId = uni.getStorageSync('userInfo').userid this.totalSub.repairType = 2 console.log(this.totalSub); - this.showLoading = true that.$api.fix.submitFix(that.totalSub).then(res => { console.log(res); if (res.data.code == 200) { @@ -138,6 +145,7 @@ import { basePath } from '../../public' title: res.data.msg, success: () => { that.showLoading = false + that.btnDisabled = false /* uni.switchTab({ url: '/pages/workSpace/workSpace' }) */ @@ -146,6 +154,7 @@ import { basePath } from '../../public' }) } else { that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: res.data.msg @@ -153,6 +162,8 @@ import { basePath } from '../../public' } }).catch(err => { console.log(err); + that.showLoading = false + that.btnDisabled = false }) }, handleTree (data, id, parentId, children) { diff --git a/pages/waitCrash/waitCrash.vue b/pages/waitCrash/waitCrash.vue index 2a4670e..7706ae9 100644 --- a/pages/waitCrash/waitCrash.vue +++ b/pages/waitCrash/waitCrash.vue @@ -34,7 +34,12 @@ :del-icon="false" > - + @@ -63,7 +68,8 @@ import { basePath, systemPath } from '../../public'; id: '', taskId: '', maId: '', - typeId: '' + typeId: '', + btnDisabled: false } }, methods: { @@ -86,6 +92,7 @@ import { basePath, systemPath } from '../../public'; }, subForm () { let that = this + that.btnDisabled = true this.crashForm.fileIds = this.crashForm.fileIds.join(',') this.crashForm.id = this.id this.crashForm.taskId = this.taskId @@ -104,6 +111,7 @@ import { basePath, systemPath } from '../../public'; title: res.data.msg, success: () => { that.showLoading = false + that.btnDisabled = false /* uni.switchTab({ url: '/pages/workSpace/workSpace' }) */ @@ -112,6 +120,7 @@ import { basePath, systemPath } from '../../public'; }) } else { that.showLoading = false + that.btnDisabled = false uni.showToast({ icon: 'none', title: res.data.msg @@ -119,6 +128,8 @@ import { basePath, systemPath } from '../../public'; } }).catch(err => { console.log(err); + that.showLoading = false + that.btnDisabled = false }) } },