From 0071cf57931792eb2357a1e67a42bcaa9603c567 Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期五, 24 四月 2026 17:23:04 +0800
Subject: [PATCH] 4-24提交
---
项目代码/PDA/pages/Inbound/Inbound.vue | 90 +++++++++++++++++++++++++++++++-------------
1 files changed, 63 insertions(+), 27 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/Inbound.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/Inbound.vue"
index 5c0f969..cdc3d28 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/Inbound.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/Inbound.vue"
@@ -2,7 +2,7 @@
<view>
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem">
</uni-segmented-control>
- <view v-show="current === 0">
+ <!-- <view v-show="current === 0">
<view style="padding: 5%;">
<uni-forms label-width="120">
<uni-forms-item label="鎵樼洏缂栫爜">
@@ -20,9 +20,9 @@
</uni-forms>
<button @click="InboundTask" type="primary" size="default" style="margin-top: 2%;">鎼繍</button>
</view>
- </view>
- <view v-show="current === 1">
- <view style="padding: 5%;">
+ </view> -->
+ <view v-show="current === 0">
+ <!-- <view style="padding: 5%;">
<uni-forms label-width="120">
<uni-forms-item label="鎵樼洏缂栫爜">
<uni-easyinput type="text" :focus="barcodefocus" @input="inputChangebarcode"
@@ -57,9 +57,24 @@
</view>
</uni-forms>
<button @click="GroupPlate" type="primary" size="default" style="margin-top: 2%;">缁勭洏</button>
+ </view> -->
+ <view style="padding: 5%;">
+ <uni-forms label-width="120">
+ <uni-forms-item label="杞藉叿缂栧彿">
+ <uni-easyinput type="text" :focus="barcodefocus" @input="inputChangebarcode"
+ v-model="VehicleNumber" placeholder="璇疯緭鍏ヨ浇鍏风紪鍙�" ref='midInput' />
+ </uni-forms-item>
+ <uni-forms-item label="闆朵欢缂栧彿:">
+ <uni-easyinput type="text" placeholder="璇锋壂鎻忛浂浠跺彿" ref='midInput' :focus="focus" v-model="materSn" />
+ </uni-forms-item>
+ <uni-forms-item label="褰撳墠浣嶇疆:">
+ <uni-easyinput type="text" placeholder="璇疯緭鍏ュ鏂欑偣浣�" ref='midInput' :focus="focus2" v-model="Position"/>
+ </uni-forms-item>
+ </uni-forms>
+ <button @click="GroupPlate" type="primary" size="default" style="margin-top: 2%;">缁勭洏</button>
</view>
</view>
- <view v-show="current === 2">
+ <view v-show="current === 1">
<view style="padding: 5%;">
<uni-forms label-width="120">
<uni-forms-item label="鎵樼洏缂栫爜">
@@ -84,12 +99,18 @@
return {
barcodeFocus:true,
focus: false,
+ focus2:false,
istrue: false,
addressFocus:false,
barcodefocus: false,
range: [],
rangethree:[],
- group: [],
+ group: [{
+ orderNo:1,
+ warehouseName:'hello娴嬭瘯',
+ materialNo:'123'
+ }
+ ],
AreaId: 0,
acrossFloor:0,
quantity: "",
@@ -97,10 +118,13 @@
TargetAddress: "",
PalletCode1: "",
PalletCode2: "",
+ VehicleNumber:"",// 杞藉叿缂栧彿
PalletCode3: "",
materSn: "",
- items: ['鍏ュ簱','鐗╂枡缁戝畾', '鐗╂枡瑙g粦'],
- current: 0
+ //items: ['鍏ュ簱','鐗╂枡缁戝畾', '鐗╂枡瑙g粦'],
+ items: ['鐗╂枡缁戝畾', '鐗╂枡瑙g粦'],
+ current: 0,
+ Position: '', //瀹瑰櫒鎵�鍦ㄤ綅缃�
}
},
onLoad(res) {
@@ -182,19 +206,30 @@
}
})
},
- GroupPlate() {
- if (this.PalletCode2.length <= 0 && this.InBoundOrder.length) {
+ GroupPlate() { // 缁勭洏 鐗╂枡缁戝畾
+ // if (this.PalletCode2.length <= 0 && this.InBoundOrder.length) {
+ // this.$refs.luToast.show({
+ // title: "璇疯緭鍏ヨ捣鐐圭珯鍙�",
+ // type: "error"
+ // })
+ // return;
+ // }
+ if (this.VehicleNumber.length <= 0 || this.materSn.length <= 0 || this.Position.length <= 0) {
this.$refs.luToast.show({
- title: "璇疯緭鍏ヨ捣鐐圭珯鍙�",
+ title: "鏁版嵁杈撳叆涓嶅畬鏁�!",
type: "error"
})
return;
}
+
var param = {
- "PalletCode": this.PalletCode2,
- "groups": this.group
+ "VehicleNumber": this.VehicleNumber,
+ "materSn":this.materSn,
+ "Position": this.Position
}
- this.$u.post('/api/BoxingInfo/AddGroupPlateAsync', param).then(res => {
+ console.log(param)
+
+ this.$u.post('/api/PDA/ContainerbindingAsync', param).then(res => {
if (res.status) {
this.$refs.luToast.show({
title: res.message,
@@ -292,19 +327,20 @@
})
},
inputChangebarcode() {
- this.$nextTick(() => {
- this.$u.post('/api/BoxingInfo/GetPalletCodeInfo?palletCode=' + this.PalletCode2, "").then(
- res => {
- if (res.status) {
- this.group = res.data;
- console.log(this.group);
- setTimeout(this.updateFocus, 200);
- setTimeout(() => {
- this.voiceSpeech('../../static/success.mp3');
- }, 100);
- }
- })
- })
+ // this.$nextTick(() => {
+ // this.$u.post('/api/BoxingInfo/GetPalletCodeInfo?palletCode=' + this.PalletCode2, "").then(
+ // res => {
+ // if (res.status) {
+ // this.group = res.data;
+ // console.log(this.group);
+ // setTimeout(this.updateFocus, 200);
+ // setTimeout(() => {
+ // this.voiceSpeech('../../static/success.mp3');
+ // }, 100);
+ // }
+ // })
+ // })
+ setTimeout(this.updateFocus, 200);
},
removeScanItem(orderNo) {
this.group = this.group.filter(item => item.orderNo !== orderNo);
--
Gitblit v1.9.3