Browse Source

修改发料和非生产领料库位校验

pda_nev
李俊城 10 months ago
parent
commit
508c8d9917
  1. 20
      fe/PDA/api/index.js
  2. 7
      fe/PDA/common/basic.js
  3. 11
      fe/PDA/pages/return/purchaseReturnRequest.vue
  4. 51
      fe/PDA/pages/task/assembleIssueJob.vue
  5. 53
      fe/PDA/pages/task/coatingIssuleJob.vue
  6. 8
      fe/PDA/pages/task/deliverJis.vue
  7. 51
      fe/PDA/pages/task/injectionIssueJob.vue
  8. 51
      fe/PDA/pages/task/kittingIssueJob.vue
  9. 48
      fe/PDA/pages/task/sparePartIssueJob.vue
  10. 6
      fe/PDA/pages/task/unProducePickDetail.vue
  11. 6
      fe/PDA/pages/task/unProducePickWipDetail.vue
  12. 6
      fe/PDA/pages/task/unProduceReturnDetail.vue
  13. 6
      fe/PDA/pages/task/unProduceReturnWipDetail.vue

20
fe/PDA/api/index.js

@ -1737,8 +1737,8 @@ export const getItemCategoryList = () => request(
}) })
//注塑发料 任务列表 //注塑发料 任务列表
export const getInjectionIssueList = (pageIndex,pageSize,isFinished) => request( export const getInjectionIssueList = (pageIndex,pageSize,jobStatus) => request(
devUrl + "/api/pda/job/injection-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&isFinished="+isFinished, { devUrl + "/api/pda/job/injection-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&jobStatus="+jobStatus, {
method: 'post', method: 'post',
data: {} data: {}
}); });
@ -1785,8 +1785,8 @@ export const finshInjectionIssueJob = (masterId,detailId, params) => request(
}) })
//喷涂发料任务列表 //喷涂发料任务列表
export const getCoatingIssueList = (pageIndex,pageSize,isFinished) => request( export const getCoatingIssueList = (pageIndex,pageSize,jobStatus) => request(
devUrl + "/api/pda/job/coating-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&isFinished="+isFinished, { devUrl + "/api/pda/job/coating-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&jobStatus="+jobStatus, {
method: 'post', method: 'post',
data: {} data: {}
}); });
@ -1877,8 +1877,8 @@ export const getCoatingRequestDetail = (id) => request(
//装配发料任务列表 //装配发料任务列表
export const getAssembleIssueList = (pageIndex,pageSize,isFinished) => request( export const getAssembleIssueList = (pageIndex,pageSize,jobStatus) => request(
devUrl + "/api/pda/job/assemble-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&isFinished="+isFinished, { devUrl + "/api/pda/job/assemble-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&jobStatus="+jobStatus, {
method: 'post', method: 'post',
data: {} data: {}
}); });
@ -1968,8 +1968,8 @@ export const isAssembleHasNewJob = (requestNumber,data) => promise(
}) })
//kiting发料任务列表 //kiting发料任务列表
export const getKittingIssueList = (pageIndex,pageSize,isFinished) => request( export const getKittingIssueList = (pageIndex,pageSize,jobStatus) => request(
devUrl + "/api/pda/job/kitting-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&isFinished="+isFinished, { devUrl + "/api/pda/job/kitting-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&jobStatus="+jobStatus, {
method: 'post', method: 'post',
data: {} data: {}
}); });
@ -2061,8 +2061,8 @@ export const getCountByItemCode = (itemCode) => request(
}) })
//备件发料任务列表 //备件发料任务列表
export const getSparePartIssueList = (pageIndex,pageSize,isFinished) => request( export const getSparePartIssueList = (pageIndex,pageSize,jobStatus) => request(
devUrl + "/api/pda/job/spare-part-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&isFinished="+isFinished, { devUrl + "/api/pda/job/spare-part-issue/list?pageIndex="+pageIndex+"&pageSize="+pageSize+"&jobStatus="+jobStatus, {
method: 'post', method: 'post',
data: {} data: {}
}); });

7
fe/PDA/common/basic.js

@ -451,4 +451,11 @@ export function deepCopyData(target) {
} }
return cloneTarget; return cloneTarget;
}
//发料任务列表状态
export function getIssueJobState(val) {
if (val == 0) return 'ALL'
else if (val == 1) return 'Open'
else if (val == 2) return 'Wait'
} }

11
fe/PDA/pages/return/purchaseReturnRequest.vue

@ -33,7 +33,8 @@
purchaseReturnRequestSubmit purchaseReturnRequestSubmit
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
navigateBack navigateBack,
goHome
} from '@/common/basic.js'; } from '@/common/basic.js';
import winBlankView from '@/mycomponents/wincom/winBlankView.vue' import winBlankView from '@/mycomponents/wincom/winBlankView.vue'
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue'
@ -73,6 +74,14 @@
onReady() { onReady() {
this.openScanPopup(); this.openScanPopup();
}, },
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
goHome();
}else if(e.index === 1){
window.location.reload();
}
},
methods: { methods: {
// //
getScanResult(result) { getScanResult(result) {

51
fe/PDA/pages/task/assembleIssueJob.vue

@ -1,17 +1,8 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<!-- <view class="uni-flex uni-row require_wrap"> <uni-segmented-control :current="current" :values="taps" @clickItem="onClickItem" styleType="button"
<button @click="isTodayChange" :class="[isToday==true?'require_cell require_active':'require_cell']"> activeColor="#007AFF"></uni-segmented-control>
<text></text>
只看当天发料
</button>
<button @click="timeSortingChange"
:class="[isIssueTimeChange==true?'require_cell require_active':'require_cell']">
<text></text>
按发料时间排序
</button>
</view> -->
<win-empty-view v-if="issueList.length==0"></win-empty-view> <win-empty-view v-if="issueList.length==0"></win-empty-view>
@ -37,7 +28,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
getIssueJobState
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -76,7 +68,9 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
taps:["全部","待处理","等待"],
current:0
}; };
}, },
props: { props: {
@ -90,7 +84,9 @@
} }
}, },
onShow() { onShow() {
this.getList('refresh'); this.current = 0;
var jobState =getIssueJobState(this.current)
this.getList('refresh',jobState);
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
@ -100,23 +96,18 @@
} }
}, },
methods: { methods: {
onClickItem(item) {
this.current = item.currentIndex;
var jobState =getIssueJobState(this.current)
console.log("点击", this.current)
this.getList("refresh",jobState);
},
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
//
timeSortingChange() {
this.isIssueTimeChange = !this.isIssueTimeChange;
this.getList()
},
//
isTodayChange() {
this.isToday = !this.isToday
this.getList()
},
// //
getList(type) { getList(type,jobState) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",
@ -127,7 +118,7 @@
this.pageIndex = 1; this.pageIndex = 1;
this.issueList = []; this.issueList = [];
} }
getAssembleIssueList(that.pageIndex,that.pageSize,false) getAssembleIssueList(that.pageIndex,that.pageSize,jobState)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
@ -228,14 +219,16 @@
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPull() {
this.getList('refresh'); var jobState =getIssueJobState(this.current)
this.getList("refresh",jobState);
}, },
onReachBottom() { onReachBottom() {
// //
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return; return;
} }
this.getList('more'); var jobState =getIssueJobState(this.current)
this.getList('more',jobState);
}, },
showItemList(itemList) { showItemList(itemList) {
this.$refs.scanList.openPopup(itemList); this.$refs.scanList.openPopup(itemList);

53
fe/PDA/pages/task/coatingIssuleJob.vue

@ -1,17 +1,8 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<!-- <view class="uni-flex uni-row require_wrap"> <uni-segmented-control :current="current" :values="taps" @clickItem="onClickItem" styleType="button"
<button @click="isTodayChange" :class="[isToday==true?'require_cell require_active':'require_cell']"> activeColor="#007AFF"></uni-segmented-control>
<text></text>
只看当天发料
</button>
<button @click="timeSortingChange"
:class="[isIssueTimeChange==true?'require_cell require_active':'require_cell']">
<text></text>
按发料时间排序
</button>
</view> -->
<win-empty-view v-if="issueList.length==0"></win-empty-view> <win-empty-view v-if="issueList.length==0"></win-empty-view>
@ -37,7 +28,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
getIssueJobState
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -78,7 +70,9 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
taps:["全部","待处理","等待"],
current:0
}; };
}, },
props: { props: {
@ -92,7 +86,9 @@
} }
}, },
onShow() { onShow() {
this.getList('refresh'); this.current = 0;
var jobState =getIssueJobState(this.current)
this.getList('refresh',jobState);
}, },
// //
@ -104,23 +100,18 @@
} }
}, },
methods: { methods: {
onClickItem(item) {
this.current = item.currentIndex;
var jobState =getIssueJobState(this.current)
console.log("点击", this.current)
this.getList("refresh",jobState);
},
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
//
timeSortingChange() {
this.isIssueTimeChange = !this.isIssueTimeChange;
this.getList()
},
//
isTodayChange() {
this.isToday = !this.isToday
this.getList()
},
// //
getList(type) { getList(type,jobState) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",
@ -131,7 +122,7 @@
this.pageIndex = 1; this.pageIndex = 1;
this.issueList = []; this.issueList = [];
} }
getCoatingIssueList(that.pageIndex,that.pageSize,false) getCoatingIssueList(that.pageIndex,that.pageSize,jobState)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
@ -230,14 +221,16 @@
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPull() {
this.getList('refresh'); var jobState =getIssueJobState(this.current)
this.getList("refresh",jobState);
}, },
onReach() { onReachBottom() {
// //
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return; return;
} }
this.getList('more'); var jobState =getIssueJobState(this.current)
this.getList('more',jobState);
}, },
showItemList(itemList) { showItemList(itemList) {
this.$refs.scanList.openPopup(itemList); this.$refs.scanList.openPopup(itemList);

8
fe/PDA/pages/task/deliverJis.vue

@ -79,6 +79,14 @@
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
//
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();

51
fe/PDA/pages/task/injectionIssueJob.vue

@ -1,17 +1,8 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<!-- <view class="uni-flex uni-row require_wrap"> <uni-segmented-control :current="current" :values="taps" @clickItem="onClickItem" styleType="button"
<button @click="isTodayChange" :class="[isToday==true?'require_cell require_active':'require_cell']"> activeColor="#007AFF"></uni-segmented-control>
<text></text>
只看当天发料
</button>
<button @click="timeSortingChange"
:class="[isIssueTimeChange==true?'require_cell require_active':'require_cell']">
<text></text>
按发料时间排序
</button>
</view> -->
<win-empty-view v-if="issueList.length==0"></win-empty-view> <win-empty-view v-if="issueList.length==0"></win-empty-view>
@ -37,7 +28,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
getIssueJobState
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -76,7 +68,9 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
taps:["全部","待处理","等待"],
current:0
}; };
}, },
props: { props: {
@ -90,7 +84,9 @@
} }
}, },
onShow() { onShow() {
this.getList('refresh'); this.current = 0;
var jobState =getIssueJobState(this.current)
this.getList('refresh',jobState);
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
@ -100,23 +96,18 @@
} }
}, },
methods: { methods: {
onClickItem(item) {
this.current = item.currentIndex;
var jobState =getIssueJobState(this.current)
console.log("点击", this.current)
this.getList("refresh",jobState);
},
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
//
timeSortingChange() {
this.isIssueTimeChange = !this.isIssueTimeChange;
this.getList()
},
//
isTodayChange() {
this.isToday = !this.isToday
this.getList()
},
// //
getList(type) { getList(type,jobState) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",
@ -127,7 +118,7 @@
this.pageIndex = 1; this.pageIndex = 1;
this.issueList = []; this.issueList = [];
} }
getInjectionIssueList(that.pageIndex,that.pageSize,false) getInjectionIssueList(that.pageIndex,that.pageSize,jobState)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
@ -227,14 +218,16 @@
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPull() {
this.getList('refresh'); var jobState =getIssueJobState(this.current)
this.getList("refresh",jobState);
}, },
onReachBottom() { onReachBottom() {
// //
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return; return;
} }
this.getList('more'); var jobState =getIssueJobState(this.current)
this.getList('more',jobState);
}, },
showItemList(itemList) { showItemList(itemList) {
this.$refs.scanList.openPopup(itemList); this.$refs.scanList.openPopup(itemList);

51
fe/PDA/pages/task/kittingIssueJob.vue

@ -1,17 +1,8 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<!-- <view class="uni-flex uni-row require_wrap"> <uni-segmented-control :current="current" :values="taps" @clickItem="onClickItem" styleType="button"
<button @click="isTodayChange" :class="[isToday==true?'require_cell require_active':'require_cell']"> activeColor="#007AFF"></uni-segmented-control>
<text></text>
只看当天发料
</button>
<button @click="timeSortingChange"
:class="[isIssueTimeChange==true?'require_cell require_active':'require_cell']">
<text></text>
按发料时间排序
</button>
</view> -->
<win-empty-view v-if="issueList.length==0"></win-empty-view> <win-empty-view v-if="issueList.length==0"></win-empty-view>
@ -37,7 +28,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
getIssueJobState
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -76,7 +68,9 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
taps:["全部","待处理","等待"],
current:0
}; };
}, },
props: { props: {
@ -90,7 +84,9 @@
} }
}, },
onShow() { onShow() {
this.getList('refresh'); this.current = 0;
var jobState =getIssueJobState(this.current)
this.getList('refresh',jobState);
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
@ -100,23 +96,18 @@
} }
}, },
methods: { methods: {
onClickItem(item) {
this.current = item.currentIndex;
var jobState =getIssueJobState(this.current)
console.log("点击", this.current)
this.getList("refresh",jobState);
},
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
//
timeSortingChange() {
this.isIssueTimeChange = !this.isIssueTimeChange;
this.getList()
},
//
isTodayChange() {
this.isToday = !this.isToday
this.getList()
},
// //
getList(type) { getList(type,jobState) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",
@ -127,7 +118,7 @@
this.pageIndex = 1; this.pageIndex = 1;
this.issueList = []; this.issueList = [];
} }
getKittingIssueList(that.pageIndex,that.pageSize,false) getKittingIssueList(that.pageIndex,that.pageSize,jobState)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
@ -227,14 +218,16 @@
this.$refs.comMessage.showMessage(message); this.$refs.comMessage.showMessage(message);
}, },
onPull() { onPull() {
this.getList('refresh'); var jobState =getIssueJobState(this.current)
this.getList("refresh",jobState);
}, },
onReachBottom() { onReachBottom() {
// //
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return; return;
} }
this.getList('more'); var jobState =getIssueJobState(this.current)
this.getList('more',jobState);
}, },
showItemList(itemList) { showItemList(itemList) {
this.$refs.scanList.openPopup(itemList); this.$refs.scanList.openPopup(itemList);

48
fe/PDA/pages/task/sparePartIssueJob.vue

@ -1,17 +1,8 @@
<template> <template>
<page-meta root-font-size="18px"></page-meta> <page-meta root-font-size="18px"></page-meta>
<view class=""> <view class="">
<!-- <view class="uni-flex uni-row require_wrap"> <uni-segmented-control :current="current" :values="taps" @clickItem="onClickItem" styleType="button"
<button @click="isTodayChange" :class="[isToday==true?'require_cell require_active':'require_cell']"> activeColor="#007AFF"></uni-segmented-control>
<text></text>
只看当天发料
</button>
<button @click="timeSortingChange"
:class="[isIssueTimeChange==true?'require_cell require_active':'require_cell']">
<text></text>
按发料时间排序
</button>
</view> -->
<win-empty-view v-if="issueList.length==0"></win-empty-view> <win-empty-view v-if="issueList.length==0"></win-empty-view>
@ -37,7 +28,8 @@
} from '@/api/index.js'; } from '@/api/index.js';
import { import {
goHome goHome,
getIssueJobState
} from '@/common/basic.js'; } from '@/common/basic.js';
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue'
@ -76,7 +68,9 @@
isIssueTimeChange: false, isIssueTimeChange: false,
isToday: false, isToday: false,
titleArray: ['任务编号'], titleArray: ['任务编号'],
loadingType: "nomore" loadingType: "nomore",
taps:["全部","待处理","等待"],
current:0
}; };
}, },
props: { props: {
@ -90,7 +84,9 @@
} }
}, },
onShow() { onShow() {
this.getList('refresh'); this.current = 0;
var jobState =getIssueJobState(this.current)
this.getList('refresh',jobState);
}, },
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
@ -100,23 +96,18 @@
} }
}, },
methods: { methods: {
onClickItem(item) {
this.current = item.currentIndex;
var jobState =getIssueJobState(this.current)
console.log("点击", this.current)
this.getList("refresh",jobState);
},
openScanPopup() { openScanPopup() {
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
//
timeSortingChange() {
this.isIssueTimeChange = !this.isIssueTimeChange;
this.getList()
},
//
isTodayChange() {
this.isToday = !this.isToday
this.getList()
},
// //
getList(type) { getList(type,jobState) {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({
title: "加载中....", title: "加载中....",
@ -127,7 +118,7 @@
this.pageIndex = 1; this.pageIndex = 1;
this.issueList = []; this.issueList = [];
} }
getSparePartIssueList(that.pageIndex,that.pageSize,false) getSparePartIssueList(that.pageIndex,that.pageSize,jobState)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
@ -234,7 +225,8 @@
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return; return;
} }
this.getList('more'); var jobState =getIssueJobState(this.current)
this.getList('more',jobState);
}, },
showItemList(itemList) { showItemList(itemList) {
this.$refs.scanList.openPopup(itemList); this.$refs.scanList.openPopup(itemList);

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

@ -70,7 +70,7 @@
</uni-th> </uni-th>
</uni-tr> </uni-tr>
<uni-tr> <uni-tr>
<uni-th width="60">库位</uni-th> <uni-th width="70">来源库位</uni-th>
<uni-th width="100" align="center"> <uni-th width="100" align="center">
<view class="text_black">{{ item.recommendFromLocationCode }}</view> <view class="text_black">{{ item.recommendFromLocationCode }}</view>
</uni-th> </uni-th>
@ -442,8 +442,8 @@
item.handledBatch = balanceItem.batch; item.handledBatch = balanceItem.batch;
item.handledLot = balanceItem.lot; item.handledLot = balanceItem.lot;
item.defaultHandleQty = balanceItem.qty; item.defaultHandleQty = balanceItem.qty>item.recommendQty?item.recommendQty:balanceItem.qty;
item.handledQty = balanceItem.qty; item.handledQty = balanceItem.qty>item.recommendQty?item.recommendQty:balanceItem.qty;
item.handledFromLocationCode = balanceItem.locationCode; item.handledFromLocationCode = balanceItem.locationCode;
item.handledFromLocationArea = balanceItem.locationArea; item.handledFromLocationArea = balanceItem.locationArea;
item.handledFromLocationGroup = balanceItem.locationGroup; item.handledFromLocationGroup = balanceItem.locationGroup;

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

@ -31,7 +31,7 @@
<uni-th width="140" align="center">实际</uni-th> <uni-th width="140" align="center">实际</uni-th>
</uni-tr> </uni-tr>
<uni-tr> <uni-tr>
<uni-th width="50">库位</uni-th> <uni-th width="70">来源库位</uni-th>
<uni-th width="100" align="center"> <uni-th width="100" align="center">
<view class="text_black">{{ item.recommendFromLocationCode }}</view> <view class="text_black">{{ item.recommendFromLocationCode }}</view>
</uni-th> </uni-th>
@ -204,6 +204,10 @@
}, },
getToLocation(locationInfo) { getToLocation(locationInfo) {
if(this.currentItem.recommendFromLocationCode!=locationInfo.code){
this.showMessage("扫描库位["+locationInfo.code+"]与推荐来源库位["+this.currentItem.recommendFromLocationCode+"]不一致")
return;
}
this.currentItem.handledFromLocationCode = locationInfo.code; this.currentItem.handledFromLocationCode = locationInfo.code;
this.currentItem.handledFromLocationArea = locationInfo.areaCode this.currentItem.handledFromLocationArea = locationInfo.areaCode
this.currentItem.handledFromLocationGroup = locationInfo.locationGroupCode this.currentItem.handledFromLocationGroup = locationInfo.locationGroupCode

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

@ -70,7 +70,7 @@
</uni-th> </uni-th>
</uni-tr> </uni-tr>
<uni-tr> <uni-tr>
<uni-th width="60">目标库位</uni-th> <uni-th width="70">目标库位</uni-th>
<uni-th width="100" align="center"> <uni-th width="100" align="center">
<view class="text_black">{{ item.recommendToLocationCode }}</view> <view class="text_black">{{ item.recommendToLocationCode }}</view>
</uni-th> </uni-th>
@ -419,8 +419,8 @@
item.handledBatch = result.data.batch; item.handledBatch = result.data.batch;
item.handledLot = result.data.lot; item.handledLot = result.data.lot;
item.defaultHandleQty = result.data.qty; item.defaultHandleQty = result.data.qty>item.recommendQty?item.recommendQty:result.data.qty;
item.handledQty = result.data.qty; item.handledQty = result.data.qty>item.recommendQty?item.recommendQty:result.data.qty;
item.handledFromLocationCode = ""; item.handledFromLocationCode = "";
item.handledFromLocationArea = ""; item.handledFromLocationArea = "";
item.handledFromLocationGroup = ""; item.handledFromLocationGroup = "";

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

@ -31,7 +31,7 @@
<uni-th width="140" align="center">实际</uni-th> <uni-th width="140" align="center">实际</uni-th>
</uni-tr> </uni-tr>
<uni-tr> <uni-tr>
<uni-th width="50">库位</uni-th> <uni-th width="50">目标库位</uni-th>
<uni-th width="100" align="center"> <uni-th width="100" align="center">
<view class="text_black">{{ item.recommendToLocationCode }}</view> <view class="text_black">{{ item.recommendToLocationCode }}</view>
</uni-th> </uni-th>
@ -204,6 +204,10 @@
}, },
getToLocation(locationInfo) { getToLocation(locationInfo) {
if(this.currentItem.recommendToLocationCode!=locationInfo.code){
this.showMessage("扫描库位["+locationInfo.code+"]与推荐目标库位["+this.currentItem.recommendToLocationCode+"]不一致")
return;
}
this.currentItem.handledToLocationCode = locationInfo.code; this.currentItem.handledToLocationCode = locationInfo.code;
this.currentItem.handledToLocationArea = locationInfo.areaCode this.currentItem.handledToLocationArea = locationInfo.areaCode
this.currentItem.handledToLocationGroup = locationInfo.locationGroupCode this.currentItem.handledToLocationGroup = locationInfo.locationGroupCode

Loading…
Cancel
Save