|
|
@@ -548,12 +548,13 @@
|
|
|
created() {
|
|
|
this.getDispatchMethod('dispatch_method');
|
|
|
this.getAssignmentMethod('assignment_method');
|
|
|
+ this.getReportType('report_type');
|
|
|
// 时间计算规则code
|
|
|
this.getCode();
|
|
|
this.workCenterData(); // 查询工作中心
|
|
|
this.getClassesData(); // 查询班次
|
|
|
this.queryCheckExists(); // 查询是否派单
|
|
|
- this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
|
|
|
+ // this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
|
|
|
this.dateValue = this.getFormattedDate();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -567,6 +568,15 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ async getReportType(code) {
|
|
|
+ await parameterGetByCode({ code }).then((res) => {
|
|
|
+ if (res) {
|
|
|
+ this.form.singleReport =
|
|
|
+ this.clientEnvironmentId == 2 ? 0 : res.value == '0' ? 0 : 1;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
async getDispatchMethod(code) {
|
|
|
await parameterGetByCode({ code }).then((res) => {
|
|
|
if (res) {
|