车辆接口更新

This commit is contained in:
wangshiming
2022-01-19 13:50:55 +08:00
parent fce0c56506
commit 7c8578a106
2 changed files with 100 additions and 56 deletions

View File

@ -1,12 +1,25 @@
<page-header-wrapper title="费用管理"> <!--
</page-header-wrapper> * @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-30 19:36:30
* @LastEditors : Shiming
* @LastEditTime : 2022-01-19 13:49:42
* @FilePath : \\tms-obc-web\\src\\app\\routes\\financial-management\\components\\cost-management\\cost-management.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper title="费用管理"> </page-header-wrapper>
<nz-card class="search-box"> <nz-card class="search-box">
<div nz-row nzGutter="8"> <div nz-row nzGutter="8">
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24"> <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
<sf #sf [schema]="searchSchema" <sf
[ui]="{ '*': { spanLabelFixed: 110,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true" #sf
[button]="'none'"></sf> [schema]="searchSchema"
[ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }"
[compact]="true"
[button]="'none'"
></sf>
</div> </div>
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"> <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button> <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
@ -24,18 +37,45 @@
<nz-card class="content-box"> <nz-card class="content-box">
<div nz-row class="mb-sm"> <div nz-row class="mb-sm">
<div nz-col nzSpan="24"> <div nz-col nzSpan="24">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" <button
(click)="routeTo('/financial-management/cost-management/expenses-receivable/1')">添加应收费用</button> nz-button
<button nz-button nzType="primary" [nzLoading]="service.http.loading" nzType="primary"
(click)="routeTo('/financial-management/cost-management/expenses-payable/1')">添加应付费用</button> [nzLoading]="service.http.loading"
(click)="routeTo('/financial-management/cost-management/expenses-receivable/1')"
>添加应收费用</button
>
<button
nz-button
nzType="primary"
[nzLoading]="service.http.loading"
(click)="routeTo('/financial-management/cost-management/expenses-payable/1')"
>添加应付费用</button
>
<button nz-button nzType="primary" [nzLoading]="service.http.loading">导入费用</button> <button nz-button nzType="primary" [nzLoading]="service.http.loading">导入费用</button>
</div> </div>
</div> </div>
<st #st [data]="service.$api_get_cost_page" [columns]="columns" <st
#st
[data]="service.$api_get_cost_page"
[columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading" [scroll]="{ y: '370px' }"> [loading]="service.http.loading"
[scroll]="{ x: '2000px' }"
>
<ng-template st-row="armoeny" let-item let-index="index">
{{ item.armoeny | currency}}
</ng-template>
<ng-template st-row="hrmoney" let-item let-index="index">
{{ item.hrmoney | currency}}
</ng-template>
<ng-template st-row="hrpaymoney" let-item let-index="index">
{{ item.hrpaymoney | currency}}
</ng-template>
<ng-template st-row="hrvatmoney" let-item let-index="index">
{{ item.hrvatmoney | currency}}
</ng-template>
</st> </st>
</nz-card> </nz-card>
@ -43,8 +83,12 @@
<div nz-row nzGutter="8"> <div nz-row nzGutter="8">
<div nz-col nzSpan="24" se-container [labelWidth]="80"> <div nz-col nzSpan="24" se-container [labelWidth]="80">
<se [col]="1" label="备注"> <se [col]="1" label="备注">
<textarea nz-input rows="3" placeholder="同意可以不用填写原因 ,拒绝必须说明原因" <textarea
style="width: 325px;margin-left: 14px;"></textarea> nz-input
rows="3"
placeholder="同意可以不用填写原因 ,拒绝必须说明原因"
style="width: 325px; margin-left: 14px"
></textarea>
</se> </se>
</div> </div>
</div> </div>

View File

@ -248,22 +248,22 @@ export class CostManagementComponent implements OnInit {
private initST(): STColumn[] { private initST(): STColumn[] {
return [ return [
{ title: '费用单号', index: 'feecode', width: 120 }, { title: '费用单号', fixed: 'left', index: 'feecode', width: 200 ,className: 'text-left',},
{ title: '网络货运人', index: 'ltdId', width: 120 }, { title: '网络货运人', index: 'ltdId', width: 200 ,className: 'text-left',},
{ title: '订单号', index: 'billHId', width: 120 }, { title: '订单号', index: 'billHId', width: 200,className: 'text-left', },
{ title: '运单号', index: 'waybillHId', width: 120 }, { title: '运单号', index: 'waybillHId', width: 200 ,className: 'text-left',},
{ title: '费用日期', index: 'feedate', width: 150 }, { title: '费用日期', index: 'feedate', width: 200 ,className: 'text-left',},
{ title: '费用类型', index: 'feetypeLabel', width: 100 }, { title: '费用类型', index: 'feetypeLabel', width: 150,className: 'text-left', },
{ title: '应付核销', index: 'ishrhx', width: 100, type: 'enum', enum: { 0: '否', 1: '是' } }, { title: '应付核销', index: 'ishrhx', width: 200, type: 'enum', enum: { 0: '否', 1: '是' } ,className: 'text-left',},
{ title: '结算客户', index: 'cno', width: 100 }, { title: '结算客户', index: 'cno', width: 200 ,className: 'text-left',},
{ title: '应收对象', index: 'artoname', width: 100 }, { title: '应收对象', index: 'artoname', width: 200 ,className: 'text-left',},
{ title: '应付对象', index: 'hrtoname', width: 100 }, { title: '应付对象', index: 'hrtoname', width: 200 ,className: 'text-left',},
{ title: '应收金额', index: 'armoeny', width: 100 }, { title: '应收金额', render: 'armoeny', width: 100 ,className: 'text-left',},
{ title: '应付金额', index: 'hrmoney', width: 100 }, { title: '应付金额', render: 'hrmoney', width: 100 ,className: 'text-left',},
{ title: '收/付款金额', index: 'hrpaymoney', width: 120 }, { title: '收/付款金额', render: 'hrpaymoney', width: 120 ,className: 'text-left',},
{ title: '开/收票金额', index: 'hrvatmoney', width: 120 }, { title: '开/收票金额', render: 'hrvatmoney', width: 120 ,className: 'text-left',},
{ title: '创建时间', index: 'auditTime', type: 'date', width: 150 }, { title: '创建时间', index: 'auditTime', type: 'date', width: 200 ,className: 'text-left',},
{ title: '状态', index: 'stsLabel', width: 90 }, { title: '状态', index: 'stsLabel', width: 90 ,className: 'text-left',},
{ {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',