fix: bugs

pull/160/MERGE
xingyu4j 2025-06-27 22:39:03 +08:00
parent 0fbff4997f
commit d0210be4cd
5 changed files with 13 additions and 7 deletions

View File

@ -11,9 +11,9 @@ import {
useVbenVxeGrid,
} from '@vben/plugins/vxe-table';
import {
erpCountInputFormatter,
erpNumberFormatter,
formatPast2,
formatToFractionDigit,
isFunction,
isString,
} from '@vben/utils';
@ -333,8 +333,8 @@ setupVbenVxeTable({
// add by 星语:数量格式化,例如说:金额
vxeUI.formats.add('formatNumber', {
tableCellFormatMethod({ cellValue }, digits = 2) {
return formatToFractionDigit(cellValue, digits);
tableCellFormatMethod({ cellValue }) {
return erpCountInputFormatter(cellValue);
},
});

View File

@ -64,14 +64,14 @@ const [TransferModal, transferModalApi] = useVbenModal({
destroyOnClose: true,
});
/** 加载线索详情 */
/** 加载合同详情 */
async function loadContractDetail() {
loading.value = true;
const data = await getContract(contractId.value);
contract.value = data;
//
const logList = await getOperateLogPage({
bizType: BizTypeEnum.CRM_CLUE,
bizType: BizTypeEnum.CRM_CONTRACT,
bizId: contractId.value,
});
contractLogList.value = logList.list;

View File

@ -104,6 +104,12 @@ export function useDetailListColumns(
formatter: 'formatAmount2',
visible: showBussinePrice,
},
{
field: 'contractPrice',
title: '合同价格(元)',
formatter: 'formatAmount2',
visible: !showBussinePrice,
},
{
field: 'count',
title: '数量',

View File

@ -53,7 +53,7 @@ const [FormModal, formModalApi] = useVbenModal({
destroyOnClose: true,
});
/** 加载线索详情 */
/** 加载回款详情 */
async function loadReceivableDetail() {
loading.value = true;
const data = await getReceivable(receivableId.value);

View File

@ -53,7 +53,7 @@ const [FormModal, formModalApi] = useVbenModal({
destroyOnClose: true,
});
/** 加载线索详情 */
/** 加载回款计划详情 */
async function loadreceivablePlanDetail() {
loading.value = true;
const data = await getReceivablePlan(receivablePlanId.value);