增加船号字典作废标识校验

main
董哲奇 18 hours ago
parent 590534ee25
commit da1490e1b6

@ -13,6 +13,9 @@
var token= uni.getStorageSync("token"); var token= uni.getStorageSync("token");
if(token){ if(token){
uni.redirectTo({
url: '/pages/index/index'
});
return false; return false;
} }
@ -91,8 +94,9 @@
uni.setStorageSync('user', JSON.stringify(datas.user)); uni.setStorageSync('user', JSON.stringify(datas.user));
uni.setStorageSync('menu', JSON.stringify(datas.user.btns)); uni.setStorageSync('menu', JSON.stringify(datas.user.btns));
this.getdept(); this.getdept();
console.log('1');
// //
uni.switchTab({ uni.redirectTo({
url: '/pages/index/index' url: '/pages/index/index'
}); });
}else{ }else{

@ -13,6 +13,14 @@
] ]
}, },
"pages": [ "pages": [
{
"path": "pages/login/index",
"style": {
"app-plus": {
"titleNView": false
}
}
},
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
@ -20,14 +28,6 @@
"navigationBarTitleText": "工装托盘管理平台" "navigationBarTitleText": "工装托盘管理平台"
} }
}, },
{
"path": "pages/login/index",
"style": {
"app-plus": {
"titleNView": false
}
}
},
{ {
"path": "pages/me/index", "path": "pages/me/index",
"style": { "style": {

@ -311,6 +311,7 @@
this.ifsm = false; this.ifsm = false;
this.trayInfo=res.data; this.trayInfo=res.data;
if(this.trayInfo.loadId){ if(this.trayInfo.loadId){
console.log(1)
// //
this.getYpDetail() this.getYpDetail()
} }
@ -347,7 +348,7 @@
title: '数据加载中...' title: '数据加载中...'
}); });
// //
const {data: res} = await uni.$http.get('/searchInstdetail',{ const {data: res} = await uni.$http.get('/getInstdetail',{
palletNo:this.rmbm palletNo:this.rmbm
}); });
if(res.success){ if(res.success){

@ -71,11 +71,12 @@
<view class="input-group"> <view class="input-group">
<view class="label">编号</view> <view class="label">编号</view>
<view class="input-container"> <view class="input-container">
<input <u-input
v-model="palletNo" v-model="palletNo"
class="input-field" class="input-field"
placeholder="请输入" placeholder="请输入"
maxlength="50" maxlength="50"
@input="toUpperCase"
/> />
<view class="scan-btn" @click="scanPallet"> <view class="scan-btn" @click="scanPallet">
<uni-icons type="scan" size="20" color="#007AFF"></uni-icons> <uni-icons type="scan" size="20" color="#007AFF"></uni-icons>
@ -214,6 +215,10 @@ export default {
this.getTypes(); this.getTypes();
}, },
methods: { methods: {
toUpperCase(e){
this.palletNo = e.toUpperCase()
this.$forceUpdate();
},
// //
showaddress(e) { showaddress(e) {
this.$refs.clsel._show(); this.$refs.clsel._show();

@ -189,6 +189,7 @@
class="input-field" class="input-field"
placeholder="请输入" placeholder="请输入"
maxlength="50" maxlength="50"
@input="toUpperCase"
/> />
<view class="scan-btn" @click="scanPallet"> <view class="scan-btn" @click="scanPallet">
<uni-icons type="scan" size="20" color="#007AFF"></uni-icons> <uni-icons type="scan" size="20" color="#007AFF"></uni-icons>
@ -431,6 +432,10 @@ export default {
// #endif // #endif
}, },
methods: { methods: {
toUpperCase(e){
this.palletNo = e.toUpperCase()
this.$forceUpdate();
},
// //
showaddress(e) { showaddress(e) {
this.$refs.clsel._show(); this.$refs.clsel._show();

@ -79,11 +79,12 @@
<view class="input-group"> <view class="input-group">
<text class="label">编号</text> <text class="label">编号</text>
<view class="input-container"> <view class="input-container">
<input <u-input
v-model="palletNo" v-model="palletNo"
class="input-field" class="input-field"
placeholder="请输入" placeholder="请输入"
maxlength="50" maxlength="50"
@input="toUpperCase"
/> />
<view class="scan-btn" @click="scanPallet"> <view class="scan-btn" @click="scanPallet">
<uni-icons type="scan" size="20" color="#007AFF"></uni-icons> <uni-icons type="scan" size="20" color="#007AFF"></uni-icons>
@ -250,6 +251,10 @@ export default {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
methods: { methods: {
toUpperCase(e){
this.palletNo = e.toUpperCase()
this.$forceUpdate();
},
/** /**
* h5扫码返回 * h5扫码返回
*/ */

@ -88,7 +88,7 @@
</view> </view>
</u-form-item> </u-form-item>
<u-form-item label="托盘表号" label-width="140rpx" label-position="left" prop="loadInst"> <u-form-item label="托盘表号" label-width="140rpx" label-position="left" prop="loadInst">
<u-input :border="true" :height="60" placeholder="请输入" input-align="left" v-model="itemList.loadInst" type="text" maxlength="200"></u-input> <u-input :border="true" :height="60" placeholder="请输入" input-align="left" v-model="itemList.loadInst" type="text" maxlength="200" @input=toUpperCase1></u-input>
</u-form-item> </u-form-item>
<u-form-item label="装盘数量" label-width="140rpx" label-position="left" prop="loadQty"> <u-form-item label="装盘数量" label-width="140rpx" label-position="left" prop="loadQty">
<u-input :border="true" :height="60" placeholder="请输入" input-align="left" v-model="itemList.loadQty" type="number" maxlength="200"></u-input> <u-input :border="true" :height="60" placeholder="请输入" input-align="left" v-model="itemList.loadQty" type="number" maxlength="200"></u-input>
@ -138,11 +138,12 @@
<view class="input-group"> <view class="input-group">
<text class="label">编号</text> <text class="label">编号</text>
<view class="input-container"> <view class="input-container">
<input <u-input
v-model="palletNo" v-model="palletNo"
class="input-field" class="input-field"
placeholder="请输入" placeholder="请输入"
maxlength="50" maxlength="50"
@input="toUpperCase"
/> />
<view class="scan-btn" @click="scanPallet"> <view class="scan-btn" @click="scanPallet">
<uni-icons type="scan" size="20" color="#007AFF"></uni-icons> <uni-icons type="scan" size="20" color="#007AFF"></uni-icons>
@ -308,6 +309,14 @@ export default {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
methods: { methods: {
toUpperCase(e){
this.palletNo = e.toUpperCase()
this.$forceUpdate();
},
toUpperCase1(e){
this.itemList.loadInst = e.toUpperCase()
this.$forceUpdate();
},
/** /**
* h5扫码返回 * h5扫码返回
*/ */

Loading…
Cancel
Save