This commit is contained in:
parent
e2bea16e68
commit
4f5bd95d21
|
@ -33,12 +33,12 @@
|
|||
"country": {
|
||||
"type": "belongsTo",
|
||||
"model": "Country",
|
||||
"foreignKey": "countryFk"
|
||||
"foreignKey": "country"
|
||||
},
|
||||
"payMethod": {
|
||||
"type": "belongsTo",
|
||||
"model": "PayMethod",
|
||||
"foreignKey": "payMethodFk"
|
||||
"foreignKey": "payMethod"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -57,10 +57,10 @@
|
|||
<th field="salesPersonFk">
|
||||
<span translate>Comercial</span>
|
||||
</th>
|
||||
<th field="countryFk">
|
||||
<th field="country">
|
||||
<span translate>Country</span>
|
||||
</th>
|
||||
<th field="payMethodFk"
|
||||
<th field="payMethod"
|
||||
vn-tooltip="Pay Method">
|
||||
<span translate>P.Method</span>
|
||||
</th>
|
||||
|
|
|
@ -30,10 +30,10 @@ export default class Controller extends Section {
|
|||
valueField: 'id',
|
||||
}
|
||||
}, {
|
||||
field: 'countryFk',
|
||||
field: 'country',
|
||||
autocomplete: {
|
||||
showField: 'country',
|
||||
valueField: 'id'
|
||||
valueField: 'country'
|
||||
}
|
||||
}, {
|
||||
field: 'payMethodFk',
|
||||
|
@ -144,7 +144,6 @@ export default class Controller extends Section {
|
|||
const params = {
|
||||
defaulters: this.checked,
|
||||
observation: this.defaulter.observation,
|
||||
country: this.defaulter.countryFk
|
||||
};
|
||||
this.$http.post(`Defaulters/observationEmail`, params);
|
||||
}
|
||||
|
@ -155,8 +154,8 @@ export default class Controller extends Section {
|
|||
case 'amount':
|
||||
case 'clientFk':
|
||||
case 'workerFk':
|
||||
case 'countryFk':
|
||||
case 'payMethodFk':
|
||||
case 'country':
|
||||
case 'payMethod':
|
||||
case 'salesPersonFk':
|
||||
return {[`d.${param}`]: value};
|
||||
case 'created':
|
||||
|
|
Loading…
Reference in New Issue