订单上传
This commit is contained in:
@ -352,7 +352,8 @@ export class DatatableOrderReportingComponent implements OnInit {
|
||||
nzOkText: '确定',
|
||||
nzCancelText: '取消',
|
||||
nzOnOk: () => {
|
||||
this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
||||
const ids = this.selectedRows.map(i => i?.id);
|
||||
this.service.request(this.service.$api_recall_order_reporting, ids).subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('撤销成功');
|
||||
this.search();
|
||||
@ -409,7 +410,8 @@ export class DatatableOrderReportingComponent implements OnInit {
|
||||
this.openWainingModal('请选择需要上传的数据');
|
||||
return;
|
||||
}
|
||||
this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
||||
const ids = this.selectedRows.map(i => i?.id);
|
||||
this.service.request(this.service.$api_upload_order_reporting, ids).subscribe((res: any) => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('上传成功');
|
||||
this.search();
|
||||
|
||||
@ -7,7 +7,8 @@ import { BaseService } from '@shared';
|
||||
export class ReportingService extends BaseService {
|
||||
|
||||
$api_get_order_reporting_page = `/api/sdc/regulation/list/page`; // 订单上报列表
|
||||
$api_recall_reporting = ``; // 撤回
|
||||
$api_upload_order_reporting = `/api/sdc/regulation/push`; // 上传订单上报
|
||||
$api_recall_order_reporting = `/api/sdc/regulation/withdraw`; // 撤回上传订单上报
|
||||
$api_async_export_order_reporting_list = ``; // 导出订单上报
|
||||
$api_get_upload_setting = `/api/sdc/regulation/getPushConfig`; // 获取上传设置
|
||||
$api_upload_setting_save = `/api/sdc/regulation/setPushConfig`; // 保存上传设置
|
||||
|
||||
Reference in New Issue
Block a user