diff --git a/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts b/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts
index bdad67a1..1ed8dc59 100644
--- a/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts
+++ b/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts
@@ -165,7 +165,6 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
type: 'string',
format: 'date-time',
ui: {
-
placeholder: '请输入',
format: 'yyyy-MM-dd HH:mm:ss'
}
@@ -173,7 +172,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
dispatchPhone: {
type: 'string',
title: '手机号',
- maxLength: 30,
+ maxLength: 11,
ui: {
hidden: true,
placeholder: '请输入'
@@ -447,58 +446,45 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
}
}
},
- receiptAddressId: {
- type: 'string',
- title: '选择地址',
- ui: {
- widget: 'custom',
- placeholder: '请点击选择收回单地址',
- // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
- visibleIf: {
- receiptType: value => value === '2'
- }
- },
- default: ''
- },
receiptUserName: {
type: 'string',
title: '联系人',
+ maxLength: 15,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- phon: {
+ receiptUserPhone: {
type: 'string',
title: '联系电话',
+ maxLength: 11,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- area: {
+ receiptAddressArea: {
type: 'string',
title: '所在地区',
+ maxLength: 30,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- address: {
+ receiptAddress: {
type: 'string',
title: '详细地址',
+ maxLength: 30,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
paymentDays: {
type: 'string',
@@ -520,7 +506,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
} as SFTextareaWidgetSchema
}
},
- required: ['paymentDays','stateReceipt']
+ required: ['stateReceipt', 'paymentDays', 'receiptType', 'receiptUserName','receiptUserPhone','receiptAddressArea','receiptAddress']
};
this.ui6 = {
'*': {
@@ -529,24 +515,6 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
}
};
}
- // 选择收回单地址
- backBillChange() {
- const modalRef = this.modalService.create({
- nzTitle: '选择收回单地址',
- nzContent: PublishAddressListComponent,
- nzWidth: 900,
- nzComponentParams: { spuStatus: '2' },
- nzOnOk: item => {
- const data = item.seleteData;
- if (JSON.stringify(data) === '{}') return;
- this.sf6.setValue('/receiptAddressId', data.id);
- this.sf6.setValue('/receiptUserName', data.contactName);
- this.sf6.setValue('/phon', data.contactTelephone);
- this.sf6.setValue('/area', `${data.province}-${data.city}-${data.area}`)
- this.sf6.setValue('/address', data.detailedAddress);
- }
- });
- }
//指派熟车
chooseFamifiar(item: any) {
const modalRef = this.modalService.create({
diff --git a/src/app/routes/supply-management/components/bulk/bulk.component.ts b/src/app/routes/supply-management/components/bulk/bulk.component.ts
index 64f926f2..163459f6 100644
--- a/src/app/routes/supply-management/components/bulk/bulk.component.ts
+++ b/src/app/routes/supply-management/components/bulk/bulk.component.ts
@@ -101,11 +101,11 @@ export class SupplyManagementBulkComponent implements OnInit {
type: 'string',
title: '货源编号'
},
- loadingAddressArr: {
+ loadingPlace: {
type: 'string',
title: '装货地'
},
- unloadingAddressArr: {
+ dischargePlace: {
type: 'string',
title: '卸货地'
},
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 232087f4..8dd08b5b 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
@@ -31,9 +31,9 @@
placeholder="请输入装货地"
/>
-
+ > -->
@@ -42,18 +42,6 @@
联系人
-
-
+ > -->
联系人
-
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 2fa509f2..c067ec5d 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
@@ -414,58 +414,45 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
}
},
- receiptAddressId: {
- type: 'string',
- title: '选择地址',
- ui: {
- widget: 'custom',
- placeholder: '请点击选择收回单地址',
- // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
- visibleIf: {
- receiptType: value => value === '2'
- }
- },
- default: ''
- },
receiptUserName: {
type: 'string',
title: '联系人',
+ maxLength: 15,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- phon: {
+ receiptUserPhone: {
type: 'string',
title: '联系电话',
+ maxLength: 11,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- area: {
+ receiptAddressArea: {
type: 'string',
title: '所在地区',
+ maxLength: 30,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- address: {
+ receiptAddress: {
type: 'string',
title: '详细地址',
+ maxLength: 30,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
remarks: {
type: 'string',
@@ -478,7 +465,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
} as SFTextareaWidgetSchema
}
},
- required: ['stateReceipt', 'receiptType', 'receiptAddressId']
+ required: ['stateReceipt', 'receiptType', 'receiptUserName','receiptUserPhone','receiptAddressArea','receiptAddress']
};
this.ui6 = {
'*': {
@@ -514,18 +501,18 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
change: _args => this.payChange()
} as SFNumberWidgetSchema
},
- oilCardPay: {
- type: 'number',
- title: '油卡',
- minimum: 0,
- maximum: 999999,
- default: 0,
- ui: {
- prefix: '¥',
- widgetWidth: 300,
- change: _args => this.payChange()
- } as SFNumberWidgetSchema
- },
+ // oilCardPay: {
+ // type: 'number',
+ // title: '油卡',
+ // minimum: 0,
+ // maximum: 999999,
+ // default: 0,
+ // ui: {
+ // prefix: '¥',
+ // widgetWidth: 300,
+ // change: _args => this.payChange()
+ // } as SFNumberWidgetSchema
+ // },
receiptPay: {
type: 'number',
title: '回单付',
@@ -583,8 +570,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
changeValue() {
this.totalFees =
- Number(this.sf7?.value?.appendFee) +
- Number(this.sf7?.value?.oilCardPay) +
+ Number(this.sf7?.value?.appendFee) +
Number(this.sf7?.value?.prePay) +
Number(this.sf7?.value?.receiptPay) +
Number(this.sf7?.value?.toPay);
@@ -592,16 +578,15 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
payChange(value?: any) {
let subtotal: any = {};
- let oilCardPay: any = {};
+ let oilCardPay: any = 0;
if (value) {
- subtotal = value.prePay + value.toPay + value.oilCardPay + value.receiptPay || 0;
- oilCardPay = value.oilCardPay || 0;
+ subtotal = value.prePay + value.toPay + value.receiptPay || 0;
+ // oilCardPay = value.oilCardPay || 0;
} else {
- subtotal = this.sf7.value.prePay + this.sf7.value.toPay + this.sf7.value.oilCardPay + this.sf7.value.receiptPay || 0;
- oilCardPay = this.sf7.value.oilCardPay || 0;
+ subtotal = this.sf7.value.prePay + this.sf7.value.toPay+ this.sf7.value.receiptPay || 0;
+ // oilCardPay = this.sf7.value.oilCardPay || 0;
}
console.log(this.sf7.value);
-
this.service
.request(this.service.$api_getCalculatedSurcharge + `?totalFreight=${subtotal}&fuelCardAmount=${oilCardPay}`)
.subscribe(res => {
@@ -1065,11 +1050,10 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
this.sf6data = {
stateReceipt: res?.supplementaryInformationVO?.stateReceipt,
receiptType: res?.receiptType || '',
- receiptAddressId: res?.receiptAddressId || '',
receiptUserName: res?.supplementaryInformationVO?.receiptUserName || '',
- area: res?.supplementaryInformationVO?.area || '',
- phon: res?.supplementaryInformationVO?.phon || '',
- address: res?.supplementaryInformationVO?.address || '',
+ receiptAddressArea: res?.supplementaryInformationVO?.receiptAddressArea || '',
+ receiptUserPhone: res?.supplementaryInformationVO?.receiptUserPhone || '',
+ receiptAddress: res?.supplementaryInformationVO?.receiptAddress || '',
remarks: res?.supplementaryInformationVO?.remarks || ''
};
// if (this.PageStatus === '整车修改') {
@@ -1078,7 +1062,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
this.sf7data = {
prePay: res?.shippingInformationVO?.prePay,
toPay: res?.shippingInformationVO?.toPay,
- oilCardPay: res?.shippingInformationVO?.oilCardPay,
+ oilCardPay: 0,
receiptPay: res?.shippingInformationVO?.receiptPay,
subtotal: res?.shippingInformationVO?.totalFee,
total: res?.shippingInformationVO?.totalFee,
@@ -1087,24 +1071,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
};
this.payChange(this.sf7data);
}
- // 选择收回单地址
- backBillChange() {
- const modalRef = this.modalService.create({
- nzTitle: '选择收回单地址',
- nzContent: PublishAddressListComponent,
- nzWidth: 900,
- nzComponentParams: { spuStatus: '2' },
- nzOnOk: item => {
- const data = item.seleteData;
- if (JSON.stringify(data) === '{}') return;
- this.sf6.setValue('/receiptAddressId', data.id);
- this.sf6.setValue('/receiptUserName', data.contactName);
- this.sf6.setValue('/phon', data.contactTelephone);
- this.sf6.setValue('/area', `${data.province}-${data.city}-${data.area}`);
- this.sf6.setValue('/address', data.detailedAddress);
- }
- });
- }
+
// 选择地址
chooseAddress(index: number, type: string) {
const modalRef = this.modalService.create({
diff --git a/src/app/routes/supply-management/components/release-publish/release-publish.component.html b/src/app/routes/supply-management/components/release-publish/release-publish.component.html
index 072aa58e..bca4c098 100644
--- a/src/app/routes/supply-management/components/release-publish/release-publish.component.html
+++ b/src/app/routes/supply-management/components/release-publish/release-publish.component.html
@@ -38,9 +38,9 @@
placeholder="请输入装货地"
/>
-
+ > -->
@@ -103,9 +103,9 @@
name="unloadAddress{{ idx }}"
/>
-
+ > -->
@@ -263,7 +263,7 @@
diff --git a/src/app/routes/supply-management/components/release-publish/release-publish.component.ts b/src/app/routes/supply-management/components/release-publish/release-publish.component.ts
index f4daf821..a8bd869b 100644
--- a/src/app/routes/supply-management/components/release-publish/release-publish.component.ts
+++ b/src/app/routes/supply-management/components/release-publish/release-publish.component.ts
@@ -430,58 +430,58 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
}
}
},
- receiptAddressId: {
- type: 'string',
- title: '选择地址',
- ui: {
- widget: 'custom',
- placeholder: '请点击选择收回单地址',
- // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
- visibleIf: {
- receiptType: value => value === '2'
- }
- },
- default: ''
- },
+ // receiptAddressId: {
+ // type: 'string',
+ // title: '选择地址',
+ // ui: {
+ // widget: 'custom',
+ // placeholder: '请点击选择收回单地址',
+ // // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []),
+ // visibleIf: {
+ // receiptType: value => value === '2'
+ // }
+ // },
+ // default: ''
+ // },
receiptUserName: {
type: 'string',
title: '联系人',
+ maxLength: 15,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- phon: {
+ receiptUserPhone: {
type: 'string',
title: '联系电话',
+ maxLength: 11,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- area: {
+ receiptAddressArea: {
type: 'string',
title: '所在地区',
+ maxLength: 30,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
- address: {
+ receiptAddress: {
type: 'string',
title: '详细地址',
+ maxLength: 50,
ui: {
visibleIf: {
receiptType: value => value === '2'
}
},
- readOnly: true
},
remarks: {
type: 'string',
@@ -494,7 +494,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
} as SFTextareaWidgetSchema
}
},
- required: ['stateReceipt', 'receiptType', 'receiptAddressId']
+ required: ['stateReceipt', 'receiptType', 'receiptUserName','receiptUserPhone','receiptAddressArea','receiptAddress']
};
this.ui6 = {
'*': {
@@ -530,18 +530,18 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
change: _args => this.payChange()
} as SFNumberWidgetSchema
},
- oilCardPay: {
- type: 'number',
- title: '油卡',
- maximum: 999999,
- minimum: 0,
- default: 0,
- ui: {
- prefix: '¥',
- widgetWidth: 300,
- change: _args => this.payChange()
- } as SFNumberWidgetSchema
- },
+ // oilCardPay: {
+ // type: 'number',
+ // title: '油卡',
+ // maximum: 999999,
+ // minimum: 0,
+ // default: 0,
+ // ui: {
+ // prefix: '¥',
+ // widgetWidth: 300,
+ // change: _args => this.payChange()
+ // } as SFNumberWidgetSchema
+ // },
receiptPay: {
type: 'number',
title: '回单付',
@@ -595,8 +595,8 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
});
}
payChange() {
- const subtotal = this.sf7.value.prePay + this.sf7.value.toPay + this.sf7.value.oilCardPay + this.sf7.value.receiptPay || 0;
- const oilCardPay = this.sf7.value.oilCardPay || 0;
+ const subtotal = this.sf7.value.prePay + this.sf7.value.toPay + this.sf7.value.receiptPay || 0;
+ const oilCardPay = 0
this.service
.request(this.service.$api_getCalculatedSurcharge + `?totalFreight=${subtotal}&fuelCardAmount=${oilCardPay}`)
.subscribe((res: any) => {
@@ -735,8 +735,8 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
{
expenseCode: 'OIL',
expenseName: '油卡',
- price: this.sf7.value.oilCardPay,
- id: this.sf7data?.oilCardPayId ? this.sf7data?.oilCardPayId : ''
+ price: 0,
+ id: ''
},
{
expenseCode: 'BACK',