New TotalsBox vue component
- update to_form data when CLIN amounts change
This commit is contained in:
22
js/components/totals_box.js
Normal file
22
js/components/totals_box.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { formatDollars } from '../lib/dollars'
|
||||
|
||||
export default {
|
||||
name: 'totalsbox',
|
||||
|
||||
props: {
|
||||
name: String,
|
||||
additionalObligated: Number,
|
||||
additionalContractAmount: Number,
|
||||
},
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
obligated: formatDollars(
|
||||
this.additionalObligated
|
||||
),
|
||||
contractAmount: formatDollars(
|
||||
this.additionalContractAmount
|
||||
),
|
||||
}
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user