|
|
@ -132,6 +132,7 @@ export default { |
|
|
|
selectCurrentClick(item) { // 点击li触发事件 |
|
|
|
this.choosePkg(item['LOG_PackOrder-PackOrderId']) |
|
|
|
this.activePkg = item['LOG_PackOrder-PackOrderId'] |
|
|
|
this.getCodePlanCount(item['LOG_PackOrder-PackOrderId']) |
|
|
|
}, |
|
|
|
codeparser() { //获取扫码规则 |
|
|
|
api.codeparser().then((res) => { |
|
|
@ -157,6 +158,7 @@ export default { |
|
|
|
this.activePkg = PackOrderId |
|
|
|
this.actPkgObj = this.pkgs.filter((pkg) => pkg.PackOrderId == PackOrderId)[0] || {} |
|
|
|
this.packorderitemlst() //获取包装单下的包装项 |
|
|
|
this.getCodePlanCount(PackOrderId) |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.$refs[`${PackOrderId}`]) |
|
|
|
this.$refs[`${PackOrderId}`][0].scrollIntoView() |
|
|
@ -175,6 +177,7 @@ export default { |
|
|
|
api.packorderitemlst(this.activePkg).then((res) => { |
|
|
|
this.tableData = res.data || [] |
|
|
|
this.tableLoading = false |
|
|
|
this.getCodePlanCount(this.actPkgObj['LOG_PackOrder-PackOrderId']) |
|
|
|
if (type === 1) { |
|
|
|
this.scrollCurrentPos() |
|
|
|
} |
|
|
@ -203,6 +206,14 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取包装扫码计划和实际数量 |
|
|
|
getCodePlanCount(code) { |
|
|
|
api.getPkgPlanCount(code).then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.$emit('planActQTy', res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
enterPress(e) { // 扫码回车提交 |
|
|
|
// 如果扫码是指定的 two,则跳转到对应的缺陷数据采集tab栏 |
|
|
|
if (e.target.value === 'two') { |
|
|
|