自采入库同一物品可以添加多次

This commit is contained in:
zxj
2025-07-15 16:32:30 +08:00
parent bf8dc3f9b5
commit 84a337bae4
4 changed files with 31 additions and 13 deletions
@@ -106,19 +106,19 @@ fun ReceiptUnadjustedListView(
Spacer(modifier = Modifier.width(10.dp))
CustomSingleRightText(
modifier = Modifier.width(120.dp),
text = it.recUnitPriceTaxInStr,
text = it.recUnitPriceTaxInListStr,
style = AppTypography.blackTextStyle
)
Spacer(modifier = Modifier.width(20.dp))
CustomSingleRightText(
modifier = Modifier.width(140.dp),
text = "${it.receiveCountStr}${it.unitNameStr}",
text = "${it.receiveCountListStr}${it.unitNameStr}",
style = AppTypography.blackTextStyle
)
Spacer(modifier = Modifier.width(20.dp))
CustomSingleRightText(
modifier = Modifier.width(120.dp),
text = it.recPriceExItemStr,
text = it.recPriceExItemListStr,
style = AppTypography.blackTextStyle
)
if (showClose) {
@@ -82,7 +82,11 @@ fun SelfProcurementListItem(
// Spacer(modifier = Modifier.height(31.dp))
// 左侧列表
LazyColumn() {
items(items = productList, key = { it.goodsId }) { it ->
items(
items = productList,
// 取消key,列表中可以插入同一物品
// key = { it.goodsId }
) { it ->
val checkedBg =
if (it.goodsId == checkedItem?.goodsId) Gray_DCDCF0 else Color.Transparent