|
@@ -35,6 +35,7 @@ export class SysConfigComponent implements OnInit {
|
35
|
35
|
effectiveDuration: [null, [Validators.required]],
|
36
|
36
|
orderClearUserSwitch: [null, [Validators.required]],
|
37
|
37
|
deptQRCode: [null, [Validators.required]],
|
|
38
|
+ workOrderSettings: [5, [Validators.required]],
|
38
|
39
|
formUrl: [{ value: null, disabled: true }, [Validators.required]],
|
39
|
40
|
serviceUrl: [{ value: null, disabled: true }, [Validators.required]],
|
40
|
41
|
cachePath: [{ value: null, disabled: true }, [Validators.required]],
|
|
@@ -74,6 +75,7 @@ export class SysConfigComponent implements OnInit {
|
74
|
75
|
item.keyconfig === "conversationSeconds" ||
|
75
|
76
|
item.keyconfig === "orderClearUserSwitch" ||
|
76
|
77
|
item.keyconfig === "deptQRCode" ||
|
|
78
|
+ item.keyconfig === "workOrderSettings" ||
|
77
|
79
|
item.keyconfig === "busiViewDeptId"
|
78
|
80
|
);
|
79
|
81
|
filterData.forEach((item) => {
|
|
@@ -86,6 +88,8 @@ export class SysConfigComponent implements OnInit {
|
86
|
88
|
this.validateForm.controls.orderClearUserSwitch.value;
|
87
|
89
|
} else if (item.keyconfig === "deptQRCode") {
|
88
|
90
|
item.valueconfig = this.validateForm.controls.deptQRCode.value;
|
|
91
|
+ } else if (item.keyconfig === "workOrderSettings") {
|
|
92
|
+ item.valueconfig = this.validateForm.controls.workOrderSettings.value;
|
89
|
93
|
} else if (item.keyconfig === "busiViewDeptId") {
|
90
|
94
|
item.valueconfig = this.validateForm.controls.busiViewDeptId.value;
|
91
|
95
|
}
|
|
@@ -116,6 +120,9 @@ export class SysConfigComponent implements OnInit {
|
116
|
120
|
this.getSysConfig();
|
117
|
121
|
});
|
118
|
122
|
}
|
|
123
|
+ // 格式化自动关闭工单设置的数字选择框
|
|
124
|
+ formatterPercent = (value: number) => `${value}小时`;
|
|
125
|
+ parserPercent = (value: string) => value.replace("小时", "");
|
119
|
126
|
// 获取系统配置
|
120
|
127
|
getSysConfig() {
|
121
|
128
|
const postData = { idx: 0, sum: 99 };
|
|
@@ -145,6 +152,9 @@ export class SysConfigComponent implements OnInit {
|
145
|
152
|
case "deptQRCode":
|
146
|
153
|
this.validateForm.controls.deptQRCode.setValue(c[1]);
|
147
|
154
|
break;
|
|
155
|
+ case "workOrderSettings":
|
|
156
|
+ this.validateForm.controls.workOrderSettings.setValue(c[1]);
|
|
157
|
+ break;
|
148
|
158
|
case "formUri":
|
149
|
159
|
this.validateForm.controls.formUrl.setValue(c[1]);
|
150
|
160
|
break;
|