修改页面

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

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

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

@ -57,6 +57,7 @@
</u-col> </u-col>
</u-row> </u-row>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -111,7 +112,10 @@ export default class PalletChange 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: '请输入RFID',
type: 'default',
});
return; return;
} }
this.isshow = false; this.isshow = false;

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

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

@ -65,7 +65,7 @@ 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.4'; version = '0.0.6';
checkversion: any = {}; checkversion: any = {};
onLoad() { onLoad() {
// this.model.getMenuList(); // this.model.getMenuList();

Loading…
Cancel
Save