* [bug#66312,done,1.5h] add link plans field.

This commit is contained in:
tianshujie
2025-12-02 16:31:44 +08:00
committed by sunhao
parent ff2c453997
commit 4a9ec58e4a
+10 -7
View File
@@ -243,13 +243,16 @@ window.updateItems = function()
productItems[allItems[i].value].i = i;
}
$(".productsBox [name^='products']").each(function()
if($('.productsBox .linkProduct').length > 0)
{
const $product = $(this).zui('picker');
const productID = $(this).val();
let currentProductItems = JSON.parse(JSON.stringify(allItems));
if(productID != 0) currentProductItems[productItems[productID].i].disabled = false;
$(".productsBox [name^='products']").each(function()
{
const $product = $(this).zui('picker');
const productID = $(this).val();
let currentProductItems = JSON.parse(JSON.stringify(allItems));
if(productID != 0) currentProductItems[productItems[productID].i].disabled = false;
$product.render({items: currentProductItems});
});
$product.render({items: currentProductItems});
});
}
}