whj 1 year ago
parent
commit
f8b27d63d4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/repair/application-form/modules/BaseForm.vue

+ 2 - 1
src/views/repair/application-form/modules/BaseForm.vue

@@ -762,12 +762,13 @@ export default {
       // 日期处理
       // 日期处理
 
 
       receiveProfessor({ id: key }).then(res => {
       receiveProfessor({ id: key }).then(res => {
+        const val = res.data ? res.data : 1
         this.$nextTick(() => {
         this.$nextTick(() => {
           setFieldsValue(Object.assign({
           setFieldsValue(Object.assign({
             'sbId': key,
             'sbId': key,
             'sbName': row.name,
             'sbName': row.name,
             'sbCph': row.cph,
             'sbCph': row.cph,
-            'repairProfessor': [res.data]
+            'repairProfessor': [val]
           // 'parentSbNo': row.ppNo
           // 'parentSbNo': row.ppNo
           }))
           }))
         })
         })