This repository was archived by the owner on Mar 4, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ 'balance' : function ( value ) {
3
+ if ( value < 0 ) {
4
+ return 'بدهکار'
5
+ } else if ( value > 0 ) {
6
+ return 'بستانکار'
7
+ } else {
8
+ return ''
9
+ }
10
+ } ,
11
+ 'abs' : function ( value ) {
12
+ return Math . abs ( value )
13
+ }
14
+ }
Original file line number Diff line number Diff line change 31
31
</span >
32
32
</b-table-column >
33
33
<b-table-column field =" dealTime" label =" زمان خرید / فروش" sortable >
34
- <date-picker :class =" {'disable-event': !table.openedDetailed.includes(detailProps.row.id)}" type =" datetime" :auto-submit =" true" format =" YYYY-MM-DD HH:mm" display-format =" HH:mm jYYYY/jMM/jDD" v-model =" detailProps.row.dealTime" disabled ></date-picker >
34
+ <date-picker :class =" {'disable-event': !table.openedDetailed.includes(detailProps.row.id)}" type =" datetime" :auto-submit =" true" format =" YYYY-MM-DD HH:mm" display-format =" HH:mm jYYYY/jMM/jDD" v-model =" detailProps.row.dealTime" ></date-picker >
35
35
</b-table-column >
36
36
<b-table-column field =" dealPrice.amount" label =" قیمت خرید / فروش" sortable >
37
37
<input class =" input" v-if =" table.openedDetailed.includes(detailProps.row.id)" type =" text" placeholder =" قیمت خرید" v-model =" detailProps.row.dealPrice.amount" />
Original file line number Diff line number Diff line change 46
46
{{ props.row.address || ' ... ' }}
47
47
</b-table-column >
48
48
<b-table-column field =" balance" label =" بدهی/طلب" sortable >
49
- {{ props.row.balance}}
49
+ {{ props.row.balance || 0 | abs |currency('', 0) }}
50
+ {{ props.row.balance || 0 | balance }}
50
51
</b-table-column >
51
52
<b-table-column label =" " width =" 100" >
52
53
<b-dropdown :mobile-modal =" false" v-model =" isPublic" class =" control" position =" is-bottom-left" >
You can’t perform that action at this time.
0 commit comments