edit
This commit is contained in:
@ -131,7 +131,6 @@ export class InvoiceDetailComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
asyncData: () => this.service.getEnterpriseProject()
|
asyncData: () => this.service.getEnterpriseProject()
|
||||||
@ -190,7 +189,7 @@ export class InvoiceDetailComponent implements OnInit {
|
|||||||
private initCostSF(): SFSchema {
|
private initCostSF(): SFSchema {
|
||||||
return {
|
return {
|
||||||
properties: {
|
properties: {
|
||||||
billHId: {
|
billHCode: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '订单号',
|
title: '订单号',
|
||||||
ui: {
|
ui: {
|
||||||
|
|||||||
@ -30,7 +30,10 @@
|
|||||||
<ng-container *ngSwitchCase="1">
|
<ng-container *ngSwitchCase="1">
|
||||||
<nz-input-group [nzAddOnAfter]="item.remark?.afterLable" style="width: 155px;"
|
<nz-input-group [nzAddOnAfter]="item.remark?.afterLable" style="width: 155px;"
|
||||||
class="ml-md mr-xl">
|
class="ml-md mr-xl">
|
||||||
<input type="number" nz-input [(ngModel)]="item.itemValue" placeholder="请输入" />
|
<nz-input-number [(ngModel)]="item.itemValue" [nzMin]="item.remark?.min"
|
||||||
|
[nzPrecision]="item.remark?.precision" [nzMax]="item.remark?.max"
|
||||||
|
nzPlaceHolder="请输入" style="width: 120px;"></nz-input-number>
|
||||||
|
<!-- <input type="number" nz-input [(ngModel)]="item.itemValue" placeholder="请输入"/> -->
|
||||||
</nz-input-group>
|
</nz-input-group>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<!-- 0-1单选框 -->
|
<!-- 0-1单选框 -->
|
||||||
|
|||||||
@ -50,6 +50,11 @@ export class DynamicSettingH5Component implements OnInit {
|
|||||||
if (this.configList?.length < 0) {
|
if (this.configList?.length < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// 配置校验
|
||||||
|
if (this.configList.find((config: any) => !config.itemValue && config.requiredField)) {
|
||||||
|
this.service.msgSrv.warning('请填写必填项');
|
||||||
|
return;
|
||||||
|
}
|
||||||
let params = [...this.configList];
|
let params = [...this.configList];
|
||||||
params = params.map((item: any) => {
|
params = params.map((item: any) => {
|
||||||
if (item.itemType == 9) {
|
if (item.itemType == 9) {
|
||||||
|
|||||||
Reference in New Issue
Block a user