Browse Source

修改发料拆箱

pda_nev
李俊城 1 year ago
parent
commit
baac3101fc
  1. 5
      fe/PDA/mycomponents/coms/comUnPacking.vue
  2. 4
      fe/PDA/mycomponents/wincom/winScanByContainer.vue
  3. 158
      fe/PDA/pages/task/deliverBoard.vue
  4. 331
      fe/PDA/pages/task/deliverBoard_detail.vue
  5. 6
      fe/PDA/pages/task/issue_detail.vue

5
fe/PDA/mycomponents/coms/comUnPacking.vue

@ -350,7 +350,7 @@
fromLocationErpCode: itemData.recommendFromLocationErpCode, fromLocationErpCode: itemData.recommendFromLocationErpCode,
fromWarehouseCode: itemData.recommendFromWarehouseCode, fromWarehouseCode: itemData.recommendFromWarehouseCode,
fromLot: itemData.recommendLot, fromLot: itemData.recommendLot,
fromStatus: 1, fromStatus: 2,
toPackingCode: newPackingCode, toPackingCode: newPackingCode,
toContainerCode: itemData.recommendContainerCode, toContainerCode: itemData.recommendContainerCode,
@ -361,12 +361,11 @@
toWarehouseCode: itemData.recommendFromWarehouseCode, toWarehouseCode: itemData.recommendFromWarehouseCode,
toLot: itemData.recommendLot, toLot: itemData.recommendLot,
toStatus: 1, toStatus: 2,
supplierBatch: itemData.recommendSupplierBatch, supplierBatch: itemData.recommendSupplierBatch,
arriveDate: itemData.recommendArriveDate, arriveDate: itemData.recommendArriveDate,
produceDate: itemData.recommendProduceDate, produceDate: itemData.recommendProduceDate,
expireDate: itemData.recommendExpireDate, expireDate: itemData.recommendExpireDate,
onTheWayLocationCode: "", onTheWayLocationCode: "",
reason: "" reason: ""
} }

4
fe/PDA/mycomponents/wincom/winScanByContainer.vue

@ -70,8 +70,8 @@
getScanResult(result) { getScanResult(result) {
console.log("扫描",result.data.code) console.log("扫描",result.data.code)
if (result != null) { if (result != null) {
if(result.data.code[0].toUpperCase()!="C"){ if(result.data.code[0].toUpperCase()!="Q"){
this.showMessage("标签格式不正确") this.showMessage("标签格式不正确 : "+result.data.code)
return; return;
} }
// uni.showLoading({ // uni.showLoading({

158
fe/PDA/pages/task/deliverBoard.vue

@ -1,28 +1,23 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<win-empty-view v-if="deliverList.length==0"></win-empty-view>
<win-empty-view v-if="issueList.length==0"></win-empty-view> <view hover-class="uni-list-cell-hover" v-for="(item, index) in deliverList" :key="item.id"
<view hover-class="uni-list-cell-hover" v-for="(item, index) in issueList" :key="item.id"
@click="openDetail(item)"> @click="openDetail(item)">
<comDeliverBoard :dataContent="item"></comDeliverBoard> <com-deliver :dataContent="item"></com-deliver>
</view> </view>
<uni-load-more :status="loadingType" v-if="issueList.length>0" /> <uni-load-more :status="loadingType" v-if="deliverList.length>0" />
<!-- <win-scan-button @goScan='openScanPopup'></win-scan-button> --> <!-- <win-scan-button @goScan='openScanPopup'></win-scan-button>
<win-mulit-scan ref="scanPopup" :titleArray="titleArray" @getScanResult='getScanResult'> <win-mulit-scan ref="scanPopup" :titleArray="titleArray" @getScanResult='getScanResult'>
</win-mulit-scan> </win-mulit-scan> -->
<com-scan-issue-list ref="scanList" @selectedItem="selectedItem"></com-scan-issue-list> <comMessage ref="comMessage"></comMessage>
<!-- com-message必须放在最下层 -->
<com-message ref="comMessage"></com-message>
</view> </view>
</template> </template>
<script> <script>
import { import {
getDeliverBoardList, getDeliverList,
getIssueJobByNumber, getDeliverJobByNumber
getIssueListByRequest
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
@ -30,27 +25,22 @@
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
import comDeliverBoard from '@/mycomponents/coms/task/comDeliverBoard.vue'; import comDeliver from '@/mycomponents/coms/task/comDeliver.vue';
import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue'
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue'
import comScanIssueList from '@/mycomponents/scan/comScanIssueList.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
export default { export default {
name: 'issue', name: 'deliver',
components: { components: {
winEmptyView, winEmptyView,
comDeliverBoard,
comMessage,
winScanButton, winScanButton,
winMulitScan, winMulitScan,
comScanIssueList comDeliver,
comMessage
}, },
data() { data() {
return { return {
//popup deliverList: [],
type: '',
issueList: [],
reload: false, reload: false,
status: '', status: '',
contentText: { contentText: {
@ -60,8 +50,8 @@
}, },
pageSize: this.modelConfig, pageSize: this.modelConfig,
pageIndex: 1, pageIndex: 1,
isIssueTimeChange: false, isTimeWindowSorting: false,
isToday: false, isToday: true,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore"
}; };
@ -70,21 +60,54 @@
datacontent: { datacontent: {
type: Object, type: Object,
value: null value: null
}
}, },
isByFIFO: { onShow: function() {
type: Boolean, this.getList('refresh');
value: false },
onReachBottom() {
//
if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return;
} }
this.getList("more");
}, },
onShow() { onPullDownRefresh() {
this.getList('refresh'); this.getList('refresh');
}, },
//退
onBackPress(options) {
if (options.from === 'navigateBack') {
return false;
}
goHome();
return true;
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
goHome();
}else if(e.index === 1){
window.location.reload();
}
},
methods: { methods: {
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
//
timeSortingChange: function(e) {
this.isTimeWindowSorting = e.detail.value
this.getList()
},
// //
isTodayChange: function(e) {
this.isToday = e.detail.value
this.getList()
},
//
getList(type) { getList(type) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
@ -94,15 +117,15 @@
this.loadingType = "loading"; this.loadingType = "loading";
if (type === "refresh") { if (type === "refresh") {
this.pageIndex = 1; this.pageIndex = 1;
this.issueList = []; this.deliverList = [];
} }
let params = { let params = {
pageSize: that.pageSize, pageSize: that.pageSize,
pageIndex: that.pageIndex, pageIndex: that.pageIndex,
isCreationTimeSorting: that.isIssueTimeChange, // isCreationTimeSorting: that.isTimeWindowSorting,
isToday: that.isToday // isToday: that.isToday
}; };
getDeliverBoardList(params) getDeliverList(params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
@ -115,64 +138,38 @@
this.loadingType = "nomore"; this.loadingType = "nomore";
return; return;
} }
that.issueList = type === "refresh" ? list : this.issueList.concat(list); // that.deliverList = [...that.deliverList, ...list];
that.deliverList = type === "refresh" ? list : this.deliverList.concat(list);
that.pageIndex++; that.pageIndex++;
}) })
.catch(err => { .catch(err => {
this.loadingType = "";
this.showMessage(err.message); this.showMessage(err.message);
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") {
uni.stopPullDownRefresh();
}
}); });
}, },
getScanResult(type, result) { getScanResult(type, result) {
let code = result.data.code;
if (code == '') {
this.showMessage('扫描的内容不能为空')
return;
}
if (type == '任务编号') { if (type == '任务编号') {
this.scanByNumber(code, type); this.getByNumber(type, result.data.code);
}
},
//
scanByRequesNumber(code, type) {
let that = this;
uni.showLoading({
title: "加载中....",
mask: true
});
getIssueListByRequest(code).then(res => {
uni.hideLoading();
let items = res.items;
if (res.totalCount > 0) {
if (res.totalCount == 1) {
that.openDetail(items[0]);
} else {
that.showItemList(items);
}
} else {
that.showMessage('未查找到' + type + '为【' + code + '】的发料任务');
} }
}).catch(err => {
that.showMessage(err.message);
uni.hideLoading();
});
}, },
// getByNumber(type, code) {
scanByNumber(code, type) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",
mask: true mask: true
}); });
getIssueJobByNumber(code).then(res => { getDeliverJobByNumber(code).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res != null) { if (res != null) {
that.openDetail(res); that.openDetail(res);
} else { } else {
that.showMessage('未查找到' + type + '为【' + code + '】的发料任务'); that.showMessage('未查找到' + type + '为【' + code + '】的盘点任务');
} }
}).catch(err => { }).catch(err => {
that.showMessage(err.message); that.showMessage(err.message);
@ -185,26 +182,9 @@
url: './deliverBoard_detail?id=' + item.id + '&jobStatus=' + item.jobStatus url: './deliverBoard_detail?id=' + item.id + '&jobStatus=' + item.jobStatus
}); });
}, },
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() {
this.getList('refresh');
},
onReach() {
//
if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return;
}
this.getList('more');
},
showItemList(itemList) {
this.$refs.scanList.openPopup(itemList);
},
selectedItem(item) {
this.openDetail(item);
}
} }
}; };
</script> </script>

331
fe/PDA/pages/task/deliverBoard_detail.vue

@ -1,16 +1,14 @@
<!-- 发料任务详情 -->
<template> <template>
<page-meta root-font-size="16px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<view class="top_card"> <view class="top_card">
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :scanCount="scanCount"> <com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :scanCount="scanCount">
</com-job-scan-detail> </com-job-scan-detail>
</view> </view>
<scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower"
@scroll="scroll" class="scroll-detail">
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
class="scroll-detail">
<view class="detail-list margin_top" v-for="(item, index) in details" :key="item.id"> <view class="detail-list margin_top" v-for="(item, index) in details" :key="item.id">
<!-- <comDeliverBoardDetail :dataContent="item" :isShowPacking="true"></comDeliverBoardDetail> -->
<view class="detail-content"> <view class="detail-content">
<view class="choose_main"> <view class="choose_main">
<view class="ljh_box"> <view class="ljh_box">
@ -72,63 +70,58 @@
<button class="btn_single" hover-class="btn_single_after" @click="unPacking(item)">拆箱</button> <button class="btn_single" hover-class="btn_single_after" @click="unPacking(item)">拆箱</button>
</view> </view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<view class="uni-flex uni-row new_btn_bot">
<button class="new_clear_btn btn_double" @click="clear()">清空</button> <view class="new_btn_bot count_shadow">
<button class="new_save_btn btn_double" @click="submit()">提交</button> <button type="primary" class="new_save_btn" @click="submit()">提交</button>
</view> </view>
<com-balance ref='issueitems' @selectedItem='selectedBalanceItem'></com-balance>
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
<winScanByContainer ref="scanPopup" @getScanResult='getScanResult'></winScanByContainer> <winScanByContainer ref="scanPopup" @getScanResult='getScanResult'></winScanByContainer>
<com-balance ref="balanceItems" @selectedItem='selectedBalanceItem'></com-balance>
<comUnPacking ref='comUnPacking' <comUnPacking ref='comUnPacking'
@getvalue="getUnPackingCount" title="拆箱"> @getvalue="getUnPackingCount" title="拆箱">
</comUnPacking> </comUnPacking>
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' <comMessage ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'></comMessage>
@afterCloseScanMessage='closeScanMessage'></com-message>
</view> </view>
</template> </template>
<script> <script>
import { import {
getDeliverJobDetail, getDeliverDetail,
takeDeliverBoardJob, takeDeliverJob,
cancelTakeDeliverBoardJob, cancelTakeDeliverJob,
finshIssueJob, finshDeliverJob,
issueBalances balances
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
getJobStatuStyle, getJobStatuStyle,
getJobStatuDesc, getJobStatuDesc,
showConfirmMsg, showConfirmMsg,
goHome, goHome
compareDesc,
compareStr,
getCurrDateTime,
navigateBack
} from '@/common/basic.js'; } from '@/common/basic.js';
import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue'
import winScanByContainer from '@/mycomponents/wincom/winScanByContainer.vue' import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue'
import comBalance from '@/mycomponents/common/comBalance.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import comJobScanDetail from '@/mycomponents/comjob/comJobScanDetail.vue' import comJobScanDetail from '@/mycomponents/comjob/comJobScanDetail.vue'
import comDeliverBoardDetail from '@/mycomponents/coms/comDeliverBoardDetail.vue' import comBalance from '@/mycomponents/common/comBalance.vue'
import comNumberBox from '@/mycomponents/common/comNumberBox.vue';
import comUnPacking from '@/mycomponents/coms/comUnPacking.vue' import comUnPacking from '@/mycomponents/coms/comUnPacking.vue'
import winScanByContainer from '@/mycomponents/wincom/winScanByContainer.vue'
export default { export default {
components: { components: {
comMessage,
winScanButton, winScanButton,
winMulitScan,
winScanByContainer, winScanByContainer,
comBalance, comMessage,
comJobScanDetail, comJobScanDetail,
comDeliverBoardDetail, comBalance,
comNumberBox,
comUnPacking comUnPacking
}, },
data() { data() {
return { return {
type: '',
id: "", id: "",
datacontent: {}, datacontent: {},
details: {}, details: {},
@ -138,15 +131,24 @@
scrollTop: 0 scrollTop: 0
}, },
ispending: false, ispending: false,
balancesItem: null, balancesItem: {},
currentItem: null,
received: false, received: false,
titleArray: ['箱标签', '目标库位'],
allCount: 0, allCount: 0,
scanCount: 0, scanCount: 0,
jobStatus: ""
} }
}, },
filters: {
statusStyle: function(val) {
return getJobStatuStyle(val);
},
statusColor: function(val) {
return getJobStatuDesc(val);
}
},
props: {
itemCode: "",
},
onLoad(param) { onLoad(param) {
this.id = param.id; this.id = param.id;
if (param.jobStatus == 1) { if (param.jobStatus == 1) {
@ -162,28 +164,21 @@
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
goHome(); goHome();
} else if (e.index === 1) { }else if(e.index === 1){
window.location.reload(); window.location.reload();
} }
}, },
//
onBackPress(e) { onBackPress(e) {
// if (this.received) {
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
// //
cancelTakeDeliverBoardJob(this.id).then(res => { cancelTakeDeliverJob(this.id)
uni.navigateBack(); .then(res => {})
}).catch(error => { .catch(err => {
uni.navigateBack(); this.showMessage(err.message);
}) });
} else {
uni.navigateBack();
}
return true;
} }
}, },
mounted() { mounted() {
uni.setNavigationBarColor({ uni.setNavigationBarColor({
frontColor: '#ffffff', frontColor: '#ffffff',
@ -197,75 +192,138 @@
// //
getDetail() { getDetail() {
let that = this; let that = this;
if (that.id == undefined) {
return;
}
uni.showLoading({
title: '加载中...',
mask: true
})
let params = { let params = {
id: that.id, id: that.id,
}; };
getDeliverJobDetail(params) getDeliverDetail(params)
.then(item => { .then(item => {
console.log('item', item); console.log('item', item);
that.datacontent = item; that.datacontent = item;
that.details = item.details; that.details = item.details;
that.details[0].recommendContainerCode = "C19" that.details.forEach(r => r.scaned = false);
that.jobStatus = item.jobStatus
if (that.details != null) {
that.details.forEach(
r => {
r.scaned = false;
r.scanDate = new Date()
}
);
that.ispending = item.jobStatus === 2; that.ispending = item.jobStatus === 2;
// if (that.toLocation === '') { that.allCount = item.details.length;
// that.toLocation = item.details[0].requestLocationCode; // that.toLocation = item.details[0].recommendLocationCode;
// }
this.allCount = that.details.length;
this.scanCount = 0;
}
uni.hideLoading();
}) })
.catch(err => { .catch(err => {
this.showMessage('未查找到详细信息') this.showMessage('未查找到详细信息')
uni.hideLoading();
}); });
}, },
//
getScanResult(result) { getScanResult(result) {
// let that = this;
let item = this.details.find(r => r.recommendContainerCode == result.containerCode); let code = result.data.code;
if (item == undefined) { let item = this.details.find(r => {
this.showMessage("器具码【" + result.containerCode + "】不在列表中") return r.recommendPackingCode === code
});
if (item === undefined) {
this.showMessage('在发货任务详情中,未找到箱码【' + code + '】');
return;
} else { } else {
if (item.scaned) { if (item.scaned) {
this.showMessage("器具码【" + result.containerCode + "】已经扫描") this.showMessage('箱码【' + code + '】已经扫描,请扫描下一箱零件');
} else {
if (this.allCount == this.scanCount) {
this.showMessage("零件已经全部扫描完成");
return; return;
} }
item.containerCode = result.containerCode; }
//
let params = {
pageSize: 1000,
pageIndex: 1,
packingCode: code,
locationTypes: [4], //
inventoryStatuses: [2], //
};
balances(params)
.then(res => {
try {
if (res.totalCount == 0) {
this.showMessage('箱码【' + code + '】在【成品库】未查询到库存信息');
} else if (res.totalCount == 1) {
that.balancesItem = res.items[0];
this.createItem(item);
} else {
this.$refs.balanceItems.openPopup(res.items);
}
uni.hideLoading();
} catch (e) {
this.showMessage(e.message)
}
})
.catch(err => {
this.showMessage(err.message)
});
},
createItem(item) {
let that = this;
if (that.balancesItem != null || that.balancesItem != undefined) {
// if (that.balancesItem.qty != item.recommendQty) {
// this.showMessage('' + that.balancesItem.qty + '' + item.recommendQty + ',')
// } else {
item.scaned = true; item.scaned = true;
item.handleQty = 10; item.handledContainerCode = that.balancesItem.containerCode;
this.calcScanCount() item.handledPackingCode = that.balancesItem.packingCode;
this.$forceUpdate(); item.handledBatch = that.balancesItem.batch;
item.handledLot = that.balancesItem.lot;
item.handledFromLocationArea = that.balancesItem.locationCode;
item.handledQty = that.balancesItem.qty;
// ==================================
// item.recommendFromLocationCode = string;
// item.recommendFromLocationArea = string;
// item.recommendFromLocationGroup = string;
// item.recommendFromLocationErpCode = string;
// item.recommendFromWarehouseCode = string;
// item.uom = string;
// item.recommendQty = 0;
// item.handledFromLocationCode = string;
// item.handledFromLocationArea = string;
// item.handledFromLocationGroup = string;
// item.handledFromLocationErpCode = string;
// item.handledFromWarehouseCode = string;
// item.handledQty = that.balancesItem.qty;
// item.toLocationCode = string;
// item.toLocationArea = string;
// item.toLocationGroup = string;
// item.toLocationErpCode = string;
// item.toWarehouseCode = string;
// item.onTheWayLocationCode = string;
this.getScanCount();
this.closeScanPopup();
that.$forceUpdate();
// }
} }
},
unPacking(item) {
this.$refs.comUnPacking.openPopup3(this.datacontent,item,item.handledQty,item.recommendQty,false);
},
getScanCount() {
this.scanCount = this.datacontent.details.filter(r => r.scaned).length;
},
closeScanPopup() {
if (this.allCount == this.scanCount) {
this.$refs.scanPopup.closeScanPopup();
} }
}, },
// // selectedBalanceItem(balanceItem) {
that.balancesItem = balanceItem;
this.createItem(item);
},
//
receive(callback) { receive(callback) {
let params = { let params = {
id: this.id id: this.id
}; };
takeDeliverBoardJob(params) takeDeliverJob(params)
.then(res => { .then(res => {
callback(true); callback(true);
}) })
@ -274,59 +332,54 @@
callback(false); callback(false);
}); });
}, },
calcScanCount() {
this.scanCount = this.details.filter(r => r.scaned === true).length;
this.closeScanPopup();
},
submit() { submit() {
this.calcScanCount() let that = this;
if (this.scanCount != this.allCount) { if (that.datacontent.details.length === 0) {
this.showMessage('当前扫描数量【'+this.scanCount+"】,总数量为【"+this.allCount+"】,未全部扫描"); this.showMessage('该任务没有要发货的零件');
return;
}
let items = that.datacontent.details.filter(r => r.scaned);
if (items.length === 0) {
this.showMessage('请扫描要发货的零件');
return;
} else if (items.length < that.datacontent.details.length) {
this.showMessage('还有未扫描的零件,不可以发货');
return; return;
} else {
that.finsh();
} }
},
finsh() {
let that = this;
uni.showLoading({ uni.showLoading({
title: "提交中...", title: "提交中..."
mask: true
}); });
let params = that.datacontent;
// finshIssueJob(that.id, params) let params = JSON.stringify(that.datacontent);
console.log(params);
// finshDeliverJob(that.id, params)
// .then(res => { // .then(res => {
// uni.hideLoading(); // uni.hideLoading();
// if (res != null) { // if (res != null) {
// that.showCommitSuccessMessage(); // that.showCommitSuccessMessage();
// that.backJobList(); // that.backJobList(1000);
// } // }
// }) // })
// .catch(err => { // .catch(err => {
// that.showMessage(err.message); // this.showMessage(err.message);
// uni.hideLoading(); // uni.hideLoading();
// }); // });
}, },
// //
backJobList() { backJobList(delay) {
navigateBack(1) setTimeout(() => {
}, uni.navigateTo({
url: './deliver'
clear() { })
this.scanCount = 0; }, delay)
this.getDetail();
},
showMessage(message) {
this.$refs.comMessage.showMessage(message);
},
showScanMessage(message) {
this.$refs.comMessage.showScanMessage(message);
},
closeScanMessage() {
this.$refs.scanPopup.getfocus();
},
calcScanCount() {
this.scanCount = this.details.filter(r => r.scaned === true).length;
this.closeScanPopup();
}, },
showCommitSuccessMessage() { showCommitSuccessMessage() {
@ -344,21 +397,12 @@
} }
}, },
closeScanMessage() { clearScanLocation() {
this.scanPopupGetFocus(); // this.$refs.scanLocation.getfocus();
// this.$refs.scanLocation.clear();
}, },
showMessage(message) {
scanPopupGetFocus() { this.$refs.comMessage.showMessage(message);
this.$refs.scanPopup.getfocus();
},
scrollToTop() {
let that = this;
// view
that.scrollTop = that.old.scrollTop
this.$nextTick(function() {
that.scrollTop = 0
});
}, },
upper: function(e) { upper: function(e) {
@ -371,13 +415,6 @@
// console.log(e) // console.log(e)
this.old.scrollTop = e.detail.scrollTop; this.old.scrollTop = e.detail.scrollTop;
}, },
qtyChanged(value, item, index) {
if (value <= 0) {
this.showMessage('发料数量不能小于或等于0')
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty);
}
},
} }
} }
</script> </script>

6
fe/PDA/pages/task/issue_detail.vue

@ -520,8 +520,8 @@
item.handledBatch = balanceItem.batch; item.handledBatch = balanceItem.batch;
item.handledLot = balanceItem.lot; item.handledLot = balanceItem.lot;
item.defaultHandleQty = balanceItem.qty; item.handledQty = balanceItem.qty>item.recommendQty?item.recommendQty:balanceItem.qty;
item.handledQty = balanceItem.qty; item.defaultHandleQty = item.handledQty;
item.handledFromLocationCode = balanceItem.locationCode; item.handledFromLocationCode = balanceItem.locationCode;
item.handledFromLocationArea = balanceItem.locationArea; item.handledFromLocationArea = balanceItem.locationArea;
item.handledFromLocationGroup = balanceItem.locationErpCode; item.handledFromLocationGroup = balanceItem.locationErpCode;
@ -747,7 +747,7 @@
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); this.$refs['comNumberBox_' + index][0].setValue(item.handledQty);
} else if (value > item.defaultHandleQty) { } else if (value > item.defaultHandleQty) {
item.handledQty = item.defaultHandleQty item.handledQty = item.defaultHandleQty
this.showMessage('发料数量不能大于库存数量:' + item.handledQty) this.showMessage('发料数量不能大于叫料数量:' + item.handledQty)
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); this.$refs['comNumberBox_' + index][0].setValue(item.handledQty);
} }
}, },

Loading…
Cancel
Save