Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into intex

intex_online20241111
lijuncheng 3 weeks ago
parent
commit
a403b5db5d
  1. 2
      src/mycomponents/scan/winScanLocation.vue
  2. 3
      src/mycomponents/scan/winScanPackAndLocation.vue
  3. 36
      src/pages/inventoryMove/coms/comMoveRecord.vue
  4. 18
      src/pages/inventoryMove/coms/okToHoldRecordPack.vue
  5. 6
      src/pages/productReceipt/record/productReceiptRecordByBatch.vue

2
src/mycomponents/scan/winScanLocation.vue

@ -92,7 +92,6 @@
title: '扫描中...',
mask: true
});
console.log(111,result)
let label = result.label;
if (label.barType === 'QRCode') {
this.code = label.locationCode;
@ -104,7 +103,6 @@
this.showErrorMessage("扫描库位为空,请输入正确的库位")
return
}
console.log(888,this.code)
getBasicLocationByCode(this.code).then(res => {
uni.hideLoading();

3
src/mycomponents/scan/winScanPackAndLocation.vue

@ -339,7 +339,7 @@
this.chooseWhich = '2'
if(!result.label.itemCode){
this.showErrorMessage('扫描标签不对,请重新扫描')
this.$emit('clearItemCode',result.label.code)
this.$emit('clearItemCode',result.label)
return
}
if (res.data && res.data.list && res.data.list.length > 1) {
@ -397,6 +397,7 @@
mustHavaBalance(datas) {
if (datas.length == 0) {
this.showErrorMessage(this.getQueryCondition() + '\n未查找到库存记录', res => {
this.$emit('clearItemCode',this.scanResult)
this.packGetFocus();
})
} else if (datas.length == 1) {

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

@ -32,7 +32,7 @@
</view>
</view>
</view>
<win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-scan-button @goScan='showFromLocationPopup'></win-scan-button>
</view>
<!-- 合格转隔离单独的弹窗-->
<okToHoldRecordPack ref="okToHoldRecordPackRef" :fromLocationCodeProps='fromLocationCode' :itemCodeProps='itemCode' :batchProps='batch' :showOnePop='showOnePop' :isClearFromLocationCode='isClearFromLocationCode' :isClearItemCode='isClearItemCode' @showFromLocationPopup='showFromLocationPopup' @itemCodeClick='openScanPopup' @confirm='okToHoldRecordPackConfirm' @getInputMsgResult="getInputMsgResult" @itemCodeScanMsg='itemCodeScanMsg'></okToHoldRecordPack>
@ -160,12 +160,7 @@
this.businessType = res.businessType;
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList;
this.toLocationAreaTypeList = res.toLocationAreaTypeList;
if(this.showOnePop){
console.log(this.$refs.okToHoldRecordPackRef)
this.$refs.okToHoldRecordPackRef.show = true
}else{
this.showFromLocationPopup();
}
} else {
this.showErrorMessage(res.message)
}
@ -242,6 +237,7 @@
},
openScanPopup() {
if (this.fromLocationCode == "") {
this.showFromLocationPopup();
return
@ -250,7 +246,11 @@
},
showFromLocationPopup() {
this.$nextTick(() => {
if(this.showOnePop){
this.$refs.okToHoldRecordPackRef.showOne = true
}else{
this.$refs.scanFromLocationCode.openScanPopup();
}
})
},
getFromLocation(location) {
@ -258,6 +258,9 @@
this.fromLocationInfo = location;
if(!this.showOnePop){
this.openScanPopup();
}else{
this.itemCode =''
this.batch =''
}
},
getToLocation(location, code) {
@ -265,12 +268,11 @@
this.toLocationInfo = location;
},
getScanResult(result,managementType) {
console.log(356,result)
if(this.showOnePop){
this.itemCode= result.balance.itemCode
this.batch = result.balance.batch
console.log(357,this.itemCode)
console.log(358,this.batch )
this.isClearItemCode = false
debugger
this.getResult = result//
this.$refs.scanPopup.closeScanPopup()
@ -419,20 +421,20 @@
calcHandleQty(this.detailSource);
},
getInputMsgResult(result,fromWitch){
console.log('pooo',result)
if(fromWitch == 'fromLocationScanMsg'){
this.isClearFromLocationCode = false this.$refs.scanFromLocationCode.getScanResult(result) }else if(fromWitch == 'itemCodeScanMsg'){
console.log(7878,this.fromLocationCode) result.fromLocationCode = this.fromLocationCode this.$refs.scanPopup.getScanResult(result) }
this.isClearFromLocationCode = false this.$refs.scanFromLocationCode.getScanResult(result) }else if(fromWitch == 'itemCodeScanMsg'){ result.fromLocationCode = this.fromLocationCode this.$refs.scanPopup.getScanResult(result) }
},
//
clearFromLocation(fromLocationCodeParams){
this.fromLocationCode = fromLocationCodeParams
console.log('rwyrwey',this.fromLocationCode)
this.itemCode =''
this.batch =''
this.isClearFromLocationCode = true
},
//
clearItemCode(itemCodeParams){
this.itemCode = itemCodeParams
clearItemCode(label){
this.itemCode = label.itemCode
this.batch =''
this.isClearItemCode = true
},
showErrorMessage(message) {
@ -595,8 +597,6 @@
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
detail.packingNumber, detail.toLocationCode, detail.batch);
var submitItem = deepCopyData(detail)
console.log(233,submitItem)
console.log(244,info)
submitItem.itemCode = detail.itemCode;
submitItem.itemName = detail.package.itemName;
submitItem.itemDesc1 = detail.package.itemDesc1;

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

@ -9,14 +9,14 @@
</view>
<view class="item">
<view class="label">来源库位</view>
<view class="value"><u-input v-model="fromLocationCode" @confirm="fromLocationScanMsg"></u-input></view>
<view class="value"><u-input v-model="fromLocationCode" @confirm="fromLocationScanMsg" clearable></u-input></view>
<view class="searchIcon">
<image src="/static/search.svg" mode="" @click="fromLocationClick"/>
</view>
</view>
<view class="item">
<view class="label">零件</view>
<view class="value"><u-input v-model="itemCode" @confirm="itemCodeScanMsg"></u-input></view>
<view class="value"><u-input v-model="itemCode" @confirm="itemCodeScanMsg" clearable></u-input></view>
<view class="searchIcon">
<image src="/static/search.svg" mode="" @click="itemCodeClick"/>
</view>
@ -65,12 +65,11 @@
emits: ["showFromLocationPopup",'itemCodeClick','confirm','getInputMsgResult'],
data() {
return {
show:true,
handleQty:0,
fromLocationCode:'',
itemCode:'',
batch:'',
showOne:true
showOne:false
}
},
props: {
@ -201,12 +200,13 @@
that.boxfocus = false;
});
},
onClear(){
console.log(111)
}
},
watch: {
fromLocationCodeProps:{
handler(newVal, oldVal) {
console.log('wer',this.isClearFromLocationCode)
console.log('wer',newVal)
if(this.isClearFromLocationCode){
this.fromLocationCode=''
}else{
@ -220,15 +220,17 @@
handler(newVal, oldVal) {
if(this.isClearItemCode){
this.itemCode=''
this.batch=''
}else{
this.itemCode = newVal
}
},
},
batchProps(newVal) {
if(this.isClearItemCode){
this.batch=''
}else{
this.batch = newVal
console.log(999,this.batch)
}
},
}
}

6
src/pages/productReceipt/record/productReceiptRecordByBatch.vue

@ -145,7 +145,11 @@
getScanResult(result) {
let label = result.label;
let pack = result.package;
if(!result.label.itemCode){
this.showErrorMessage('扫描标签不对,请重新扫描')
this.$emit('clearItemCode',result.label)
return
}
var item = this.detailSource.find(res => {
if (res.itemCode == label.itemCode) {
return res

Loading…
Cancel
Save