linwenxin пре 4 месеци
родитељ
комит
de8f8880f1

+ 1 - 1
src/components/file-upload/index.vue

@@ -241,7 +241,7 @@ export default {
         return 'pdf'
       } else if (['zip', 'rar', 'gz', 'apk'].includes(fileSuffix)) {
         return 'file'
-      } else if (['mp4'].includes(fileSuffix)) {
+      } else if (['mp4', 'mp3'].includes(fileSuffix)) {
         return 'video'
       }
     },

+ 19 - 7
src/views/workOrder/appraiseAppeal/appraisalStatement/index.vue

@@ -22,7 +22,7 @@
               <zj-form-module title="评价信息" label-width="100px" :form-data="formData" :form-items="items" />
               <zj-form-module title="申诉信息" label-width="100px" :form-data="formData" :form-items="items2" />
               <zj-form-module
-                v-if="[3, 4, 5].includes(formType)"
+                v-if="[3, 4].includes(formType) || (this.formData.parentCategoryId && [5].includes(formType))"
                 title="中心审核信息"
                 label-width="140px"
                 :form-data="formData"
@@ -63,6 +63,7 @@ import { required, requiredValueMin } from '@/components/template/rules_verify.j
 import { orderBaseDetail } from '@/api/workOrderPool.js'
 import { EventBus } from '@/utils/eventBus'
 import ImageUpload from '@/components/file-upload'
+import { appraiseApplyCategoryList } from '@/api/explainTypeConfig.js'
 export default {
   components: { TemplatePage, ImageUpload },
   mixins: [import_mixin, operation_mixin],
@@ -111,7 +112,8 @@ export default {
         recordingFile: [],
         applicationDocument: []
       },
-      formRules: {}
+      formRules: {},
+      appraiseApplyCategoryList: []
     }
   },
   computed: {
@@ -427,8 +429,11 @@ export default {
     items3() {
       return [
         {
-          name: 'el-input',
+          name: 'el-select',
           md: 6,
+          options: this.appraiseApplyCategoryList
+            .filter(item => item.parentId == 0)
+            .map(item => ({ label: item.name, value: item.id })),
           attributes: {
             disabled: ![3, 4].includes(this.formType),
             placeholder: '请输入'
@@ -440,8 +445,11 @@ export default {
           }
         },
         {
-          name: 'el-input',
+          name: 'el-select',
           md: 6,
+          options: this.appraiseApplyCategoryList
+            .filter(item => item.parentId == this.formData.parentCategoryId)
+            .map(item => ({ label: item.name, value: item.id })),
           attributes: {
             disabled: ![3, 4].includes(this.formType),
             placeholder: '请输入'
@@ -502,7 +510,7 @@ export default {
         })(),
         {
           md: 24,
-          isShow: ![3, 4].includes(this.formType),
+          isShow: [3, 4, 5].includes(this.formType),
           name: 'el-radio',
           options: [
             { label: '是', value: true },
@@ -517,7 +525,7 @@ export default {
         },
         {
           md: 24,
-          isShow: ![3, 4].includes(this.formType),
+          isShow: [3, 4, 5].includes(this.formType),
           name: 'el-radio',
           options: [
             { label: '无责', value: 'NOT' },
@@ -533,7 +541,7 @@ export default {
         },
         {
           md: 24,
-          isShow: ![3, 4].includes(this.formType),
+          isShow: [3, 4, 5].includes(this.formType),
           name: 'el-radio',
           options: [
             { label: '无责', value: 'NOT' },
@@ -691,6 +699,10 @@ export default {
             appraiseApplyApplyDetail({
               id: row.id
             }).then(res => {
+              appraiseApplyCategoryList({ pageNum: 1, pageSize: -1, params: [] }).then(res => {
+                this.appraiseApplyCategoryList = res.data.records
+                console.log(res.data.records)
+              })
               this.formData = {
                 ...res.data,
                 recordingFile: (res.data?.items || []).filter(item => item.type == 'C'),