|
@ -134,10 +134,10 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
getKittingIssueDetail, |
|
|
getInjectionIssueDetail, |
|
|
takeKittingIssueJob, |
|
|
takeInjectionIssueJob, |
|
|
cancelTakeKittingIssueJob, |
|
|
cancelTakeInjectionIssueJob, |
|
|
finshKittingIssueJob, |
|
|
finshInjectionIssueJob, |
|
|
getCountByItemCode, |
|
|
getCountByItemCode, |
|
|
getRecommendBalance |
|
|
getRecommendBalance |
|
|
} from '@/api/index.js'; |
|
|
} from '@/api/index.js'; |
|
@ -211,7 +211,7 @@ |
|
|
onNavigationBarButtonTap(e) { |
|
|
onNavigationBarButtonTap(e) { |
|
|
if (e.index === 0) { |
|
|
if (e.index === 0) { |
|
|
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { |
|
|
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { |
|
|
cancelTakeKittingIssueJob(this.id).then(res => {}).catch(error => {}) |
|
|
cancelTakeInjectionIssueJob(this.id).then(res => {}).catch(error => {}) |
|
|
} |
|
|
} |
|
|
goHome(); |
|
|
goHome(); |
|
|
} else if (e.index === 1) { |
|
|
} else if (e.index === 1) { |
|
@ -224,7 +224,7 @@ |
|
|
if (e.from == 'backbutton') { |
|
|
if (e.from == 'backbutton') { |
|
|
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { |
|
|
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) { |
|
|
//取消承接任务 |
|
|
//取消承接任务 |
|
|
cancelTakeKittingIssueJob(this.id).then(res => { |
|
|
cancelTakeInjectionIssueJob(this.id).then(res => { |
|
|
uni.navigateBack(); |
|
|
uni.navigateBack(); |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
uni.navigateBack(); |
|
|
uni.navigateBack(); |
|
@ -278,9 +278,9 @@ |
|
|
} |
|
|
} |
|
|
this.toLocationInfo = locationInfo |
|
|
this.toLocationInfo = locationInfo |
|
|
current.handledToLocationCode = locationInfo.code |
|
|
current.handledToLocationCode = locationInfo.code |
|
|
current.handledToLocationArea = locationInfo.locationArea |
|
|
current.handledToLocationArea = locationInfo.areaCode |
|
|
current.handledToLocationGroup = locationInfo.locationGroup |
|
|
current.handledToLocationGroup = locationInfo.locationGroupCode |
|
|
current.handledToLocationErpCode = locationInfo.locationErpCode |
|
|
current.handledToLocationErpCode = locationInfo.erpLocationCode |
|
|
current.handledToWarehouseCode = locationInfo.warehouseCode |
|
|
current.handledToWarehouseCode = locationInfo.warehouseCode |
|
|
current.handledToPackingCode = "" |
|
|
current.handledToPackingCode = "" |
|
|
current.handledToLot = "" |
|
|
current.handledToLot = "" |
|
@ -298,7 +298,7 @@ |
|
|
let params = { |
|
|
let params = { |
|
|
id: that.id, |
|
|
id: that.id, |
|
|
}; |
|
|
}; |
|
|
getKittingIssueDetail(params) |
|
|
getInjectionIssueDetail(params) |
|
|
.then(item => { |
|
|
.then(item => { |
|
|
console.log('item', item); |
|
|
console.log('item', item); |
|
|
that.datacontent = item; |
|
|
that.datacontent = item; |
|
@ -429,7 +429,7 @@ |
|
|
let params = { |
|
|
let params = { |
|
|
id: this.id |
|
|
id: this.id |
|
|
}; |
|
|
}; |
|
|
takeKittingIssueJob(params) |
|
|
takeInjectionIssueJob(params) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
callback(true); |
|
|
callback(true); |
|
|
}) |
|
|
}) |
|
@ -485,7 +485,7 @@ |
|
|
that.details[0].handledFromQty = that.details[0].tempHandledToQty |
|
|
that.details[0].handledFromQty = that.details[0].tempHandledToQty |
|
|
that.details[0].handledToQty = that.details[0].tempHandledToQty |
|
|
that.details[0].handledToQty = that.details[0].tempHandledToQty |
|
|
let params = that.details[0]; |
|
|
let params = that.details[0]; |
|
|
finshKittingIssueJob(that.id, params.id, params) |
|
|
finshInjectionIssueJob(that.id, params.id, params) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
if (res != null) { |
|
|
if (res != null) { |
|
|