fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-04-28 20:27:07
|
||||
* @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
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -130,9 +130,9 @@
|
||||
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'">
|
||||
<ng-template sf-template="smsVerifyCode" let-me let-ui="uiView" let-schema="schemaView">
|
||||
<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="display: flex; justify-content: center; align-items: center;width: 30px; height: 30px; background-color: #ccc;margin: 0 10px;font-size: 14px;">-</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>
|
||||
<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;" [style.background-color]="!addd ? '#ff4d4f' : '#ccc'" (click)="deletes(demoValue)">-</div>
|
||||
<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>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
:host::ng-deep {
|
||||
|
||||
.file-col {
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
@ -7,6 +7,7 @@ import { AccountManagemantService } from '../../services/account-managemant.serv
|
||||
|
||||
@Component({
|
||||
selector: 'app-partner-account-management-recorded-detail',
|
||||
styleUrls: ['./recorded-detail.component.less'],
|
||||
templateUrl: './recorded-detail.component.html'
|
||||
})
|
||||
export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
|
||||
@ -41,9 +42,10 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
|
||||
billDetailColumns: STColumn[] = [];
|
||||
showBillDetail = false;
|
||||
changeAccount = false;
|
||||
addd = false;
|
||||
billDetailList = [];
|
||||
roleId = '';
|
||||
demoValue!: number;
|
||||
demoValue: number = 0;
|
||||
constructor(public service: AccountManagemantService, public router: Router, public ar: ActivatedRoute) {
|
||||
this.roleId = this.ar.snapshot.params.id;
|
||||
}
|
||||
@ -145,6 +147,7 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
|
||||
smsVerifyCode: {
|
||||
title: '调整金额',
|
||||
type: 'string',
|
||||
description: '(“+”表示增加待入账金额,“-”表示减少待入账金额 )',
|
||||
ui: {
|
||||
widget: 'custom',
|
||||
placeholder: '请输入金额',
|
||||
@ -247,4 +250,16 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
|
||||
goBack() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
</div>
|
||||
</ng-template>
|
||||
<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>
|
||||
</ng-template>
|
||||
<ng-template st-row="signatureForm" let-item let-index="index">
|
||||
|
||||
@ -96,8 +96,8 @@ export class ExpressDetailModalComponent implements OnInit {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf?.value,
|
||||
createTime: {
|
||||
start: this.sf?.value.createTime?.[0] || null,
|
||||
end: this.sf?.value.createTime?.[1] || null
|
||||
start: this.sf?.value.createTime?.[0] || '',
|
||||
end: this.sf?.value.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user