批量审核

This commit is contained in:
wangshiming
2022-01-18 17:44:03 +08:00
parent a8a9565b40
commit 8bf3a60425
94 changed files with 2205 additions and 2001 deletions

View File

@ -1,28 +1,20 @@
<!--
* @Author: your name
* @Date: 2021-12-01 09:58:58
* @LastEditTime: 2021-12-01 20:00:33
* @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\supply-goods\components\carload\carload.component.html
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:58:58
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:25:29
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\components\\carload\\carload.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<nz-card>
<!-- 搜索区 -->
<!-- 搜索表单 -->
<div nz-row nzGutter="8">
<!-- 查询字段小于或等于3个时不显示伸缩按钮 -->
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
<sf
#sf
[schema]="schema"
[ui]="ui"
[mode]="'search'"
[disabled]="!sf?.valid"
(formSubmit)="st?.load(1)"
(formReset)="resetSF()"
></sf>
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" (formSubmit)="st?.load(1)" (formReset)="resetSF()"></sf>
</div>
<!-- [loading]="service.http.loading" -->
@ -32,8 +24,7 @@
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
<button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
<button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
<button nz-button (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }}
@ -69,7 +60,7 @@
<ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
<thead>
<tr>
<th nzAlign="center" nzWidth="100px">货源编号</th>
<th nzAlign="center" nzWidth="100px">货源编号</th>
<th nzWidth="100px" nzAlign="center">货源类型</th>
<th nzWidth="100px" nzAlign="center">货主</th>
<th nzWidth="100px" nzAlign="center">项目名称</th>
@ -89,66 +80,66 @@
</thead>
<tbody>
<tr *ngFor="let data of nzTable.data">
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
<div><span style="color: #52c41a;"></span>已接单</div>
<div><span ></span>已取消</div>
<div><span style="color: #f59a23;"></span>待接单</div>
</td>
<td>
{{data.id3}}
</td>
<td>
<div>
<div><span style="color: #52c41a;"></span>审核通过</div>
<div><span style="color: #d9001b;"></span>不通过</div>
<div><span style="color: #f59a23;"></span>待审核</div>
<!-- <span>待审核</span> -->
</div>
</td>
<td>
<div>
<a nz-button nzType="link" (click)="showApply()">货源审核</a>
<a nz-button nzType="link" (click)="showApply()">修改运费</a>
<!-- <a nz-button nzType="link" nzDanger (click)="showAssign()">指派熟车</a> -->
<a nz-button nzType="link" nzDanger (click)="showApply()">修改单价</a>
</div>
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
<div><span style="color: #52c41a"></span>已接单</div>
<div><span></span>已取消</div>
<div><span style="color: #f59a23"></span>待接单</div>
</td>
<td>
{{ data.id3 }}
</td>
<td>
<div>
<div><span style="color: #52c41a"></span>审核通过</div>
<div><span style="color: #d9001b"></span>不通过</div>
<div><span style="color: #f59a23"></span>待审核</div>
<!-- <span>待审核</span> -->
</div>
</td>
<td>
<div>
<a nz-button nzType="link" (click)="showApply()">货源审核</a>
<a nz-button nzType="link" (click)="showApply()">修改运费</a>
<!-- <a nz-button nzType="link" nzDanger (click)="showAssign()">指派熟车</a> -->
<a nz-button nzType="link" nzDanger (click)="showApply()">修改单价</a>
</div>
</td>
</tr>
</tbody>
</nz-table>
@ -156,30 +147,34 @@
</nz-tabset>
</nz-card>
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="修改运费" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('suppliersType')">
<nz-modal
[(nzVisible)]="isVisible"
[nzFooter]="nzModalFooter"
nzTitle="修改运费"
(nzOnOk)="handleOK()"
(nzOnCancel)="handleCancel('suppliersType')"
>
<ng-container *nzModalContent>
<sf #sfFre [schema]="freightSchema" [ui]="uiFre" [compact]="false" [button]="'none'">
<ng-template sf-template="manys" let-me let-ui="ui" let-schema="schema">
<div>
<span>{{this.sfFre.value.contactsName}}</span>
<span>{{ this.sfFre.value.contactsName }}</span>
</div>
</ng-template>
<ng-template sf-template="unifiedSocia" let-me let-ui="ui" let-schema="schema">
<nz-input-number
<nz-input-number
[(ngModel)]="ssdsad"
[nzMin]="0"
[nzMax]="30"
nzPlaceHolder="请输入1-30"
id="margin"
width=400
width="400"
ngDefaultControl
required
></nz-input-number
>&nbsp; &nbsp;天内支付运费。
</ng-template>
<ng-template sf-template="fujia" let-me let-ui="ui" let-schema="schema">
15.00(费率:<a href="javaccript:;">5.3</a>
</ng-template>
<ng-template sf-template="fujia" let-me let-ui="ui" let-schema="schema"> 15.00(费率:<a href="javaccript:;">5.3</a> </ng-template>
</sf>
</ng-container>
<ng-template #nzModalFooter>
@ -188,10 +183,16 @@
</ng-template>
</nz-modal>
<nz-modal [(nzVisible)]="isVisibleAssign" [nzWidth]="900" [nzFooter]="nzModalFooter" nzTitle="指派熟车" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('assign')">
<nz-modal
[(nzVisible)]="isVisibleAssign"
[nzWidth]="900"
[nzFooter]="nzModalFooter"
nzTitle="指派熟车"
(nzOnOk)="handleOK()"
(nzOnCancel)="handleCancel('assign')"
>
<ng-container *nzModalContent>
<sf #sfAssign [schema]="schemaAssign" [ui]="ui" [mode]="'search'" (formSubmit)="stAssign?.load(1)"
(formReset)="resetSFAssign()"></sf>
<sf #sfAssign [schema]="schemaAssign" [ui]="ui" [mode]="'search'" (formSubmit)="stAssign?.load(1)" (formReset)="resetSFAssign()"></sf>
<st
#stAssign
multiSort

View File

@ -1,10 +1,12 @@
<!--
* @Author: your name
* @Date: 2021-12-01 09:58:58
* @LastEditTime: 2021-12-01 20:00:41
* @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\supply-goods\components\carload\carload.component.html
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 14:58:57
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:25:47
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\components\\large-amount\\large-amount.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<nz-card>
@ -13,16 +15,7 @@
<div nz-row nzGutter="8">
<!-- 查询字段小于或等于3个时不显示伸缩按钮 -->
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
<sf
#sf
[schema]="schema"
[ui]="ui"
[mode]="'search'"
[disabled]="!sf?.valid"
(formSubmit)="st?.load(1)"
(formReset)="resetSF()"
></sf>
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" (formSubmit)="st?.load(1)" (formReset)="resetSF()"></sf>
</div>
<!-- [loading]="service.http.loading" -->
@ -32,8 +25,7 @@
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
<button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
<button nz-button nzType="primary" [disabled]="!sf.valid" (click)="st?.load(1)">查询</button>
<button nz-button (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }}
@ -69,7 +61,7 @@
<ng-template #totalTemplate let-total> 共 {{ total }} 条 </ng-template>
<thead>
<tr>
<th nzAlign="center" nzWidth="100px">货源编号</th>
<th nzAlign="center" nzWidth="100px">货源编号</th>
<th nzWidth="100px" nzAlign="center">货源类型</th>
<th nzWidth="100px" nzAlign="center">货主</th>
<th nzWidth="100px" nzAlign="center">项目名称</th>
@ -91,73 +83,73 @@
</thead>
<tbody>
<tr *ngFor="let data of nzTable.data">
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
<div><span style="color: #52c41a;"></span>已接单</div>
<div><span ></span>已取消</div>
<div><span style="color: #f59a23;"></span>待接单</div>
</td>
<td>
{{data.id3}}
</td>
<td>
{{data.id3}}
</td>
<td>
<div>
<div><span style="color: #52c41a;"></span>审核通过</div>
<div><span style="color: #d9001b;"></span>不通过</div>
<div><span style="color: #f59a23;"></span>待审核</div>
<!-- <span>待审核</span> -->
</div>
</td>
<td>
<div>
<a nz-button nzType="link" (click)="showApply()">货源审核</a>
<a nz-button nzType="link" (click)="showApply()">修改运费</a>
<!-- <a nz-button nzType="link" nzDanger (click)="showApply()">指派熟车</a> -->
<a nz-button nzType="link" nzDanger (click)="showApply()">修改单价</a>
</div>
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
<div><span style="color: #52c41a"></span>已接单</div>
<div><span></span>已取消</div>
<div><span style="color: #f59a23"></span>待接单</div>
</td>
<td>
{{ data.id3 }}
</td>
<td>
{{ data.id3 }}
</td>
<td>
<div>
<div><span style="color: #52c41a"></span>审核通过</div>
<div><span style="color: #d9001b"></span>不通过</div>
<div><span style="color: #f59a23"></span>待审核</div>
<!-- <span>待审核</span> -->
</div>
</td>
<td>
<div>
<a nz-button nzType="link" (click)="showApply()">货源审核</a>
<a nz-button nzType="link" (click)="showApply()">修改运费</a>
<!-- <a nz-button nzType="link" nzDanger (click)="showApply()">指派熟车</a> -->
<a nz-button nzType="link" nzDanger (click)="showApply()">修改单价</a>
</div>
</td>
</tr>
</tbody>
</nz-table>

View File

@ -1,17 +1,20 @@
<!--
* @Author: your name
* @Date: 2021-12-01 09:25:32
* @LastEditTime: 2021-12-01 10:55:15
* @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\supply-goods\components\list\list.component.html
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:25:32
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:25:54
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\components\\list\\list.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper [title]="''" ></page-header-wrapper>
<nz-tabset [nzSelectedIndex]="nzSelectedIndex">
<nz-tab nzTitle="整车货源">
<app-supply-goods-components-list-carload></app-supply-goods-components-list-carload>
</nz-tab>
<nz-tab nzTitle="大宗货源">
<app-supply-goods-components-list-large-amount></app-supply-goods-components-list-large-amount>
</nz-tab>
</nz-tabset>
<page-header-wrapper [title]="''"></page-header-wrapper>
<nz-tabset [nzSelectedIndex]="nzSelectedIndex">
<nz-tab nzTitle="整车货源">
<app-supply-goods-components-list-carload></app-supply-goods-components-list-carload>
</nz-tab>
<nz-tab nzTitle="大宗货源">
<app-supply-goods-components-list-large-amount></app-supply-goods-components-list-large-amount>
</nz-tab>
</nz-tabset>

View File

@ -1,11 +1,14 @@
/*
* @Author: your name
* @Date: 2021-12-01 09:25:32
* @LastEditTime: 2021-12-01 09:55:39
* @LastEditors: your name
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\supply-goods\components\list\list.component.spec.ts
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:25:32
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:26:01
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\components\\list\\list.component.spec.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SupplyGoodsComponentListComponent } from './list.component';
@ -15,7 +18,7 @@ describe('SupplyGoodsComponentListComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SupplyGoodsComponentListComponent],
declarations: [SupplyGoodsComponentListComponent]
}).compileComponents();
}));

View File

@ -1,17 +1,20 @@
/*
* @Author: your name
* @Date: 2021-12-01 09:25:32
* @LastEditTime: 2021-12-01 09:49:32
* @LastEditors: your name
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\supply-goods\components\list\list.component.ts
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:25:32
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:26:12
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\components\\list\\list.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { Component, OnInit, ViewChild } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-supply-goods-components-list',
templateUrl: './list.component.html',
templateUrl: './list.component.html'
})
export class SupplyGoodsComponentListComponent implements OnInit {
constructor(private ar: ActivatedRoute) {}

View File

@ -1,22 +1,21 @@
/*
* @Author: your name
* @Date: 2021-11-29 15:22:34
* @LastEditTime: 2021-12-01 10:33:33
* @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\usercenter\services\usercenter.service.ts
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:24:09
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:26:22
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\services\\supply-goods.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { Injectable, Injector } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { NzMessageService } from 'ng-zorro-antd/message';
import { BaseService } from 'src/app/shared/services/core/base.service';
import { EAFileUtil } from 'src/app/shared/utils/file.util';
@Injectable({
providedIn: 'root',
providedIn: 'root'
})
export class SupplyGoodsService extends BaseService {
constructor(public injector: Injector) {
super(injector);
}

View File

@ -1,22 +1,22 @@
/*
* @Author: your name
* @Date: 2021-11-29 15:22:34
* @LastEditTime: 2021-12-01 09:52:45
* @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\usercenter\usercenter-routing.module.ts
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:24:09
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:25:04
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\supply-goods-routing.module.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SupplyGoodsComponentListComponent } from './components/list/list.component';
const routes: Routes = [
{ path: 'list', component: SupplyGoodsComponentListComponent}
];
const routes: Routes = [{ path: 'list', component: SupplyGoodsComponentListComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
exports: [RouterModule]
})
export class SupplyGoodsRoutingModule {}

View File

@ -1,18 +1,22 @@
/*
* @Author: your name
* @Date: 2021-11-29 15:22:34
* @LastEditTime: 2021-12-01 15:03:22
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-01 09:24:09
* @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:25:15
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-goods\\supply-goods.module.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { NgModule } from '@angular/core';
import { SharedModule } from '@shared';
import { SupplyGoodsComponentListCarloadComponent } from './components/carload/carload.component';
import { SupplyGoodsComponentListLargeAmountComponent } from './components/large-amount/large-amount.component';
import { SupplyGoodsComponentListComponent } from './components/list/list.component';
import { SupplyGoodsRoutingModule } from './supply-goods-routing.module';
const COMPONENTS = [
SupplyGoodsComponentListComponent,
SupplyGoodsComponentListCarloadComponent,
@ -21,6 +25,6 @@ const COMPONENTS = [
@NgModule({
imports: [SharedModule, SupplyGoodsRoutingModule],
declarations: [...COMPONENTS],
declarations: [...COMPONENTS]
})
export class SupplyGoodsModule {}