bug fix in cost mod
This commit is contained in:
parent
2fb2449207
commit
6172dd3195
|
@ -246,7 +246,7 @@
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" md="4">
|
<v-col cols="12" md="4">
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
v-model="item.person"
|
v-model="item.id"
|
||||||
:items="listSalarys"
|
:items="listSalarys"
|
||||||
item-title="name"
|
item-title="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
|
@ -470,7 +470,8 @@ export default {
|
||||||
},
|
},
|
||||||
addSalary() {
|
addSalary() {
|
||||||
this.salarys.push({
|
this.salarys.push({
|
||||||
person: '',
|
id: '',
|
||||||
|
salary: null,
|
||||||
amount: '',
|
amount: '',
|
||||||
des: ''
|
des: ''
|
||||||
})
|
})
|
||||||
|
@ -481,6 +482,7 @@ export default {
|
||||||
addPerson() {
|
addPerson() {
|
||||||
this.persons.push({
|
this.persons.push({
|
||||||
id: '',
|
id: '',
|
||||||
|
person: null,
|
||||||
amount: '',
|
amount: '',
|
||||||
des: ''
|
des: ''
|
||||||
})
|
})
|
||||||
|
@ -525,14 +527,16 @@ export default {
|
||||||
}
|
}
|
||||||
else if (item.type == 'salary') {
|
else if (item.type == 'salary') {
|
||||||
this.salarys.push({
|
this.salarys.push({
|
||||||
id: item.salary,
|
id: item.salary.id,
|
||||||
|
salary: item.salary,
|
||||||
amount: item.bs,
|
amount: item.bs,
|
||||||
des: item.des
|
des: item.des
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (item.type == 'person') {
|
else if (item.type == 'person') {
|
||||||
this.persons.push({
|
this.persons.push({
|
||||||
id: item.person,
|
id: item.person.id,
|
||||||
|
person: item.person,
|
||||||
amount: item.bs,
|
amount: item.bs,
|
||||||
des: item.des
|
des: item.des
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue