Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -25,5 +25,8 @@
|
|||||||
<ng-template st-row="unInvoicedAmountCurMonth" let-item let-index="index">
|
<ng-template st-row="unInvoicedAmountCurMonth" let-item let-index="index">
|
||||||
{{item.unInvoicedAmountCurMonth | currency}}
|
{{item.unInvoicedAmountCurMonth | currency}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
<ng-template st-row="invoicedAmount" let-item let-index="index">
|
||||||
|
{{item.invoicedAmount | currency}}
|
||||||
|
</ng-template>
|
||||||
</st>
|
</st>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|||||||
@ -55,6 +55,11 @@ export class DatatableInvoicetableComponent implements OnInit {
|
|||||||
title: '申请待开客户',
|
title: '申请待开客户',
|
||||||
index: 'applyWaitCustomer',
|
index: 'applyWaitCustomer',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '已开票金额',
|
||||||
|
index: 'invoicedAmount',
|
||||||
|
render: 'invoicedAmount',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '未申请开票金额(历史)',
|
title: '未申请开票金额(历史)',
|
||||||
index: 'unInvoicedAmountHistory',
|
index: 'unInvoicedAmountHistory',
|
||||||
|
|||||||
@ -90,15 +90,16 @@ export class TaxManagementIndividualCollectComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
containsAllLabel: true,
|
containsAllLabel: true
|
||||||
},
|
},
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
resourceCode: {
|
declareResult: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '申报结果',
|
title: '申报结果',
|
||||||
ui: {
|
ui: {
|
||||||
placeholder: '请输入'
|
placeholder: '请选择',
|
||||||
|
widget: 'select',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
overdueStatus: {
|
overdueStatus: {
|
||||||
@ -112,11 +113,11 @@ export class TaxManagementIndividualCollectComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
containsAllLabel: true,
|
containsAllLabel: true
|
||||||
},
|
},
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
skss: {
|
taxMonth: {
|
||||||
title: '税款所属期',
|
title: '税款所属期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
ui: {
|
||||||
|
|||||||
@ -87,12 +87,22 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
|||||||
this.service.msgSrv.warning('请选择订单!');
|
this.service.msgSrv.warning('请选择订单!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
let rows: any[] = [];
|
||||||
|
if (status === '1') {
|
||||||
|
rows = this.st._data.map(item => {
|
||||||
|
const rs = Object.assign({}, { ...item });
|
||||||
|
delete rs._values;
|
||||||
|
return rs;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
rows = [...this.selectedRows];
|
||||||
|
}
|
||||||
const modal = this.nzModalService.create({
|
const modal = this.nzModalService.create({
|
||||||
nzTitle: '开票',
|
nzTitle: '开票',
|
||||||
nzContent: RequestedDetailComponent,
|
nzContent: RequestedDetailComponent,
|
||||||
nzWidth: 800,
|
nzWidth: 800,
|
||||||
nzComponentParams: {
|
nzComponentParams: {
|
||||||
i: this.selectedRows,
|
i: rows,
|
||||||
status: status,
|
status: status,
|
||||||
Id: this.id
|
Id: this.id
|
||||||
},
|
},
|
||||||
@ -102,14 +112,14 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
|||||||
label: '手工处理',
|
label: '手工处理',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
const params = {
|
const params = {
|
||||||
ficoVatappBillVOList: this.selectedRows,
|
ficoVatappBillVOList: rows,
|
||||||
id: this.id
|
id: this.id
|
||||||
};
|
};
|
||||||
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
|
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.loadHeadInfo();
|
this.loadHeadInfo();
|
||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
this.service.msgSrv.success('开票成功');
|
this.service.msgSrv.success('提交成功');
|
||||||
modal.destroy();
|
modal.destroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -120,14 +130,14 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
|||||||
label: '自动开票',
|
label: '自动开票',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
const params = {
|
const params = {
|
||||||
ficoVatappBillVOList: this.selectedRows,
|
ficoVatappBillVOList: rows,
|
||||||
id: this.id
|
id: this.id
|
||||||
};
|
};
|
||||||
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
|
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.loadHeadInfo();
|
this.loadHeadInfo();
|
||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
this.service.msgSrv.success('开票成功');
|
this.service.msgSrv.success('提交成功');
|
||||||
modal.destroy();
|
modal.destroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user