This commit is contained in:
wangshiming
2022-03-30 14:44:03 +08:00
parent 1eef137381
commit 3141de1357
2 changed files with 17 additions and 1 deletions

View File

@ -63,7 +63,7 @@
</div>
<button nz-button nzType="primary" (click)="upload()">上传</button>
<button nz-button nzType="primary" (click)="recall()">撤回</button>
<button nz-button nzType="primary" (click)="uploadSetting()">更新数据</button>
<button nz-button nzType="primary" (click)="resetData()">更新数据</button>
<button nz-button nzType="primary" (click)="uploadSetting()">税务设置</button>
</div>
</ng-template>

View File

@ -313,6 +313,22 @@ export class TaxManagementOrderReportingComponent implements OnInit {
});
}
/**
*撤销
* @param record 记录实例
*/
resetData() {
if (this.selectedRows.length === 0) {
this.openWainingModal('请选择需要更新的数据!');
return;
}
this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
if (res) {
this.service.msgSrv.success('更新成功');
this.search();
}
})
}
/**
*撤销
* @param record 记录实例