提交代码

pull/1/head
胡锐 2 years ago
parent 5c7909b680
commit b49bd53346
  1. 4
      src/app/admin/order-manage/order-refund-list/order-refund-list.component.html
  2. 5
      src/app/admin/order-manage/order-refund-list/order-refund-list.component.ts
  3. 8
      src/app/admin/system/system-msg/system-msg.component.ts
  4. 2
      src/app/services/msg.service.ts
  5. 14
      src/app/services/order/order-manage.service.ts

@ -50,7 +50,9 @@
<nz-form-item>
<nz-form-label [nzSpan]="8">产品类型</nz-form-label>
<nz-form-control [nzSpan]="14">
<nz-select nzAllowClear formControlName="goodsType">
<nz-option *ngFor="let item of orderChildGoodsTypeArray" nzValue="{{item.codeValue}}" nzLabel="{{item.codeName}}"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
</div>
@ -151,7 +153,7 @@
<td>{{data.goodsType | orderChildGoodsType}}</td>
<td>{{data.goodsName}}</td>
<td>{{data.refundOrderNo}}</td>
<td>{{data.goodsCount}}</td>
<td>{{data.refundGoodsNum}}</td>
<td>¥{{data.returnTotalPrice}}</td>
<td>¥{{data.refundPrice}}</td>
<td>{{data.refundIntegral}}</td>

@ -169,13 +169,12 @@ export class OrderRefundListComponent implements OnInit {
exportExcel(): void {
this.loadingObject.spinning = true;
this.loadingObject.msg = '处理中...';
/*
this.orderIntegralRechargeService.exportOrder(this.whereObject, data => {
this.orderManageService.excelRefund(this.whereObject, data => {
this.loadingObject.spinning = false;
if (data['return_code'] === '000000') {
window.location.href = this.FILE_URL + data['return_data'];
}
});*/
});
}
/**

@ -1,11 +1,11 @@
import { Component, OnInit } from '@angular/core';
import {environment} from '../../../../environments/environment';
import {FormBuilder, FormGroup, Validators} from '_@angular_forms@9.0.7@@angular/forms';
import {HttpClient} from '_@angular_common@9.0.7@@angular/common/http';
import {NzMessageService, NzUploadFile} from '_ng-zorro-antd@9.3.0@ng-zorro-antd';
import {Router} from '_@angular_router@9.0.7@@angular/router';
import {CommonsService} from '../../../services/commons.service';
import {MsgService} from '../../../services/msg.service';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {HttpClient} from '@angular/common/http';
import {NzMessageService, NzUploadFile} from 'ng-zorro-antd';
import {Router} from '@angular/router';
function getBase64(file: File): Promise<string | ArrayBuffer | null> {
return new Promise((resolve, reject) => {

@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import {HttpClient} from '_@angular_common@9.0.7@@angular/common/http';
import {CommonsService} from './commons.service';
import {environment} from '../../environments/environment';
import {HttpClient} from '@angular/common/http';
@Injectable({
providedIn: 'root'

@ -39,7 +39,7 @@ export class OrderManageService {
}
/**
* 退
* 退
*
* @param paramsObject
* @param callBack
@ -50,4 +50,16 @@ export class OrderManageService {
});
}
/**
* 退
*
* @param paramsObject
* @param callBack
*/
public excelRefund(param: object, callBack) {
this.http.get(environment.orderUrl + 'excelRefund?'+this.common.getWhereCondition(param)).subscribe(data => {
callBack(data);
});
}
}

Loading…
Cancel
Save