feat: 调整

This commit is contained in:
Czw996 2022-03-25 14:59:06 +08:00
parent 85381cae62
commit babbf1ead9
5 changed files with 28 additions and 4 deletions

View file

@ -154,6 +154,10 @@ export default {
page: this.searchForm.page,
type: this.currentTab,
};
if (form.end_date) {
form.end_date = moment(form.end_date).add(1, 'days').format('YYYY-MM-DD');
}
financialStatistics(form).then((resp) => {
this.statistics = resp;
}).finally(() => {

View file

@ -70,7 +70,12 @@
},
list(start_date, end_date) {
this.loading = true;
purchasePaymentRecord({...this.searchForm, ...{ start_date, end_date }}).then(resp => {
let form = {...this.searchForm, ...{ start_date, end_date }};
if (form.end_date) {
form.end_date = moment(form.end_date).add(1, 'days').format('YYYY-MM-DD');
}
purchasePaymentRecord(form).then(resp => {
this.totalRows = resp.count;
this.items = resp.results;
}).finally(() => {

View file

@ -69,7 +69,12 @@
},
list(start_date, end_date) {
this.loading = true;
purchaseReturnPaymentRecord({...this.searchForm, ...{ start_date, end_date }}).then(resp => {
let form = {...this.searchForm, ...{ start_date, end_date }};
if (form.end_date) {
form.end_date = moment(form.end_date).add(1, 'days').format('YYYY-MM-DD');
}
purchaseReturnPaymentRecord(form).then(resp => {
this.totalRows = resp.count;
this.items = resp.results;
}).finally(() => {

View file

@ -69,7 +69,12 @@
},
list(start_date, end_date) {
this.loading = true;
salesPaymentRecord({...this.searchForm, ...{ start_date, end_date }}).then(resp => {
let form = {...this.searchForm, ...{ start_date, end_date }};
if (form.end_date) {
form.end_date = moment(form.end_date).add(1, 'days').format('YYYY-MM-DD');
}
salesPaymentRecord(form).then(resp => {
this.totalRows = resp.count;
this.items = resp.results;
}).finally(() => {

View file

@ -69,7 +69,12 @@
},
list(start_date, end_date) {
this.loading = true;
salesReturnPaymentRecord({...this.searchForm, ...{ start_date, end_date }}).then(resp => {
let form = {...this.searchForm, ...{ start_date, end_date }};
if (form.end_date) {
form.end_date = moment(form.end_date).add(1, 'days').format('YYYY-MM-DD');
}
salesReturnPaymentRecord(form).then(resp => {
this.totalRows = resp.count;
this.items = resp.results;
}).finally(() => {