|
@@ -127,6 +127,7 @@ export class OtherAutoComponent implements OnInit {
|
127
|
127
|
this.initForm();
|
128
|
128
|
this.validateForm.controls.startCreated.setValue(0);
|
129
|
129
|
this.validateForm.controls.autoCreate.setValue(0);
|
|
130
|
+ this.validateForm.controls.banDispatch.setValue(0);
|
130
|
131
|
}
|
131
|
132
|
hideModal() {
|
132
|
133
|
this.modal = false;
|
|
@@ -145,6 +146,7 @@ export class OtherAutoComponent implements OnInit {
|
145
|
146
|
taskTypeIds: [null, [Validators.required]],
|
146
|
147
|
startCreated: [null, [Validators.required]],
|
147
|
148
|
autoCreate: [null, [Validators.required]],
|
|
149
|
+ banDispatch: [null, [Validators.required]],
|
148
|
150
|
});
|
149
|
151
|
}
|
150
|
152
|
// 表单提交
|
|
@@ -163,6 +165,7 @@ export class OtherAutoComponent implements OnInit {
|
163
|
165
|
taskTypeIds: this.validateForm.value.taskTypeIds,
|
164
|
166
|
startCreated: this.validateForm.value.startCreated,
|
165
|
167
|
autoCreate: this.validateForm.value.autoCreate,
|
|
168
|
+ banDispatch: this.validateForm.value.banDispatch,
|
166
|
169
|
hosId: this.hosId,
|
167
|
170
|
})
|
168
|
171
|
.subscribe((data) => {
|
|
@@ -183,6 +186,7 @@ export class OtherAutoComponent implements OnInit {
|
183
|
186
|
taskTypeIds: this.validateForm.value.taskTypeIds,
|
184
|
187
|
startCreated: this.validateForm.value.startCreated,
|
185
|
188
|
autoCreate: this.validateForm.value.autoCreate,
|
|
189
|
+ banDispatch: this.validateForm.value.banDispatch,
|
186
|
190
|
coopData: this.coopData,
|
187
|
191
|
})
|
188
|
192
|
.subscribe((data) => {
|
|
@@ -207,6 +211,7 @@ export class OtherAutoComponent implements OnInit {
|
207
|
211
|
this.validateForm.controls.taskTypeIds.setValue(data.taskTypeList ? data.taskTypeList.map(v => v.id) : null);
|
208
|
212
|
this.validateForm.controls.startCreated.setValue(data.startCreated);
|
209
|
213
|
this.validateForm.controls.autoCreate.setValue(data.autoCreate);
|
|
214
|
+ this.validateForm.controls.banDispatch.setValue(data.banDispatch);
|
210
|
215
|
this.modal = true;
|
211
|
216
|
this.add = false;
|
212
|
217
|
this.coopId = data.id;
|