|
@ -14,6 +14,13 @@ |
|
|
@change="switchChange"></u-switch> |
|
|
@change="switchChange"></u-switch> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="" v-if="operation=='reject'"> |
|
|
|
|
|
<uni-section title="拒收原因" type="line"> |
|
|
|
|
|
<uni-easyinput v-model="reasonText" placeholder="请输入拒收原因"></uni-easyinput> |
|
|
|
|
|
</uni-section> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- <required-location ref="locationCompare" title="默认收货库位 :" :locationCode="jobToLocationCode" |
|
|
<!-- <required-location ref="locationCompare" title="默认收货库位 :" :locationCode="jobToLocationCode" |
|
|
:isShowEdit="false"></required-location> |
|
|
:isShowEdit="false"></required-location> |
|
|
<view class='split_line'></view> --> |
|
|
<view class='split_line'></view> --> |
|
@ -136,7 +143,8 @@ |
|
|
operation: '', |
|
|
operation: '', |
|
|
scanedPackingNumber: '', |
|
|
scanedPackingNumber: '', |
|
|
status: '', |
|
|
status: '', |
|
|
switchCode:'' |
|
|
switchCode: '', |
|
|
|
|
|
reasonText: "" |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -242,7 +250,9 @@ |
|
|
s.scaned = true |
|
|
s.scaned = true |
|
|
s.cancleScanedHiht = true |
|
|
s.cancleScanedHiht = true |
|
|
|
|
|
|
|
|
s.copyContent = "HPQ;V1.0;I" + s.itemCode + ";P" + s.packingNumber + ";B" + s.batch + ";Q" + s.qty |
|
|
s.copyContent = "HPQ;V1.0;I" + s.itemCode + |
|
|
|
|
|
";P" + s.packingNumber + ";B" + s.batch + |
|
|
|
|
|
";Q" + s.qty |
|
|
this.$refs.scanPopup.simulateScan(s); |
|
|
this.$refs.scanPopup.simulateScan(s); |
|
|
this.scanedPackingNumber = '' |
|
|
this.scanedPackingNumber = '' |
|
|
} |
|
|
} |
|
@ -340,7 +350,8 @@ |
|
|
scanedLength++; |
|
|
scanedLength++; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
if (!itemDetail.cancleScanedHiht && itemDetail.scaned && scanedLength == itemDetail |
|
|
|
|
|
.packList.length) { |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
@ -440,13 +451,21 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
reject() { |
|
|
reject() { |
|
|
|
|
|
if(!this.reasonText){ |
|
|
|
|
|
this.showMessage("请输入拒收原因") |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
this.$refs.comMessage.showQuestionMessage('是否要拒收任务<br>[' + this.jobContent.asnNumber + ']?', res => { |
|
|
this.$refs.comMessage.showQuestionMessage('是否要拒收任务<br>[' + this.jobContent.asnNumber + ']?', res => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "提交中....", |
|
|
title: "提交中....", |
|
|
mask: true |
|
|
mask: true |
|
|
}); |
|
|
}); |
|
|
productDismantleJobClose(this.id).then(res => { |
|
|
var params = { |
|
|
|
|
|
id: this.id, |
|
|
|
|
|
refuseReason: this.reasonText |
|
|
|
|
|
} |
|
|
|
|
|
productDismantleJobClose(params).then(res => { |
|
|
console.log('拒收', res) |
|
|
console.log('拒收', res) |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
navigateBack(1) |
|
|
navigateBack(1) |
|
@ -512,26 +531,32 @@ |
|
|
pageSize: 1000, |
|
|
pageSize: 1000, |
|
|
}).then(res1 => { |
|
|
}).then(res1 => { |
|
|
timerCount = timerCount + 1 |
|
|
timerCount = timerCount + 1 |
|
|
if (res1.data && res1.data.list && res1.data |
|
|
if (res1.data && res1.data.list && res1 |
|
|
|
|
|
.data |
|
|
.list.length && (res1.data.total >= res |
|
|
.list.length && (res1.data.total >= res |
|
|
.data.detailCount)) { |
|
|
.data.detailCount)) { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
clearInterval(timer1) |
|
|
clearInterval(timer1) |
|
|
const dataParams = { |
|
|
const dataParams = { |
|
|
toLocationCode: res1.data.list[0] |
|
|
toLocationCode: res1.data.list[ |
|
|
|
|
|
0] |
|
|
.toLocationCode, |
|
|
.toLocationCode, |
|
|
number: res1.data.list[0].number, |
|
|
number: res1.data.list[0] |
|
|
creator: res1.data.list[0].creator, |
|
|
.number, |
|
|
|
|
|
creator: res1.data.list[0] |
|
|
|
|
|
.creator, |
|
|
createTime: res1.data.list[0] |
|
|
createTime: res1.data.list[0] |
|
|
.createTime, |
|
|
.createTime, |
|
|
ids: res1.data.list.map(item => |
|
|
ids: res1.data.list.map(item => |
|
|
item.masterId).join(',') |
|
|
item.masterId).join( |
|
|
|
|
|
',') |
|
|
} |
|
|
} |
|
|
console.log(dataParams) |
|
|
console.log(dataParams) |
|
|
uni.redirectTo({ |
|
|
uni.redirectTo({ |
|
|
url: '/pages/pointPutawayJob/index?data=' + |
|
|
url: '/pages/pointPutawayJob/index?data=' + |
|
|
encodeURIComponent(JSON |
|
|
encodeURIComponent(JSON |
|
|
.stringify(dataParams)) |
|
|
.stringify( |
|
|
|
|
|
dataParams)) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|