Browse Source

修改申请执行

pda_nev
李俊城 12 months ago
parent
commit
63d264436e
  1. 27
      fe/PDA/api/index.js
  2. 11
      fe/PDA/common/basic.js
  3. 7
      fe/PDA/mycomponents/coms/comUnPacking.vue
  4. 3
      fe/PDA/pages/index/index.vue
  5. 5
      fe/PDA/pages/request/assembleIssueRequestList.vue
  6. 5
      fe/PDA/pages/request/assembleIssueRequestListDetail.vue
  7. 5
      fe/PDA/pages/request/coatingIssueRequestList.vue
  8. 5
      fe/PDA/pages/request/coatingIssueRequestListDetail.vue
  9. 7
      fe/PDA/pages/request/injectionIssueRequestList.vue
  10. 9
      fe/PDA/pages/request/injectionIssueRequestListDetail.vue
  11. 5
      fe/PDA/pages/request/kittingIssueRequestList.vue
  12. 5
      fe/PDA/pages/request/kittingIssueRequestListDetail.vue
  13. 5
      fe/PDA/pages/request/sparePartIssueRequestList.vue
  14. 5
      fe/PDA/pages/request/sparePartIssueRequestListDetail.vue
  15. 5
      fe/PDA/pages/request/thirdLocationRequestList.vue
  16. 13
      fe/PDA/pages/return/purchaseReturnRequestApprove.vue
  17. 6
      fe/PDA/pages/task/assembleIssueJobDetail.vue
  18. 8
      fe/PDA/pages/task/assembleIssueJobDetailByQty.vue
  19. 9
      fe/PDA/pages/task/coatingIssuleJob.vue
  20. 6
      fe/PDA/pages/task/coatingIssuleJobDetail.vue
  21. 5
      fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue
  22. 2
      fe/PDA/pages/task/countFgDetail.vue
  23. 3
      fe/PDA/pages/task/injectionIssueJobDetail.vue
  24. 4
      fe/PDA/pages/task/injectionIssueJobDetailByQty.vue
  25. 6
      fe/PDA/pages/task/kittingIssueJobDetail.vue
  26. 12
      fe/PDA/pages/task/kittingIssueJobDetailByQty.vue
  27. 6
      fe/PDA/pages/task/sparePartIssueJobDetail.vue
  28. 5
      fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

27
fe/PDA/api/index.js

@ -1643,12 +1643,19 @@ export const getInjectionRequestJobByRequest = (requestNumber) => promise(
}) })
//注塑发料 是否有新任务 //注塑发料 是否有新任务
export const isInjectionHasNewJob = (data) => promise( export const isInjectionHasNewJob = (requestNumber,data) => promise(
devUrl + "/api/pda/store/injection-request/isHasNewJob", { devUrl + "/api/pda/store/injection-request/isHasNewJob?requestNumber="+requestNumber, {
method: 'post', method: 'post',
data: data data: data
}) })
//注塑发料申请详情
export const injectionRequestDetail = (id) => promise(
devUrl + "/api/pda/store/injection-request/"+id, {
method: 'get',
data: {}
})
//注塑计划 申请 //注塑计划 申请
@ -1823,8 +1830,8 @@ export const getCoatingRequestJobByRequest = (requestNumber) => promise(
}) })
//喷涂发料 是否有新任务 //喷涂发料 是否有新任务
export const isCoatingHasNewJob = (data) => promise( export const isCoatingHasNewJob = (requestNumber,data) => promise(
devUrl + "/api/pda/store/coating-request/isHasNewJob", { devUrl + "/api/pda/store/coating-request/isHasNewJob?requestNumber="+requestNumber, {
method: 'post', method: 'post',
data: data data: data
}) })
@ -1922,8 +1929,8 @@ export const getAssembleRequestJobByRequest = (requestNumber) => promise(
}) })
//装配 发料 是否有新任务 //装配 发料 是否有新任务
export const isAssembleHasNewJob = (data) => promise( export const isAssembleHasNewJob = (requestNumber,data) => promise(
devUrl + "/api/pda/store/assemble-request/isHasNewJob", { devUrl + "/api/pda/store/assemble-request/isHasNewJob?requestNumber="+requestNumber, {
method: 'post', method: 'post',
data: data data: data
}) })
@ -1970,8 +1977,8 @@ export const getkittingRequestJobByRequest = (requestNumber) => promise(
}) })
//kiting发料 是否有新任务 //kiting发料 是否有新任务
export const iskittingHasNewJob = (data) => promise( export const iskittingHasNewJob = (requestNumber,data) => promise(
devUrl + "/api/pda/store/kitting-request/isHasNewJob", { devUrl + "/api/pda/store/kitting-request/isHasNewJob?requestNumber="+requestNumber, {
method: 'post', method: 'post',
data: data data: data
}) })
@ -2063,8 +2070,8 @@ export const getSparePartRequestJobByRequest = (requestNumber) => promise(
}) })
//备件发料 是否有新任务 //备件发料 是否有新任务
export const isSparePartHasNewJob = (data) => promise( export const isSparePartHasNewJob = (requestNumber,data) => promise(
devUrl + "/api/pda/store/spare-part-request/isHasNewJob", { devUrl + "/api/pda/store/spare-part-request/isHasNewJob?requestNumber="+requestNumber, {
method: 'post', method: 'post',
data: data data: data
}) })

11
fe/PDA/common/basic.js

@ -206,7 +206,16 @@ export function getJobType(val) {
else if (val == 6) return 'IssueJob' //发料任务 else if (val == 6) return 'IssueJob' //发料任务
else if (val == 7) return 'DeliverJob' //发货任务 else if (val == 7) return 'DeliverJob' //发货任务
else if (val == 8) return 'CheckJob' //校验任务 else if (val == 8) return 'CheckJob' //校验任务
else if (val == 9) return 'CountJob' //盘点任务 else if (val == 9) return 'ByPackingCode' //盘点任务有箱码
else if (val == 10) return 'ByErpItemCode' //盘点任务无箱码
else if (val == 16) return 'ContainerTransferJob' //器具转移
else if (val == 17) return 'ThirdLocationJob' //三方库
else if (val == 18) return 'InjectionIssueJob' //注塑发料
else if (val == 19) return 'InjectionPlanJob' //注塑计划
else if (val == 20) return 'CoatingIssueJob' //喷涂发料
else if (val == 21) return 'AssembleIssueJob' //装配发料
else if (val == 22) return 'KittingIssueJob' //kitting发料
else if (val == 23) return 'SparePartIssueJob' //备品发料
else return 'Other' else return 'Other'
} }

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

@ -230,8 +230,13 @@
mask:true mask:true
}) })
var labelData = await getInventoryLabel(this.dataContent.recommendPackingCode) var labelData = await getInventoryLabel(this.dataContent.recommendPackingCode)
if(!newPackingCodeParam){
uni.hideLoading()
this.showMessage("箱码["+this.dataContent.recommendPackingCode+"]在标签表中不存在")
return;
}
var newPackingCodeParam = this.setNewPackingCodeParam(labelData,qty) var newPackingCodeParam = this.setNewPackingCodeParam(labelData,qty)
var newPackingCodeData = await generateNewPacking(1,newPackingCodeParam); var newPackingCodeData = await generateNewPacking(1,newPackingCodeParam);
var unPackingParams; var unPackingParams;
if(this.jobType==6){ if(this.jobType==6){

3
fe/PDA/pages/index/index.vue

@ -228,7 +228,10 @@
let that = this; let that = this;
let isToday = this.$isReceiptToday; let isToday = this.$isReceiptToday;
let jobItems = await getJobCountAsync(isToday,localStorage.getItem('userId')); let jobItems = await getJobCountAsync(isToday,localStorage.getItem('userId'));
jobItems.items.push({jobType:18,count:3})
let jobTypes = jobItems.items; // let jobTypes = jobItems.items; //
if (menus != null && jobTypes != null) { if (menus != null && jobTypes != null) {
for (var g = 0; g < menus.length; g++) { for (var g = 0; g < menus.length; g++) {
let group = menus[g]; let group = menus[g];

5
fe/PDA/pages/request/assembleIssueRequestList.vue

@ -114,11 +114,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.kittingRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isAssembleHasNewJob(isHaveNewJobList) var isHaveNewJob = await isAssembleHasNewJob(item.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
this.getList('refresh')
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/assembleIssueRequestListDetail.vue

@ -189,11 +189,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.assembleRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isAssembleHasNewJob(isHaveNewJobList) var isHaveNewJob = await isAssembleHasNewJob(this.datacontent.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
navigateBack(1)
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/coatingIssueRequestList.vue

@ -113,11 +113,12 @@
var isHaveNewJobList = []; var isHaveNewJobList = [];
jobList.forEach(res => { jobList.forEach(res => {
isHaveNewJobList.push(res.CoatingRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isCoatingHasNewJob(isHaveNewJobList) var isHaveNewJob = await isCoatingHasNewJob(item.number, isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
this.getList('refresh')
} catch (error) { } catch (error) {
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/coatingIssueRequestListDetail.vue

@ -189,11 +189,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.coatingRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isCoatingHasNewJob(isHaveNewJobList) var isHaveNewJob = await isCoatingHasNewJob(this.datacontent.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
navigateBack(1)
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

7
fe/PDA/pages/request/injectionIssueRequestList.vue

@ -114,11 +114,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.injectionRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isInjectionHasNewJob(isHaveNewJobList) var isHaveNewJob = await isInjectionHasNewJob(item.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
this.getList('refresh')
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)
@ -182,7 +183,7 @@
openDetail(item) { openDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './kittingIssueRequestListDetail?id=' + item.id + '&jobStatus=' + item.jobStatus url: './injectionIssueRequestListDetail?id=' + item.id + '&jobStatus=' + item.jobStatus
}); });
}, },
showMessage(message) { showMessage(message) {

9
fe/PDA/pages/request/injectionIssueRequestListDetail.vue

@ -90,7 +90,7 @@
<script> <script>
import { import {
getInjectionRequestList, injectionRequestDetail,
injectionRequestHandle, injectionRequestHandle,
getInjectionRequestJobByRequest, getInjectionRequestJobByRequest,
isInjectionHasNewJob isInjectionHasNewJob
@ -143,7 +143,7 @@
mask:false mask:false
}) })
let that = this; let that = this;
getInjectionRequestList(that.id) injectionRequestDetail(that.id)
.then(item => { .then(item => {
uni.hideLoading() uni.hideLoading()
console.log('item', item); console.log('item', item);
@ -189,11 +189,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.injectionRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isInjectionHasNewJob(isHaveNewJobList) var isHaveNewJob = await isInjectionHasNewJob(this.datacontent.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
navigateBack(1)
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/kittingIssueRequestList.vue

@ -114,11 +114,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.kittingRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await iskittingHasNewJob(isHaveNewJobList) var isHaveNewJob = await iskittingHasNewJob(item.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
this.getList('refresh')
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/kittingIssueRequestListDetail.vue

@ -189,11 +189,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.kittingRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await iskittingHasNewJob(isHaveNewJobList) var isHaveNewJob = await iskittingHasNewJob(this.datacontent.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
navigateBack(1)
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/sparePartIssueRequestList.vue

@ -114,11 +114,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.kittingRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isSparePartHasNewJob(isHaveNewJobList) var isHaveNewJob = await isSparePartHasNewJob(item.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
this.getList('refresh')
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/sparePartIssueRequestListDetail.vue

@ -189,11 +189,12 @@
var isHaveNewJobList=[]; var isHaveNewJobList=[];
jobList.forEach(res=>{ jobList.forEach(res=>{
isHaveNewJobList.push(res.SparePartRequestNumber); isHaveNewJobList.push(res.number);
}) })
var isHaveNewJob = await isSparePartHasNewJob(isHaveNewJobList) var isHaveNewJob = await isSparePartHasNewJob(this.datacontent.number,isHaveNewJobList)
uni.hideLoading() uni.hideLoading()
this.showMessage(isHaveNewJob) this.showMessage(isHaveNewJob)
navigateBack(1);
}catch(error){ }catch(error){
uni.hideLoading() uni.hideLoading()
this.showMessage(error) this.showMessage(error)

5
fe/PDA/pages/request/thirdLocationRequestList.vue

@ -108,10 +108,15 @@
}) })
thirdLocationRequestCancle(item.id).then(res => { thirdLocationRequestCancle(item.id).then(res => {
uni.hideLoading() uni.hideLoading()
if(res.error){
this.showMessage("取消失败" + res.error.message)
}else {
uni.showToast({ uni.showToast({
title:"取消成功" title:"取消成功"
}) })
this.getList('refresh'); this.getList('refresh');
}
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
this.showMessage("取消失败" + error) this.showMessage("取消失败" + error)

13
fe/PDA/pages/return/purchaseReturnRequestApprove.vue

@ -55,7 +55,12 @@
skipCount: 0, skipCount: 0,
pageIndex: 0, pageIndex: 0,
totalCount: 0, totalCount: 0,
filter: [] filter: [{
logic: "And",
column: "requestStatus",
action: "==",
value: "2"
}]
}; };
}, },
@ -125,7 +130,8 @@
skipCount: this.skipCount, skipCount: this.skipCount,
sorting: "", sorting: "",
condition: { condition: {
filters: this.filter filters: this.filter,
// [ // [
// { // {
// logic: "And", // logic: "And",
@ -167,7 +173,8 @@
openDetail(item) { openDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './purchaseReturnRequestApprove_detail?id=' + item.id +"&requestStatus="+item.requestStatus url: './purchaseReturnRequestApprove_detail?id=' + item.id + "&requestStatus=" + item
.requestStatus
}); });
}, },

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

@ -250,6 +250,12 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeAssembleIssueJob(this.id).then(res => {
}).catch(error => {
})
}
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
window.location.reload(); window.location.reload();

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

@ -197,7 +197,6 @@
old: { old: {
scrollTop: 0 scrollTop: 0
}, },
ispending: false,
allCount: 0, allCount: 0,
scanCount:0, scanCount:0,
isPack: true, isPack: true,
@ -320,10 +319,11 @@
r => { r => {
r.scaned = false; r.scaned = false;
r.scanDate = new Date() r.scanDate = new Date()
r.handledFromLocationCode=""
r.handledToLocationCode=""
} }
); );
that.ispending = item.jobStatus === 2;
this.allCount = that.details[0].recommendFromQty; this.allCount = that.details[0].recommendFromQty;
this.scanCount = that.details[0].handledToQty; this.scanCount = that.details[0].handledToQty;
that.details[0].defaultHandleQty = that.details[0].handledFromQty; that.details[0].defaultHandleQty = that.details[0].handledFromQty;
@ -331,8 +331,8 @@
that.details[0].tempHandledFromQty =0 that.details[0].tempHandledFromQty =0
// //
getCountByItemCode(that.details[0].itemCode).then(res => { getCountByItemCode(that.details[0].itemCode).then(res => {
if (res) {
uni.hideLoading(); uni.hideLoading();
if (res) {
var qty = res.qty; var qty = res.qty;
this.shouRongCount = qty; this.shouRongCount = qty;
this.details[0].tempHandledToQty = qty; this.details[0].tempHandledToQty = qty;

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

@ -94,6 +94,15 @@
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();

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

@ -250,6 +250,12 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeCoatingIssueJob(this.id).then(res => {
}).catch(error => {
})
}
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
window.location.reload(); window.location.reload();

5
fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue

@ -322,7 +322,8 @@
r => { r => {
r.scaned = false; r.scaned = false;
r.scanDate = new Date() r.scanDate = new Date()
r.handledFromLocationCode=""
r.handledToLocationCode=""
} }
); );
that.ispending = item.jobStatus === 2; that.ispending = item.jobStatus === 2;
@ -333,8 +334,8 @@
that.details[0].tempHandledFromQty =0 that.details[0].tempHandledFromQty =0
// //
getCountByItemCode(that.details[0].itemCode).then(res => { getCountByItemCode(that.details[0].itemCode).then(res => {
if (res) {
uni.hideLoading(); uni.hideLoading();
if (res) {
var qty = res.qty; var qty = res.qty;
this.shouRongCount = qty; this.shouRongCount = qty;
this.details[0].tempHandledToQty = qty; this.details[0].tempHandledToQty = qty;

2
fe/PDA/pages/task/countFgDetail.vue

@ -447,7 +447,7 @@
that.originalDetails = res.details; that.originalDetails = res.details;
that.allCount = res.details.length that.allCount = res.details.length
that.scanAllDetails = res.depDetails; that.scanAllDetails = res.depDetails.filter(r => r.inventoryStage == res.inventoryStage);
that.scanCount = res.depDetails.length that.scanCount = res.depDetails.length
that.scanAllDetails.forEach(res=>{ that.scanAllDetails.forEach(res=>{
res.IsDelete = false; res.IsDelete = false;

3
fe/PDA/pages/task/injectionIssueJobDetail.vue

@ -250,6 +250,9 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
cancelTakeInjectionIssueJob(this.id).then(res => {
}).catch(error => {
})
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
window.location.reload(); window.location.reload();

4
fe/PDA/pages/task/injectionIssueJobDetailByQty.vue

@ -316,6 +316,8 @@
r => { r => {
r.scaned = false; r.scaned = false;
r.scanDate = new Date() r.scanDate = new Date()
r.handledFromLocationCode=""
r.handledToLocationCode=""
} }
); );
@ -327,8 +329,8 @@
that.details[0].tempHandledFromQty =0 that.details[0].tempHandledFromQty =0
// //
getCountByItemCode(that.details[0].itemCode).then(res => { getCountByItemCode(that.details[0].itemCode).then(res => {
if (res) {
uni.hideLoading(); uni.hideLoading();
if (res) {
var qty = res.qty; var qty = res.qty;
this.shouRongCount = qty; this.shouRongCount = qty;
this.details[0].tempHandledToQty = qty; this.details[0].tempHandledToQty = qty;

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

@ -250,6 +250,12 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
}).catch(error => {
})
}
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
window.location.reload(); window.location.reload();

12
fe/PDA/pages/task/kittingIssueJobDetailByQty.vue

@ -220,7 +220,14 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
}).catch(error => {
})
}
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
window.location.reload(); window.location.reload();
} }
@ -316,7 +323,8 @@
r => { r => {
r.scaned = false; r.scaned = false;
r.scanDate = new Date() r.scanDate = new Date()
r.handledFromLocationCode = ""
r.handledToLocationCode = ""
} }
); );
that.ispending = item.jobStatus === 2; that.ispending = item.jobStatus === 2;
@ -327,8 +335,8 @@
that.details[0].tempHandledFromQty =0 that.details[0].tempHandledFromQty =0
// //
getCountByItemCode(that.details[0].itemCode).then(res => { getCountByItemCode(that.details[0].itemCode).then(res => {
if (res) {
uni.hideLoading(); uni.hideLoading();
if (res) {
var qty = res.qty; var qty = res.qty;
this.shouRongCount = qty; this.shouRongCount = qty;
this.details[0].tempHandledToQty = qty; this.details[0].tempHandledToQty = qty;

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

@ -250,6 +250,12 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeSparePartIssueJob(this.id).then(res => {
}).catch(error => {
})
}
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
window.location.reload(); window.location.reload();

5
fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

@ -316,6 +316,8 @@
r => { r => {
r.scaned = false; r.scaned = false;
r.scanDate = new Date() r.scanDate = new Date()
r.handledFromLocationCode = ""
r.handledToLocationCode = ""
} }
); );
@ -327,8 +329,8 @@
that.details[0].tempHandledFromQty =0 that.details[0].tempHandledFromQty =0
// //
getCountByItemCode(that.details[0].itemCode).then(res => { getCountByItemCode(that.details[0].itemCode).then(res => {
if (res) {
uni.hideLoading(); uni.hideLoading();
if (res) {
var qty = res.qty; var qty = res.qty;
this.shouRongCount = qty; this.shouRongCount = qty;
this.details[0].tempHandledToQty = qty; this.details[0].tempHandledToQty = qty;
@ -346,7 +348,6 @@
}) })
.catch(err => { .catch(err => {
this.showMessage('未查找到详细信息') this.showMessage('未查找到详细信息')
uni.hideLoading(); uni.hideLoading();
}); });
}, },

Loading…
Cancel
Save