diff --git a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html index 4e1a0563..aabfef99 100644 --- a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html +++ b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html @@ -1,25 +1,17 @@ - + + + + +
货源单设置
- +
装卸货信息预计公里数:-km,预计行程耗时:-小时
-
diff --git a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts index cdbe5362..240ebd5b 100644 --- a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts +++ b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts @@ -1,8 +1,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'; -import { FormBuilder, FormGroup, Validators } from '@angular/forms'; -import { Router } from '@angular/router'; +import { FormBuilder, FormGroup } from '@angular/forms'; +import { ActivatedRoute, Router } from '@angular/router'; import { - SFArrayWidgetSchema, SFComponent, SFNumberWidgetSchema, SFSchema, @@ -12,10 +11,9 @@ import { } from '@delon/form'; import { _HttpClient } from '@delon/theme'; import { AmapPoiPickerComponent } from '@shared'; -import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; - +import { NzModalService } from 'ng-zorro-antd/modal'; import { PublishGoodsChooseFamifiarComponent } from '../choose-famifiar/choose-famifiar.component'; -import { GaodeMapComponent } from '../gaode-map/gaode-map.component'; +import { SupplyManagementService } from '../../services/supply-management.service'; @Component({ selector: 'app-publish-goods-onecar-publish', templateUrl: './onecar-publish.component.html', @@ -24,7 +22,7 @@ import { GaodeMapComponent } from '../gaode-map/gaode-map.component'; export class SupplyManagementOnecarPublishComponent implements OnInit { validateForm1: FormGroup; newTempchecked = false; //是否存入新模板 - + id = this.route.snapshot.params.id; // // 单位 unit1 = '吨'; unit2 = '方'; @@ -43,10 +41,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { phone: '18888888888' } ]; - - // formatterRmb = (value: number): string => `¥ ${value}`; - // parserRmb = (value: string): string => value.replace('¥ ', ''); - constructor(private http: _HttpClient, fb: FormBuilder, private router: Router, private modalService: NzModalService) { + dataList: any; + constructor(private http: _HttpClient, fb: FormBuilder, private router: Router, private route: ActivatedRoute, private modalService: NzModalService, public service: SupplyManagementService) { this.validateForm1 = fb.group({ name1: [null, []], name2: [null, []], @@ -89,12 +85,13 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { this.initSF5(); this.initSF6(); this.initSF7(); + this.initdata(); } initSF1() { this.schema1 = { properties: { - name3: { + shipperAdispatchNameppUserNmae: { type: 'string', title: '货主', maxLength: 30, @@ -102,7 +99,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { placeholder: '请输入' } }, - name4: { + enterpriseProjectName: { type: 'string', title: '项目', enum: [ @@ -124,7 +121,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { // change: (i) => this.updateCategory(i, '/categoryId2'), } as SFSelectWidgetSchema }, - no1: { + enterpriseInfoName: { type: 'string', title: '网络货运人', ui: { @@ -132,7 +129,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { }, default: 0 }, - name8: { + externalResourceCode: { type: 'string', title: '外部货源号', maxLength: 30, @@ -140,7 +137,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { placeholder: '请输入' } }, - name2: { + dispatchName: { type: 'string', title: '调度员', enum: [ @@ -494,4 +491,15 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { nzWidth: 848 }); } + goBack() { + window.history.go(-1); + } + // 初始化信息 + initdata() { + console.log(this.id) + this.service.request(`${this.service.$api_get_getCompleteVehicleDetail}`, {id:this.id}).subscribe((res) => { + console.log(res) + this.dataList = res; + }) + } } diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html index cddaeaea..7c78877e 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html @@ -7,19 +7,19 @@
-
+
{{ dataList?.resourceCode }} - 待接单 - 已接单 - 已取消 + 待接单 + 已接单 + 已取消 @@ -99,17 +99,18 @@

运费信息

-
-

{{'到货后15天内支付运费' }}

-

{{item.price | currency:'¥' }}

-

{{400 | currency:'¥' }}

-
+

预付:{{dataList?.expenseList?.prePay | currency: '¥' }}

+

油卡:{{dataList?.expenseList?.oilCardPay | currency: '¥'}}

+

到付:{{dataList?.expenseList?.toPay | currency: '¥'}}

+

回单付:{{dataList?.expenseList?.receiptPay | currency: '¥'}}

+

保险费:{{dataList?.expenseList?.insuranceFee | currency: '¥'}}

+

附加费保险费:{{dataList?.expenseList?.appendFee | currency: '¥'}}

-

{{400 | currency }}

+

{{dataList?.expenseList?.totalFee | currency: '¥' }}

diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts index 1bafd013..c6d5ef16 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts @@ -1,13 +1,13 @@ /* * @Author: your name * @Date: 2021-12-03 11:10:14 - * @LastEditTime: 2021-12-08 10:21:11 + * @LastEditTime: 2021-12-08 14:35:47 * @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-management\components\vehicle-detail\vehicle-detail.component.ts */ import { Component, OnInit } from '@angular/core'; -import { ActivatedRoute } from '@angular/router'; +import { ActivatedRoute, Router } from '@angular/router'; import { STColumn } from '@delon/abc/st'; import { _HttpClient } from '@delon/theme'; import { NzMessageService } from 'ng-zorro-antd/message'; @@ -33,6 +33,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { private route: ActivatedRoute, private msgSrv: NzMessageService, private service: SupplyManagementService, + private router: Router,private ar: ActivatedRoute ) { } @@ -54,7 +55,18 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { this.dataList = res }) } - + // 修改货源 + modification() { + this.router.navigate(['/supply-management/vehicle-amend', this.id], { + relativeTo: this.ar + }) + } + // 再下一单 + nextOrder() { + this.router.navigate(['/supply-management/vehicle-amend', this.id], { + relativeTo: this.ar + }) + } diff --git a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts index 26cb58f6..587a4c71 100644 --- a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts @@ -121,7 +121,7 @@ export class SupplyManagementVehicleComponent implements OnInit { }, } }, - no1: { + dischargePlace: { type: 'string', title: '卸货地', ui: { @@ -130,7 +130,7 @@ export class SupplyManagementVehicleComponent implements OnInit { }, } }, - no4: { + shipperAppUserName: { type: 'string', title: '货主', ui: { @@ -139,7 +139,7 @@ export class SupplyManagementVehicleComponent implements OnInit { }, } }, - sex: { + auditStatus: { title: '审核状态', type: 'string', enum: [ @@ -155,7 +155,7 @@ export class SupplyManagementVehicleComponent implements OnInit { }, } as SFSelectWidgetSchema, }, - appId: { + enterpriseInfoName: { type: 'string', title: '网络货运人', ui: { @@ -292,12 +292,12 @@ export class SupplyManagementVehicleComponent implements OnInit { { text: '货源审核', click: (_record) => this.audit(_record, 1), - iif: item => item.status === 1, + // iif: item => item.auditStatus === 1, }, { text: '修改货源', click: (_record) => this.amend(_record), - iif: item => item.status === 1 || item.status === 2, + // iif: item => item.auditStatus === 1 || item.auditStatus === 2, }, { text: '修改运费', @@ -305,17 +305,17 @@ export class SupplyManagementVehicleComponent implements OnInit { }, { text: '取消货源', - iif: item => item.status === 1 || item.status === 2, + // iif: item => item.auditStatus === 1 || item.auditStatus === 2, // click: (_record) => this.delOne(_record), }, { text: '再下一单', - // click: (_record) => this.editOne(_record), + click: (_record) => this.nextOrder(_record), }, { text: '重新指派', click: (_record) => this.assignedCar(_record), - iif: item => item.status === 2, + // iif: item => item.auditStatus === 2, }, ], }, @@ -448,4 +448,9 @@ export class SupplyManagementVehicleComponent implements OnInit { relativeTo: this.ar }) } + nextOrder(item: any) { + this.router.navigate(['/supply-management/vehicle-amend', item.id], { + relativeTo: this.ar + }) + } } diff --git a/src/app/shared/services/business/user.service.ts b/src/app/shared/services/business/user.service.ts index 0fee00cb..21e7cf7a 100644 --- a/src/app/shared/services/business/user.service.ts +++ b/src/app/shared/services/business/user.service.ts @@ -2,8 +2,8 @@ * @Description: * @Author: wsm * @Date: 2021-06-22 10:25:33 - * @LastEditTime: 2021-06-23 20:25:05 - * @LastEditors: Do not edit + * @LastEditTime: 2021-12-08 15:40:21 + * @LastEditors: Please set LastEditors * @Reference: */ import { Inject, Injectable, Injector } from '@angular/core'; @@ -25,11 +25,11 @@ export class EAUserService extends BaseService { /** * 账号密码登录 */ - $api_login_by_account = `/api/mdc/cuc/user/login?_allow_anonymous=true`; + $api_login_by_account = `api/mdc/cuc/user/login?_allow_anonymous=true`; /** * 手机号登录 */ - $api_login_by_mobile = `/api/mdc/cuc/user/sms/login?_allow_anonymous=true`; + $api_login_by_mobile = `api/mdc/cuc/user/sms/login?_allow_anonymous=true`; // 登录路径 private $api_login = `/scce/cuc/cuc/user/login?_allow_anonymous=true`; private $api_captcha_login = `/scce/cuc/cuc/user/sms/login?_allow_anonymous=true`;