车辆接口更新

This commit is contained in:
wangshiming
2022-01-25 14:32:30 +08:00
parent bc8304e930
commit 7d4875707b
7 changed files with 36 additions and 25 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-18 09:51:21 * @Date : 2022-01-18 09:51:21
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-21 16:48:06 * @LastEditTime : 2022-01-25 14:29:55
* @FilePath : \\tms-obc-web\\proxy.conf.js * @FilePath : \\tms-obc-web\\proxy.conf.js
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -20,7 +20,7 @@ module.exports = {
// } // }
'//api': { '//api': {
target: { target: {
host: 'tms-api-dev.eascs.com', host: 'tms-api-test.eascs.com',
protocol: 'https:', protocol: 'https:',
port: 443 port: 443
}, },

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-05 11:01:55 * @Date : 2022-01-05 11:01:55
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-19 10:39:55 * @LastEditTime : 2022-01-25 14:25:49
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -141,7 +141,8 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
save() { save() {
console.log(this.sf.value) console.log(this.sf.value)
console.log(this.sf2.value) console.log(this.sf2.value)
console.log(this.detailList.templateName)
console.log(this.title) console.log(this.title)
if (!this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !this.title) { if (!this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !this.title) {
this.service.msgSrv.error('必填参数为空,请检查再重新保存!'); this.service.msgSrv.error('必填参数为空,请检查再重新保存!');

View File

@ -18,7 +18,7 @@
{{ costInfo?.brmdate }} {{ costInfo?.brmdate }}
</se> </se>
<se label="收款方式" required> <se label="收款方式" required>
{{ costInfo?.brmmodeLabel }} {{ costInfo?.brmModeLabel }}
</se> </se>
<se label="银行类型"> <se label="银行类型">
{{ costInfo?.banktypeLabel }} {{ costInfo?.banktypeLabel }}
@ -36,18 +36,19 @@
{{ costInfo?.recnopay |currency }} {{ costInfo?.recnopay |currency }}
</se> </se>
<se label="手续费"> <se label="手续费">
{{ costInfo?.ltdid }} {{ 0 |currency }}
</se> </se>
<se label="到账金额" required> <se label="到账金额" required>
{{ costInfo?.brmmoney |currency }} {{ costInfo?.brmmoney |currency }}
</se> </se>
<se label="核销金额"> <se label="核销金额">
{{ costInfo?.brmmoney |currency }}
</se> </se>
<se label="银行水单"> <se label="银行水单">
{{ costInfo?.bankreceipt }} {{ costInfo?.bankreceipt }}
</se> </se>
<se label="预收金额"> <se label="预收金额">
{{ costInfo?.yskmoney |currency}} {{ costInfo?.brmmoney |currency }}
</se> </se>
<se label="收款备注"> <se label="收款备注">
{{ costInfo?.remarks }} {{ costInfo?.remarks }}

View File

@ -256,7 +256,7 @@ export class ReceiptOrderComponent implements OnInit {
{ title: '付款人', index: 'artoname', width: 200, className: 'text-left' }, { title: '付款人', index: 'artoname', width: 200, className: 'text-left' },
{ title: '银行水单', index: 'bankreceipt', width: 200, className: 'text-left' }, { title: '银行水单', index: 'bankreceipt', width: 200, className: 'text-left' },
{ title: '创建时间', index: 'createTime', type: 'date', width: 200, className: 'text-left' }, { title: '创建时间', index: 'createTime', type: 'date', width: 200, className: 'text-left' },
{ title: '创建人', index: 'createUserName', width: 150, className: 'text-left' }, // { title: '创建人', index: 'createUserName', width: 150, className: 'text-left' },
{ title: '收款状态', index: 'stsLabel', width: 200, className: 'text-left' }, { title: '收款状态', index: 'stsLabel', width: 200, className: 'text-left' },
{ title: '收款备注', index: 'remarks', width: 200, className: 'text-left' }, { title: '收款备注', index: 'remarks', width: 200, className: 'text-left' },
{ {

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-12 10:52:50 * @Date : 2022-01-12 10:52:50
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-24 14:33:59 * @LastEditTime : 2022-01-25 14:02:24
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\compliance-audit\\compliance-audit.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\compliance-audit\\compliance-audit.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -108,13 +108,13 @@
<ng-template #extraTemplate> <ng-template #extraTemplate>
<div> <div>
<button nz-button nzType="primary" (click)="audit()"> <button nz-button nzType="primary" (click)="audit()">
批量签收 批量抽查
</button> </button>
</div> </div>
</ng-template> </ng-template>
<nz-modal [(nzVisible)]="isVisibleRE" [nzWidth]="600" [nzFooter]="nzModalFooterview2" (nzOnOk)="handleOK()" nzTitle="审核" (nzOnCancel)="handleCancel('1')"> <nz-modal [(nzVisible)]="isVisibleRE" [nzWidth]="600" [nzFooter]="nzModalFooterview2" (nzOnOk)="handleOK()" nzTitle="抽查" (nzOnCancel)="handleCancel('1')">
<ng-container *nzModalContent> <ng-container *nzModalContent>
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'"> <sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'">
</sf> </sf>

View File

@ -1,19 +1,29 @@
/*
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming
* @LastEditTime : 2022-01-25 13:28:47
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle\\vehicle.component.spec.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { SupplyManagementVehicleComponent } from './vehicle.component'; import { OrderManagementVehicleComponent } from './vehicle.component';
describe('SupplyManagementVehicleComponent', () => { describe('OrderManagementVehicleComponent', () => {
let component: SupplyManagementVehicleComponent; let component: OrderManagementVehicleComponent;
let fixture: ComponentFixture<SupplyManagementVehicleComponent>; let fixture: ComponentFixture<OrderManagementVehicleComponent>;
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ SupplyManagementVehicleComponent ] declarations: [ OrderManagementVehicleComponent ]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(SupplyManagementVehicleComponent); fixture = TestBed.createComponent(OrderManagementVehicleComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });

View File

@ -213,7 +213,7 @@ export class orderManagementVoucherViewComponent implements OnInit {
} as SFUploadWidgetSchema, } as SFUploadWidgetSchema,
} }
}, },
required: ['time'] required: ['loadingLadingBillFilePath', 'loadingPeopleVehiclesGoodsFilePath','unloadingLadingBillFilePath','unloadingPeopleVehiclesGoodsFilePath' ]
}; };
}else { }else {
this.schema = { this.schema = {
@ -383,7 +383,6 @@ export class orderManagementVoucherViewComponent implements OnInit {
} as SFUploadWidgetSchema, } as SFUploadWidgetSchema,
} }
}, },
required: ['time', 'weight' ]
}; };
} }
this.ui = { this.ui = {
@ -398,17 +397,17 @@ export class orderManagementVoucherViewComponent implements OnInit {
}; };
} }
save(value: any): void { save(value: any): void {
if(!value) { if(!this.sf.valid) {
this.service.msgSrv.warning('必填项为空!') this.service.msgSrv.warning('必填项为空!')
return; return;
} }
console.log(value) console.log(value)
const params = { const params = {
id: this.i.id, id: this.i?.id,
loadingLadingBillFilePath: value.loadingLadingBillFilePath.data.fullFilePath, loadingLadingBillFilePath: value?.loadingLadingBillFilePath?.data?.fullFilePath,
loadingPeopleVehiclesGoodsFilePath: value.loadingPeopleVehiclesGoodsFilePath.data.fullFilePath, loadingPeopleVehiclesGoodsFilePath: value?.loadingPeopleVehiclesGoodsFilePath?.data?.fullFilePath,
unloadingLadingBillFilePath: value.unloadingLadingBillFilePath.data.fullFilePath, unloadingLadingBillFilePath: value?.unloadingLadingBillFilePath?.data?.fullFilePath,
unloadingPeopleVehiclesGoodsFilePath: value.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath, unloadingPeopleVehiclesGoodsFilePath: value?.unloadingPeopleVehiclesGoodsFilePath?.data?.fullFilePath,
} }
console.log(params) console.log(params)
this.service.request(this.service.$api_get_updateBillExamine, params).subscribe((res) => { this.service.request(this.service.$api_get_updateBillExamine, params).subscribe((res) => {