解决冲突

This commit is contained in:
wangshiming
2022-03-10 10:49:07 +08:00
parent a125eec1d3
commit 85530ad527
2 changed files with 16 additions and 10 deletions

View File

@ -41,7 +41,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
maxPiece: 99999,
maxDays: 999,
intervalDays: 999,
maxTimes: 999
maxTimes: 5
};
sf1data: any; // 货源单设置回显
sf3data: any; // 货源单设置回显
@ -746,7 +746,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
});
}
addStartInfo() {
if (this.startInfo.length < 5) {
if (this.startInfo.length < this.limitValues.maxTimes) {
const controlId = this.startInfo.length;
this.startInfo.push({
detailedAddress: '',
@ -800,7 +800,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
this.validateForm1.removeControl(`loadPhone${index}`);
}
addEndInfo() {
if (this.endInfo.length < 5) {
if (this.endInfo.length < this.limitValues.maxTimes) {
const controlId = this.endInfo.length;
this.endInfo.push({
detailedAddress: '',