fix bug
This commit is contained in:
		@ -285,16 +285,12 @@ export class TaxManagementIndividualCollectComponent implements OnInit {
 | 
			
		||||
   * @param params 更新数据
 | 
			
		||||
   */
 | 
			
		||||
  uploadSetting() {
 | 
			
		||||
    if (this.selectedRows.length === 0) {
 | 
			
		||||
      this.service.msgSrv.warning('请选择需要更新的数据');
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    // this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
 | 
			
		||||
    //   if (res) {
 | 
			
		||||
    //     this.service.msgSrv.success('更新成功');
 | 
			
		||||
    //     this.search();
 | 
			
		||||
    //   }
 | 
			
		||||
    // })
 | 
			
		||||
    this.service.request(this.service.$api_get_updateData).subscribe((res: any) => {
 | 
			
		||||
      if (res) {
 | 
			
		||||
        this.service.msgSrv.success('更新成功');
 | 
			
		||||
        this.search();
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  search() {
 | 
			
		||||
 | 
			
		||||
@ -413,10 +413,21 @@ export class TaxManagementOrderReportingComponent implements OnInit {
 | 
			
		||||
   * 上传
 | 
			
		||||
   */
 | 
			
		||||
  upload() {
 | 
			
		||||
    let status = false
 | 
			
		||||
    if (this.selectedRows.length === 0) {
 | 
			
		||||
      this.openWainingModal('请选择需要上传的数据');
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    this.selectedRows.forEach(item => {
 | 
			
		||||
      if (item?.putStatus != '0') {
 | 
			
		||||
        status = true
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
    });
 | 
			
		||||
    if(status) {
 | 
			
		||||
      this.service.msgSrv.warning('选择了已上传,请重新勾选!');
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    let params: any[] = [];
 | 
			
		||||
    this.selectedRows.forEach(item => {
 | 
			
		||||
      params.push(item.id);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user