|
@@ -7,6 +7,7 @@
|
|
|
:form-fields="formFields"
|
|
:form-fields="formFields"
|
|
|
:is-view-mode="isViewMode"
|
|
:is-view-mode="isViewMode"
|
|
|
:audited-unit-id="auditedUnitId"
|
|
:audited-unit-id="auditedUnitId"
|
|
|
|
|
+ :request-type="2"
|
|
|
:upload-id="
|
|
:upload-id="
|
|
|
(currentTemplateRow &&
|
|
(currentTemplateRow &&
|
|
|
(currentTemplateRow.uploadId || currentTemplateRow.id)) ||
|
|
(currentTemplateRow.uploadId || currentTemplateRow.id)) ||
|
|
@@ -35,6 +36,7 @@
|
|
|
:table-items="tableItems"
|
|
:table-items="tableItems"
|
|
|
:audit-periods="auditPeriods"
|
|
:audit-periods="auditPeriods"
|
|
|
:is-view-mode="isViewMode"
|
|
:is-view-mode="isViewMode"
|
|
|
|
|
+ :request-type="2"
|
|
|
:audited-unit-id="auditedUnitId"
|
|
:audited-unit-id="auditedUnitId"
|
|
|
:upload-id="
|
|
:upload-id="
|
|
|
(currentTemplateRow &&
|
|
(currentTemplateRow &&
|
|
@@ -65,6 +67,7 @@
|
|
|
:table-data="dynamicTableData"
|
|
:table-data="dynamicTableData"
|
|
|
:table-items="tableItems"
|
|
:table-items="tableItems"
|
|
|
:is-view-mode="isViewMode"
|
|
:is-view-mode="isViewMode"
|
|
|
|
|
+ :request-type="2"
|
|
|
:audited-unit-id="auditedUnitId"
|
|
:audited-unit-id="auditedUnitId"
|
|
|
:upload-id="
|
|
:upload-id="
|
|
|
(currentTemplateRow &&
|
|
(currentTemplateRow &&
|
|
@@ -292,6 +295,7 @@
|
|
|
:visible.sync="singleDialogVisible"
|
|
:visible.sync="singleDialogVisible"
|
|
|
:survey-data="{}"
|
|
:survey-data="{}"
|
|
|
:is-view-mode="true"
|
|
:is-view-mode="true"
|
|
|
|
|
+ :request-type="2"
|
|
|
:audited-unit-id="auditedUnitId"
|
|
:audited-unit-id="auditedUnitId"
|
|
|
:upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
:upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
|
:survey-template-id="getSurveyTemplateId(currentTemplateRow)"
|
|
:survey-template-id="getSurveyTemplateId(currentTemplateRow)"
|
|
@@ -302,6 +306,7 @@
|
|
|
<fixed-table-dialog
|
|
<fixed-table-dialog
|
|
|
:visible.sync="fixedDialogVisible"
|
|
:visible.sync="fixedDialogVisible"
|
|
|
:is-view-mode="true"
|
|
:is-view-mode="true"
|
|
|
|
|
+ :request-type="2"
|
|
|
:audited-unit-id="auditedUnitId"
|
|
:audited-unit-id="auditedUnitId"
|
|
|
:upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
:upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
|
:survey-template-id="getSurveyTemplateId(currentTemplateRow)"
|
|
:survey-template-id="getSurveyTemplateId(currentTemplateRow)"
|
|
@@ -312,6 +317,7 @@
|
|
|
<dynamic-table-dialog
|
|
<dynamic-table-dialog
|
|
|
:visible.sync="dynamicDialogVisible"
|
|
:visible.sync="dynamicDialogVisible"
|
|
|
:is-view-mode="true"
|
|
:is-view-mode="true"
|
|
|
|
|
+ :request-type="2"
|
|
|
:audited-unit-id="auditedUnitId"
|
|
:audited-unit-id="auditedUnitId"
|
|
|
:upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
:upload-id="(currentTemplateRow && currentTemplateRow.uploadId) || ''"
|
|
|
:survey-template-id="getSurveyTemplateId(currentTemplateRow)"
|
|
:survey-template-id="getSurveyTemplateId(currentTemplateRow)"
|
|
@@ -411,7 +417,7 @@
|
|
|
const params = {
|
|
const params = {
|
|
|
uploadId: row.uploadId || row.id,
|
|
uploadId: row.uploadId || row.id,
|
|
|
auditedUnitId: this.auditedUnitId,
|
|
auditedUnitId: this.auditedUnitId,
|
|
|
- type: 1,
|
|
|
|
|
|
|
+ type: 2,
|
|
|
}
|
|
}
|
|
|
const res = await getSurveyDetail(params)
|
|
const res = await getSurveyDetail(params)
|
|
|
if (res && res.code === 200 && res.value) {
|
|
if (res && res.code === 200 && res.value) {
|
|
@@ -614,7 +620,7 @@
|
|
|
const taskId = this.pendingUploadRow.taskId
|
|
const taskId = this.pendingUploadRow.taskId
|
|
|
// formData.append('auditedUnitId', auditedUnitId)
|
|
// formData.append('auditedUnitId', auditedUnitId)
|
|
|
formData.append('taskId', taskId)
|
|
formData.append('taskId', taskId)
|
|
|
- formData.append('type', '1')
|
|
|
|
|
|
|
+ formData.append('type', '2')
|
|
|
|
|
|
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
lock: true,
|
|
@@ -668,7 +674,7 @@
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
// 构建请求参数,根据实际接口需求调整
|
|
// 构建请求参数,根据实际接口需求调整
|
|
|
- const params = { type: 1 }
|
|
|
|
|
|
|
+ const params = { type: 2 }
|
|
|
const surveyTemplateId = this.getSurveyTemplateId(row)
|
|
const surveyTemplateId = this.getSurveyTemplateId(row)
|
|
|
if (surveyTemplateId) {
|
|
if (surveyTemplateId) {
|
|
|
params.surveyTemplateId = surveyTemplateId
|
|
params.surveyTemplateId = surveyTemplateId
|
|
@@ -757,7 +763,7 @@
|
|
|
auditedUnitId,
|
|
auditedUnitId,
|
|
|
catalogId,
|
|
catalogId,
|
|
|
surveyTemplateId,
|
|
surveyTemplateId,
|
|
|
- type: 1,
|
|
|
|
|
|
|
+ type: 2,
|
|
|
}
|
|
}
|
|
|
const res = await getDynamicTableData(params)
|
|
const res = await getDynamicTableData(params)
|
|
|
if (res && res.code === 200) {
|
|
if (res && res.code === 200) {
|
|
@@ -797,7 +803,7 @@
|
|
|
surveyTemplateId: this.getSurveyTemplateId(
|
|
surveyTemplateId: this.getSurveyTemplateId(
|
|
|
this.currentTemplateRow
|
|
this.currentTemplateRow
|
|
|
),
|
|
),
|
|
|
- type: 1,
|
|
|
|
|
|
|
+ type: 2,
|
|
|
}
|
|
}
|
|
|
const res = await getListBySurveyFdTemplateIdAndVersion(params)
|
|
const res = await getListBySurveyFdTemplateIdAndVersion(params)
|
|
|
if (res && res.code === 200) {
|
|
if (res && res.code === 200) {
|
|
@@ -854,7 +860,7 @@
|
|
|
surveyTemplateId: this.getSurveyTemplateId(
|
|
surveyTemplateId: this.getSurveyTemplateId(
|
|
|
this.currentTemplateRow
|
|
this.currentTemplateRow
|
|
|
),
|
|
),
|
|
|
- type: 1,
|
|
|
|
|
|
|
+ type: 2,
|
|
|
}
|
|
}
|
|
|
const res = await getSingleRecordSurveyList(params)
|
|
const res = await getSingleRecordSurveyList(params)
|
|
|
if (res && res.code === 200 && res.value) {
|
|
if (res && res.code === 200 && res.value) {
|
|
@@ -910,7 +916,7 @@
|
|
|
try {
|
|
try {
|
|
|
const headerRes = await getListBySurveyFdTemplateIdAndVersion({
|
|
const headerRes = await getListBySurveyFdTemplateIdAndVersion({
|
|
|
surveyTemplateId: this.getSurveyTemplateId(this.currentTemplateRow),
|
|
surveyTemplateId: this.getSurveyTemplateId(this.currentTemplateRow),
|
|
|
- type: 1,
|
|
|
|
|
|
|
+ type: 2,
|
|
|
})
|
|
})
|
|
|
if (headerRes && headerRes.code === 200) {
|
|
if (headerRes && headerRes.code === 200) {
|
|
|
this.fixedHeaders = headerRes.value || null
|
|
this.fixedHeaders = headerRes.value || null
|
|
@@ -1204,114 +1210,114 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
getMockFormFields() {
|
|
getMockFormFields() {
|
|
|
- return [
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'institutionName',
|
|
|
|
|
- label: '机构名称',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- defaultValue: '幼儿园基本情况',
|
|
|
|
|
- placeholder: '请输入机构名称',
|
|
|
|
|
- required: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'institutionNature',
|
|
|
|
|
- label: '机构性质',
|
|
|
|
|
- type: 'select',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- dictType: 'institutionNature',
|
|
|
|
|
- defaultValue: '公办',
|
|
|
|
|
- placeholder: '请选择机构性质',
|
|
|
|
|
- required: true,
|
|
|
|
|
- clearable: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'institutionLevel',
|
|
|
|
|
- label: '机构评定等级',
|
|
|
|
|
- type: 'select',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- dictType: 'institutionLevel',
|
|
|
|
|
- defaultValue: '省一级',
|
|
|
|
|
- placeholder: '请选择机构评定等级',
|
|
|
|
|
- required: true,
|
|
|
|
|
- clearable: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'educationMode',
|
|
|
|
|
- label: '机构办学方式',
|
|
|
|
|
- type: 'select',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- dictType: 'educationMode',
|
|
|
|
|
- defaultValue: '全日制',
|
|
|
|
|
- placeholder: '请选择机构办学方式',
|
|
|
|
|
- required: true,
|
|
|
|
|
- clearable: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'institutionAddress',
|
|
|
|
|
- label: '机构地址',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- placeholder: '请输入机构地址',
|
|
|
|
|
- required: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'formFiller',
|
|
|
|
|
- label: '机构填表人',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- placeholder: '请输入机构填表人',
|
|
|
|
|
- required: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'financialManager',
|
|
|
|
|
- label: '机构财务负责人',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- placeholder: '请输入机构财务负责人',
|
|
|
|
|
- required: true,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'contactPhone',
|
|
|
|
|
- label: '机构联系电话',
|
|
|
|
|
- type: 'input',
|
|
|
|
|
- colSpan: 12,
|
|
|
|
|
- placeholder: '请输入机构联系电话',
|
|
|
|
|
- required: true,
|
|
|
|
|
- rules: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入机构联系电话',
|
|
|
|
|
- trigger: 'blur',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- pattern: /^1[3-9]\d{9}$/,
|
|
|
|
|
- message: '请输入正确的手机号码',
|
|
|
|
|
- trigger: 'blur',
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ // return [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'institutionName',
|
|
|
|
|
+ // label: '机构名称',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // defaultValue: '幼儿园基本情况',
|
|
|
|
|
+ // placeholder: '请输入机构名称',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'institutionNature',
|
|
|
|
|
+ // label: '机构性质',
|
|
|
|
|
+ // type: 'select',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // dictType: 'institutionNature',
|
|
|
|
|
+ // defaultValue: '公办',
|
|
|
|
|
+ // placeholder: '请选择机构性质',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // clearable: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'institutionLevel',
|
|
|
|
|
+ // label: '机构评定等级',
|
|
|
|
|
+ // type: 'select',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // dictType: 'institutionLevel',
|
|
|
|
|
+ // defaultValue: '省一级',
|
|
|
|
|
+ // placeholder: '请选择机构评定等级',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // clearable: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'educationMode',
|
|
|
|
|
+ // label: '机构办学方式',
|
|
|
|
|
+ // type: 'select',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // dictType: 'educationMode',
|
|
|
|
|
+ // defaultValue: '全日制',
|
|
|
|
|
+ // placeholder: '请选择机构办学方式',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // clearable: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'institutionAddress',
|
|
|
|
|
+ // label: '机构地址',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // placeholder: '请输入机构地址',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'formFiller',
|
|
|
|
|
+ // label: '机构填表人',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // placeholder: '请输入机构填表人',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'financialManager',
|
|
|
|
|
+ // label: '机构财务负责人',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // placeholder: '请输入机构财务负责人',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'contactPhone',
|
|
|
|
|
+ // label: '机构联系电话',
|
|
|
|
|
+ // type: 'input',
|
|
|
|
|
+ // colSpan: 12,
|
|
|
|
|
+ // placeholder: '请输入机构联系电话',
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // rules: [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // required: true,
|
|
|
|
|
+ // message: '请输入机构联系电话',
|
|
|
|
|
+ // trigger: 'blur',
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // pattern: /^1[3-9]\d{9}$/,
|
|
|
|
|
+ // message: '请输入正确的手机号码',
|
|
|
|
|
+ // trigger: 'blur',
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ],
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ]
|
|
|
},
|
|
},
|
|
|
getMockTableItems() {
|
|
getMockTableItems() {
|
|
|
- return [
|
|
|
|
|
- {
|
|
|
|
|
- id: '1',
|
|
|
|
|
- itemName: '班级数',
|
|
|
|
|
- unit: '个',
|
|
|
|
|
- isCategory: false,
|
|
|
|
|
- seq: 1,
|
|
|
|
|
- validateRules: { required: true, type: 'number', min: 0 },
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- id: '2',
|
|
|
|
|
- itemName: '幼儿学生人数',
|
|
|
|
|
- unit: '人',
|
|
|
|
|
- isCategory: false,
|
|
|
|
|
- seq: 2,
|
|
|
|
|
- validateRules: { required: true, type: 'number', min: 0 },
|
|
|
|
|
- },
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ // return [
|
|
|
|
|
+ // {
|
|
|
|
|
+ // id: '1',
|
|
|
|
|
+ // itemName: '班级数',
|
|
|
|
|
+ // unit: '个',
|
|
|
|
|
+ // isCategory: false,
|
|
|
|
|
+ // seq: 1,
|
|
|
|
|
+ // validateRules: { required: true, type: 'number', min: 0 },
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // id: '2',
|
|
|
|
|
+ // itemName: '幼儿学生人数',
|
|
|
|
|
+ // unit: '人',
|
|
|
|
|
+ // isCategory: false,
|
|
|
|
|
+ // seq: 2,
|
|
|
|
|
+ // validateRules: { required: true, type: 'number', min: 0 },
|
|
|
|
|
+ // },
|
|
|
|
|
+ // ]
|
|
|
},
|
|
},
|
|
|
resetDynamicDialogState() {
|
|
resetDynamicDialogState() {
|
|
|
this.dynamicTableDialogVisible = false
|
|
this.dynamicTableDialogVisible = false
|