车辆对接
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* @Author: your name
|
||||||
|
* @Date: 2021-12-30 19:36:30
|
||||||
|
* @LastEditTime: 2021-12-31 13:50:41
|
||||||
|
* @LastEditors: your name
|
||||||
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
* @FilePath: \tms-obc-web\src\app\routes\financial-management\services\freight-account.service.ts
|
||||||
|
*/
|
||||||
import { Injectable, Injector } from '@angular/core';
|
import { Injectable, Injector } from '@angular/core';
|
||||||
import { BaseService, ShipperBaseService } from '@shared';
|
import { BaseService, ShipperBaseService } from '@shared';
|
||||||
|
|
||||||
@ -28,13 +36,13 @@ export class FreightAccountService extends ShipperBaseService {
|
|||||||
$api_get_order_payment_page = '/api/fcc/billPaymentApplicationOBC/list/page';
|
$api_get_order_payment_page = '/api/fcc/billPaymentApplicationOBC/list/page';
|
||||||
|
|
||||||
// 查询提现申请表
|
// 查询提现申请表
|
||||||
$api_get_refund_page = '/api/fcc/refundApplicationSMC/list/page';
|
$api_get_refund_page = '/api/fcc/refundApplicationOBC/list/page';
|
||||||
// 获取提现申请表详情
|
// 获取提现申请表详情
|
||||||
$api_get_refund_detail = '/api/fcc/refundApplicationSMC/get';
|
$api_get_refund_detail = '/api/fcc/refundApplicationOBC/get';
|
||||||
// 同意提现
|
// 同意提现
|
||||||
$api_agree_refund = '/api/fcc/refundApplicationSMC/agreeRefund';
|
$api_agree_refund = '/api/fcc/refundApplicationOBC/agreeRefund';
|
||||||
// 拒绝提现
|
// 拒绝提现
|
||||||
$api_disagree_refund = '/api/fcc/refundApplicationSMC/disagreeRefund';
|
$api_disagree_refund = '/api/fcc/refundApplicationOBC/disagreeRefund';
|
||||||
|
|
||||||
// 查询充值信息表
|
// 查询充值信息表
|
||||||
$api_get_recharge_page = '/api/fcc/rechargeInfo/list/getPageByOperator';
|
$api_get_recharge_page = '/api/fcc/rechargeInfo/list/getPageByOperator';
|
||||||
|
|||||||
@ -162,29 +162,10 @@ export class InvoiceRequestedComponent implements OnInit {
|
|||||||
nzTitle: '开票',
|
nzTitle: '开票',
|
||||||
nzContent: RequestedInvoiceModalComponent,
|
nzContent: RequestedInvoiceModalComponent,
|
||||||
nzWidth: 1200,
|
nzWidth: 1200,
|
||||||
nzFooter: [
|
nzComponentParams: {
|
||||||
{
|
id: item.id
|
||||||
type: 'default',
|
},
|
||||||
label: '移除',
|
nzFooter: null
|
||||||
onClick: com => {
|
|
||||||
com?.removeOrder(com.data);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'default',
|
|
||||||
label: '手工处理',
|
|
||||||
onClick: () => {
|
|
||||||
modal.destroy();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'primary',
|
|
||||||
label: '自动开票',
|
|
||||||
onClick: () => {
|
|
||||||
modal.destroy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
|
import { Input } from '@angular/core';
|
||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-23 16:50:17
|
* @Date: 2021-12-23 16:50:17
|
||||||
* @LastEditTime: 2021-12-30 15:07:42
|
* @LastEditTime: 2021-12-31 13:15:13
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\ticket-management\components\invoice-requested\requested-detail\requested-detail.component.ts
|
* @FilePath: \tms-obc-web\src\app\routes\ticket-management\components\invoice-requested\requested-detail\requested-detail.component.ts
|
||||||
@ -19,6 +20,7 @@ export class RequestedDetailComponent implements OnInit {
|
|||||||
i: any;
|
i: any;
|
||||||
status: any;
|
status: any;
|
||||||
Id: any;
|
Id: any;
|
||||||
|
@Input() id: any;
|
||||||
headerInfo: any;
|
headerInfo: any;
|
||||||
constructor(
|
constructor(
|
||||||
public service: TicketService,
|
public service: TicketService,
|
||||||
@ -28,12 +30,23 @@ export class RequestedDetailComponent implements OnInit {
|
|||||||
this.initData();
|
this.initData();
|
||||||
}
|
}
|
||||||
initData() {
|
initData() {
|
||||||
this.service.request(this.service.$api_get_invoice_requested_header_detail, { id: this.Id }).subscribe(res => {
|
if(this.id) {
|
||||||
console.log(res);
|
this.service.request(this.service.$api_get_invoice_requested_header_detail, { id: this.id }).subscribe(res => {
|
||||||
if (res) {
|
console.log(res);
|
||||||
this.headerInfo = res;
|
if (res) {
|
||||||
}
|
this.headerInfo = res;
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if(this.Id) {
|
||||||
|
this.service.request(this.service.$api_get_invoice_requested_header_detail, { id: this.Id }).subscribe(res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res) {
|
||||||
|
this.headerInfo = res;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,27 @@
|
|||||||
<app-requested-detail></app-requested-detail>
|
<!--
|
||||||
|
* @Author: your name
|
||||||
|
* @Date: 2021-12-23 16:50:17
|
||||||
|
* @LastEditTime: 2021-12-31 13:40:11
|
||||||
|
* @LastEditors: Please set LastEditors
|
||||||
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
* @FilePath: \tms-obc-web\src\app\routes\ticket-management\components\invoice-requested\requested-invoice-modal\requested-invoice-modal.component.html
|
||||||
|
-->
|
||||||
|
<app-requested-detail [id]="id"></app-requested-detail>
|
||||||
|
|
||||||
|
<st #st [data]="service.$api_get_invoice_requested_order_detail" [columns]="columns"
|
||||||
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }}"
|
||||||
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
|
[loading]="service.http.loading" [scroll]="{ x:'1200px',y: '200px' }" (change)="stChange($event)" >
|
||||||
|
<ng-template st-row="billHCode" let-item let-index="index" let-column="column">
|
||||||
|
<a class="text-primary" > {{ item.billHCode }}</a>
|
||||||
|
</ng-template>
|
||||||
|
</st>
|
||||||
|
<div class="modal-footer text-center">
|
||||||
|
|
||||||
|
<button nz-button type="button" >移除</button>
|
||||||
|
<button nz-button type="button" (click)="saveManage()">手工处理</button>
|
||||||
|
<button nz-button type="submit" nzType="primary"
|
||||||
|
[nzLoading]="service.http.loading" (click)="saveManage()">自动开票</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<st #st [data]="data" [columns]="columns" [page]="{ show: false}" [scroll]="{ x:'1200px',y: '300px' }" class="mt-md"></st>
|
|
||||||
@ -1,6 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* @Author: your name
|
||||||
|
* @Date: 2021-12-23 16:50:17
|
||||||
|
* @LastEditTime: 2021-12-31 13:35:22
|
||||||
|
* @LastEditors: Please set LastEditors
|
||||||
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
* @FilePath: \tms-obc-web\src\app\routes\ticket-management\components\invoice-requested\requested-invoice-modal\requested-invoice-modal.component.ts
|
||||||
|
*/
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { STColumn, STComponent } from '@delon/abc/st';
|
import { STChange, STColumn, STComponent } from '@delon/abc/st';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { TicketService } from '../../../services/ticket.service';
|
import { TicketService } from '../../../services/ticket.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -12,49 +20,60 @@ export class RequestedInvoiceModalComponent implements OnInit {
|
|||||||
@ViewChild('st', { static: false })
|
@ViewChild('st', { static: false })
|
||||||
st!: STComponent;
|
st!: STComponent;
|
||||||
columns: STColumn[] = this.initST();
|
columns: STColumn[] = this.initST();
|
||||||
data = [
|
headerInfo: any;
|
||||||
{
|
id: any;
|
||||||
key: 0,
|
|
||||||
disabled: true,
|
|
||||||
href: 'https://ant.design',
|
|
||||||
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
|
|
||||||
no: 'TradeCode 0'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 1,
|
|
||||||
disabled: false,
|
|
||||||
href: 'https://ant.design',
|
|
||||||
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
|
|
||||||
no: 'TradeCode 1'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
info = {};
|
info = {};
|
||||||
|
selectedRows: any[] = [];
|
||||||
|
totalCallNo = 0;
|
||||||
|
constructor(public service: TicketService, private nzModalService: NzModalService,private modal: NzModalRef,) {}
|
||||||
|
|
||||||
constructor(public service: TicketService, private nzModalService: NzModalService) {}
|
ngOnInit(): void {
|
||||||
|
this.initData()
|
||||||
ngOnInit(): void {}
|
}
|
||||||
|
initData() {
|
||||||
|
this.service.request(this.service.$api_get_invoice_requested_header_detail, { id: this.id }).subscribe(res => {
|
||||||
|
console.log(res);
|
||||||
|
if (res) {
|
||||||
|
this.headerInfo = res;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 移除订单
|
* 移除订单
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
removeOrder(item: any[]) {
|
removeOrder(item: any[]) {
|
||||||
if (this.data?.length <= 0) {
|
console.log(item)
|
||||||
this.service.msgSrv.warning('无订单');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.nzModalService.warning({
|
this.nzModalService.warning({
|
||||||
nzTitle: '确定从当前批次中移除所有订单?',
|
nzTitle: '确定从当前批次中移除所有订单?',
|
||||||
nzContent: '移除后相关订单可以重新提交开票申请',
|
nzContent: '移除后相关订单可以重新提交开票申请',
|
||||||
nzOnOk: () => {
|
nzOnOk: () => {
|
||||||
console.log(this.data);
|
// const ids = this.selectedRows.map(order => order.billHId);
|
||||||
|
// this.service.request(this.service.$api_remove_bill, ids).subscribe(res => {
|
||||||
|
// if (res) {
|
||||||
|
// this.service.msgSrv.success('移除成功');
|
||||||
|
// this.loadHeadInfo();
|
||||||
|
// this.st.reload();
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
stChange(e: STChange): void {
|
||||||
|
switch (e.type) {
|
||||||
|
case 'checkbox':
|
||||||
|
this.selectedRows = e.checkbox!;
|
||||||
|
this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.callNo, 0);
|
||||||
|
break;
|
||||||
|
case 'filter':
|
||||||
|
this.st.load();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
private initST(): STColumn[] {
|
private initST(): STColumn[] {
|
||||||
return [
|
return [
|
||||||
|
{ title: '', index: 'key', type: 'checkbox' },
|
||||||
{ title: '订单号', index: 'no', width: 150 },
|
{ title: '订单号', index: 'no', width: 150 },
|
||||||
{ title: '订单完成日期', index: 'updatedAt', type: 'date', width: 150 },
|
{ title: '订单完成日期', index: 'updatedAt', type: 'date', width: 150 },
|
||||||
{ title: '所属项目', index: 'callNo', width: 120 },
|
{ title: '所属项目', index: 'callNo', width: 120 },
|
||||||
@ -80,4 +99,16 @@ export class RequestedInvoiceModalComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
saveManage() {
|
||||||
|
console.log(this.selectedRows)
|
||||||
|
console.log('11111')
|
||||||
|
const params = {
|
||||||
|
ficoVatappBillVOList: this.selectedRows,
|
||||||
|
id: this.id
|
||||||
|
}
|
||||||
|
this.service.request(this.service.$api_get_applyFicoVatinv, params).subscribe((res: any) => {
|
||||||
|
console.log(res)
|
||||||
|
})
|
||||||
|
this.modal.destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user