Browse Source

YT-985新增,输入来源库位,叉掉还显示,应清空 YT-956扫描相同物料不同批次,第二次扫描数量输入2,带出的是库存数

intex_online20241205
张立 3 months ago
parent
commit
05a1c0f778
  1. 8
      src/pages/inventoryMove/coms/comMoveRecord.vue
  2. 14
      src/pages/inventoryMove/coms/okToHoldRecordPack.vue

8
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -444,7 +444,7 @@
} }
console.log(detail) console.log(detail)
if (detail == undefined) { if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack); let newDetail = createDetailInfoForLabel(balance, pack, result.label);
// newDetail.inventoryStatus = balance.inventoryStatus; // newDetail.inventoryStatus = balance.inventoryStatus;
if (this.businessTypeCode == "Move") { if (this.businessTypeCode == "Move") {
newDetail.toInventoryStatus = balance.inventoryStatus; newDetail.toInventoryStatus = balance.inventoryStatus;
@ -452,9 +452,9 @@
newDetail.toInventoryStatus = this.toInventoryStatus; newDetail.toInventoryStatus = this.toInventoryStatus;
} }
if (newDetail.packingNumber == '') { // if (newDetail.packingNumber == '') {
newDetail.packingNumber = pack.number; // newDetail.packingNumber = pack.number;
} // }
newDetail.toLocationCode = this.toLocationCode; newDetail.toLocationCode = this.toLocationCode;
newDetail.managementTypeParams = managementTypeParams; newDetail.managementTypeParams = managementTypeParams;
newDetail.fromLocationCode = result.fromLocationCode newDetail.fromLocationCode = result.fromLocationCode

14
src/pages/inventoryMove/coms/okToHoldRecordPack.vue

@ -10,7 +10,8 @@
<view class="item"> <view class="item">
<view class="label">来源库位</view> <view class="label">来源库位</view>
<view class="value"> <view class="value">
<u-input v-model="fromLocationCode" clearable @blur="fromLocationScanMsg"></u-input> <u-input v-model="fromLocationCode" @blur="fromLocationScanMsg" ></u-input>
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="fromLocationCode=''" v-if="fromLocationCode"></u-icon>
</view> </view>
<view class="searchIcon"> <view class="searchIcon">
<image src="/static/search.svg" mode="" @click="fromLocationClick"/> <image src="/static/search.svg" mode="" @click="fromLocationClick"/>
@ -19,7 +20,8 @@
<view class="item"> <view class="item">
<view class="label">零件</view> <view class="label">零件</view>
<view class="value"> <view class="value">
<u-input v-model="itemCode" clearable></u-input> <u-input v-model="itemCode"></u-input>
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="itemCode=''" v-if="itemCode"></u-icon>
</view> </view>
<view class="searchIcon"> <view class="searchIcon">
<image src="/static/search.svg" mode="" @click="itemCodeClick"/> <image src="/static/search.svg" mode="" @click="itemCodeClick"/>
@ -28,7 +30,8 @@
<view class="item"> <view class="item">
<view class="label">批次</view> <view class="label">批次</view>
<view class="value"> <view class="value">
<u-input v-model='batch' clearable></u-input> <u-input v-model='batch'></u-input>
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="batch = ''" v-if="batch"></u-icon>
</view> </view>
<view class="searchIcon"></view> <view class="searchIcon"></view>
</view> </view>
@ -73,7 +76,8 @@
fromLocationCode:'', fromLocationCode:'',
itemCode:'', itemCode:'',
batch:'', batch:'',
showOne:false showOne:false,
isFromLocationFocus:false
} }
}, },
props: { props: {
@ -126,9 +130,9 @@
}, },
fromLocationScanMsg(){ fromLocationScanMsg(){
if (this.fromLocationCode) { if (this.fromLocationCode) {
console.log(111,this.fromLocationCode)
this.scanMsg = this.fromLocationCode this.scanMsg = this.fromLocationCode
this.fromWitch = 'fromLocationScanMsg' this.fromWitch = 'fromLocationScanMsg'
this.isFromLocationFocus = false
this.handelScanMsg() this.handelScanMsg()
} }
}, },

Loading…
Cancel
Save