This commit is contained in:
Taric Xin
2022-02-22 19:44:59 +08:00
parent 55c22bd3d6
commit 8ad4883533
4 changed files with 17 additions and 9 deletions

View File

@ -47,7 +47,7 @@
</div> </div>
<div nz-col [nzXl]="8" [nzLg]="8" [nzSm]="8" [nzXs]="8" se-container [labelWidth]="100" col="1"> <div nz-col [nzXl]="8" [nzLg]="8" [nzSm]="8" [nzXs]="8" se-container [labelWidth]="100" col="1">
<se label="服务名称"> <se label="服务名称">
{{headerInfo?.vatname}} {{headerInfo?.vatnameLabel}}
</se> </se>
<se label="销货清单"> <se label="销货清单">
{{headerInfo?.isdetail?'是':'否'}} {{headerInfo?.isdetail?'是':'否'}}

View File

@ -38,17 +38,17 @@
<nz-tab nzTitle="全部" (nzClick)="selectChange(null)"></nz-tab> <nz-tab nzTitle="全部" (nzClick)="selectChange(null)"></nz-tab>
</nz-tabset> </nz-tabset>
<ng-template #extraTemplate> <ng-template #extraTemplate>
<div class="d-flex align-items-center"> <div class="d-flex align-items-center" *ngIf="resourceStatus==='1' || resourceStatus==='3' || !resourceStatus">
<div class="mr-md"> <div class="mr-md">
已选择 已选择
<strong class="text-red">{{ selectedRows.length }}</strong> 条数据&nbsp;&nbsp; 开票金额总计 <strong class="text-red">{{ selectedRows.length }}</strong> 条数据&nbsp;&nbsp; 开票金额总计
<strong class="text-red">{{ totalCallNo }}</strong> <strong class="text-red">{{ totalCallNo }}</strong>
<a *ngIf="totalCallNo > 0" (click)="st.clearCheck()" class="ml-lg">清空</a> <a *ngIf="totalCallNo > 0" (click)="st.clearCheck()" class="ml-lg">清空</a>
</div> </div>
<button nz-button (click)="this.batchRequested()">开票</button> <button nz-button *ngIf="resourceStatus==='1' || !resourceStatus" (click)="this.batchRequested()">开票</button>
<!-- <button nz-button (click)="this.rejectAction(selectedRows)">驳回</button> <!-- <button nz-button (click)="this.rejectAction(selectedRows)">驳回</button>
<button nz-button (click)="changePice(selectedRows)">修改地址</button>--> <button nz-button (click)="changePice(selectedRows)">修改地址</button>-->
<button nz-button (click)="printOrder(selectedRows)">打印面单</button> <button nz-button *ngIf="resourceStatus==='3' || !resourceStatus" (click)="printOrder(selectedRows)">打印面单</button>
</div> </div>
</ng-template> </ng-template>

View File

@ -124,6 +124,10 @@ export class InvoiceRequestedComponent implements OnInit {
this.service.msgSrv.warning('请选择订单'); this.service.msgSrv.warning('请选择订单');
return; return;
} }
if (this.selectedRows.find(item => item.sts !== '3')) {
this.service.msgSrv.warning('请勿选择非已完成订单');
return;
}
const modal = this.nzModalService.create({ const modal = this.nzModalService.create({
nzTitle: '打印面单', nzTitle: '打印面单',
nzContent: PrintOrderModalComponent, nzContent: PrintOrderModalComponent,
@ -159,6 +163,10 @@ export class InvoiceRequestedComponent implements OnInit {
this.service.msgSrv.warning('请选择订单'); this.service.msgSrv.warning('请选择订单');
return; return;
} }
if (this.selectedRows.find(item => item.sts !== '1')) {
this.service.msgSrv.warning('请勿选择非待处理订单');
return;
}
const modal = this.nzModalService.create({ const modal = this.nzModalService.create({
nzTitle: '开票', nzTitle: '开票',
nzContent: '确认对所有申请单进行批量开票?', nzContent: '确认对所有申请单进行批量开票?',
@ -403,7 +411,8 @@ export class InvoiceRequestedComponent implements OnInit {
{ type: 'divider' }, { type: 'divider' },
{ {
text: '开票<br/>', text: '开票<br/>',
click: item => this.requestedInvoiceAction(item) click: item => this.requestedInvoiceAction(item),
iif: item => item.sts === '1'
}, },
// { // {
// text: '驳回<br/>', // text: '驳回<br/>',
@ -415,7 +424,8 @@ export class InvoiceRequestedComponent implements OnInit {
}, },
{ {
text: '查看原因<br/>', text: '查看原因<br/>',
click: item => this.showReason(item) click: item => this.showReason(item),
iif: item => item.sts === '4'
} }
// { // {
// text: '下载对账单' // text: '下载对账单'
@ -429,8 +439,6 @@ export class InvoiceRequestedComponent implements OnInit {
this.resourceStatus = e; this.resourceStatus = e;
this.initST(); this.initST();
setTimeout(() => { setTimeout(() => {
console.log(this.resourceStatus);
this.st.load(); this.st.load();
}, 500); }, 500);
} }

View File

@ -9,7 +9,7 @@
<div nz-row nzGutter="8" class="statistics-box"> <div nz-row nzGutter="8" class="statistics-box">
<div nz-col nzSpan="12" se-container [labelWidth]="100" col="1"> <div nz-col nzSpan="12" se-container [labelWidth]="100" col="1">
<se label="购买方"> <se label="购买方">
{{headerInfo?.projectName}} {{headerInfo?.artoName}}
</se> </se>
<se label="纳税号"> <se label="纳税号">
{{headerInfo?.taxNumber}} {{headerInfo?.taxNumber}}