|
|
@ -1,13 +1,12 @@ |
|
|
|
<template> |
|
|
|
<el-dialog v-model="dialogTableVisible" title="标签" width="1100"> |
|
|
|
<div v-loading="isLoading"> |
|
|
|
<el-table |
|
|
|
<el-table |
|
|
|
:data="showTableData()" |
|
|
|
border |
|
|
|
row-key="id" |
|
|
|
style="width: 1050px; max-height: 70vh; overflow-y: auto" |
|
|
|
v-if="tableData.length > 0 && dialogTableVisible == true" |
|
|
|
|
|
|
|
> |
|
|
|
<el-table-column type="expand" width="50"> |
|
|
|
<template #default="scope"> |
|
|
@ -30,7 +29,12 @@ |
|
|
|
<el-table-column type="expand" width="50"> |
|
|
|
<template #default="scope1"> |
|
|
|
<div style="margin-left: 150px; margin-top: -8px; margin-bottom: -8px"> |
|
|
|
<el-table :data="scope1.row.children" border style="width: 300px" row-key="id"> |
|
|
|
<el-table |
|
|
|
:data="scope1.row.children" |
|
|
|
border |
|
|
|
style="width: 300px" |
|
|
|
row-key="id" |
|
|
|
> |
|
|
|
<el-table-column label="箱行号" width="100" prop="xPoNumber" align="center"> |
|
|
|
<template #default="scope2"> |
|
|
|
{{ scope2.$index + 1 }} |
|
|
@ -175,11 +179,10 @@ |
|
|
|
layout="total, prev, pager, next, jumper" |
|
|
|
:total="tableData.length" |
|
|
|
/> |
|
|
|
<div style="text-align: right;margin-top:10px"> |
|
|
|
<div style="text-align: right; margin-top: 10px"> |
|
|
|
<ButtonBase :Butttondata="Butttondata" @button-base-click="buttonBaseClick" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
@ -588,10 +591,13 @@ const blurTwo = (oneRow, twoRow, threeRow) => { |
|
|
|
} |
|
|
|
// 箱数量失去焦点 |
|
|
|
const blurThree = (oneRow, twoRow, thereeRow) => { |
|
|
|
console.log('yeyeye', oneRow) |
|
|
|
if (oneRow.allowOverShipment != 'TRUE') { |
|
|
|
if (parseFloat(thereeRow.qtyTwo) > parseFloat(oneRow.packQty)) { |
|
|
|
message.warning('每箱个数最多' + oneRow.packQty) |
|
|
|
thereeRow.qtyTwo = oneRow.packQty |
|
|
|
} |
|
|
|
} |
|
|
|
let num = 0 |
|
|
|
twoRow.children.forEach((item) => { |
|
|
|
num = accuracyFun.add(parseFloat(num), parseFloat(item.qtyTwo)) |
|
|
@ -611,7 +617,6 @@ const uomLabel = (row) => { |
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits(['submitForm']) |
|
|
|
defineExpose({ openLabel, dialogTableVisible, isLoading }) // 提供 open 方法,用于打开弹窗 |
|
|
|
|
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
::v-deep .row-expand-cover td .el-table__expand-icon { |
|
|
|