修改版本

master
LAPTOP-R6EHHS26\86155 2 years ago
parent 0c684672c8
commit d918c3653d

@ -122,7 +122,10 @@ export default class ChangePalletNew extends BasePage {
locationStatus: any = 1; locationStatus: any = 1;
async query() { async query() {
if (this.orderNo == '' || this.orderNo.length == 0) { if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl'); (this.$refs.uToast as any).show({
title: '请输入nficl',
type: 'default',
});
return; return;
} }
await this.model.queryOrderNo(this.orderNo); await this.model.queryOrderNo(this.orderNo);
@ -134,6 +137,13 @@ export default class ChangePalletNew extends BasePage {
}); });
} else { } else {
this.orderNoItemList = model.orderNoItemList; this.orderNoItemList = model.orderNoItemList;
if (this.orderNoItemList.productCode == 'EmptyPallet') {
(this.$refs.uToast as any).show({
title: '请绑定',
type: 'default',
});
return;
}
} }
//console.log('this.orderNoItemList', this.orderNoItemList); //console.log('this.orderNoItemList', this.orderNoItemList);
} }
@ -276,7 +286,7 @@ export default class ChangePalletNew extends BasePage {
onbind() { onbind() {
if (this.orderNo == '' || this.orderNo.length == 0) { if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({ (this.$refs.uToast as any).show({
title: '请扫码正确条码', title: '请输入nficl',
type: 'default', type: 'default',
}); });
return; return;

@ -33,8 +33,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="astyle"> <view class="astyle astyleversion">
<view @click="checkupdate()"> </view> <view @click="checkupdate()"> </view>
<view @click="checkupdate()"> Version:{{ version }} </view>
<!-- <u-button <!-- <u-button
@click.native=" @click.native="
uni.navigateTo({ uni.navigateTo({
@ -64,10 +65,11 @@ export default class RawHome extends BasePage {
model = model; model = model;
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'; src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg';
today = dayjs().format('YYYY-MM-DD dddd'); today = dayjs().format('YYYY-MM-DD dddd');
version = '0.0.3'; version = '0.0.4';
checkversion: any = {}; checkversion: any = {};
onLoad() { onLoad() {
// this.model.getMenuList(); // this.model.getMenuList();
uni.setStorageSync('version', this.version);
} }
compareVersion(version1: any, version2: any) { compareVersion(version1: any, version2: any) {
//version1 1 &&& version2 -1 //version1 1 &&& version2 -1
@ -243,4 +245,8 @@ export default class RawHome extends BasePage {
border-radius: 8rpx; border-radius: 8rpx;
} }
} }
.astyleversion {
display: flex;
justify-content: space-between;
}
</style> </style>

Loading…
Cancel
Save