Browse Source

Merge branch 'hella_online_20240803' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into hella_online_20240803

ljc_0803
lijuncheng 3 months ago
parent
commit
23c50409f4
  1. 2
      src/api/request2.js
  2. 2
      src/pages/index/index.vue
  3. 13
      src/pages/login/index.vue
  4. 20
      src/pages/productReceipt/job/productReceiptDetail.vue

2
src/api/request2.js

@ -19,7 +19,7 @@ export function getCaptchaImage(params) {
*/ */
export function login(username, password, code, uuid, tenantName) { export function login(username, password, code, uuid, tenantName) {
return request({ return request({
url: baseApi + '/system/auth/login', url: baseApi + '/system/auth/loginNoCode',
headers: { headers: {
isToken: false isToken: false
}, },

2
src/pages/index/index.vue

@ -388,7 +388,7 @@
console.log("包装规格获取失败", res) 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=>{ getSwitchByCode(switchCode).then(res=>{
uni.setStorageSync("switch", res.data) uni.setStorageSync("switch", res.data)

13
src/pages/login/index.vue

@ -65,13 +65,13 @@
</view> </view>
</view> </view>
<view style="display: flex;flex-direction: row;"> <view style="display: flex;flex-direction: row;" v-if="needCode">
<!-- <view class="uni-input"> <!-- <view class="uni-input">
<input class="" placeholder="请输入验证码" <input class="" placeholder="请输入验证码"
v-model="code" v-model="code"
style="background-color: lightgray;padding-top: 40rpx;padding-bottom: 40rpx;margin-right: 20rpx;" /> style="background-color: lightgray;padding-top: 40rpx;padding-bottom: 40rpx;margin-right: 20rpx;" />
</view> --> </view> -->
<view class="uni-input-wrapper"> <view class="uni-input-wrapper" >
<input class="" style="height: 80rpx; background-color: #F7F9FF;margin-right: 20rpx;" <input class="" style="height: 80rpx; background-color: #F7F9FF;margin-right: 20rpx;"
placeholder="请输入验证码" type="number" v-model="code" /> placeholder="请输入验证码" type="number" v-model="code" />
</view> </view>
@ -119,7 +119,8 @@
imageSrc: "", imageSrc: "",
code: "", code: "",
uuid: "", uuid: "",
version: "" version: "",
needCode:false
} }
}, },
// computed: mapState(['forcedLogin', 'hasLogin']), // computed: mapState(['forcedLogin', 'hasLogin']),
@ -185,13 +186,15 @@
icon: 'none', icon: 'none',
mask: true mask: true
}) })
} else if (this.code === '') { }
else if (this.needCode&&this.code === '') {
uni.showToast({ uni.showToast({
title: '验证码不能为空', title: '验证码不能为空',
icon: 'none', icon: 'none',
mask: true mask: true
}) })
} else { }
else {
// console.log("", this.username, "", this.password, this.tapstyle, this.smloginmsg) // console.log("", this.username, "", this.password, this.tapstyle, this.smloginmsg)
let logininfo = { let logininfo = {
username: "", username: "",

20
src/pages/productReceipt/job/productReceiptDetail.vue

@ -85,7 +85,8 @@
import { import {
goHome, goHome,
navigateBack, navigateBack,
getPackingNumberAndBatch, getPackingNumberAndBatch,
getSwitchInfoByCode
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -334,18 +335,21 @@
}); });
}, },
commit() { commit() {
this.scanCount = getScanCount(this.subList); this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) { if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描") this.showErrorMessage("扫描数为0,请先扫描")
return; 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.scanCount == this.subList.length) {
if (this.checkCount()) { if (this.checkCount()) {

Loading…
Cancel
Save