Browse Source

修改直接补料

lijuncheng0816
niexiting 1 month ago
parent
commit
75599d2de2
  1. 28
      src/pages/issue/record/directIssue.vue

28
src/pages/issue/record/directIssue.vue

@ -5,10 +5,11 @@
</view> </view>
<view class="page-wraper" v-if="detailSource.length>0"> <view class="page-wraper" v-if="detailSource.length>0">
<view class="page-header"> <view class="page-header">
<view class="header_item"> <view class="header-view">
来源库位 : {{fromLocationCode}} <view class="header_item">
来源库位 : {{fromLocationCode}}
</view>
</view> </view>
<view class='split_line'></view>
</view> </view>
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
@ -16,9 +17,8 @@
<view class=""> <view class="">
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" <record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent"
:isShowFromLocation="false" @removeItem="removeItem(index,item)" :isShowFromLocation="false" @removeItem="removeItem(index,item)"
:isShowToLocation="false" :isShowToLocation="false" :isShowParentToLocation="false" @updateData="updateData"
:isShowParentToLocation="false" @removePack="removePack">
@updateData="updateData" @removePack="removePack">
</record-com-detail-card> </record-com-detail-card>
</view> </view>
@ -45,7 +45,7 @@
</view> </view>
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
</view> </view>
<winComScanBalance ref="scanPopup" @getBalance='getScanResult' :bussinessCode="businessTypeCode"> <winComScanBalance ref="scanPopup" @getBalance='getScanResult' :bussinessCode="businessTypeCode">
</winComScanBalance> </winComScanBalance>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
@ -132,7 +132,7 @@
show: false, show: false,
positionInfo: "请选择生产线", positionInfo: "请选择生产线",
resultData: {}, resultData: {},
itemCode:"" itemCode: ""
}; };
}, },
onLoad(option) { onLoad(option) {
@ -170,7 +170,7 @@
mounted() {}, mounted() {},
methods: { methods: {
getBusinessType() { getBusinessType() {
getBusinessType(this.businessTypeCode, res => { getBusinessType(this.businessTypeCode, res => {
if (res.success) { if (res.success) {
@ -183,7 +183,7 @@
} }
}); });
}, },
getScanResult(result) { getScanResult(result) {
this.setData(result); this.setData(result);
}, },
@ -191,14 +191,14 @@
let balance = result.balance; let balance = result.balance;
let label = result.label; let label = result.label;
let pack = result.package; let pack = result.package;
if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) { if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this
.fromLocationCode + "]没有库存余额") .fromLocationCode + "]没有库存余额")
return; return;
} }
var item = this.detailSource.find(res => { var item = this.detailSource.find(res => {
if (res.itemCode == balance.itemCode) { if (res.itemCode == balance.itemCode) {
return res return res
@ -514,7 +514,7 @@
this.toWarehouseCode = ''; this.toWarehouseCode = '';
this.detailSource = []; this.detailSource = [];
this.positionInfo = "请选择生产线"; this.positionInfo = "请选择生产线";
this.itemCode="" this.itemCode = ""
} }
} }
} }

Loading…
Cancel
Save