Commit 25b37f97 authored by alwayOnlie's avatar alwayOnlie

保留2微小数

parent 1ff03345
......@@ -140,7 +140,7 @@ const FormList = (props: any) => {
associatedGoods: _filter(sourceType, item, ['', 'productAttributeJson', 'commodityAttribute', '']), //关联
associatedMaterielNo: _filter(sourceType, item, ['', 'number', 'commodityCode']), // 关联物料编号
associatedMaterielName: _filter(sourceType, item, ['', 'productName', 'commodityName']), // 关联商品名称
associatedType: _filter(sourceType, item, ['', 'productAttributeJson', 'commodityCategory', '']).split('-')[1], //规格型号
associatedType: sourceType == 1 ? _filter(sourceType, item, ['', 'productAttributeJson', 'commodityCategory', '']).split('-')[1] : _filter(sourceType, item, ['', 'productAttributeJson', 'commodityCategory', '']), //规格型号
associatedCategory: _filter(sourceType, item, ['', 'productAttributeJson', 'commodityCategory', '']), // 关联商品品类
associatedBrand: _filter(sourceType, item, ['', 'productBrand', 'commodityBrand', '']),// 关联品牌
rowId: index,
......@@ -322,7 +322,7 @@ const FormList = (props: any) => {
purchaseCount: item.purchaseCount,
price: Number(item.price),
bidCount: item.bidCount,
bidAmount: item.bidCount && item.price ? Number(item.bidCount) * Number(item.price) : '',
bidAmount: item.bidCount && item.price ? (Number(item.bidCount) * Number(item.price)).toFixed(2) : '',
associatedMaterielName: Object.keys(Row).length === 0 ? '' : item.associatedMaterielName,
associatedGoods: Object.keys(Row).length === 0 ? '' : item.associatedGoods,
associatedDataId: Object.keys(Row).length === 0 ? '' : item.associatedDataId,
......
......@@ -91,7 +91,7 @@ const FormList = (props: any) => {
width: 130,
}}
placeholder=""
value={item.payAmount}
value={Number(item.payAmount).toFixed(2)}
onChange={(e) => onSelectChange(e, 'payAmount', index)}
/>
</div>
......@@ -224,7 +224,7 @@ const FormList = (props: any) => {
PlanList.map(item => {
item.payNum = Number(item.payNum)
item.payRatio = Number(item.payRatio)
item.payAmount = Number(item.payAmount)
item.payAmount = Number(item.payAmount).toFixed(2)
item.payWay = Number(item.payWay)
item.payParam = Number(item.payParam)
// 付款方式: 1 - 账期,2 - 月结,3 - 现结
......
......@@ -104,7 +104,7 @@ const Information = (props: any) => {
basicsVO.partyBName = Row.partyBName ? Row.partyBName : '';
basicsVO.sourceNo = Row.sourceNo ? Row.sourceNo : '';
basicsVO.sourceId = Row.sourceId ? Row.sourceId : '';
basicsVO.totalAmount = Row.totalAmount ? Row.totalAmount : '';
basicsVO.totalAmount = Row.totalAmount ? Number(Row.totalAmount).toFixed(2) : '';
basicsVO.partyBMemberId = sourceType === '1' ? Row.awardRoleId ? Row.awardMemberId : '' : Row.partyBMemberId;
basicsVO.partyBRoleId = sourceType === '1' ? Row.awardRoleId ? Row.awardRoleId : '' : Row.partyBRoleId;
console.log(Row, basicsVO)
......@@ -183,7 +183,7 @@ const Information = (props: any) => {
default:
break;
}
basicsVO.totalAmount = totalAmount;
basicsVO.totalAmount = Number(totalAmount).toFixed(2);
basicsVO.sourceId = sourceId;
basicsVO.partyBName = partyBName;
basicsVO.partyBMemberId = partyBMemberId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment