优化
This commit is contained in:
@ -11,9 +11,9 @@ export class InputNumberModel {
|
||||
ref: any;
|
||||
|
||||
get numberFormat() {
|
||||
if(this._fmt==undefined){
|
||||
// if(this._fmt==undefined){
|
||||
this._fmt = this.createNumberFmt(this.digits);
|
||||
}
|
||||
// }
|
||||
return this._fmt;
|
||||
}
|
||||
|
||||
|
||||
@ -11,10 +11,10 @@
|
||||
{{ Number.format(Number.parse(record.qtyMeaGj || 0),numFormat) }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'qtySalesM3'">
|
||||
{{ Number.format(Number.parse(NP.divide(Number(record.qtySalesM3), 10000)),numFormat) }}
|
||||
{{ Number.format(Number.parse(record.qtySalesM3),numFormat) }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'qtyMeaM3'">
|
||||
{{record.qtyMeaM3 ? Number.format(Number.parse(NP.divide(Number(record.qtyMeaM3 || 0), 10000)),numFormat) : null }}
|
||||
{{Number.format(Number.parse(record.qtyMeaM3 || 0),numFormat) }}
|
||||
</template>
|
||||
</template>
|
||||
</BasicTable>
|
||||
@ -134,7 +134,7 @@
|
||||
|
||||
{
|
||||
dataIndex: 'qtySalesM3',
|
||||
title: '批复量(万方)',
|
||||
title: '批复量(方)',
|
||||
componentType: 'input',
|
||||
align: 'left',
|
||||
width: 120,
|
||||
@ -152,7 +152,7 @@
|
||||
|
||||
{
|
||||
dataIndex: 'qtyMeaM3',
|
||||
title: '完成量(万方)',
|
||||
title: '完成量(方)',
|
||||
componentType: 'input',
|
||||
align: 'left',
|
||||
width: 120,
|
||||
|
||||
@ -192,8 +192,6 @@
|
||||
let arr = DataFormat.format(val, [
|
||||
FormatOption.createQty('qtySalesGj'),
|
||||
FormatOption.createQty('qtySalesM3'),
|
||||
FormatOption.createQty('qtyMeaGj'),
|
||||
FormatOption.createQty('qtyMeaM3'),
|
||||
FormatOption.createQty('rateM3Gj', 6),
|
||||
]);
|
||||
if (arr.length) {
|
||||
|
||||
Reference in New Issue
Block a user