edit
This commit is contained in:
@ -10,15 +10,15 @@
|
|||||||
-->
|
-->
|
||||||
<page-header-wrapper [title]="''"></page-header-wrapper>
|
<page-header-wrapper [title]="''"></page-header-wrapper>
|
||||||
|
|
||||||
<nz-card>
|
<nz-card class="search-box">
|
||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.expend-options]="_$expand" class="text-right">
|
||||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading" (click)="search()" acl
|
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading" (click)="search()"
|
||||||
[acl-ability]="['RiskOrder-Search']">查询</button>
|
acl [acl-ability]="['RiskOrder-Search']">查询</button>
|
||||||
<button nz-button (click)="resetSF()">重置</button>
|
<button nz-button (click)="resetSF()">重置</button>
|
||||||
<button nz-button (click)="resetSF()">导出</button>
|
<button nz-button (click)="resetSF()">导出</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
@ -28,28 +28,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
<nz-card>
|
|
||||||
|
<nz-card class="content-box">
|
||||||
<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>
|
<nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="selectChange(tab)"> </nz-tab>
|
||||||
</nz-tabset>
|
</nz-tabset>
|
||||||
<!-- 数据列表 -->
|
<!-- 数据列表 -->
|
||||||
<st #st [scroll]="{ x: '1200px' }" [data]="service.$api_get_individual_income_page" [columns]="columns"
|
<st #st [scroll]="{ x: '1200px',y:'450px' }" [data]="service.$api_get_individual_income_page" [columns]="columns"
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
[req]="{ params: reqParams }" [page]="{}" [loading]="service.http.loading" (change)="stChange($event)">
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 50, 100] }" [loading]="service.http.loading">
|
|
||||||
<ng-template st-row="orderStatus" let-item let-index="index">
|
|
||||||
<a (click)="viewAuditResult(item)" *ngIf="item?.billStatus === '2'">{{ item?.billStatusLabel }}</a>
|
|
||||||
<span *ngIf="item?.billStatus !== '2'">{{ item?.billStatusLabel }}</span>
|
|
||||||
<span style="color: red" (click)="unnormal(item)">异常</span>
|
|
||||||
</ng-template>
|
|
||||||
|
|
||||||
<ng-template st-row="localValid" let-item let-index="index">
|
|
||||||
<a (click)="viewResult(item)" *ngIf="item?.billStatus === '2'">{{ item?.billStatusLabel }}</a>
|
|
||||||
<span *ngIf="item?.billStatus !== '2'">{{ item?.billStatusLabel }}</span>
|
|
||||||
</ng-template>
|
|
||||||
<ng-template st-row="amount" let-item let-index="index">
|
|
||||||
<div class="text-right">{{ item?.amount | currency: ' ' }}</div>
|
|
||||||
</ng-template>
|
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
<ng-template #extraTemplate>
|
<ng-template #extraTemplate>
|
||||||
@ -59,7 +45,7 @@
|
|||||||
<strong class="text-red">{{ selectedRows.length }}</strong> 条数据
|
<strong class="text-red">{{ selectedRows.length }}</strong> 条数据
|
||||||
</div>
|
</div>
|
||||||
<button nz-button nzType="primary" (click)="upload()">申报</button>
|
<button nz-button nzType="primary" (click)="upload()">申报</button>
|
||||||
<button nz-button nzType="primary" (click)="recall()">更正</button>
|
<button nz-button nzType="primary" (click)="corrections()">更正</button>
|
||||||
<button nz-button nzType="primary" (click)="resetData()">修改起征点</button>
|
<button nz-button nzType="primary" (click)="resetData()">修改起征点</button>
|
||||||
<button nz-button nzType="primary" (click)="uploadSetting()">更新数据</button>
|
<button nz-button nzType="primary" (click)="uploadSetting()">更新数据</button>
|
||||||
</div>
|
</div>
|
||||||
@ -75,4 +61,4 @@
|
|||||||
<button nz-button nzType="default" (click)="handleCancel()">取消</button>
|
<button nz-button nzType="default" (click)="handleCancel()">取消</button>
|
||||||
<button nz-button nzType="primary" (click)="handleOK()">确定</button>
|
<button nz-button nzType="primary" (click)="handleOK()">确定</button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</nz-modal>
|
</nz-modal>
|
||||||
@ -1,5 +0,0 @@
|
|||||||
:host {
|
|
||||||
.text-black {
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Description :
|
|
||||||
* @Version : 1.0
|
|
||||||
* @Author : Shiming
|
|
||||||
* @Date : 2022-03-30 14:45:52
|
|
||||||
* @LastEditors : Shiming
|
|
||||||
* @LastEditTime : 2022-03-30 15:33:06
|
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\tax-management\\components\\individual-income\\individual-income.component.spec.ts
|
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
|
||||||
*/
|
|
||||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
import { TaxManagementIndividualIncomeComponent } from './individual-income.component';
|
|
||||||
|
|
||||||
describe('TaxManagementIndividualIncomeComponent', () => {
|
|
||||||
let component: TaxManagementIndividualIncomeComponent;
|
|
||||||
let fixture: ComponentFixture<TaxManagementIndividualIncomeComponent>;
|
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ TaxManagementIndividualIncomeComponent ]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(TaxManagementIndividualIncomeComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -1,19 +1,15 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { STColumn, STComponent, STData } from '@delon/abc/st';
|
import { STChange, STColumn, STComponent, STData } from '@delon/abc/st';
|
||||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
||||||
import { ShipperBaseService } from '@shared';
|
import { ShipperBaseService } from '@shared';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { of } from 'rxjs';
|
|
||||||
import { map } from 'rxjs/operators';
|
|
||||||
import { TaxManagementService } from '../../services/tax-management.service';
|
import { TaxManagementService } from '../../services/tax-management.service';
|
||||||
// import { DatatableReportingUploadSettingComponent } from '../upload-setting/upload-setting.component';
|
|
||||||
// import { DatatableReportingVerifyResultComponent } from '../verify-result/verify-result.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-tax-management-individual-income',
|
selector: 'app-tax-management-individual-income',
|
||||||
templateUrl: './individual-income.component.html',
|
templateUrl: './individual-income.component.html',
|
||||||
styleUrls: ['./individual-income.component.less']
|
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
||||||
})
|
})
|
||||||
export class TaxManagementIndividualIncomeComponent implements OnInit {
|
export class TaxManagementIndividualIncomeComponent implements OnInit {
|
||||||
_$expand = false;
|
_$expand = false;
|
||||||
@ -22,50 +18,38 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
columns!: STColumn[];
|
columns!: STColumn[];
|
||||||
@ViewChild('st', { static: false }) st!: STComponent;
|
@ViewChild('st', { static: false }) st!: STComponent;
|
||||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
tabType!: string;
|
|
||||||
isLoading: boolean = false;
|
isLoading: boolean = false;
|
||||||
tabs: any[] = [
|
tabs: any[] = [
|
||||||
{ name: '待申报', value: '1' },
|
{ name: '待申报', value: '0' },
|
||||||
{ name: '待审核', value: '2' },
|
{ name: '待审核', value: '1' },
|
||||||
{ name: '已通过', value: '3' },
|
{ name: '已通过', value: '2' },
|
||||||
{ name: '不通过', value: '4' },
|
{ name: '不通过', value: '3' },
|
||||||
{ name: '全部', value: '' }
|
{ name: '全部', value: '' }
|
||||||
];
|
];
|
||||||
selectedIndex = ''; //选择的项目
|
selectedIndex = '0'; //选择的项目
|
||||||
serviceTel = '';
|
isVisible: boolean = false;
|
||||||
isVisible : boolean = false
|
|
||||||
constructor(
|
|
||||||
public service: TaxManagementService,
|
|
||||||
private router: Router,
|
|
||||||
private ar: ActivatedRoute,
|
|
||||||
public shipperservice: ShipperBaseService,
|
|
||||||
private modal: NzModalService,
|
|
||||||
public shipperSrv: ShipperBaseService
|
|
||||||
) {}
|
|
||||||
|
|
||||||
/**
|
selectedRows: any[] = [];
|
||||||
* 查询字段个数
|
|
||||||
*/
|
constructor(public service: TaxManagementService) {}
|
||||||
get queryFieldCount(): number {
|
|
||||||
return Object.keys(this.schema?.properties || {}).length;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询参数
|
* 查询参数
|
||||||
*/
|
*/
|
||||||
get reqParams() {
|
get reqParams() {
|
||||||
const params = Object.assign({}, this.sf?.value || {}, {
|
const params = Object.assign({}, this.sf?.value || {}, {
|
||||||
representationsStatus: this.selectedIndex
|
declareStatus: this.selectedIndex
|
||||||
});
|
});
|
||||||
delete params._$expand;
|
delete params._$expand;
|
||||||
return { ...params };
|
return { ...params };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
stChange(e: STChange): void {
|
||||||
* 选中行
|
switch (e.type) {
|
||||||
*/
|
case 'checkbox':
|
||||||
get selectedRows() {
|
this.selectedRows = e.checkbox!;
|
||||||
return this.st?.list.filter((item: any) => item.checked) || [];
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -82,7 +66,7 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
resetSF() {
|
resetSF() {
|
||||||
this.sf.reset();
|
this.sf.reset();
|
||||||
this._$expand = false;
|
this._$expand = false;
|
||||||
this.isLoading = true
|
this.isLoading = true;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 程序初始化入口
|
* 程序初始化入口
|
||||||
@ -99,48 +83,55 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
this.schema = {
|
this.schema = {
|
||||||
properties: {
|
properties: {
|
||||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||||
billCode: { title: '司机姓名', type: 'string', ui: { placeholder: '请输入' } },
|
driverName: { title: '司机姓名', type: 'string', ui: { placeholder: '请输入' } },
|
||||||
resourceCode: {
|
telephone: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入'
|
placeholder: '请输入'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
driverName: {
|
cardNumber: {
|
||||||
title: '证件号码',
|
title: '证件号码',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入证件号码'
|
placeholder: '请输入证件号码'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
serviceType2: {
|
declareStatus: {
|
||||||
title: '申报状态',
|
title: '申报状态',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
enum: [
|
||||||
|
{ value: '', label: '全部' },
|
||||||
|
{ value: '0', label: '待申报' },
|
||||||
|
{ value: '1', label: '待审核' },
|
||||||
|
{ value: '2', label: '已通过' },
|
||||||
|
{ value: '3', label: '不通过' }
|
||||||
|
],
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
widget: 'dict-select',
|
widget: 'select',
|
||||||
params: { dictKey: 'service:type' },
|
|
||||||
containsAllLabel: true,
|
containsAllLabel: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
default: ''
|
||||||
},
|
},
|
||||||
serviceType3: {
|
// declareStatu1s: {
|
||||||
title: '申报结果',
|
// title: '申报结果',
|
||||||
type: 'string',
|
// type: 'string',
|
||||||
ui: {
|
// ui: {
|
||||||
placeholder: '请选择',
|
// placeholder: '请选择',
|
||||||
widget: 'dict-select',
|
// widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
// params: { dictKey: 'service:type' },
|
||||||
containsAllLabel: true,
|
// containsAllLabel: true,
|
||||||
visibleIf: {
|
// visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
// _$expand: (value: boolean) => value
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
serviceType1: {
|
isOvertime: {
|
||||||
title: '是否逾期',
|
title: '是否逾期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
@ -153,7 +144,7 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createTime: {
|
taxDate: {
|
||||||
title: '税款所属期',
|
title: '税款所属期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
@ -165,7 +156,7 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
createTime3: {
|
declareDate: {
|
||||||
title: '申报日期',
|
title: '申报日期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
@ -177,7 +168,7 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
},
|
},
|
||||||
enterpriseInfoId: {
|
ltdId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '网络货运人',
|
title: '网络货运人',
|
||||||
ui: {
|
ui: {
|
||||||
@ -187,7 +178,7 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
asyncData: () => this.service.getNetworkFreightForwarder()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -204,148 +195,149 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
initST() {
|
initST() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{ title: '', type: 'checkbox', className: 'text-center', width: '60px' },
|
{ title: '', type: 'checkbox', className: 'text-center', width: '60px' },
|
||||||
{ title: '申报状态', render: 'orderStatus', className: 'text-center', width: '120px' },
|
|
||||||
{ title: '是否逾期', render: 'localValid', className: 'text-center', width: '120px' },
|
|
||||||
{
|
{
|
||||||
title: '税款所属期起',
|
title: '申报状态',
|
||||||
render: 'billComplianceVOS',
|
index: 'declareStatus',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
width: '150px'
|
width: '120px',
|
||||||
|
type: 'badge',
|
||||||
|
badge: {
|
||||||
|
'0': { text: '待申报', color: 'default' },
|
||||||
|
'1': { text: '待审核', color: 'processing' },
|
||||||
|
'2': { text: '已通过', color: 'success' },
|
||||||
|
'3': { text: '不通过', color: 'error' }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ title: '税款所属期止', render: 'freightDetails', className: 'text-center', width: '150px' },
|
{ title: '是否逾期', index: 'overtime', className: 'text-center', width: '120px', type: 'enum', enum: { '0': '否', '1': '是' } },
|
||||||
|
{ title: '税款所属期起', index: 'skssqq', className: 'text-center', width: '150px' },
|
||||||
|
{ title: '税款所属期止', index: 'skssqz', className: 'text-center', width: '150px' },
|
||||||
|
{ title: '纳税人名称', index: 'nsrmc', className: 'text-center', width: '180px' },
|
||||||
|
{ title: '纳税人识别号', index: 'nsrsbh', className: 'text-center', width: '200px' },
|
||||||
|
{ title: '行业', index: 'hy', className: 'text-center', width: '200px' },
|
||||||
|
{ title: '行政区划', index: 'xzqh', className: 'text-center', width: '120px' },
|
||||||
|
{ title: '街道乡镇', index: 'jdxz', className: 'text-center', width: '350px' },
|
||||||
|
{ title: '税务机关', index: 'swjg', className: 'text-center', width: '180px' },
|
||||||
|
{ title: '姓名', index: 'xm', className: 'text-center', width: '180px' },
|
||||||
|
{ title: '证件类型', index: 'sfzjlx', className: 'text-center', width: '250px' },
|
||||||
|
{ title: '证件号码', index: 'sfzjhm', className: 'text-center', width: '200px' },
|
||||||
|
{ title: '联系电话', index: 'lxdh', className: 'text-center', width: '200px' },
|
||||||
|
{ title: '国籍(地区)', index: 'gjdq', className: 'text-center', width: '150px' },
|
||||||
|
{ title: '生产经营地行政区划', index: 'scjydxzqh', className: 'text-center', width: '180px' },
|
||||||
{
|
{
|
||||||
title: '纳税人名称',
|
title: '当月应税收入',
|
||||||
render: 'serviceType',
|
index: 'dyyssr',
|
||||||
className: 'text-center',
|
width: '150px',
|
||||||
width: '180px'
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.dyyssr }) }
|
||||||
},
|
},
|
||||||
{ title: '纳税人识别号', index: 'loadingPlace', render: 'loadingPlace', className: 'text-center', width: '200px' },
|
{
|
||||||
{ title: '行业', index: 'loadingPlace', render: 'loadingPlace', className: 'text-center', width: '200px' },
|
title: '应税收入',
|
||||||
{ title: '行政区划', index: 'dischargePlace', render: 'dischargePlace', className: 'text-center', width: '120px' },
|
index: 'yssr',
|
||||||
{ title: '街道乡镇', render: 'goodsInfoVOList', className: 'text-center', width: '180px' },
|
width: '150px',
|
||||||
{ title: '税务机关', render: 'driver', className: 'text-center', width: '180px' },
|
type: 'widget',
|
||||||
{ title: '姓名', render: 'payeeName', className: 'text-center', width: '180px' },
|
className: 'text-right',
|
||||||
{ title: '证件类型', render: 'transportInfo', className: 'text-center', width: '250px' },
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yssr }) }
|
||||||
{ title: '证件号码', index: 'loadingPlace', render: 'loadingPlace', className: 'text-center', width: '200px' },
|
},
|
||||||
{ title: '联系电话', index: 'dischargePlace', render: 'dischargePlace', className: 'text-center', width: '200px' },
|
{
|
||||||
{ title: '国籍(地区)', render: 'driver', className: 'text-center', width: '150px' },
|
title: '应税所得率',
|
||||||
{ title: '生产经营地行政区划', render: 'payeeName', className: 'text-center', width: '150px' },
|
index: 'yssdl',
|
||||||
{ title: '当月应税收入', render: 'amount', className: 'text-center', width: '250px' },
|
className: 'text-right',
|
||||||
{ title: '应税收入', render: 'payeeName', className: 'text-center', width: '150px' },
|
width: '250px',
|
||||||
{ title: '应税所得率', render: 'transportInfo', className: 'text-center', width: '250px' },
|
format: item => `${item.yssdl ? ((item.yssdl as number) * 100).toFixed(2) : 0}%`
|
||||||
{ title: '计税依据', render: 'payeeName', className: 'text-center', width: '150px' },
|
},
|
||||||
{ title: '税率', render: 'transportInfo', className: 'text-center', width: '200px' },
|
{ title: '计税依据', index: 'jsyj', className: 'text-right', width: '150px' },
|
||||||
{ title: '速算扣除数', render: 'payeeName', className: 'text-center', width: '150px' },
|
{
|
||||||
{ title: '应纳税额', render: 'transportInfo', className: 'text-center', width: '180px' },
|
title: '税率',
|
||||||
{ title: '累计已缴纳税额', render: 'payeeName', className: 'text-center', width: '150px' },
|
index: 'sl',
|
||||||
{ title: '本期应补退税额', render: 'transportInfo', className: 'text-center', width: '200px' },
|
className: 'text-right',
|
||||||
{ title: '申报日期', render: 'payeeName', className: 'text-center', width: '150px' },
|
width: '150px',
|
||||||
|
format: item => `${item.sl ? ((item.sl as number) * 100).toFixed(2) : 0}%`
|
||||||
|
},
|
||||||
|
{ title: '速算扣除数', index: 'sskcs', className: 'text-right', width: '150px' },
|
||||||
|
{
|
||||||
|
title: '应纳税额',
|
||||||
|
index: 'ynse',
|
||||||
|
width: '150px',
|
||||||
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ynse }) }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '累计已缴纳税额',
|
||||||
|
index: 'ljyjnse',
|
||||||
|
width: '150px',
|
||||||
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ljyjnse }) }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '本期应补退税额',
|
||||||
|
index: 'bqybtse',
|
||||||
|
width: '150px',
|
||||||
|
type: 'widget',
|
||||||
|
className: 'text-right',
|
||||||
|
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.bqybtse }) }
|
||||||
|
},
|
||||||
|
{ title: '申报日期', index: 'sbrq', className: 'text-center', width: '150px' }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*撤销
|
*更正
|
||||||
* @param record 记录实例
|
* @param record 记录实例
|
||||||
*/
|
*/
|
||||||
recall() {
|
corrections() {
|
||||||
if (this.selectedRows.length === 0) {
|
// if (this.selectedRows.length === 0) {
|
||||||
this.openWainingModal('请选择需要撤回的数据');
|
// this.openWainingModal('请选择需要撤回的数据');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
this.modal.confirm({
|
// this.modal.confirm({
|
||||||
nzTitle: '撤回提示',
|
// nzTitle: '撤回提示',
|
||||||
nzContent: ' 撤回后可以重新上传,重新上传会覆盖已上传数据,确定要撤回?',
|
// nzContent: ' 撤回后可以重新上传,重新上传会覆盖已上传数据,确定要撤回?',
|
||||||
nzOkText: '确定',
|
// nzOkText: '确定',
|
||||||
nzCancelText: '取消',
|
// nzCancelText: '取消',
|
||||||
nzOnOk: () => {
|
// nzOnOk: () => {
|
||||||
this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
// this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
||||||
if (res) {
|
// if (res) {
|
||||||
this.service.msgSrv.success('撤销成功');
|
// this.service.msgSrv.success('撤销成功');
|
||||||
this.search();
|
// this.search();
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*撤销
|
*修改起征点
|
||||||
* @param record 记录实例
|
* @param record 记录实例
|
||||||
*/
|
*/
|
||||||
resetData() {
|
resetData() {
|
||||||
if (this.selectedRows.length === 0) {
|
// if (this.selectedRows.length === 0) {
|
||||||
this.openWainingModal('请选择需要更新的数据!');
|
// this.openWainingModal('请选择需要更新的数据!');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
this.isVisible = true
|
// this.isVisible = true;
|
||||||
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
*撤销
|
|
||||||
* @param record 记录实例
|
|
||||||
*/
|
|
||||||
unnormal(value: any) {
|
|
||||||
this.modal.confirm({
|
|
||||||
nzTitle: '税务审核结果',
|
|
||||||
nzContent: '订单结算时间所在月份与申报月份不一致',
|
|
||||||
nzOkText: '确定',
|
|
||||||
nzCancelText: '',
|
|
||||||
nzOnOk: () => {
|
|
||||||
this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
|
||||||
if (res) {
|
|
||||||
this.service.msgSrv.success('撤销成功');
|
|
||||||
this.search();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
selectChange(item: any) {
|
selectChange(item: any) {
|
||||||
this.selectedIndex = item?.representationsStatus || '';
|
this.selectedIndex = item?.value || '';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 查看当行数据
|
|
||||||
*/
|
|
||||||
view(record: STData) {
|
|
||||||
// this.router.navigate(['../view', record.uuid], { relativeTo: this.ar });
|
|
||||||
this.router.navigate(['../detail'], {
|
|
||||||
queryParams: {
|
|
||||||
id: record.id
|
|
||||||
},
|
|
||||||
relativeTo: this.ar
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// appeal(item: any) {
|
|
||||||
// const modalRef = this.modal.create({
|
|
||||||
// nzTitle: '申诉',
|
|
||||||
// nzWidth: '40%',
|
|
||||||
// nzContent: CtcAppealComponent,
|
|
||||||
// nzComponentParams: {
|
|
||||||
// i: item,
|
|
||||||
// status: 'add'
|
|
||||||
// },
|
|
||||||
// nzFooter: null
|
|
||||||
// });
|
|
||||||
// modalRef.afterClose.subscribe(res => {
|
|
||||||
// if (res) {
|
|
||||||
// this.search({ representationsStatus: '' });
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 申报
|
* 申报
|
||||||
*/
|
*/
|
||||||
upload() {
|
upload() {
|
||||||
if (this.selectedRows.length === 0) {
|
if (this.selectedRows.length === 0) {
|
||||||
this.openWainingModal('请选择需要上传的数据');
|
this.service.msgSrv.warning('请选择需要申报的数据');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// this.modal.warning({
|
||||||
|
// nzTitle: '申报提示',
|
||||||
|
// nzContent: '订单结算时间所在月份与申报月份不一致......'
|
||||||
|
// });
|
||||||
// this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
// this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
||||||
// if (res) {
|
// if (res) {
|
||||||
// this.service.msgSrv.success('申报成功');
|
// this.service.msgSrv.success('申报成功');
|
||||||
@ -359,43 +351,12 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
* @param params 更新数据
|
* @param params 更新数据
|
||||||
*/
|
*/
|
||||||
uploadSetting() {
|
uploadSetting() {
|
||||||
if (this.selectedRows.length === 0) {
|
this.service.request(this.service.$api_update_individual_income_page).subscribe((res: any) => {
|
||||||
this.openWainingModal('请选择需要上传的数据');
|
if (res) {
|
||||||
return;
|
this.service.msgSrv.success('更新成功');
|
||||||
}
|
this.search();
|
||||||
// this.service.request(this.service.$api_recall_reporting, { rows: this.selectedRows }).subscribe((res: any) => {
|
}
|
||||||
// if (res) {
|
});
|
||||||
// this.service.msgSrv.success('更新成功');
|
|
||||||
// this.search();
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查看校验结果
|
|
||||||
*/
|
|
||||||
viewResult(item: any) {
|
|
||||||
// const modalRef = this.modal.create({
|
|
||||||
// nzTitle: '本地校验结果',
|
|
||||||
// nzWidth: 1200,
|
|
||||||
// nzContent: TaxManagementOrderVerifyResultComponent,
|
|
||||||
// nzComponentParams: {
|
|
||||||
// record: item
|
|
||||||
// },
|
|
||||||
// nzFooter: null
|
|
||||||
// });
|
|
||||||
// modalRef.afterClose.subscribe(res => {
|
|
||||||
// })
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查看监管审核结果
|
|
||||||
*/
|
|
||||||
viewAuditResult(record: any) {
|
|
||||||
if (record?.billStatus !== '2') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.openWainingModal('监管审核结果', record?.result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
search() {
|
search() {
|
||||||
@ -409,17 +370,8 @@ export class TaxManagementIndividualIncomeComponent implements OnInit {
|
|||||||
this.service.exportStart(this.sf?.value, this.service.$api_async_export_order_reporting_list);
|
this.service.exportStart(this.sf?.value, this.service.$api_async_export_order_reporting_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
openWainingModal(content: string, title = '提示') {
|
handleOK() {}
|
||||||
this.modal.warning({
|
|
||||||
nzMask: false,
|
|
||||||
nzTitle: title,
|
|
||||||
nzContent: content
|
|
||||||
});
|
|
||||||
}
|
|
||||||
handleOK() {
|
|
||||||
|
|
||||||
}
|
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.isVisible = false;
|
this.isVisible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,22 +11,24 @@
|
|||||||
|
|
||||||
import { Injectable, Injector } from '@angular/core';
|
import { Injectable, Injector } from '@angular/core';
|
||||||
import { _HttpClient } from '@delon/theme';
|
import { _HttpClient } from '@delon/theme';
|
||||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
import { ShipperBaseService } from '@shared';
|
||||||
import { map } from 'rxjs/operators';
|
|
||||||
import { BaseService } from 'src/app/shared/services/core/base.service';
|
|
||||||
import { EAFileUtil } from 'src/app/shared/utils/file.util';
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class TaxManagementService extends BaseService {
|
export class TaxManagementService extends ShipperBaseService {
|
||||||
// 获取货主企业列表
|
// 获取货主企业列表
|
||||||
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
public $api_order_reporting_page = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
public $api_order_reporting_page = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
|
|
||||||
// 查询运营报表
|
// 查询运营报表
|
||||||
$api_listOperationalReportPage = `/api/sdc/report/listOperationalReportPage`;
|
$api_listOperationalReportPage = `/api/sdc/report/listOperationalReportPage`;
|
||||||
$api_get_individual_income_page = `/api/sdc/billOperate/listWholePage`; // 订单上报列表
|
|
||||||
|
// 查询个税申报明细
|
||||||
|
$api_get_individual_income_page = `/api/sdc/taxIncome/list/page`;
|
||||||
|
// 更新所有数据个税申报明细
|
||||||
|
$api_update_individual_income_page = `/api/sdc/taxIncome/updateAll`;
|
||||||
|
|
||||||
// 订单上报列表
|
// 订单上报列表
|
||||||
$api_getTaxOrderPage_page = `/api/sdc/taxOrder/getTaxOrderPage`;
|
$api_getTaxOrderPage_page = `/api/sdc/taxOrder/getTaxOrderPage`;
|
||||||
// 根据订单Id更新税务订单
|
// 根据订单Id更新税务订单
|
||||||
|
|||||||
Reference in New Issue
Block a user