소스 검색

报告详情页面展示下一节点审核人

lizhenhao 2 년 전
부모
커밋
b0bb9731dc
1개의 변경된 파일26개의 추가작업 그리고 0개의 파일을 삭제
  1. 26 0
      src/views/modules/cw/reportManagement/ReportManagementForm.vue

+ 26 - 0
src/views/modules/cw/reportManagement/ReportManagementForm.vue

@@ -463,6 +463,20 @@
 <!--                </el-form-item>-->
 <!--              </el-col>-->
               <el-col :span="12">
+                <el-form-item label="下一节点审核人" prop="reviewBy"
+                              :rules="[
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.reviewBy" placeholder="请选择下一节点审核人" style="width:100%;">
+                    <el-option
+                      v-for="item in reviewBys"
+                      :key="item.index"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
                 <el-form-item label="共印份数(大写)" prop="allPrintNum"
                               :rules="[
                    ]">
@@ -908,6 +922,7 @@
         title: '',
         method: '',
         loading: false,
+        reviewBys: [],
         inputForm: {
           reviewBy: '', // 下一个节点审核人
           detailFor1010: [],
@@ -1156,6 +1171,7 @@
         //   //   this.loading = false
         //   // })
         // })
+        this.reviewBys = []
         this.$nextTick(() => {
           this.$refs.enclosure.clearUpload()
           this.$refs.archiveFile.clearUpload()
@@ -1179,6 +1195,15 @@
             if (this.commonJS.isEmpty(this.inputForm.realCreate)) {
               this.inputForm.realCreate = JSON.parse(localStorage.getItem('user')).id
             }
+            if (data.reviewBys) {
+              data.reviewBys.forEach(re => {
+                let va = {
+                  label: re.name,
+                  value: re.sysUserId
+                }
+                this.reviewBys.push(va)
+              })
+            }
             if (this.formReadOnly) {
               method = 'view'
             }
@@ -1374,6 +1399,7 @@
         }
       },
       close () {
+        this.reviewBys = []
         this.inputForm = {
           id: '',
           createDate: '',