|
@@ -4,7 +4,7 @@ import { ToolService } from 'src/app/services/tool.service';
|
4
|
4
|
import { NzMessageService } from 'ng-zorro-antd';
|
5
|
5
|
import { Subject } from 'rxjs';
|
6
|
6
|
import { debounceTime } from 'rxjs/operators';
|
7
|
|
-import { format } from 'date-fns';
|
|
7
|
+import { format, startOfMinute } from 'date-fns';
|
8
|
8
|
|
9
|
9
|
@Component({
|
10
|
10
|
selector: "app-operation-config",
|
|
@@ -63,14 +63,14 @@ export class OperationConfigComponent implements OnInit {
|
63
|
63
|
this.msg.create("warning", "请选择建单时间!");
|
64
|
64
|
return;
|
65
|
65
|
}
|
66
|
|
- let postData:any = {
|
67
|
|
- id: this.configs.id,
|
|
66
|
+ let editData:any = {
|
68
|
67
|
hosId: this.hosId,
|
69
|
68
|
autoCreate: this.autoCreateOrders[0].checked ? 1 : 0,
|
70
|
69
|
taskType: this.tasktypeId || undefined,
|
71
|
|
- createTime: this.autoTime ? format(this.autoTime, "yyyy-MM-dd HH:mm:ss") : undefined,
|
|
70
|
+ createTime: this.autoTime ? format(startOfMinute(this.autoTime), "yyyy-MM-dd HH:mm:ss") : undefined,
|
72
|
71
|
ordinaryField: this.surgeryField
|
73
|
72
|
};
|
|
73
|
+ let postData = Object.assign({}, this.configs, editData);
|
74
|
74
|
console.log(postData);
|
75
|
75
|
this.btnLoading = true;
|
76
|
76
|
this.mainService
|