Skip to content

Commit

Permalink
fixed the grant-contract-form & Provision
Browse files Browse the repository at this point in the history
  • Loading branch information
BasICTStudent committed Mar 16, 2023
1 parent d727106 commit cee2bb3
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 43 deletions.
27 changes: 8 additions & 19 deletions components/contract/grant_contract/views/GrantContractEditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,18 @@
</template>
<script>
export default {
data: () => ({
props: ["data"],
computed: {
formData: {
partyMembers: [],
preample: null,
purpose: null,
payment: {
amount: null,
note: null,
get: function () {
return this.data;
},
dates: {
beginDate: null,
endDate: null,
set: function (newValue) {
this.$emit("update:data", newValue);
},
propertyRights: null,
terminationOfAgreement: null,
governingLawAndJurisdiction: null,
finalProvisions: null,
milestones: [],
custom: [],
requiredToSign: false,
signed: false,
},
}),
},
methods: {
async validate() {
Expand Down
76 changes: 52 additions & 24 deletions pages/contract/grant_contract/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,68 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<script>
export default {
data: () => {return {
editFase: 3
}},
methods: {
previous: function() {
this.editFase++;
},
next: function() {
this.editFase--;
}
}
};
</script>

<template>
<v-row align="center" justify="center" style="height: 100%">
<StageBuilder v-if="editFase === 3" isFirst @previous="previous" @next="next" title="Party-Provision">
<PartyMemberProvision/>
<PartyMemberProvision
:parties.sync="formData.partyMembers"
/>
</StageBuilder>

<StageBuilder v-if="editFase === 2" @previous="previous" @next="next" title="Preample-Provision">
<PreampleProvision/>
<PreampleProvision
:preample.sync="formData.preample"
/>
</StageBuilder>

<StageBuilder v-if="editFase === 1" @previous="previous" @next="next" title="Purpose-Provision">
<PurposeProvision/>
<PurposeProvision
:purpose.sync="formData.purpose"
/>
</StageBuilder>

<GrantContractEditForm v-if="editFase === 0"
:data.sync="formData"
/>

<GrantContractEditForm v-if="editFase === 0" />

</v-row>
</template>
</template>
<script>
export default {
data: () => ({
editFase: 3,
formData: {
partyMembers: [],
preample: null,
purpose: null,
payment: {
amount: null,
note: null,
},
dates: {
beginDate: null,
endDate: null,
},
propertyRights: null,
terminationOfAgreement: null,
governingLawAndJurisdiction: null,
finalProvisions: null,
milestones: [],
custom: [],
requiredToSign: false,
signed: false,
},
}),
methods: {
previous: function() {
this.editFase++;
},
next: function() {
this.editFase--;
}
}
};
</script>

0 comments on commit cee2bb3

Please sign in to comment.