fix bug
This commit is contained in:
		| @ -245,7 +245,16 @@ export class TaxManagementIndividualCollectComponent extends BasicTableComponent | |||||||
|    * @param params 更新数据 |    * @param params 更新数据 | ||||||
|    */ |    */ | ||||||
|   uploadSetting() { |   uploadSetting() { | ||||||
|     this.service.request(this.service.$api_get_updateData).subscribe((res: any) => { |     let params: any; | ||||||
|  |     if (this.selectedRows.length === 0) { | ||||||
|  |       params ={} | ||||||
|  |     } else{ | ||||||
|  |       params = []; | ||||||
|  |       this.selectedRows.forEach(item => { | ||||||
|  |         params.push(item.billId); | ||||||
|  |       }); | ||||||
|  |     } | ||||||
|  |     this.service.request(this.service.$api_get_updateData,params).subscribe((res: any) => { | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('更新成功'); |         this.service.msgSrv.success('更新成功'); | ||||||
|         this.search(); |         this.search(); | ||||||
|  | |||||||
| @ -381,14 +381,15 @@ export class TaxManagementIndividualDeclareComponent extends BasicTableComponent | |||||||
|    * @param params 更新数据 |    * @param params 更新数据 | ||||||
|    */ |    */ | ||||||
|   resetData() { |   resetData() { | ||||||
|  |     let params: any; | ||||||
|     if (this.selectedRows.length === 0) { |     if (this.selectedRows.length === 0) { | ||||||
|       this.openWainingModal('请选择需要更新的数据'); |       params ={} | ||||||
|       return; |     } else{ | ||||||
|     } |       params = []; | ||||||
|     let params: any[] = []; |  | ||||||
|       this.selectedRows.forEach(item => { |       this.selectedRows.forEach(item => { | ||||||
|       params.push(item.id); |         params.push(item.billId); | ||||||
|       }); |       }); | ||||||
|  |     } | ||||||
|     this.service.request(this.service.$api_get_taxDeclaration_updateAll, params).subscribe((res: any) => { |     this.service.request(this.service.$api_get_taxDeclaration_updateAll, params).subscribe((res: any) => { | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('更新成功'); |         this.service.msgSrv.success('更新成功'); | ||||||
|  | |||||||
| @ -326,7 +326,16 @@ export class TaxManagementIndividualIncomeComponent extends BasicTableComponent | |||||||
|    * @param params 更新数据 |    * @param params 更新数据 | ||||||
|    */ |    */ | ||||||
|   uploadSetting() { |   uploadSetting() { | ||||||
|     this.service.request(this.service.$api_update_individual_income_page).subscribe((res: any) => { |     let params: any; | ||||||
|  |     if (this.selectedRows.length === 0) { | ||||||
|  |       params ={} | ||||||
|  |     } else{ | ||||||
|  |       params = []; | ||||||
|  |       this.selectedRows.forEach(item => { | ||||||
|  |         params.push(item.billId); | ||||||
|  |       }); | ||||||
|  |     } | ||||||
|  |     this.service.request(this.service.$api_update_individual_income_page, params).subscribe((res: any) => { | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('更新成功'); |         this.service.msgSrv.success('更新成功'); | ||||||
|         this.search(); |         this.search(); | ||||||
|  | |||||||
| @ -21,32 +21,36 @@ | |||||||
|   <div class="tab_header"> |   <div class="tab_header"> | ||||||
|     <label class="page_title"> <label class="driver">|</label> 订单上报</label> |     <label class="page_title"> <label class="driver">|</label> 订单上报</label> | ||||||
|     <nz-tabset [nzTabBarExtraContent]="extraTemplate" *ngIf="tabs.length > 0"> |     <nz-tabset [nzTabBarExtraContent]="extraTemplate" *ngIf="tabs.length > 0"> | ||||||
|       <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="selectChange(tab)"> |       <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="selectChange(tab)"> </nz-tab> | ||||||
|       </nz-tab> |  | ||||||
|     </nz-tabset> |     </nz-tabset> | ||||||
|   </div> |   </div> | ||||||
|  |  | ||||||
|   <!-- 数据列表 --> |   <!-- 数据列表 --> | ||||||
|   <st #st [scroll]="{x:'1200px',y:scrollY}" [data]="service.$api_getTaxOrderPage_page" [columns]="columns" |   <st | ||||||
|     [req]="{  params: reqParams }" [page]="{ }" [loading]="service.http.loading"> |     #st | ||||||
|  |     [scroll]="{ x: '1200px', y: scrollY }" | ||||||
|  |     [data]="service.$api_getTaxOrderPage_page" | ||||||
|  |     [columns]="columns" | ||||||
|  |     [req]="{ params: reqParams }" | ||||||
|  |     [page]="{}" | ||||||
|  |     [loading]="service.http.loading" | ||||||
|  |   > | ||||||
|     <ng-template st-row="putStatus" let-item let-index="index"> |     <ng-template st-row="putStatus" let-item let-index="index"> | ||||||
|       <!-- <a (click)="viewAuditResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> --> |       <!-- <a (click)="viewAuditResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> --> | ||||||
|       <span *ngIf="item?.putStatus == '0'">待上传</span> |       <span *ngIf="item?.putStatus == '0'">待上传</span> | ||||||
|       <span *ngIf="item?.putStatus == '1'">已上传</span> |       <span *ngIf="item?.putStatus == '1'">已上传</span> | ||||||
|       <span *ngIf="item?.putStatus == '3'">上传中</span> |       <span *ngIf="item?.putStatus == '3'">上传中</span> | ||||||
|       <span *ngIf="item?.putStatus == '2'" style="color: red;" (click)="unnormal(item)">上传异常</span> |       <span *ngIf="item?.putStatus == '2'" style="color: red" (click)="unnormal(item)">上传异常</span> | ||||||
|  |  | ||||||
|     </ng-template> |     </ng-template> | ||||||
|     <ng-template st-row="checkStatus" let-item let-index="index"> |     <ng-template st-row="checkStatus" let-item let-index="index"> | ||||||
|       <!-- <a (click)="viewAuditResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> --> |       <!-- <a (click)="viewAuditResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> --> | ||||||
|       <span *ngIf="item?.checkStatus == '0'">校验中</span> |       <span *ngIf="item?.checkStatus == '0'">校验中</span> | ||||||
|       <span *ngIf="item?.checkStatus == '1'">通过</span> |       <span *ngIf="item?.checkStatus == '1'">通过</span> | ||||||
|       <!-- <span  *ngIf="item?.checkStatus == '2'" style="color: red;" (click)="unnormal(item)">不通过</span> --> |       <!-- <span  *ngIf="item?.checkStatus == '2'" style="color: red;" (click)="unnormal(item)">不通过</span> --> | ||||||
|       <a *ngIf="item?.checkStatus == '2'" style="color: red;" (click)="viewResult(item)">不通过</a> |       <a *ngIf="item?.checkStatus == '2'" style="color: red" (click)="viewResult(item)">不通过</a> | ||||||
|  |  | ||||||
|     </ng-template> |     </ng-template> | ||||||
|     <ng-template st-row="driverName" let-item let-index="index"> |     <ng-template st-row="driverName" let-item let-index="index"> | ||||||
|       <div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : '' }} </div> |       <div> {{ item?.driverName }}{{ item?.driverPhone ? '/' + item?.driverPhone : '' }} </div> | ||||||
|     </ng-template> |     </ng-template> | ||||||
|     <!-- <ng-template st-row="localValid" let-item let-index="index"> |     <!-- <ng-template st-row="localValid" let-item let-index="index"> | ||||||
|       <a (click)="viewResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> |       <a (click)="viewResult(item)" *ngIf="item?.billStatus === '2'">{{item?.billStatusLabel}}</a> | ||||||
| @ -73,6 +77,10 @@ | |||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|     </ng-template> |     </ng-template> | ||||||
|  |     <ng-template st-row="goodsName" let-item let-index="index"> | ||||||
|  |       <div> 货物名称:{{ item.goodsName ? item.goodsName : '--' }} </div> | ||||||
|  |       <div> {{ item.loadWeight ? item.loadWeight : '--' }}吨/{{ item.loadVolume ?item.loadVolume: '--' }}方 </div> | ||||||
|  |     </ng-template> | ||||||
|     <ng-template st-row="signatureForm" let-item let-index="index"> |     <ng-template st-row="signatureForm" let-item let-index="index"> | ||||||
|       <div class="imgBox"> |       <div class="imgBox"> | ||||||
|         <div *ngIf="item.signatureForm"> |         <div *ngIf="item.signatureForm"> | ||||||
| @ -91,25 +99,19 @@ | |||||||
|       已选择 |       已选择 | ||||||
|       <strong class="text-red">{{ selectedRows.length }}</strong> 条数据 |       <strong class="text-red">{{ selectedRows.length }}</strong> 条数据 | ||||||
|     </div> |     </div> | ||||||
|     <button nz-button nzDanger [nzLoading]="isLoading && st.loading" acl [acl-ability]="['TAX-ORDERREPORT-search']" |     <button nz-button nzDanger [nzLoading]="isLoading && st.loading" acl [acl-ability]="['TAX-ORDERREPORT-search']" (click)="openDrawer()" | ||||||
|       (click)="openDrawer()">筛选</button> |       >筛选</button | ||||||
|  |     > | ||||||
|     <button nz-button nzDanger acl [acl-ability]="['TAX-ORDERREPORT-export']"> 导出</button> |     <button nz-button nzDanger acl [acl-ability]="['TAX-ORDERREPORT-export']"> 导出</button> | ||||||
|     <button nz-button nz-dropdown [nzDropdownMenu]="menu" nzPlacement="bottomLeft"> |     <button nz-button nz-dropdown [nzDropdownMenu]="menu" nzPlacement="bottomLeft"> | ||||||
|       更多<i nz-icon nzType="down" nzTheme="outline"></i></button> |       更多<i nz-icon nzType="down" nzTheme="outline"></i | ||||||
|  |     ></button> | ||||||
|     <nz-dropdown-menu #menu="nzDropdownMenu"> |     <nz-dropdown-menu #menu="nzDropdownMenu"> | ||||||
|       <ul nz-menu> |       <ul nz-menu> | ||||||
|         <li nz-menu-item (click)="upload()" acl [acl-ability]="['TAX-ORDERREPORT-upload']"> |         <li nz-menu-item (click)="upload()" acl [acl-ability]="['TAX-ORDERREPORT-upload']"> 上传 </li> | ||||||
|           上传 |         <li nz-menu-item (click)="recall()" acl [acl-ability]="['TAX-ORDERREPORT-recall']"> 撤回 </li> | ||||||
|         </li> |         <li nz-menu-item (click)="resetData()" acl [acl-ability]="['TAX-ORDERREPORT-resetData']"> 更新数据 </li> | ||||||
|         <li nz-menu-item (click)="recall() " acl [acl-ability]="['TAX-ORDERREPORT-recall']"> |         <li nz-menu-item (click)="uploadSetting()" acl [acl-ability]="['TAX-ORDERREPORT-uploadSetting']"> 税务设置 </li> | ||||||
|           撤回 |  | ||||||
|         </li> |  | ||||||
|         <li nz-menu-item (click)="resetData()" acl [acl-ability]="['TAX-ORDERREPORT-resetData']"> |  | ||||||
|           更新数据 |  | ||||||
|         </li> |  | ||||||
|         <li nz-menu-item (click)="uploadSetting()" acl [acl-ability]="['TAX-ORDERREPORT-uploadSetting']"> |  | ||||||
|           税务设置 |  | ||||||
|         </li> |  | ||||||
|       </ul> |       </ul> | ||||||
|     </nz-dropdown-menu> |     </nz-dropdown-menu> | ||||||
|   </div> |   </div> | ||||||
|  | |||||||
| @ -230,13 +230,13 @@ export class TaxManagementOrderReportingComponent extends BasicTableComponent im | |||||||
|       { title: '接单时间', index: 'wayBillCreateTime', className: 'text-center', width: '200px' }, |       { title: '接单时间', index: 'wayBillCreateTime', className: 'text-center', width: '200px' }, | ||||||
|       { title: '发车时间', index: 'loadTime', className: 'text-center', width: '200px' }, |       { title: '发车时间', index: 'loadTime', className: 'text-center', width: '200px' }, | ||||||
|       { title: '到车时间', index: 'unloadTime', className: 'text-center', width: '150px' }, |       { title: '到车时间', index: 'unloadTime', className: 'text-center', width: '150px' }, | ||||||
|       { title: '结束时间', index: 'payeeName', className: 'text-center', width: '150px' }, |       { title: '结束时间', index: 'orderPayTime', className: 'text-center', width: '150px' }, | ||||||
|       { title: '订单金额', render: 'orderAmount', className: 'text-center', width: '120px' }, |       { title: '订单金额', render: 'orderAmount', className: 'text-center', width: '120px' }, | ||||||
|       { title: '司机姓名', render: 'driverName', className: 'text-center', width: '150px' }, |       { title: '司机姓名', render: 'driverName', className: 'text-center', width: '150px' }, | ||||||
|       { title: '司机身份证号', index: 'transpdriverCertificateNumberortInfo', className: 'text-center', width: '180px' }, |       { title: '司机身份证号', index: 'driverCertificateNumber', className: 'text-center', width: '180px' }, | ||||||
|       { title: '车牌号', index: 'carNo', className: 'text-center', width: '100px' }, |       { title: '车牌号', index: 'carNo', className: 'text-center', width: '100px' }, | ||||||
|       { title: '货物信息', render: 'transportInfo', className: 'text-center', width: '200px' }, |       { title: '货物信息', render: 'goodsName', className: 'text-center', width: '200px' }, | ||||||
|       { title: '运费金额', render: 'payeeName', className: 'text-center', width: '100px' }, |       { title: '运费金额', render: 'orderAmount', className: 'text-center', width: '100px' }, | ||||||
|       { title: '装卸方式', index: 'loadingUnloadWay', className: 'text-center', width: '180px' }, |       { title: '装卸方式', index: 'loadingUnloadWay', className: 'text-center', width: '180px' }, | ||||||
|       { title: '支付方式', index: 'payMent', className: 'text-center', width: '150px' }, |       { title: '支付方式', index: 'payMent', className: 'text-center', width: '150px' }, | ||||||
|       { title: '支付账号', index: 'paymentAccount', className: 'text-center', width: '200px' }, |       { title: '支付账号', index: 'paymentAccount', className: 'text-center', width: '200px' }, | ||||||
| @ -285,14 +285,16 @@ export class TaxManagementOrderReportingComponent extends BasicTableComponent im | |||||||
|    * @param record 记录实例 |    * @param record 记录实例 | ||||||
|    */ |    */ | ||||||
|   resetData() { |   resetData() { | ||||||
|  |     let params: any; | ||||||
|     if (this.selectedRows.length === 0) { |     if (this.selectedRows.length === 0) { | ||||||
|       this.openWainingModal('请选择需要更新的数据!'); |       params ={} | ||||||
|       return; |     } else{ | ||||||
|     } |       params = []; | ||||||
|     let params: any[] = []; |  | ||||||
|       this.selectedRows.forEach(item => { |       this.selectedRows.forEach(item => { | ||||||
|         params.push(item.billId); |         params.push(item.billId); | ||||||
|       }); |       }); | ||||||
|  |     } | ||||||
|  |    | ||||||
|     this.service.request(this.service.$api_get_renewalOrderById, params).subscribe((res: any) => { |     this.service.request(this.service.$api_get_renewalOrderById, params).subscribe((res: any) => { | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('更新成功'); |         this.service.msgSrv.success('更新成功'); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user