fix: 修改计价数量报错 (#505)
<!-- Note --> <!-- This is a template for submitting a new feature. Use the bug fix template if you're submitting a bug fix pull request by adding `template=bug_fix.md` to your pull request URL. --> # Description <!-- Describe the new feature or modification to an existing feature clearly and consciously. --> # Motivation <!-- Explain the reason for adding or modifying this feature. --> # Key changes <!-- Provide a technically detailed description of the key changes made. --> - Frontend - Backend # Test plan ## Suggestions <!-- Provide any suggestions or recommendations for improvements in the testing plan. --> ## Underlying risk <!-- Identify any potential risks or issues that may arise from the new feature or modification. --> # Showcase <!-- Including any screenshots of the new feature or modification. --> Reviewed-on: daoyoucloud/tachycode#505 Co-authored-by: wjh <wwwjh0710@163.com> Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
parent
eb090572c6
commit
7dfb308503
@ -53,7 +53,7 @@ export const RecordItemValuationQuantity = observer((props) => {
|
||||
(product) => product.id - 99999 === item.product?.category_id || product.id === item.product?.id,
|
||||
),
|
||||
);
|
||||
const feeRule = ProductFeeItems.data.find((feeItem) => feeItem.fee_product_id === item.product?.id);
|
||||
const feeRule = ProductFeeItems?.data.find((feeItem) => feeItem.fee_product_id === item.product?.id);
|
||||
let count;
|
||||
if (!rule && feeRule) {
|
||||
count = subtotal(feeRule, item, productCategory, reqWeightRules, 'fee');
|
||||
@ -93,7 +93,7 @@ export const RecordItemValuationQuantity = observer((props) => {
|
||||
(product) => product.id - 99999 === item.product?.category_id || product.id === item.product?.id,
|
||||
),
|
||||
);
|
||||
const feeRule = inProductFeeItems.data.find(
|
||||
const feeRule = inProductFeeItems?.data.find(
|
||||
(feeItem) =>
|
||||
feeItem.fee_product_id === item.product?.id || item.product?.category_id === feeItem.fee_product.category_id,
|
||||
);
|
||||
@ -112,7 +112,7 @@ export const RecordItemValuationQuantity = observer((props) => {
|
||||
(product) => product.id - 99999 === item.product?.category_id || product.id === item.product?.id,
|
||||
),
|
||||
);
|
||||
const contractPlain_out_fee = outProductFeeItems.data.find(
|
||||
const contractPlain_out_fee = outProductFeeItems?.data.find(
|
||||
(feeItem) =>
|
||||
feeItem.fee_product_id === item.product?.id || item.product?.category_id === feeItem.fee_product.category_id,
|
||||
);
|
||||
@ -128,7 +128,7 @@ export const RecordItemValuationQuantity = observer((props) => {
|
||||
(product) => product.id - 99999 === item.product?.category_id || product.id === item.product?.id,
|
||||
),
|
||||
);
|
||||
const contractPlain_in_fee = outProductFeeItems.data.find(
|
||||
const contractPlain_in_fee = outProductFeeItems?.data.find(
|
||||
(feeItem) =>
|
||||
feeItem.fee_product_id === item.product?.id || item.product?.category_id === feeItem.fee_product.category_id,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user