refs #4764 ticketSerivce refund add
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
d01584bfb3
commit
12acda0b1c
|
@ -103,7 +103,7 @@ module.exports = Self => {
|
||||||
const [firstTicketId] = ticketsIds;
|
const [firstTicketId] = ticketsIds;
|
||||||
|
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, refoundZoneId, myOptions);
|
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, refoundZoneId, withWarehouse, myOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (servicesIds && servicesIds.length > 0) {
|
if (servicesIds && servicesIds.length > 0) {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
vn-acl="invoicing, claimManager, salesAssistant"
|
vn-acl="invoicing, claimManager, salesAssistant"
|
||||||
vn-acl-action="remove">
|
vn-acl-action="remove">
|
||||||
</vn-button>
|
</vn-button>
|
||||||
{{ watcher.dataChanged() }}
|
{{ $ctrl.checkeds }}
|
||||||
</vn-button-bar>
|
</vn-button-bar>
|
||||||
<vn-horizontal ng-repeat="service in $ctrl.services">
|
<vn-horizontal ng-repeat="service in $ctrl.services">
|
||||||
<vn-check
|
<vn-check
|
||||||
|
|
|
@ -53,11 +53,9 @@ class Controller extends Section {
|
||||||
}
|
}
|
||||||
|
|
||||||
createRefund() {
|
createRefund() {
|
||||||
const services = this.services;
|
if (!this.checkeds.length) return;
|
||||||
if (!services) return;
|
|
||||||
const servicesIds = services.map(service => service.id);
|
|
||||||
|
|
||||||
const params = {servicesIds: servicesIds, withWarehouse: false};
|
const params = {servicesIds: this.checkeds, withWarehouse: false};
|
||||||
const query = 'Sales/refund';
|
const query = 'Sales/refund';
|
||||||
this.$http.post(query, params).then(res => {
|
this.$http.post(query, params).then(res => {
|
||||||
const refundTicket = res.data;
|
const refundTicket = res.data;
|
||||||
|
@ -69,6 +67,8 @@ class Controller extends Section {
|
||||||
}
|
}
|
||||||
|
|
||||||
addChecked(id) {
|
addChecked(id) {
|
||||||
|
if (this.checkeds.includes(id))
|
||||||
|
return this.checkeds = this.checkeds.filter(check => check != id);
|
||||||
this.checkeds.push(id);
|
this.checkeds.push(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue