fix: bugs
parent
0fbff4997f
commit
d0210be4cd
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -104,6 +104,12 @@ export function useDetailListColumns(
|
|||
formatter: 'formatAmount2',
|
||||
visible: showBussinePrice,
|
||||
},
|
||||
{
|
||||
field: 'contractPrice',
|
||||
title: '合同价格(元)',
|
||||
formatter: 'formatAmount2',
|
||||
visible: !showBussinePrice,
|
||||
},
|
||||
{
|
||||
field: 'count',
|
||||
title: '数量',
|
||||
|
|
|
@ -53,7 +53,7 @@ const [FormModal, formModalApi] = useVbenModal({
|
|||
destroyOnClose: true,
|
||||
});
|
||||
|
||||
/** 加载线索详情 */
|
||||
/** 加载回款详情 */
|
||||
async function loadReceivableDetail() {
|
||||
loading.value = true;
|
||||
const data = await getReceivable(receivableId.value);
|
||||
|
|
|
@ -53,7 +53,7 @@ const [FormModal, formModalApi] = useVbenModal({
|
|||
destroyOnClose: true,
|
||||
});
|
||||
|
||||
/** 加载线索详情 */
|
||||
/** 加载回款计划详情 */
|
||||
async function loadreceivablePlanDetail() {
|
||||
loading.value = true;
|
||||
const data = await getReceivablePlan(receivablePlanId.value);
|
||||
|
|
Loading…
Reference in New Issue