fix: bugs
parent
0fbff4997f
commit
d0210be4cd
|
|
@ -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);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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: '数量',
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue