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

View File

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

View File

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

View File

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

View File

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