diff --git a/src/api/request2.js b/src/api/request2.js index f654afbd..8dc5ef33 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -19,7 +19,7 @@ export function getCaptchaImage(params) { */ export function login(username, password, code, uuid, tenantName) { return request({ - url: baseApi + '/system/auth/login', + url: baseApi + '/system/auth/loginNoCode', headers: { isToken: false }, diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 8fb3b6c7..1fa86ce7 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -388,7 +388,7 @@ console.log("包装规格获取失败", res) }) - var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated"; + var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated"; getSwitchByCode(switchCode).then(res=>{ uni.setStorageSync("switch", res.data) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 50420dd7..71ac4b30 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -65,13 +65,13 @@ - + - + @@ -119,7 +119,8 @@ imageSrc: "", code: "", uuid: "", - version: "" + version: "", + needCode:false } }, // computed: mapState(['forcedLogin', 'hasLogin']), @@ -185,13 +186,15 @@ icon: 'none', mask: true }) - } else if (this.code === '') { + } + else if (this.needCode&&this.code === '') { uni.showToast({ title: '验证码不能为空', icon: 'none', mask: true }) - } else { + } + else { // console.log("用户名:", this.username, "密码:", this.password, this.tapstyle, this.smloginmsg) let logininfo = { username: "", diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue index 7a898713..1c6c3cb3 100644 --- a/src/pages/productReceipt/job/productReceiptDetail.vue +++ b/src/pages/productReceipt/job/productReceiptDetail.vue @@ -85,7 +85,8 @@ import { goHome, navigateBack, - getPackingNumberAndBatch, + getPackingNumberAndBatch, + getSwitchInfoByCode } from '@/common/basic.js'; import { @@ -334,18 +335,21 @@ }); }, - commit() { + commit() { this.scanCount = getScanCount(this.subList); if (this.scanCount == 0) { this.showErrorMessage("扫描数为0,请先扫描") return; + } + var valiDate = getSwitchInfoByCode("semiProductReceipCommitValidate") + //校验库位、 + if(valiDate){ + if (!this.checkLocation()) { + return + } + }else{ + this.toLocationCode = this.jobToLocationCode } - //校验库位、 - if (!this.checkLocation()) { - return - } - - //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { if (this.checkCount()) {