This commit is contained in:
wangshiming
2022-05-12 13:47:16 +08:00
parent ed6aae36be
commit 10a90f521b
5 changed files with 29 additions and 8 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-04-28 20:27:07 * @Date : 2022-04-28 20:27:07
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-05-11 20:46:30 * @LastEditTime : 2022-05-12 13:45:07
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\account-management\\components\\recorded-detail\\recorded-detail.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\account-management\\components\\recorded-detail\\recorded-detail.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -130,9 +130,9 @@
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'"> <sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'">
<ng-template sf-template="smsVerifyCode" let-me let-ui="uiView" let-schema="schemaView"> <ng-template sf-template="smsVerifyCode" let-me let-ui="uiView" let-schema="schemaView">
<div style="display: flex;"> <div style="display: flex;">
<div style="display: flex; justify-content: center; align-items: center;width: 30px; height: 30px; background-color: #ccc;margin: 0 10px;font-size: 14px;">+</div> <div [style.background-color]="addd ? '#ff4d4f' : '#ccc'" style="display: flex; justify-content: center; align-items: center;width: 30px; height: 30px; background-color: #ccc;margin: 0 10px;font-size: 14px;" (click)="add(demoValue)">+</div>
<div style="display: flex; justify-content: center; align-items: center;width: 30px; height: 30px; background-color: #ccc;margin: 0 10px;font-size: 14px;">-</div> <div style="display: flex; justify-content: center; align-items: center;width: 30px; height: 30px; background-color: #ccc;margin: 0 10px;font-size: 14px;" [style.background-color]="!addd ? '#ff4d4f' : '#ccc'" (click)="deletes(demoValue)">-</div>
<nz-input-number style="width: 50%; border-radius: 4px 0 0 4px;" nzPlaceHolder="请输入金额" [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="99999999" [nzStep]="1"></nz-input-number> <nz-input-number style="width: 50%;height: 32px; border-radius: 4px 0 0 4px;" nzPlaceHolder="请输入金额" [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="99999999" [nzStep]="1"></nz-input-number>
<span style="margin: 10px ;"></span> <span style="margin: 10px ;"></span>
</div> </div>
</ng-template> </ng-template>

View File

@ -0,0 +1,6 @@
:host::ng-deep {
.file-col {
background-color: red;
}
}

View File

@ -7,6 +7,7 @@ import { AccountManagemantService } from '../../services/account-managemant.serv
@Component({ @Component({
selector: 'app-partner-account-management-recorded-detail', selector: 'app-partner-account-management-recorded-detail',
styleUrls: ['./recorded-detail.component.less'],
templateUrl: './recorded-detail.component.html' templateUrl: './recorded-detail.component.html'
}) })
export class PartnerAccountManagementRecordedDetailComponent implements OnInit { export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
@ -41,9 +42,10 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
billDetailColumns: STColumn[] = []; billDetailColumns: STColumn[] = [];
showBillDetail = false; showBillDetail = false;
changeAccount = false; changeAccount = false;
addd = false;
billDetailList = []; billDetailList = [];
roleId = ''; roleId = '';
demoValue!: number; demoValue: number = 0;
constructor(public service: AccountManagemantService, public router: Router, public ar: ActivatedRoute) { constructor(public service: AccountManagemantService, public router: Router, public ar: ActivatedRoute) {
this.roleId = this.ar.snapshot.params.id; this.roleId = this.ar.snapshot.params.id;
} }
@ -145,6 +147,7 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
smsVerifyCode: { smsVerifyCode: {
title: '调整金额', title: '调整金额',
type: 'string', type: 'string',
description: '(“+”表示增加待入账金额,“-”表示减少待入账金额 ',
ui: { ui: {
widget: 'custom', widget: 'custom',
placeholder: '请输入金额', placeholder: '请输入金额',
@ -247,4 +250,16 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
goBack() { goBack() {
window.history.go(-1); window.history.go(-1);
} }
deletes(value: number) {
console.log(value);
console.log(this.demoValue);
this.demoValue -= 1
this.addd = false
}
add(value: number) {
this.addd = true
this.demoValue += 1
console.log(value);
console.log(this.demoValue);
}
} }

View File

@ -81,7 +81,7 @@
</div> </div>
</ng-template> </ng-template>
<ng-template st-row="goodsName" let-item let-index="index"> <ng-template st-row="goodsName" let-item let-index="index">
<div> 货物名称:{{ item.goodsName ? item.goodsName : '--' }} </div> <div>{{ item.goodsName ? item.goodsName : '--' }} </div>
<div> {{ item.loadWeight ? item.loadWeight : '--' }}吨/{{ item.loadVolume ?item.loadVolume: '--' }}方 </div> <div> {{ item.loadWeight ? item.loadWeight : '--' }}吨/{{ item.loadVolume ?item.loadVolume: '--' }}方 </div>
</ng-template> </ng-template>
<ng-template st-row="signatureForm" let-item let-index="index"> <ng-template st-row="signatureForm" let-item let-index="index">

View File

@ -96,8 +96,8 @@ export class ExpressDetailModalComponent implements OnInit {
Object.assign(requestOptions.body, { Object.assign(requestOptions.body, {
...this.sf?.value, ...this.sf?.value,
createTime: { createTime: {
start: this.sf?.value.createTime?.[0] || null, start: this.sf?.value.createTime?.[0] || '',
end: this.sf?.value.createTime?.[1] || null end: this.sf?.value.createTime?.[1] || ''
} }
}); });
} }