修改页面

master
LAPTOP-R6EHHS26\86155 2 years ago
parent 0ca15aca52
commit 835b057dbc

@ -59,6 +59,7 @@
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
@ -107,15 +108,28 @@ export default class ChangePalletNew extends BasePage {
locationStatus: any = 1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
this.customToast('该rfid未查到数据请使用正确的rfid');
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
} else {
this.orderNoItemList = model.orderNoItemList;
if (this.orderNoItemList.productCode == 'EmptyPallet') {
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
return;
}
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
@ -128,7 +142,10 @@ export default class ChangePalletNew extends BasePage {
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
var currentDate = new Date();

@ -59,6 +59,7 @@
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
@ -107,15 +108,28 @@ export default class ChangePalletNew extends BasePage {
locationStatus: any = 1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
this.customToast('该rfid未查到数据请使用正确的rfid');
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
} else {
this.orderNoItemList = model.orderNoItemList;
if (this.orderNoItemList.productCode == 'EmptyPallet') {
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
return;
}
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
@ -128,11 +142,11 @@ export default class ChangePalletNew extends BasePage {
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
this.customToast('请输入RFID');
return;
}
if (Object.keys(this.orderNoItemList).length === 0) {
this.customToast('请先查询出nficl数据');
this.customToast('请先查询出RFID数据');
return;
}
if (this.productCodelocList.value == '' || this.productCodelocList.value == undefined) {

@ -57,6 +57,7 @@
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
@ -111,7 +112,10 @@ export default class PalletChange extends BasePage {
locationStatus: any = -1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
this.isshow = false;

@ -123,7 +123,7 @@ export default class ChangePalletNew extends BasePage {
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入nficl',
title: '请输入RFID',
type: 'default',
});
return;
@ -158,14 +158,14 @@ export default class ChangePalletNew extends BasePage {
console.log(this.productCodeList.value == '' || this.productCodeList.value == undefined, this.productCodeList.value);
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入nficl',
title: '请输入RFID',
type: 'default',
});
return;
}
if (Object.keys(this.orderNoItemList).length === 0) {
(this.$refs.uToast as any).show({
title: '请先查询出nficl数据',
title: '请先查询出RFID数据',
type: 'default',
});
return;
@ -215,7 +215,7 @@ export default class ChangePalletNew extends BasePage {
reqTime: formattedDate,
sku: this.orderNoItemList.productCode,
spec: this.orderNoItemList.productSpc,
productionState: this.productCodelocList.value, //2323
productionState: this.productCodelocList.value.toString(), //2323
//location: this.location,
destinationAddress: this.DestinationList.value, //
sourceAddress: this.productCodeList.value,
@ -288,7 +288,7 @@ export default class ChangePalletNew extends BasePage {
onbind() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入nficl',
title: '请输入RFID',
type: 'default',
});
return;

@ -92,6 +92,7 @@
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
@ -227,15 +228,28 @@ export default class productCheckReceipt extends BasePage {
}
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
this.customToast('该rfid未查到数据请使用正确的rfid');
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
} else {
this.orderNoItemList = model.orderNoItemList;
if (this.orderNoItemList.productCode == 'EmptyPallet') {
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
return;
}
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
@ -255,7 +269,7 @@ export default class productCheckReceipt extends BasePage {
barcode: any = '';
async onSubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
this.customToast('请输入RFID');
return;
}
if (Object.keys(this.orderNoItemList).length === 0) {

@ -65,7 +65,7 @@ export default class RawHome extends BasePage {
model = model;
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg';
today = dayjs().format('YYYY-MM-DD dddd');
version = '0.0.4';
version = '0.0.6';
checkversion: any = {};
onLoad() {
// this.model.getMenuList();

Loading…
Cancel
Save