Browse Source

增加组件

wms3.0_pda
niexiting 10 months ago
parent
commit
b3fa9e852c
  1. 55
      mycomponents/location/toLocation.vue
  2. 20
      pages/purchaseReturn/record/returnRecord.vue
  3. 6
      pages/purchaseReturn/request/returnRequestCreate.vue

55
mycomponents/location/toLocation.vue

@ -0,0 +1,55 @@
<template>
<view class="" style="background-color: #fff;">
<view class="uni-flex uni-row space-between u-col-center" >
<view class="location_view" >
<text class="card_location"> 库位 </text>
<text> {{locationCode}}</text>
</view>
<view class="" v-if="recommendQty>0">
<count :countType="'recommend_handle_no_pack'"
:recommendQty="recommendQty"
:handledQty="handledQty"
:uom="uom"></count>
</view>
</view>
</view>
</template>
<script>
export default {
components: {
},
data(){
return {
}
},
props: {
locationInfo:{
type: Object,
default: {}
},
locationCode:{
type: String,
default: ''
},
recommendQty:{
type: Number,
default: 0
},
handledQty:{
type: Number,
default: 0
},
uom:{
type: String,
default: ''
}
},
}
</script>
<style>
</style>

20
pages/purchaseReturn/record/returnRecord.vue

@ -4,7 +4,18 @@
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
</view>
<view class="page-wraper" v-if="detailSource.length>0">
<u-line></u-line>
<view class="page-header">
<!-- <view class="header_job_top">
<job-top :dataContent="jobContent"></job-top>
</view> -->
<view class="header_item">
采购订单{{poNumber}}
</view>
<u-line color="#D8D8D8"></u-line>
</view>
<view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
@ -143,11 +154,12 @@
},
getScanResult(result) {
debugger;
if (this.poNumber == '') {
this.poNumber = result.label.order;
this.poNumber = result.label.poNumber;
} else {
if (this.poNumber != result.label.order) {
this.showErrorMessage('扫描的采购订单号[' + result.label.order + ']与默认采购订单号[' + this.poNumber + ']不一致')
if (this.poNumber != result.label.poNumber) {
this.showErrorMessage('扫描的采购订单号[' + result.label.poNumber + ']与默认采购订单号[' + this.poNumber + ']不一致')
return;
}
}

6
pages/purchaseReturn/request/returnRequestCreate.vue

@ -137,10 +137,10 @@
getScanResult(result) {
if (this.poNumber == '') {
this.poNumber = result.label.order;
this.poNumber = result.label.poNumber;
} else {
if (this.poNumber != result.label.order) {
this.showErrorMessage('扫描的采购订单号[' + result.label.order + ']与默认采购订单号[' + this.poNumber + ']不一致')
if (this.poNumber != result.label.poNumber) {
this.showErrorMessage('扫描的采购订单号[' + result.label.poNumber + ']与默认采购订单号[' + this.poNumber + ']不一致')
return;
}
}

Loading…
Cancel
Save