Browse Source

修改调拨入库扫描

wms3.0_pda
niexiting 11 months ago
parent
commit
60354937dd
  1. 1
      common/style/new_style.css
  2. 1
      pages/issue/coms/comIssueDetailCard.vue
  3. 1
      pages/issue/job/issueDetail.vue
  4. 13
      pages/issue/record/issueRecord.vue
  5. 28
      pages/putaway/record/putawayRecord.vue
  6. 4
      pages/transfer/job/receiptDetail.vue

1
common/style/new_style.css

@ -179,6 +179,7 @@ uni-page-head .uni-page-head__title {
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
opacity: 0.8;
} }
.scan_float image { .scan_float image {

1
pages/issue/coms/comIssueDetailCard.vue

@ -8,7 +8,6 @@
<uni-collapse-item :open="true"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
<!-- 物品 --> <!-- 物品 -->
<u-line />
<item-qty :dataContent="item" :handleQty="item.handleQty"></item-qty> <item-qty :dataContent="item" :handleQty="item.handleQty"></item-qty>
<!-- <com-issue-request-info :workShopCode="dataContent.workShopCode" :dataContent="dataContent"> <!-- <com-issue-request-info :workShopCode="dataContent.workShopCode" :dataContent="dataContent">
</com-issue-request-info> --> </com-issue-request-info> -->

1
pages/issue/job/issueDetail.vue

@ -13,7 +13,6 @@
<view v-for="(toLocation, index) in detailSource"> <view v-for="(toLocation, index) in detailSource">
<com-issue-request-info :workShopCode="jobContent.workShopCode" :dataContent="toLocation"> <com-issue-request-info :workShopCode="jobContent.workShopCode" :dataContent="toLocation">
</com-issue-request-info> </com-issue-request-info>
<!-- <u-line /> -->
<com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" @updateData='updateData'> <com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" @updateData='updateData'>
</com-issue-detail-card> </com-issue-detail-card>
</view> </view>

13
pages/issue/record/issueRecord.vue

@ -7,8 +7,10 @@
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class=""> <scroll-view scroll-y="true" class="">
<view v-for="(toLocation, index) in detailSource"> <view v-for="(toLocation, index) in detailSource">
<com-issue-request-info :workShopCode="workShopCode" :dataContent="toLocation"> <view class="uni-row uni-flex">
</com-issue-request-info> <com-issue-request-info :workShopCode="workShopCode" :dataContent="toLocation">
</com-issue-request-info>
</view>
<com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" <com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation"
@updateData='updateData'> @updateData='updateData'>
</com-issue-detail-card> </com-issue-detail-card>
@ -146,6 +148,13 @@
that.subList.push(r); that.subList.push(r);
}) })
that.detailSource = getDataSource(that.detailSource, that.subList) that.detailSource = getDataSource(that.detailSource, that.subList)
//
that.detailSource.forEach(item => {
//
})
that.resizeCollapse(); that.resizeCollapse();
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');

28
pages/putaway/record/putawayRecord.vue

@ -1,5 +1,11 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<view class="page-header">
<view class="header_item">
需求零件 : {{jobContent.requestNumber}}
</view>
</view>
<view class=""> <view class="">
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> <com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view>
</view> </view>
@ -108,6 +114,7 @@
}; };
}, },
onLoad(option) { onLoad(option) {
this.clear();
var typeCode = "PurchasePutaway" var typeCode = "PurchasePutaway"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {
@ -184,6 +191,10 @@
// //
getRecommendLocation(balance, pack, callback) { getRecommendLocation(balance, pack, callback) {
uni.showLoading({
title: '扫描中...',
mask: true
})
let recommend = this.recommendLocationList.find(r => r.itemCode == balance.itemCode); let recommend = this.recommendLocationList.find(r => r.itemCode == balance.itemCode);
if (recommend == undefined) { if (recommend == undefined) {
let param = { let param = {
@ -199,9 +210,11 @@
locationCode: res.data.code locationCode: res.data.code
}) })
callback(res.data); callback(res.data);
uni.hideLoading();
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
this.showErrorMessage(error) this.showErrorMessage(error);
uni.hideLoading();
}) })
} else { } else {
@ -348,9 +361,17 @@
if (detail.scaned) { if (detail.scaned) {
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode,
detail.packingNumber, detail.toLocationCode, detail.batch); detail.packingNumber, detail.toLocationCode, detail.batch);
detail.toPackingNumber = info.packingNumber;; detail.toPackingNumber = info.packingNumber;
detail.toContainerNumber = detail.containerNumber
detail.toBatch = info.batch; detail.toBatch = info.batch;
detail.toContainerNumber = detail.containerNumber;
detail.fromPackingNumber = info.packingNumber;
detail.fromBatch = info.batch;
detail.fromContainerNumber = detail.containerNumber;
detail.fromLocationCode = detail.locationCode;
detail.toLocationCode = detail.toLocationCode;
// detail.toInventoryStatus = detail.inventoryStatus // detail.toInventoryStatus = detail.inventoryStatus
// detail.toLocationCode = detail.toLocationCode // detail.toLocationCode = detail.toLocationCode
detail.package = null; detail.package = null;
@ -362,7 +383,6 @@
this.dataContent.toWarehouseCode = subList[0].toWarehouseCode; this.dataContent.toWarehouseCode = subList[0].toWarehouseCode;
} }
this.dataContent.subList = subList this.dataContent.subList = subList
debugger;
return this.dataContent; return this.dataContent;
}, },

4
pages/transfer/job/receiptDetail.vue

@ -496,11 +496,11 @@
scanPopupGetFocus() { scanPopupGetFocus() {
this.$refs.scanPopup.packGetFocus(); this.$refs.scanPopup.getfocus();
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
this.$refs.scanPopup.packLoseFocus(); this.$refs.scanPopup.loseFocus();
}, },
closeScanPopup() { closeScanPopup() {

Loading…
Cancel
Save