Browse Source

Merge pull request '发运优化' (#146) from feature_supplier into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_WEBFRONT/pulls/146
Reviewed-by: Liwei <wei.li@le-it.com.cn>
pull/147/head
Liwei 3 years ago
parent
commit
22665e23c4
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/views/quality/component/shipmentCode.vue

+ 5
- 3
src/views/quality/component/shipmentCode.vue View File

@ -42,9 +42,9 @@ export default {
// //
enterPress() { enterPress() {
this.statusInfo = '' this.statusInfo = ''
if (this.pickCode.indexOf('P-') != -1) { //
if (this.pickCode.indexOf('P-') != -1) { //
if (!this.shipOrderId) { if (!this.shipOrderId) {
this.msgInfo('请先扫描发运单!')
this.statusInfo = '请先扫描捡料单!'
return return
} else { } else {
let params = { let params = {
@ -68,7 +68,7 @@ export default {
this.isSuccess = false this.isSuccess = false
}) })
} }
} else { //
} else { //
this.tableData.forEach(el => { this.tableData.forEach(el => {
if (el['JIT_ShipOrder-ShipOrderId'] === this.pickCode) { if (el['JIT_ShipOrder-ShipOrderId'] === this.pickCode) {
this.currentShipOrder = el this.currentShipOrder = el
@ -77,10 +77,12 @@ export default {
} }
this.$emit('handleSuccessCode', this.newEmitObj) this.$emit('handleSuccessCode', this.newEmitObj)
} else { } else {
this.statusInfo = '请正确扫描捡料单!'
return return
} }
}) })
} }
this.pickCode = ''
}, },
// //
resetCode() { resetCode() {


Loading…
Cancel
Save