This commit is contained in:
1107302052
2022-03-18 00:43:17 +08:00
parent d9d9ea2733
commit 759c829c4d
3 changed files with 34 additions and 32 deletions

View File

@ -196,7 +196,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
ui: {
placeholder: '请输入'
}
},
}
},
required: ['shipperAppUserId', 'enterpriseProjectId', 'enterpriseInfoName', 'deadlineTime']
};
@ -204,7 +204,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
'*': {
spanLabelFixed: 115,
grid: { span: 12 }
},
}
};
}
initSF3() {
@ -716,7 +716,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
unLoadingPlaceDTOList: LoadingList,
goodsInfoDTOList: goodsInfoDTOList,
estimatedKilometers: this.totalDistance,
estimatedTravelTime: this.totalTime,
estimatedTravelTime: this.totalTime
};
params.freightPrice = this.totalFees;
const modalRef = this.modalService.create({

View File

@ -134,16 +134,8 @@
<sf #sf4 [schema]="schema4" [button]="'none'" [ui]="ui4" [formData]="sf4data">
<ng-template sf-template="freightPrice" let-i let-ui="ui">
<nz-input-group [nzAddOnAfter]="addOnAfterTemplate">
<input
nz-input
type="number"
min="0"
step="0.01"
[ngModel]="i.value"
(ngModelChange)="i.setValue($event)"
placeholder="请输入"
oninput="if(value>99999)value=99999;if(value<1)value=1"
/>
<nz-input-number [nzMax]="99999" [nzMin] ="0" nzPlaceHolder="请输入" type="number" [ngModel]="i.value"
(ngModelChange)="i.setValue($event)" [nzPrecision]="2" style="width: 100%;"></nz-input-number>
</nz-input-group>
<ng-template #addOnAfterTemplate>
<nz-select [ngModel]="sf4.value.freightType" (ngModelChange)="sf4.setValue('/freightType', $event)">

View File

@ -39,6 +39,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
creatTime: any; // 货源单设置回显
modifyTime: any; // 货源单设置回显
totalFees: any; // 总数信息
ruleOptions: any;
id = '';
type = 'add';
limitValues = {
@ -89,6 +90,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
this.initSF4();
this.initSF6();
this.getLimitvalue();
this.initDict();
this.startInfo = [
{
detailedAddress: '',
@ -538,6 +540,14 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
}
};
}
initDict() {
this.service.getDictByKey('freight:type').subscribe(res => {
this.freightTypeOptions = res;
});
this.service.getDictByKey('goodresource:rounding:rules').subscribe(res => {
this.ruleOptions = res;
});
}
//指派熟车
chooseFamifiar(item: any) {
const modalRef = this.modalService.create({