|
|
|
@ -73,7 +73,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import {getOrderInfoByBucketNoForPda, sendInkHandle} from '../../../api/production/production-issue' |
|
|
|
import {getOrderInfoByBucketNoForPda, sendInkHandle,getLocationBySite} from '../../../api/production/production-issue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'ProductionIssuePDA', |
|
|
|
@ -114,6 +114,7 @@ export default { |
|
|
|
scanLabelData: {}, |
|
|
|
scanTableInput: '', |
|
|
|
scanTableData: [], |
|
|
|
redisLocationNo: '', |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -130,6 +131,7 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.scannerInput.focus(); |
|
|
|
}); |
|
|
|
this.getLocationBySite() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleBack() { |
|
|
|
@ -191,7 +193,7 @@ export default { |
|
|
|
entryDate: this.dayjs().format('YYYY-MM-DD'), |
|
|
|
usageWeight: 0.0, |
|
|
|
sampleFlag: this.mixInkOrderList[0].sampleFlag ? this.mixInkOrderList[0].sampleFlag : 'N', |
|
|
|
locationNo: '线边库库位', |
|
|
|
locationNo: this.redisLocationNo, |
|
|
|
preFlag: this.mixInkOrderList[0].preFlag, |
|
|
|
} |
|
|
|
} |
|
|
|
@ -211,6 +213,19 @@ export default { |
|
|
|
this.showMessage('请先输入或扫描设备!', 'error'); |
|
|
|
} |
|
|
|
}, |
|
|
|
getLocationBySite(){ |
|
|
|
let tempData = { |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
} |
|
|
|
getLocationBySite(tempData).then(({ data }) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.redisLocationNo = data.locationNo; |
|
|
|
console.log('从 Redis 获取线边库库位:' + this.redisLocationNo); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
showMessage(text, type = 'info') { |
|
|
|
this.message = text |
|
|
|
|