|
|
|
@ -74,6 +74,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="palletScanned && currentPalletType === 'A0206'" class="input-group"> |
|
|
|
<label class="input-label">手工备注</label> |
|
|
|
<el-input |
|
|
|
v-model="manualRemark" |
|
|
|
type="textarea" |
|
|
|
:rows="2" |
|
|
|
maxlength="200" |
|
|
|
placeholder="请输入手工备注,离开输入框后自动保存" |
|
|
|
:disabled="manualRemarkSaving || interfaceBusy" |
|
|
|
@blur="handleManualRemarkBlur" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 第2.5行:是否强制整托出库 (扫描栈板后显示) - rqrq --> |
|
|
|
<div v-if="palletScanned" class="input-group"> |
|
|
|
<el-checkbox |
|
|
|
@ -363,6 +376,7 @@ import { |
|
|
|
getPalletInfo, |
|
|
|
getPalletTypeList, |
|
|
|
updatePalletTypeAndAutoSort, |
|
|
|
updatePalletManualRemark, |
|
|
|
getAvailablePositionsForLayer, |
|
|
|
callEmptyPalletToStation, |
|
|
|
callPalletToStationWithUpdateZuPan |
|
|
|
@ -382,6 +396,9 @@ export default { |
|
|
|
currentPalletType: '', |
|
|
|
currentAutoSort: 'N', |
|
|
|
currentPalletStation: '', |
|
|
|
manualRemark: '', |
|
|
|
savedManualRemark: '', |
|
|
|
manualRemarkSaving: false, |
|
|
|
forceFullPalletOut: false, |
|
|
|
palletTypeDisabled: false, |
|
|
|
autoSortDisabled: false, |
|
|
|
@ -580,6 +597,8 @@ export default { |
|
|
|
this.scanPosition = '' |
|
|
|
this.scanLayer = 1 |
|
|
|
this.currentSelectedPosition = '' |
|
|
|
this.manualRemark = '' |
|
|
|
this.savedManualRemark = '' |
|
|
|
this.loadPalletInfo() |
|
|
|
this.refreshTable() |
|
|
|
} else { |
|
|
|
@ -603,6 +622,8 @@ export default { |
|
|
|
this.currentAutoSort = row.autoSort || 'N' |
|
|
|
this.currentPalletStation = row.locationCode || '' |
|
|
|
this.forceFullPalletOut = Number(row.soreType) === 3 |
|
|
|
this.manualRemark = row.manualRemark || '' |
|
|
|
this.savedManualRemark = this.manualRemark |
|
|
|
this.palletInfo.palletType = this.currentPalletType |
|
|
|
this.palletInfo.autoSort = this.currentAutoSort |
|
|
|
this.palletInfo.locationCode = this.currentPalletStation |
|
|
|
@ -691,6 +712,33 @@ export default { |
|
|
|
handleForceFullPalletOutChange() { |
|
|
|
this.savePalletTypeConfig() |
|
|
|
}, |
|
|
|
// A0206失焦才保存手工备注;内容和上次成功值相同则不请求,失败保留输入供再次离开重试 - rqrq |
|
|
|
handleManualRemarkBlur() { |
|
|
|
if (!this.palletScanned || this.currentPalletType !== 'A0206' || this.manualRemarkSaving) { |
|
|
|
return |
|
|
|
} |
|
|
|
const nextRemark = (this.manualRemark || '').trim() |
|
|
|
this.manualRemark = nextRemark |
|
|
|
if (nextRemark === this.savedManualRemark) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.manualRemarkSaving = true |
|
|
|
updatePalletManualRemark({ |
|
|
|
site: this.site, |
|
|
|
palletId: this.palletCode, |
|
|
|
manualRemark: nextRemark |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.savedManualRemark = nextRemark |
|
|
|
} else { |
|
|
|
this.$alert((data && data.msg) || '手工备注保存失败', '错误', { confirmButtonText: '确定' }) |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.$alert('手工备注保存失败', '错误', { confirmButtonText: '确定' }) |
|
|
|
}).finally(() => { |
|
|
|
this.manualRemarkSaving = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 根据托盘类型能力与强制整托规则动态控制自动分拣可编辑性 - rqrq |
|
|
|
updateAutoSortControl() { |
|
|
|
if (this.forceFullPalletOut || this.currentPalletType === 'A0103') { |
|
|
|
|