Browse Source

财务-报告修改

wangqiang 2 năm trước cách đây
mục cha
commit
f2cedcb5d1

+ 39 - 0
src/api/cw/reportManagement/ReportReviewService.js

@@ -0,0 +1,39 @@
+import request from '@/utils/httpRequest'
+
+export default class ReportReviewService {
+  list (type) {
+    return request({
+      url: '/auditSheet/type/prooList',
+      method: 'get',
+      params: {type: type}
+    })
+  }
+  save (param) {
+    return request({
+      url: '/projectReport/review/saveForm',
+      method: 'post',
+      data: param
+    })
+  }
+  updateReviewStatysByReportId (data) {
+    return request({
+      url: '/projectReport/review/updateReviewStatysByReportId',
+      method: 'post',
+      data: data
+    })
+  }
+  queryByReportId (id) {
+    return request({
+      url: '/projectReport/review/queryByReportId',
+      method: 'get',
+      params: {id: id}
+    })
+  }
+  getProcessStatus (id) {
+    return request({
+      url: '/projectReport/review/getProcessStatus',
+      method: 'get',
+      params: {procInsId: id}
+    })
+  }
+}

+ 925 - 0
src/views/modules/cw/reportManagement/ReportManagementAddForm.vue

@@ -0,0 +1,925 @@
+<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
+  <div>
+    <el-dialog
+      :title="title"
+      :close-on-click-modal="false"
+      v-dialogDrag
+      width="1400px"
+      height="500px"
+      @close="close"
+      append-to-body
+      @keyup.enter.native=""
+      :visible.sync="visible">
+    <el-row>
+      <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"  :disabled="status === 'audit' || status === 'taskFormDetail'"
+               label-width="135px" @submit.native.prevent>
+
+        <el-divider content-position="left"><i class="el-icon-document"></i> 项目信息</el-divider>
+        <el-row  :gutter="0">
+          <el-col :span="12">
+            <el-form-item label="项目名称" prop="projectName"
+                          :rules="[
+                              {required: true, message:'项目名称不能为空', trigger:'blur'},
+                              {required: true, message:'项目名称不能为空', trigger:'change'}
+                   ]">
+              <!--                <el-input v-model="inputForm.projectName" placeholder="请填写项目名称" clearable></el-input>-->
+              <el-input size="medium" :readonly="true" @focus="openContractForm()" v-model="inputForm.projectName" placeholder="请选择项目名称">
+                <el-button slot="append" icon="el-icon-search" @click="openContractForm()"></el-button>
+              </el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="项目编号" prop="projectNumber"
+                          :rules="[
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.projectNumber" placeholder="请填写项目编号" clearable></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="项目经理" prop="projectMasterName"
+                          :rules="[
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.projectMasterName" placeholder="请填写项目经理" clearable></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-divider content-position="left"><i class="el-icon-document"></i> 基础信息</el-divider>
+        <el-row  :gutter="0">
+          <el-col :span="12">
+            <el-form-item label="单据编号" prop="documentNo"
+                          :rules="[
+
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.documentNo" placeholder="自动生成" clearable></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="报告所属部门" prop="officeId"
+                          :rules="[
+                   ]">
+              <SelectTree
+                ref="officeTree"
+                :props="{
+                  value: 'id',             // ID字段名
+                  label: 'name',         // 显示名称
+                  children: 'children'    // 子级字段名
+                }"
+
+                :url="`/sys/office/treeData?type=2`"
+                :value="inputForm.officeId"
+                size="medium"
+                :accordion="true"
+                @getValue="(value) => {inputForm.officeId=value}"/>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="盖章类型" prop="signatureType"
+                          :rules="[
+                              {required: true, message: '盖章类型不能为空', trigger: 'change'}
+                   ]">
+              <!--                <el-input v-model="inputForm.signatureType" placeholder="请填写盖章类型" clearable></el-input>-->
+              <el-select v-model="inputForm.signatureType" placeholder="请选择盖章类型" clearable style="width: 100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_signature_type')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+
+          <el-col v-if="inputForm.signatureType === '1' || commonJS.isEmpty(inputForm.signatureType)" :span="12">
+            <el-form-item label="签字注师1" prop="signatureAnnotator1"
+                          :rules="[
+                   ]">
+              <!--                <el-input v-model="inputForm.signatureAnnotator1" placeholder="请填写签字注师1" clearable></el-input>-->
+              <UserSelect size="medium" ref="userSelect1" :disabled="status === 'audit' || status === 'taskFormDetail'" :readonly="true" :limit='1' :value="inputForm.signatureAnnotator1" @getValue='(value) => {changeSignatory1(value)}'></UserSelect>
+            </el-form-item>
+          </el-col>
+
+          <el-col v-if="inputForm.signatureType === '1' || commonJS.isEmpty(inputForm.signatureType)" :span="12">
+            <el-form-item label="签字注师2" prop="signatureAnnotator2"
+                          :rules="[
+                   ]">
+              <!--                <el-input v-model="inputForm.signatureAnnotator2" placeholder="请填写签字注师2" clearable></el-input>-->
+              <UserSelect size="medium" ref="userSelect2" :disabled="status === 'audit' || status === 'taskFormDetail'" :readonly="true" :limit='1' :value="inputForm.signatureAnnotator2" @getValue='(value) => {changeSignatory2(value)}'></UserSelect>
+            </el-form-item>
+          </el-col>
+
+          <el-col v-if="inputForm.signatureType === '2'" :span="12">
+            <el-form-item label="签字注师1" prop="signatureAnnotator1"
+                          :rules="[
+                              {required: true, message:'签字注师1不能为空', trigger:'blur'}
+                   ]">
+              <!--                <el-input v-model="inputForm.signatureAnnotator1" placeholder="请填写签字注师1" clearable></el-input>-->
+              <UserSelect size="medium" ref="userSelect1" :disabled="status === 'audit' || status === 'taskFormDetail'" :readonly="true" :limit='1' :value="inputForm.signatureAnnotator1" @getValue='(value) => {changeSignatory1(value)}'></UserSelect>
+            </el-form-item>
+          </el-col>
+
+          <el-col v-if="inputForm.signatureType === '2'" :span="12">
+            <el-form-item label="签字注师2" prop="signatureAnnotator2"
+                          :rules="[
+                              {required: true, message:'签字注师2不能为空', trigger:'blur'}
+                   ]">
+              <!--                <el-input v-model="inputForm.signatureAnnotator2" placeholder="请填写签字注师2" clearable></el-input>-->
+              <UserSelect size="medium" ref="userSelect2" :disabled="status === 'audit' || status === 'taskFormDetail'" :readonly="true" :limit='1' :value="inputForm.signatureAnnotator2" @getValue='(value) => {changeSignatory2(value)}'></UserSelect>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="审计意见类型" prop="opinionType"
+                          :rules="[
+                              {required: true, message:'审计意见类型不能为空', trigger:'blur'}
+                     ]">
+              <el-select v-model="inputForm.opinionType" placeholder="请选择审计意见类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_opinion_type')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="审计收费(税前、元)" prop="auditFees"
+                          :rules="[
+                   ]">
+              <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(税前、元)" clearable
+                        @keyup.native="inputForm.auditFees = twoDecimalPlaces(inputForm.auditFees)"
+              ></el-input>
+            </el-form-item>
+          </el-col>
+
+          <el-col :span="12">
+            <el-form-item label="报告实际制作人" prop="realCreate"
+                          :rules="[
+                   ]">
+              <UserSelect size="medium" :readonly="true" :disabled="status === 'audit' || status === 'taskFormDetail'" :limit='1' :value="inputForm.realCreate" @getValue='(value) => {inputForm.realCreate = value}'></UserSelect>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="创建时间" prop="createDate"
+                          :rules="[
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.createDate" placeholder="请填写创建时间" clearable></el-input>
+            </el-form-item>
+          </el-col>
+
+        </el-row>
+        <el-divider content-position="left"><i class="el-icon-document"></i> 详细信息</el-divider>
+        <el-row  :gutter="0">
+          <el-col :span="12">
+            <el-form-item label="被服务单位" prop="servedUnitName"
+                          :rules="[
+                            {required: true, message:'被服务单位不能为空', trigger:'blur'}
+                   ]">
+              <el-input :readonly="true" @focus="openWorkClient()" v-model="inputForm.servedUnitName" placeholder="请填写被服务单位" clearable>
+                <el-button slot="append" icon="el-icon-search" @click="openWorkClient()"></el-button>
+              </el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="报告日期" prop="reportDate"
+                          :rules="[
+                   ]">
+              <el-date-picker
+                placement="bottom-start"
+                value-format="yyyy-MM-dd"
+                v-model="inputForm.reportDate"
+                style="width: 100%"
+                placeholder="选择日期">
+              </el-date-picker>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="业务类型" prop="businessType"
+                          :rules="[
+                            {required: true, message:'业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.businessType" placeholder="请选择业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_business_type')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="报告类型" prop="reportType"
+                          :rules="[
+                            {required: true, message:'报告类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.reportType" placeholder="请选择报告类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_report_type')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="报告流水号" prop="reportNumber"
+                          :rules="[
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.reportNumber" placeholder="自动生成" clearable></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="报告文号" prop="reportNo"
+                          :rules="[
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.reportNo" placeholder="自动生成" clearable></el-input>
+            </el-form-item>
+          </el-col>
+          <!--<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"  :disabled="status !== 'audit' && status !== 'taskFormDetail'"
+                   label-width="135px" @submit.native.prevent>
+            <el-col :span="12">
+              <el-form-item label="意见类型" prop="opinionType"
+                            :rules="[
+                              {required: true, message:'意见类型不能为空', trigger:'blur'}
+                     ]">
+                <el-select v-model="inputForm.opinionType" placeholder="请选择意见类型" style="width:100%;">
+                  <el-option
+                    v-for="item in $dictUtils.getDictList('cw_opinion_type')"
+                    :key="item.value"
+                    :label="item.label"
+                    :value="item.value">
+                  </el-option>
+                </el-select>
+              </el-form-item>
+            </el-col>
+          </el-form>-->
+          <el-col :span="12">
+            <el-form-item label="盖章状态" prop="sealType"
+                          :rules="[
+                   ]">
+              <el-input :disabled="true" v-model="inputForm.sealType" placeholder="请填写盖章状态" clearable></el-input>
+            </el-form-item>
+          </el-col>
+
+        </el-row>
+        <el-divider content-position="left"><i class="el-icon-document"></i> 其他信息</el-divider>
+        <el-row  :gutter="0">
+          <el-col :span="12" v-if="inputForm.businessType === '1'">
+            <el-form-item label="审计业务类型" prop="auditBusinessType"
+                          :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_audit_business_type1')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12" v-if="inputForm.businessType === '2'">
+            <el-form-item label="审计业务类型" prop="auditBusinessType"
+                          :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_audit_business_type2')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12" v-if="inputForm.businessType === '3'">
+            <el-form-item label="审计业务类型" prop="auditBusinessType"
+                          :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_audit_business_type3')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12" v-if="inputForm.businessType === '4'">
+            <el-form-item label="审计业务类型" prop="auditBusinessType"
+                          :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_audit_business_type4')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12" v-if="inputForm.businessType === '5'">
+            <el-form-item label="审计业务类型" prop="auditBusinessType"
+                          :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_audit_business_type5')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12" v-if="inputForm.businessType === '6'">
+            <el-form-item label="审计业务类型" prop="auditBusinessType"
+                          :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+              <el-select v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                <el-option
+                  v-for="item in $dictUtils.getDictList('cw_audit_business_type6')"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="公司注册地址" prop="registerAddress"
+                          :rules="[
+                   ]">
+              <el-input v-model="inputForm.servedUnitName" placeholder="请填写公司注册地址" clearable>
+              </el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="业务所在地" prop="businessLocation"
+                          :rules="[
+                   ]">
+              <el-input v-model="inputForm.businessLocation" placeholder="请填写业务所在地" clearable>
+              </el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="是否数据证券业务" prop="securityBusiness"
+                          :rules="[
+                   ]">
+              <el-input v-model="inputForm.securityBusiness" placeholder="请填写是否数据证券业务" clearable>
+              </el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+
+      </el-form>
+      <el-tabs v-model="activeName" type="border-card" @tab-click="tabHandleClick">
+        <el-tab-pane label="签章文件" name="archiveFile">
+          <!--        签章文件-->
+          <UpLoadComponent ref="archiveFile"></UpLoadComponent>
+        </el-tab-pane>
+      </el-tabs>
+    </el-row>
+      <span slot="footer" class="dialog-footer">
+      <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
+      <el-button size="small" v-if="method !== 'view'" type="primary" icon="el-icon-circle-check" @click="doSubmit('save')">确定</el-button>
+      </span>
+    <ProjectRecoredChooseCom  ref="projectRecoredChooseCom" @getProject="getContract"></ProjectRecoredChooseCom>
+    <ReportServiceUnitForm ref="reportServiceUnitForm" @getWorkClientChoose="getWorkClientChoose"></ReportServiceUnitForm>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+  import UpLoadComponent from '@/views/common/UpLoadComponentV2.1'
+  import SelectUserTree from '@/views/modules/utils/treeUserSelect'
+  import SelectTree from '@/components/treeSelect/treeSelect.vue'
+  import UserSelect from '../workClientInfo/clientUserSelect'
+  import ProjectRecordsService from '@/api/cw/projectRecords/ProjectRecordsService'
+  import ProjectReportService from '@/api/cw/reportManagement/ProjectReportService'
+  import EnterpriseSearchService from '@/api/cw/common/EnterpriseSearchService'
+  import ReportServiceUnitForm from './ReportServiceUnitForm'
+  import ProjectRecoredChooseCom from '../projectRecords/ProjectRecordsChooseCom'
+  export default {
+    props: {
+      businessId: {
+        type: String,
+        default: ''
+      },
+      formReadOnly: {
+        type: Boolean,
+        default: false
+      },
+      status: {
+        type: String,
+        default: ''
+      }
+    },
+    data () {
+      return {
+        title: '',
+        method: '',
+        loading: false,
+        inputForm: {
+          opinionType: '',
+          reportNo: '',
+          reportNumber: '',
+          reportType: '',
+          businessType: '',
+          auditBusinessType: '',
+          reportDate: '',
+          servedUnitName: '', // 被服务单位
+          registerAddress: '',
+          securityBusiness: '',
+          businessLocation: '',
+          auditFees: '',
+          projectId: '',
+          id: '',
+          createDate: '',
+          createBy: {
+            id: '',
+            name: JSON.parse(localStorage.getItem('user')).name
+          },
+          remarks: '',
+          documentNo: '',
+          projectName: '',
+          projectNumber: '',
+          officeId: '',
+          signatureAnnotator1: '',
+          signatureAnnotator2: '',
+          signatureType: '',
+          projectMasterName: '',
+          cwProjectInfoList: [],
+          cwFileInfoList: [],
+          servedUnitId: '',
+          status: '',
+          realCreate: ''
+        },
+        keyWatch: '',
+        activeName: 'archiveFile',
+        tableKey: '',
+        tableKeyClient: '1',
+        visible: false
+      }
+    },
+    projectRecordsService: null,
+    ProjectReportService: null,
+    enterpriseSearchService: null,
+    created () {
+      this.enterpriseSearchService = new EnterpriseSearchService()
+      this.projectRecordsService = new ProjectRecordsService()
+      this.projectReportService = new ProjectReportService()
+    },
+    computed: {
+      bus: {
+        get () {
+          this.$refs.archiveFile.setDividerName('签章文件', false)
+          return this.businessId
+        },
+        set (val) {
+          this.businessId = val
+        }
+      }
+    },
+    watch: {
+      'keyWatch': {
+        handler (newVal) {
+          if (this.commonJS.isNotEmpty(this.bus)) {
+            this.init('', this.bus)
+          } else {
+            this.$nextTick(() => {
+              this.$refs.inputForm.resetFields()
+            })
+          }
+        }
+      }
+    },
+    components: {
+      SelectUserTree,
+      UpLoadComponent,
+      SelectTree,
+      UserSelect,
+      ReportServiceUnitForm,
+      ProjectRecoredChooseCom
+    },
+    methods: {
+      getKeyWatch (keyWatch) {
+        this.keyWatch = keyWatch
+      },
+      changeSignatory1 (value) {
+        if (this.inputForm.signatureAnnotator2 === value && this.commonJS.isNotEmpty(value)) {
+          this.$message.warning('首次发行签字注师1和首次发行签字注师2不可以相同')
+          this.$nextTick(() => {
+            this.inputForm.signatureAnnotator1 = ''
+            this.$refs.userSelect1.changeNameValue('')
+            this.$refs.userSelect1.clearSelectData()
+            this.$forceUpdate()
+          })
+        } else {
+          this.inputForm.signatureAnnotator1 = value
+        }
+      },
+      changeSignatory2 (value) {
+        if (this.inputForm.signatureAnnotator1 === value && this.commonJS.isNotEmpty(value)) {
+          this.$message.warning('首次发行签字注师1和首次发行签字注师2不可以相同')
+          this.$nextTick(() => {
+            this.inputForm.signatureAnnotator2 = ''
+            this.$refs.userSelect2.changeNameValue('')
+            this.$refs.userSelect2.clearSelectData()
+            this.$forceUpdate()
+          })
+        } else {
+          this.inputForm.signatureAnnotator2 = value
+        }
+      },
+      init (method, id) {
+        this.visible = true
+        this.activeName = 'archiveFile'
+        this.projectRecordsService = new ProjectRecordsService()
+        this.projectReportService = new ProjectReportService()
+        this.method = method
+        if (method === 'add') {
+          this.title = '报告信息添加'
+          this.method = method
+        }
+        this.inputForm = {
+          servedUnitId: '',  // 被服务单位id
+          opinionType: '',
+          reportNo: '',
+          reportNumber: '',
+          reportType: '',
+          businessType: '',
+          auditBusinessType: '',
+          reportDate: '',
+          servedUnitName: '', // 被服务单位
+          registerAddress: '',
+          securityBusiness: '否',
+          businessLocation: '',
+          auditFees: '',
+          projectId: '',
+          id: '',
+          createDate: '',
+          createBy: {
+            id: '',
+            name: JSON.parse(localStorage.getItem('user')).name
+          },
+          remarks: '',
+          documentNo: '',
+          projectName: '',
+          officeId: '',
+          projectNumber: '',
+          signatureAnnotator1: '',
+          signatureAnnotator2: '',
+          signatureType: '',
+          projectMasterName: '',
+          cwProjectInfoList: [],
+          realCreate: ''
+        }
+        this.inputForm.id = id
+        this.loading = false
+        this.$nextTick(() => {
+          if (this.commonJS.isEmpty(this.inputForm.createDate)) {
+            this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
+          }
+          if (this.commonJS.isEmpty(this.inputForm.officeId)) {
+            this.inputForm.officeId = JSON.parse(localStorage.getItem('user')).officeDTO.id
+          }
+          if (this.commonJS.isEmpty(this.inputForm.realCreate)) {
+            this.inputForm.realCreate = JSON.parse(localStorage.getItem('user')).id
+          }
+          this.$refs.archiveFile.clearUpload()
+          // this.$refs.inputForm.resetFields()
+          // this.loading = true
+          /* this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
+            this.inputForm.status = data.status
+            console.log('this.inputForm.servedUnitName', data)
+            this.inputForm = this.recover(this.inputForm, data)
+            this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
+            if (this.commonJS.isEmpty(this.inputForm.createDate)) {
+              this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
+            }
+            if (this.commonJS.isEmpty(this.inputForm.officeId)) {
+              this.inputForm.officeId = JSON.parse(localStorage.getItem('user')).officeDTO.id
+            }
+            if (this.commonJS.isEmpty(this.inputForm.realCreate)) {
+              this.inputForm.realCreate = JSON.parse(localStorage.getItem('user')).id
+            }
+            if (this.status === 'audit' || this.status === 'taskFormDetail') {
+              this.method = 'view'
+            }
+            this.$refs.archiveFile.newUpload(this.method, data.cwFileInfoList, 'cwWorkContract', null, null, null, null, false)
+            this.loading = false
+          }) */
+        })
+      },
+      openContractForm () {
+        if (!this.commonJS.isEmpty(this.inputForm.contractId)) {
+          // this.$refs.projectInfoForm.init(this.inputForm.contractId)
+          this.$refs.projectRecoredChooseCom.init(this.inputForm.contractId)
+        } else {
+          this.$refs.projectRecoredChooseCom.init()
+          // this.$refs.projectInfoForm.init()
+        }
+      },
+      getContract (row) {
+        // console.log('row', row)
+        this.inputForm.projectName = row.projectName // 项目名称
+        this.inputForm.projectId = row.id // 项目id
+        this.inputForm.projectNumber = row.projectNumber // 项目编号
+        this.inputForm.projectMasterName = row.projectMasterName // 项目经理
+        this.clearClientList()
+        this.$forceUpdate()
+        this.inputForm.cwProjectInfoList = []
+      },
+      clearClientList () {
+        // 项目直接对接联系人列表清除
+        this.inputForm.clientList = []
+        this.$forceUpdate()
+      },
+      /* saveForm (callback) {
+        this.doSubmit('save', callback)
+      },
+      startForm (callback) {
+        this.doSubmit('start', callback)
+      }, */
+      /* reapplyForm (callback) {
+        this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
+          if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
+            this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+            throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+          } else {
+            this.doSubmit('reapply', callback)
+          }
+        })
+      }, */
+      /* async agreeForm (callback) {
+        await this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
+          // console.log('进来了看看data', data)
+          if (data.status !== '2') { // 审核状态不是“待审核”,就弹出提示
+            this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+            throw new Error()
+          } else {
+            this.doSubmit('agree', callback)
+          }
+        })
+      }, */
+      // 表单提交
+      doSubmit (status, callback) {
+        if (status === 'save') {
+          // 暂存
+          this.inputForm.status = '5'
+          this.loading = true
+          this.$refs['inputForm'].validate((valid) => {
+            if (valid) {
+              console.log('进来了2')
+              this.loading = true
+              let _this = this
+              let _num = 0
+              const wait = function () {
+                return new Promise((resolve, reject) => {
+                  _this.$refs.archiveFile.getDataList().then((data) => {
+                    _this.inputForm.cwFileInfoList = data
+                    if (_this.commonJS.isNotEmpty(_this.inputForm.cwFileInfoList)) {
+                      _this.inputForm.cwFileInfoList.forEach((item, index) => {
+                        if (_this.commonJS.isEmpty(item.fileType)) {
+                          _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
+                          _num = 1
+                          _this.loading = false
+                          throw new Error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
+                        } else if (_this.commonJS.isEmpty(item.sealType)) {
+                          _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
+                          _num = 1
+                          _this.loading = false
+                          throw new Error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
+                        }
+                      })
+                    } else {
+                      _this.$message.error('最少有一条签章文件数据!')
+                      _num = 1
+                      _this.loading = false
+                    }
+                  })
+                  resolve()
+                })
+              }
+              wait().then(() => {
+                if (_num !== 1) {
+                  if (this.commonJS.isEmpty(this.inputForm.createDate)) {
+                    this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
+                  }
+                  if (status === 'agree' && this.commonJS.isEmpty(this.inputForm.opinionType)) {
+                    this.$message.error('意见类型不能为空')
+                    this.loading = false
+                    throw new Error('意见类型不能为空')
+                  }
+                  this.projectReportService.saveForm(this.inputForm).then(({data}) => {
+                    callback(data.businessTable, data.businessId, this.inputForm)
+                    this.close()
+                    this.loading = false
+                  }).catch(() => {
+                    this.close()
+                    this.loading = false
+                  })
+                }
+              })
+            } else {
+              this.loading = false
+            }
+          })
+          return
+        } else if (status === 'start') {
+          // 送审  待审核
+          this.inputForm.status = '2'
+        } else if (status === 'agree') {
+          // 审核同意
+          this.inputForm.agreeDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
+          this.inputForm.agreeUserId = this.$store.state.user.id
+          this.inputForm.status = '5'
+        } else if (status === 'reapply') {
+          this.inputForm.status = '2'
+        }
+        this.$refs['inputForm'].validate((valid) => {
+          if (valid) {
+            this.loading = true
+            let _this = this
+            let _num = 0
+            const wait = function () {
+              return new Promise((resolve, reject) => {
+                _this.$refs.archiveFile.getDataList().then((data) => {
+                  _this.inputForm.cwFileInfoList = data
+                  if (_this.commonJS.isNotEmpty(_this.inputForm.cwFileInfoList)) {
+                    _this.inputForm.cwFileInfoList.forEach((item, index) => {
+                      if (_this.commonJS.isEmpty(item.fileType)) {
+                        _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
+                        _num = 1
+                        _this.loading = false
+                        throw new Error('签章文件中,第' + (index + 1) + '条数据的“文件类型”未填写')
+                      } else if (_this.commonJS.isEmpty(item.sealType)) {
+                        _this.$message.error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
+                        _num = 1
+                        _this.loading = false
+                        throw new Error('签章文件中,第' + (index + 1) + '条数据的“盖章类型”未填写')
+                      }
+                    })
+                  } else {
+                    _this.$message.error('最少有一条签章文件数据!')
+                    _num = 1
+                    _this.loading = false
+                  }
+                })
+                resolve()
+              })
+            }
+            wait().then(() => {
+              if (_num !== 1) {
+                if (this.commonJS.isEmpty(this.inputForm.createDate)) {
+                  this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
+                }
+                if (status === 'agree' && this.commonJS.isEmpty(this.inputForm.opinionType)) {
+                  this.$message.error('意见类型不能为空')
+                  this.loading = false
+                  throw new Error('意见类型不能为空')
+                }
+                this.projectReportService.saveForm(this.inputForm).then(({data}) => {
+                  callback(data.businessTable, data.businessId, this.inputForm)
+                  this.loading = false
+                }).catch(() => {
+                  this.loading = false
+                })
+              }
+            })
+          }
+        })
+      },
+      /* async updateStatusById (type, callback) {
+        if (await this.$refs.archiveFile.checkProgress()) {
+          this.loading = false
+          throw new Error()
+        } else {
+          if (type === 'reject' || type === 'reback') {
+            await this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
+              if (data.status !== '2') { // status的值不等于“审核中”就弹出提示
+                this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+                throw new Error()
+              } else {
+                if (type === 'reject') {
+                  // 驳回
+                  this.inputForm.status = '4'
+                  let param = {status: '4', id: this.inputForm.id}
+                  this.projectReportService.updateStatusById(param).then(() => {
+                    callback()
+                  })
+                  // this.projectRecordsService.updateStatusById(param)
+                }
+                if (type === 'reback') {
+                  // 撤回
+                  let param = {status: '3', id: this.inputForm.id}
+                  // this.projectRecordsService.updateStatusById(param)
+                  this.projectReportService.updateStatusById(param)
+                }
+              }
+            })
+          } else if (type === 'hold') {
+            this.projectReportService.queryById(this.inputForm.id).then(({data}) => {
+              if (data.status !== '4') { // status的值不等于“驳回”就弹出提示
+                this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+                throw new Error()
+              } else {
+                // 终止
+                let param = {status: '1', id: this.inputForm.id}
+                this.projectReportService.updateStatusById(param).then(() => {
+                  callback()
+                })
+              }
+            })
+          }
+        }
+      }, */
+      close () {
+        this.inputForm = {
+          id: '',
+          createDate: '',
+          createBy: {
+            id: '',
+            name: JSON.parse(localStorage.getItem('user')).name
+          },
+          remarks: '',
+          documentNo: '',
+          projectName: '',
+          officeId: '',
+          projectNumber: '',
+          signatureAnnotator1: '',
+          signatureAnnotator2: '',
+          signatureType: '',
+          projectMasterName: '',
+          realCreate: ''
+        }
+        this.$refs.archiveFile.clearUpload()
+        this.$refs.inputForm.resetFields()
+        this.visible = false
+      },
+      tabHandleClick (event) {
+        // console.log(event)
+      },
+      // 删除
+      removeEvent (row, rowIndex, type) {
+        if (type === 'client') {
+          // this.$refs.clientTable.remove(row)
+          // this.inputForm.cwProjectInfoList.splice(rowIndex, 1)
+        }
+      },
+      openWorkClient () {
+        this.$refs.reportServiceUnitForm.init(this.inputForm.projectId)
+      },
+      getWorkClientChoose (row) {
+        this.inputForm.servedUnitName = row.name
+        this.inputForm.servedUnitId = row.id
+        this.inputForm.sealType = '未盖章'
+        // this.tableKeyClient = Math.random()
+      },
+      // 两位小数数字验证
+      twoDecimalPlaces (num) {
+        let str = num.toString()
+        var len1 = str.substr(0, 1)
+        var len2 = str.substr(1, 1)
+        // eslint-disable-next-line eqeqeq
+        if (str.length > 1 && len1 == 0 && len2 != '.') {
+          str = str.substr(1, 1)
+        }
+        // eslint-disable-next-line eqeqeq
+        if (len1 == '.') {
+          str = ''
+        }
+        // eslint-disable-next-line eqeqeq
+        if (str.indexOf('.') != -1) {
+          var str_ = str.substr(str.indexOf('.') + 1)
+          // eslint-disable-next-line eqeqeq
+          if (str_.indexOf('.') != -1) {
+            str = str.substr(0, str.indexOf('.') + str_.indexOf('.') + 1)
+          }
+          if (str_.length > 2) {
+            this.$message.warning(`金额小数点后只能输入两位,请正确输入!`)
+            return (str = '')
+          }
+        }
+        // eslint-disable-next-line no-useless-escape
+        str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
+        return str
+      }
+    }
+  }
+</script>
+<style scoped>
+  /deep/ .el-input-number .el-input__inner {
+    text-align: left;
+  }
+</style>

+ 245 - 20
src/views/modules/cw/reportManagement/ReportManagementForm.vue

@@ -114,7 +114,6 @@
                   <UserSelect size="medium" ref="userSelect1" :disabled="method === 'view'" :readonly="true" :limit='10' :value="inputForm.signatureAnnotator1" @getValue='(value) => {changeSignatory1(value)}'></UserSelect>
                 </el-form-item>
               </el-col>
-
               <el-col v-if="inputForm.signatureType === '2'" :span="12">
                 <el-form-item label="签字注师2" prop="signatureAnnotator2"
                               :rules="[
@@ -125,10 +124,10 @@
                 </el-form-item>
               </el-col>
               <el-col :span="12">
-                <el-form-item label="审计收费(元)" prop="auditFees"
+                <el-form-item label="审计收费(税前、元)" prop="auditFees"
                               :rules="[
                    ]">
-                  <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(元)" clearable
+                  <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(税前、元)" clearable
                             @keyup.native="inputForm.auditFees = twoDecimalPlaces(inputForm.auditFees)"
                   ></el-input>
                 </el-form-item>
@@ -157,7 +156,7 @@
                               :rules="[
                             {required: true, message:'被服务单位不能为空', trigger:'blur'}
                    ]">
-                  <el-input @focus="openWorkClient()" v-model="inputForm.servedUnitName" placeholder="请填写被服务单位" clearable>
+                  <el-input :disabled="true" :readonly="true" @focus="openWorkClient()" v-model="inputForm.servedUnitName" placeholder="请填写被服务单位" clearable>
                     <el-button slot="append" icon="el-icon-search" @click="openWorkClient()"></el-button>
                   </el-input>
                 </el-form-item>
@@ -165,9 +164,9 @@
               <el-col :span="12">
                 <el-form-item label="报告日期" prop="reportDate"
                               :rules="[
-                            {required: true, message:'报告日期不能为空', trigger:'blur'}
                    ]">
                   <el-date-picker
+                    :disabled="true"
                     placement="bottom-start"
                     value-format="yyyy-MM-dd"
                     v-model="inputForm.reportDate"
@@ -177,11 +176,26 @@
                 </el-form-item>
               </el-col>
               <el-col :span="12">
+                <el-form-item label="业务类型" prop="businessType"
+                              :rules="[
+                            {required: true, message:'业务类型不能为空', trigger:'blur'}
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.businessType" placeholder="请选择业务类型" style="width:100%;">
+                    <el-option
+                      v-for="item in $dictUtils.getDictList('cw_business_type')"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
                 <el-form-item label="报告类型" prop="reportType"
                               :rules="[
                             {required: true, message:'报告类型不能为空', trigger:'blur'}
                    ]">
-                  <el-select v-model="inputForm.reportType" placeholder="请选择报告类型" style="width:100%;">
+                  <el-select :disabled="true" v-model="inputForm.reportType" placeholder="请选择报告类型" style="width:100%;">
                     <el-option
                       v-for="item in $dictUtils.getDictList('cw_report_type')"
                       :key="item.value"
@@ -205,14 +219,118 @@
                   <el-input :disabled="true" v-model="inputForm.reportNo" placeholder="自动生成" clearable></el-input>
                 </el-form-item>
               </el-col>
+              <!--<el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"  :disabled="status !== 'audit' && status !== 'taskFormDetail'"
+                       label-width="135px" @submit.native.prevent>
+                <el-col :span="12">
+                  <el-form-item label="意见类型" prop="opinionType"
+                                :rules="[
+                                  {required: true, message:'意见类型不能为空', trigger:'blur'}
+                         ]">
+                    <el-select v-model="inputForm.opinionType" placeholder="请选择意见类型" style="width:100%;">
+                      <el-option
+                        v-for="item in $dictUtils.getDictList('cw_opinion_type')"
+                        :key="item.value"
+                        :label="item.label"
+                        :value="item.value">
+                      </el-option>
+                    </el-select>
+                  </el-form-item>
+                </el-col>
+              </el-form>-->
               <el-col :span="12">
-                <el-form-item label="意见类型" prop="opinionType"
+                <el-form-item label="盖章状态" prop="sealType"
+                              :rules="[
+                   ]">
+                  <el-input :disabled="true" v-model="inputForm.sealType" placeholder="请填写盖章状态" clearable></el-input>
+                </el-form-item>
+              </el-col>
+
+            </el-row>
+            <el-divider content-position="left"><i class="el-icon-document"></i> 其他信息</el-divider>
+            <el-row  :gutter="0">
+              <el-col :span="12" v-if="inputForm.businessType === '1'">
+                <el-form-item label="审计业务类型" prop="auditBusinessType" :edit-render="{name: '$select', options: $dictUtils.getDictList('cw_audit_business_type1')}"
+                              :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                    <el-option
+                      v-for="item in $dictUtils.getDictList('cw_audit_business_type1')"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12" v-if="inputForm.businessType === '2'">
+                <el-form-item label="审计业务类型" prop="auditBusinessType" :edit-render="{name: '$select', options: $dictUtils.getDictList('cw_audit_business_type2')}"
+                              :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                    <el-option
+                      v-for="item in $dictUtils.getDictList('cw_audit_business_type2')"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12" v-if="inputForm.businessType === '3'">
+                <el-form-item label="审计业务类型" prop="auditBusinessType" :edit-render="{name: '$select', options: $dictUtils.getDictList('cw_audit_business_type3')}"
                               :rules="[
-                            {required: true, message:'意见类型不能为空', trigger:'change'}
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
                    ]">
-                  <el-select v-model="inputForm.opinionType" placeholder="请选择意见类型" style="width:100%;">
+                  <el-select :disabled="true" v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
                     <el-option
-                      v-for="item in $dictUtils.getDictList('cw_opinion_type')"
+                      v-for="item in $dictUtils.getDictList('cw_audit_business_type3')"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12" v-if="inputForm.businessType === '4'">
+                <el-form-item label="审计业务类型" prop="auditBusinessType" :edit-render="{name: '$select', options: $dictUtils.getDictList('cw_audit_business_type4')}"
+                              :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                    <el-option
+                      v-for="item in $dictUtils.getDictList('cw_audit_business_type4')"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12" v-if="inputForm.businessType === '5'">
+                <el-form-item label="审计业务类型" prop="auditBusinessType" :edit-render="{name: '$select', options: $dictUtils.getDictList('cw_audit_business_type5')}"
+                              :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                    <el-option
+                      v-for="item in $dictUtils.getDictList('cw_audit_business_type5')"
+                      :key="item.value"
+                      :label="item.label"
+                      :value="item.value">
+                    </el-option>
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12" v-if="inputForm.businessType === '6'" :edit-render="{name: '$select', options: $dictUtils.getDictList('cw_audit_business_type6')}">
+                <el-form-item label="审计业务类型" prop="auditBusinessType"
+                              :rules="[
+                            {required: true, message:'审计业务类型不能为空', trigger:'blur'}
+                   ]">
+                  <el-select :disabled="true" v-model="inputForm.auditBusinessType" placeholder="请选择审计业务类型" style="width:100%;">
+                    <el-option
+                      v-for="item in $dictUtils.getDictList('cw_audit_business_type6')"
                       :key="item.value"
                       :label="item.label"
                       :value="item.value">
@@ -221,10 +339,102 @@
                 </el-form-item>
               </el-col>
               <el-col :span="12">
-                <el-form-item label="盖章状态" prop="sealType"
+                <el-form-item label="公司注册地址" prop="registerAddress"
                               :rules="[
                    ]">
-                  <el-input :disabled="true" v-model="inputForm.sealType" placeholder="请填写盖章状态" clearable></el-input>
+                  <el-input :disabled="true" v-model="inputForm.servedUnitName" placeholder="请填写公司注册地址" clearable>
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="业务所在地" prop="businessLocation"
+                              :rules="[
+                   ]">
+                  <el-input :disabled="true" v-model="inputForm.businessLocation" placeholder="请填写业务所在地" clearable>
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="是否数据证券业务" prop="securityBusiness"
+                              :rules="[
+                   ]">
+                  <el-input :disabled="true" v-model="inputForm.securityBusiness" placeholder="请填写是否数据证券业务" clearable>
+                  </el-input>
+                </el-form-item>
+              </el-col>
+            </el-row>
+            <el-divider content-position="left"><i class="el-icon-document"></i> 报告审核信息</el-divider>
+            <el-row  :gutter="15">
+              <el-col :span="12">
+                <el-form-item label="报告类型及标题" prop="reportTitleType"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.reportTitleType" placeholder="请填写报告类型及标题"></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="报告编号" prop="reportNo"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" :disabled="true" v-model="inputForm.reportNo" placeholder="自动生成">
+                    <!--                  <el-button slot="append" icon="el-icon-search" @click="openContractForm()"></el-button>-->
+                  </el-input>
+                </el-form-item>
+              </el-col>
+
+              <el-col :span="12">
+                <el-form-item label="创建人" prop="userName"
+                              :rules="[
+                   ]">
+                  <el-input :disabled="true" v-model="inputForm.userName" placeholder="请填写创建人" clearable></el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="本报告共印份数" prop="allPrintNum"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.allPrintNum" placeholder="请输入本报告共印份数">
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="发出份数" prop="issueNum"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.issueNum" placeholder="请输入发出份数">
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="存档份数" prop="placeOnFileNum"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.placeOnFileNum" placeholder="请输入发出份数">
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="打印人签名" prop="printedBy"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.printedBy" placeholder="请输入打印人签名">
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="校对人签名" prop="checkAutograph"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.checkAutograph" placeholder="请输入校对人签名">
+                  </el-input>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="计算机文号" prop="computerNo"
+                              :rules="[
+                   ]">
+                  <el-input size="medium" v-model="inputForm.computerNo" placeholder="请输入校对人签名">
+                  </el-input>
                 </el-form-item>
               </el-col>
             </el-row>
@@ -336,8 +546,8 @@
                 </el-form>
               </el-row>
             </el-tab-pane>-->
-            <el-tab-pane label="件" name="archiveFile">
-              <!--        件-->
+            <el-tab-pane label="签章文件" name="archiveFile">
+              <!--        签章文件-->
               <UpLoadComponent ref="archiveFile"></UpLoadComponent>
             </el-tab-pane>
             <el-tab-pane label="已签章附件" name="signatureFile">
@@ -436,6 +646,7 @@
 
 <script>
   import UpLoadComponent2 from '@/views/common/UpLoadComponent'
+  import ReportReviewService from '@/api/cw/reportManagement/ReportReviewService'
   import UpLoadComponent from '@/views/common/UpLoadComponentV2.1'
   import SelectUserTree from '@/views/modules/utils/treeUserSelect'
   import SelectTree from '@/components/treeSelect/treeSelect.vue'
@@ -469,13 +680,22 @@
         method: '',
         loading: false,
         inputForm: {
-          opinionType: '',
-          reportNo: '',
+          reviewStatus: '',
+          taskName: '',
+          sealType: '',
           reportNumber: '',
           reportType: '',
+          businessType: '',
+          auditBusinessType: '',
           reportDate: '',
           servedUnitName: '', // 被服务单位
+          registerAddress: '',
+          securityBusiness: '',
+          businessLocation: '',
           auditFees: '',
+          userName: '',
+          opinionType: '',
+          reportNo: '',
           projectId: '',
           id: '',
           createDate: '',
@@ -507,10 +727,12 @@
         visible: false
       }
     },
+    ReportReviewService: null,
     projectRecordsService: null,
     enterpriseSearchService: null,
     projectReportService: null,
     created () {
+      this.reportReviewService = new ReportReviewService()
       this.enterpriseSearchService = new EnterpriseSearchService()
       this.projectReportService = new ProjectReportService()
       this.projectRecordsService = new ProjectRecordsService()
@@ -580,6 +802,7 @@
           this.method = 'view'
         }
         this.activeName = 'archiveFile'
+        this.reportReviewService = new ReportReviewService()
         this.projectRecordsService = new ProjectRecordsService()
         this.projectReportService = new ProjectReportService()
         this.method = method
@@ -598,7 +821,8 @@
             id: '',
             name: JSON.parse(localStorage.getItem('user')).name
           },
-          remarks: '',
+          reviewStatus: '',
+          taskName: '',
           documentNo: '',
           projectName: '',
           projectNumber: '',
@@ -718,9 +942,10 @@
           this.$refs.archiveFile.getDataList().then((data) => {
             this.inputForm.cwFileInfoList = data
           })
-          this.$refs.signatureFile.getDataList().then((data) => {
-            this.inputForm.signatureFileList = data
-          })
+          // this.$refs.signatureFile.getDataList().then((data) => {
+          //   this.inputForm.signatureFileList = data
+          // })
+          this.reportReviewService.save(this.inputForm)
           this.projectReportService.saveForm(this.inputForm).then(({data}) => {
             // callback(data.businessTable, data.businessId, this.inputForm)
             this.close()

+ 114 - 50
src/views/modules/cw/reportManagement/ReportManagementList.vue

@@ -40,7 +40,7 @@
       <el-form-item label="报告文号" prop="reportNo">
         <el-input size="small" v-model="searchForm.reportNo" placeholder="请输入报告文号" clearable></el-input>
       </el-form-item>
-      <el-form-item label="审计收费(元)" prop="contractAmounts">
+      <el-form-item label="审计收费(税前、元)" prop="contractAmounts">
         <InputNumber :disabled="false" :precision="num" v-model="searchForm.contractAmounts"></InputNumber>
       </el-form-item>
       <el-form-item label="创建时间" prop="contractDates">
@@ -110,11 +110,11 @@
 <!--          <vxe-column min-width="160" align="center" title="报告主办人" field="reportSponsor"></vxe-column>-->
           <vxe-column min-width="160" align="center" title="创建人" field="userName"></vxe-column>
           <vxe-column min-width="160" align="center" title="创建时间" field="createDate"></vxe-column>
-          <vxe-column  min-width="150px"align="center" fixed="right" title="状态" field="status" >
+          <vxe-column  min-width="150px"align="center" fixed="right" title="复核状态" field="reviewStatus" >
             <template slot-scope="scope">
               <el-button  type="text" @click="detail(scope.row)" effect="dark" size="mini"
-                          :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status, '-')">
-                {{$dictUtils.getDictLabel("cw_status", scope.row.status, '-')}}
+                          :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.reviewStatus, '-')">
+                {{$dictUtils.getDictLabel("cw_status", scope.row.reviewStatus, '-')}}
               </el-button>
             </template>
           </vxe-column>
@@ -133,11 +133,14 @@
 
           <vxe-column title="操作" width="150px" fixed="right" align="center">
             <template  slot-scope="scope">
-              <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3')" type="text"  size="small" @click="push(scope.row)">修改</el-button>
+              <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='5')" type="text"  size="small" @click="edit(scope.row.id)">修改</el-button>
               <el-button v-else-if="hasPermission('cwProjectReport:edit')&&isAdmin&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='5')" type="text"  size="small" @click="edit(scope.row.id)">修改</el-button>
-              <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&scope.row.status==='2'" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
-              <el-button v-if="hasPermission('cwProjectReport:del')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>
+<!--              <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&scope.row.status==='2'" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>-->
+<!--              <el-button v-if="hasPermission('cwProjectReport:del')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>-->
               <el-button v-else-if="hasPermission('cwProjectReport:del')&&isAdmin&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='5')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>
+<!--              复核流程-->
+              <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& (scope.row.reviewStatus === '0' || scope.row.reviewStatus === '3' || scope.row.reviewStatus === '4' || scope.row.reviewStatus === undefined)" type="text" size="small" @click="pushF(scope.row)">复核</el-button>
+              <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5'&& scope.row.reviewStatus === '2'" type="text" size="small" @click="rebackF(scope.row)">撤回复核申请</el-button>
 <!--              公章流程-->
               <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && (scope.row.status1 === '0' || scope.row.status1 === '3' || scope.row.status1 === '4')" type="text" size="small" @click="pushS(scope.row)">公章</el-button>
               <el-button v-if="hasPermission('cw:workContract:filed') && scope.row.status === '5' && scope.row.signatureType === '1' && scope.row.status1 === '2'" type="text" size="small" @click="rebackS(scope.row)">撤回签章申请</el-button>
@@ -160,6 +163,7 @@
       </div>
     </div>
     <ReportManagementForm ref="reportManagementForm"></ReportManagementForm>
+    <ReportManagementAddForm ref="reportManagementAddForm"></ReportManagementAddForm>
   </div>
 </template>
 
@@ -167,9 +171,11 @@
   import InputNumber from '@/views/modules/cw/workContract/InputNumber.vue'
   import WorkClientService from '@/api/cw/workClientInfo/WorkClientService'
   import ProjectReportService from '@/api/cw/reportManagement/ProjectReportService'
+  import ReportReviewService from '@/api/cw/reportManagement/ReportReviewService'
   import TaskService from '@/api/flowable/TaskService'
   import ProcessService from '@/api/flowable/ProcessService'
   import ReportManagementForm from './ReportManagementForm'
+  import ReportManagementAddForm from './ReportManagementAddForm'
   import pick from 'lodash.pick'
   import UserService from '@/api/sys/UserService'
   import SelectUserTree from '@/views/modules/utils/treeUserSelect'
@@ -207,18 +213,21 @@
     },
     workClientService: null,
     projectReportService: null,
+    reportReviewService: null,
     taskService: null,
     processService: null,
     userService: null,
     created () {
       this.workClientService = new WorkClientService()
       this.projectReportService = new ProjectReportService()
+      this.reportReviewService = new ReportReviewService()
       this.taskService = new TaskService()
       this.processService = new ProcessService()
       this.userService = new UserService()
     },
     components: {
       ReportManagementForm,
+      ReportManagementAddForm,
       SelectUserTree,
       InputNumber
     },
@@ -291,7 +300,7 @@
           this.loading = false
         })
         this.checkIsAdmin()
-        this.processService.getByName('财务-报告质控管理员审核').then(({data}) => {
+        this.processService.getByName('财务-报告核').then(({data}) => {
           if (!this.commonJS.isEmpty(data.id)) {
             this.processDefinitionAuditId = data.id
             this.procDefAuditKey = data.key
@@ -352,8 +361,9 @@
         this.refreshList()
       },
       start () {
+        this.$refs.reportManagementAddForm.init('add')
         // 读取流程表单
-        let tabTitle = `发起流程【报告质控审核】`
+        /* let tabTitle = `发起流程【报告质控审核】`
         let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [报告质控审核]`
         this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
           status: 'startAndHold'}).then((data) => {
@@ -373,7 +383,7 @@
                 routePath: '/cw/reportManagement/ReportManagementList'
               }
             })
-          })
+          }) */
       },
       // 发起客户登记
       push (row) {
@@ -408,12 +418,12 @@
             })
           })
       },
-      // 查看客户登记流程结果
+      // 查看报告复核流程结果
       detail (row) {
         if (row.status !== '0' && row.status !== '1') {
           // eslint-disable-next-line eqeqeq
           this.taskService.getTaskDef({
-            procInsId: row.procInsId,
+            procInsId: row.procInsId3,
             procDefId: this.processDefinitionAuditId
           }).then(({data}) => {
             this.$router.push({
@@ -422,8 +432,8 @@
                 ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
                 isShow: 'false',
                 readOnly: true,
-                title: '质控管理' + '流程详情',
-                formTitle: '质控管理' + '流程详情',
+                title: '报告复核' + '流程详情',
+                formTitle: '报告复核' + '流程详情',
                 businessId: row.id,
                 status: 'reback'
               }
@@ -432,41 +442,41 @@
         }
       },
       // 撤回报告流程
-      reback (row) {
-        this.$confirm(`确定要撤回该申请吗?`, '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(async () => {
-          await this.projectReportService.queryById(row.id).then(({data}) => {
-            if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
-              this.$message.error('数据已发生改变或不存在,请刷新数据')
-              this.refreshList()
-            } else {
-              this.processService.revokeProcIns(row.procInsId).then(({data}) => {
-                let form = {status: '3', id: row.id}
-                // this.workClientService.updateStatusById(form)
-                this.projectReportService.updateStatusById(form)
-                this.$message.success(data)
-                this.refreshList()
-              })
-            }
-          })
-          // await this.workClientService.queryById(row.id).then(({data}) => {
-          //   if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
-          //     this.$message.error('数据已发生改变或不存在,请刷新数据')
-          //     this.refreshList()
-          //   } else {
-          //     this.processService.revokeProcIns(row.procInsId).then(({data}) => {
-          //       let form = {status: '3', id: row.id}
-          //       this.workClientService.updateStatusById(form)
-          //       this.$message.success(data)
-          //       this.refreshList()
-          //     })
-          //   }
-          // })
-        })
-      },
+      // reback (row) {
+      //   this.$confirm(`确定要撤回该申请吗?`, '提示', {
+      //     confirmButtonText: '确定',
+      //     cancelButtonText: '取消',
+      //     type: 'warning'
+      //   }).then(async () => {
+      //     await this.projectReportService.queryById(row.id).then(({data}) => {
+      //       if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
+      //         this.$message.error('数据已发生改变或不存在,请刷新数据')
+      //         this.refreshList()
+      //       } else {
+      //         this.processService.revokeProcIns(row.procInsId).then(({data}) => {
+      //           let form = {status: '3', id: row.id}
+      //           // this.workClientService.updateStatusById(form)
+      //           this.projectReportService.updateStatusById(form)
+      //           this.$message.success(data)
+      //           this.refreshList()
+      //         })
+      //       }
+      //     })
+      //     // await this.workClientService.queryById(row.id).then(({data}) => {
+      //     //   if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
+      //     //     this.$message.error('数据已发生改变或不存在,请刷新数据')
+      //     //     this.refreshList()
+      //     //   } else {
+      //     //     this.processService.revokeProcIns(row.procInsId).then(({data}) => {
+      //     //       let form = {status: '3', id: row.id}
+      //     //       this.workClientService.updateStatusById(form)
+      //     //       this.$message.success(data)
+      //     //       this.refreshList()
+      //     //     })
+      //     //   }
+      //     // })
+      //   })
+      // },
       // 归档
       // filed (id) {
       //   this.processService.getByName('财务-合同登记归档').then(({data}) => {
@@ -499,7 +509,39 @@
       //     }
       //   })
       // }
-      // 发起报告签章-公章流程
+      // 发起复核流程
+      pushF (row) {
+        console.log('row', row)
+        // 读取流程表单
+        let title = `发起流程【报告复核】`
+        let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告复核]`
+        let status = 'startAndClose'
+        if (row.status1 === '3' || row.status1 === '4') {
+          status = 'startAndClose'
+        }
+        this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
+          businessId: row.id,
+          businessTable: 'cw_project_report_review'}).then((data) => {
+          // console.log('row', row)
+          // console.log('rowid', row.sid1)
+            this.$router.push({
+              path: '/flowable/task/TaskForm',
+              query: {
+                procDefId: this.processDefinitionAuditId,
+                procDefKey: this.procDefAuditKey,
+                title: title,
+                formType: data.data.formType,
+                formUrl: data.data.formUrl,
+                formTitle: processTitle,
+                businessTable: 'cw_project_report_review',
+                businessId: row.id,
+                isShow: 'false',
+                status: status,
+                routePath: '/cw/reportManagement/ReportManagementList'
+              }
+            })
+          })
+      },
       pushS (row) {
         // 读取流程表单
         let title = `发起流程【报告签章-公章】`
@@ -554,6 +596,28 @@
           })
         }
       },
+      // 撤回报告复核
+      rebackF (row) {
+        this.$confirm(`确定要撤回该申请吗?`, '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }).then(async () => { // 需要修改row.sid1
+          await this.reportReviewService.queryByReportId(row.id).then(({data}) => {
+            if (data.reviewStatus !== '2') { // status的值不等于“审核中”,就弹出提示
+              this.$message.error('数据已发生改变或不存在,请刷新数据')
+              this.refreshList()
+            } else {
+              this.processService.revokeProcIns(row.procInsId3).then(({data}) => {
+                let form = {reviewStatus: '3', id: row.id}
+                this.reportReviewService.updateReviewStatysByReportId(form)
+                this.$message.success(data)
+                this.refreshList()
+              })
+            }
+          })
+        })
+      },
       // 撤回报告签章-公章的申请流程
       rebackS (row) {
         this.$confirm(`确定要撤回该申请吗?`, '提示', {

+ 2 - 2
src/views/modules/cw/reportManagement/ReportManagementSignatureForm.vue

@@ -118,10 +118,10 @@
           </el-col>
 
           <el-col :span="12">
-            <el-form-item label="审计收费(元)" prop="auditFees"
+            <el-form-item label="审计收费(税前、元)" prop="auditFees"
                           :rules="[
                    ]">
-              <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(元)" clearable></el-input>
+              <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(税前、元)" clearable></el-input>
             </el-form-item>
           </el-col>
 

+ 2 - 2
src/views/modules/cw/reportManagement/ReportManagementTaskForm.vue

@@ -118,10 +118,10 @@
           </el-col>
 
           <el-col :span="12">
-            <el-form-item label="审计收费(元)" prop="auditFees"
+            <el-form-item label="审计收费(税前、元)" prop="auditFees"
                           :rules="[
                    ]">
-              <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(元)" clearable
+              <el-input v-model="inputForm.auditFees" placeholder="请填写审计收费(税前、元)" clearable
                         @keyup.native="inputForm.auditFees = twoDecimalPlaces(inputForm.auditFees)"
               ></el-input>
             </el-form-item>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 791 - 80
src/views/modules/cw/reportManagement/reportReview/ReportReviewForm.vue


+ 0 - 420
src/views/modules/cw/reportManagement/reportReview/ReportReviewList.vue

@@ -1,420 +0,0 @@
-<template>
-  <div class="page">
-    <el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @keyup.enter.native="refreshList()" @submit.native.prevent>
-      <!-- 搜索框-->
-      <el-form-item label="项目编号" prop="projectNumber">
-        <el-input size="small" v-model="searchForm.projectNumber" placeholder="请输入项目编号" clearable></el-input>
-      </el-form-item>
-      <el-form-item label="项目名称" prop="projectName">
-        <el-input size="small" v-model="searchForm.projectName" placeholder="请输入项目名称" clearable></el-input>
-      </el-form-item>
-      <el-form-item label="项目经理" prop="projectMasterId">
-        <SelectUserTree
-          ref="companyTree"
-          :props="{
-                  value: 'id',             // ID字段名
-                  label: 'name',         // 显示名称
-                  children: 'children'    // 子级字段名
-                }"
-          :url="`/sys/user/treeUserDataAllOffice?type=2`"
-          :value="searchForm.projectMasterId"
-          :clearable="true"
-          :accordion="true"
-          @getValue="(value) => {searchForm.projectMasterId=value}"/>
-        <!--        <el-input size="small" v-model="searchForm.projectMaster" placeholder="请输入项目经理" clearable></el-input>-->
-      </el-form-item>
-      <!--      <el-form-item label="创建人" prop="createBy">-->
-      <!--        <el-input size="small" v-model="searchForm.createBy" placeholder="请输入创建人" clearable></el-input>-->
-      <!--      </el-form-item>-->
-      <el-form-item label="创建人" prop="createBy">
-        <SelectUserTree
-          ref="companyTree"
-          :props="{
-                  value: 'id',             // ID字段名
-                  label: 'name',         // 显示名称
-                  children: 'children'    // 子级字段名
-                }"
-          :url="`/sys/user/treeUserDataAllOffice?type=2`"
-          :value="searchForm.createBy"
-          :clearable="true"
-          :accordion="true"
-          @getValue="(value) => {searchForm.createBy=value}"/>
-      </el-form-item>
-      <el-form-item label="创建时间" prop="contractDates">
-        <el-date-picker
-          placement="bottom-start"
-          format="yyyy-MM-dd HH:mm:ss"
-          value-format="yyyy-MM-dd HH:mm:ss"
-          v-model="searchForm.contractDates"
-          type="datetimerange"
-          range-separator="至"
-          start-placeholder="开始日期"
-          end-placeholder="结束日期">
-        </el-date-picker>
-      </el-form-item>
-
-      <el-form-item>
-        <el-button type="primary" @click="refreshList()" size="small" icon="el-icon-search">查询</el-button>
-        <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
-      </el-form-item>
-    </el-form>
-    <div class="bg-white top" style="">
-      <vxe-toolbar :refresh="{query: refreshList}" custom>
-        <template #buttons>
-          <el-button v-if="hasPermission('cw_work_client:info:add')" type="primary" size="small" icon="el-icon-plus" @click="start()">新建</el-button>
-        </template>
-      </vxe-toolbar>
-      <div style="height: calc(100% - 90px)">
-        <vxe-table
-          :key="tableKey"
-          border="inner"
-          auto-resize
-          resizable
-          height="auto"
-          :loading="loading"
-          size="small"
-          ref="clientTable"
-          show-header-overflow
-          show-overflow
-          highlight-hover-row
-          :menu-config="{}"
-          @sort-change="sortChangeHandle"
-          :sort-config="{remote:true}"
-          :data="dataList"
-          :checkbox-config="{}">
-          <vxe-column type="seq" width="60" title="序号"></vxe-column>
-          <vxe-column min-width="160" align="center" title="单据编号" field="documentNo">
-            <template slot-scope="scope">
-              <el-link  type="primary" :underline="false" v-if="hasPermission('cwProjectReport:list')" @click="view(scope.row.id)">{{scope.row.documentNo}}</el-link>
-              <el-link  type="primary" :underline="false" v-else-if="hasPermission('cwProjectReport:list')"  @click="view(scope.row.id,)">{{scope.row.documentNo}}</el-link>
-              <span v-else>{{scope.row.documentNo}}</span>
-            </template>
-          </vxe-column>
-          <vxe-column min-width="160" align="center" title="项目编号" field="projectNumber"></vxe-column>
-          <vxe-column min-width="160" align="center" title="项目名称" field="projectName"></vxe-column>
-          <vxe-column min-width="160" align="center" title="报告所属部门" field="departmentName"></vxe-column>
-          <vxe-column min-width="160" align="center" title="项目经理" field="projectMasterName"></vxe-column>
-          <vxe-column min-width="160" align="center" title="报告主办人" field="reportSponsor"></vxe-column>
-          <vxe-column min-width="160" align="center" title="创建人" field="userName"></vxe-column>
-          <vxe-column min-width="160" align="center" title="创建时间" field="createDate"></vxe-column>
-          <vxe-column  min-width="150px"align="center" fixed="right" title="状态" field="status" >
-            <template slot-scope="scope">
-              <el-button  type="text" @click="detail(scope.row)" effect="dark" size="mini"
-                          :type="$dictUtils.getDictLabel('cw_status_flag', scope.row.status, '-')">
-                {{$dictUtils.getDictLabel("cw_status", scope.row.status, '-')}}
-              </el-button>
-            </template>
-          </vxe-column>
-
-          <vxe-column title="操作" width="150px" fixed="right" align="center">
-            <template  slot-scope="scope">
-              <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='4')" type="text"  size="small" @click="push(scope.row)">修改</el-button>
-              <el-button v-else-if="hasPermission('cwProjectReport:edit')&&isAdmin&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='4'||scope.row.status==='5')" type="text"  size="small" @click="edit(scope.row.id)">修改</el-button>
-              <el-button v-if="hasPermission('cwProjectReport:edit')&&scope.row.createById === $store.state.user.id&&scope.row.status==='2'" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
-              <el-button v-if="hasPermission('cwProjectReport:del')&&scope.row.createById === $store.state.user.id&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='4')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>
-              <el-button v-else-if="hasPermission('cwProjectReport:del')&&isAdmin&&(scope.row.status==='1'||scope.row.status==='3'||scope.row.status==='4'||scope.row.status==='5')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>
-            </template>
-          </vxe-column>
-        </vxe-table>
-        <vxe-pager
-          background
-          size="small"
-          :current-page="tablePage.currentPage"
-          :page-size="tablePage.pageSize"
-          :total="tablePage.total"
-          :page-sizes="[10, 20, 100, 1000, {label: '全量数据', value: 1000000}]"
-          :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
-          @page-change="currentChangeHandle">
-        </vxe-pager>
-      </div>
-    </div>
-    <!--    <ReportManagementForm ref="reportManagementForm"></ReportManagementForm>-->
-    <ReportCancellApplyForm ref="reportCancellApplyForm"></ReportCancellApplyForm>
-  </div>
-</template>
-
-<script>
-  import WorkClientService from '@/api/cw/workClientInfo/WorkClientService'
-  // import ProjectReportService from '@/api/cw/reportManagement/ProjectReportService'
-  import ReportCancellApplyService from '@/api/cw/reportCancellApply/ReportCancellApplyService'
-  import TaskService from '@/api/flowable/TaskService'
-  import ProcessService from '@/api/flowable/ProcessService'
-  // import ReportManagementForm from '../reportManagement/ReportManagementForm'
-  import ReportCancellApplyForm from '../../reportCancellApply/ReportCancellApplyForm'
-  import pick from 'lodash.pick'
-  import UserService from '@/api/sys/UserService'
-  import SelectUserTree from '@/views/modules/utils/treeUserSelect'
-  export default {
-    data () {
-      return {
-        searchForm: {
-          projectNumber: '',
-          projectName: '',
-          projectMasterId: '',
-          createBy: '',
-          contractDates: []
-        },
-        dataList: [],
-        tablePage: {
-          total: 0,
-          currentPage: 1,
-          pageSize: 10,
-          orders: []
-        },
-        tableKey: '',
-        loading: false,
-        processDefinitionAuditId: '',
-        procDefAuditKey: '',
-        isAdmin: false,
-        create: ''
-      }
-    },
-    workClientService: null,
-    // projectReportService: null,
-    reportCancellApplyService: null,
-    taskService: null,
-    processService: null,
-    userService: null,
-    created () {
-      this.workClientService = new WorkClientService()
-      // this.projectReportService = new ProjectReportService()
-      this.reportCancellApplyService = new ReportCancellApplyService()
-      this.taskService = new TaskService()
-      this.processService = new ProcessService()
-      this.userService = new UserService()
-    },
-    components: {
-      // ReportManagementForm
-      ReportCancellApplyForm,
-      SelectUserTree
-    },
-    computed: {
-      userName () {
-        return JSON.parse(localStorage.getItem('user')).name
-      },
-      user () {
-        this.createName = JSON.parse(localStorage.getItem('user')).name
-        return JSON.parse(localStorage.getItem('user'))
-      }
-    },
-    mounted () {
-      this.refreshList()
-    },
-    activated () {
-      this.refreshList()
-    },
-    methods: {
-      // 新增
-      add () {
-        // this.$refs.reportManagementForm.init('add', '')
-        this.$refs.reportCancellApplyForm.init('add', '')
-      },
-      // 修改
-      edit (id) {
-        id = id || this.$refs.clientTable.getCheckboxRecords().map(item => {
-          return item.id
-        })[0]
-        // this.$refs.reportManagementForm.init('edit', id)
-        this.$refs.reportCancellApplyForm.init('edit', id)
-      },
-      // 查看
-      view (id) {
-        // this.$refs.reportManagementForm.init('view', id)
-        this.$refs.reportCancellApplyForm.init('view', id)
-      },
-      // 查询当前用户是否是管理员用户
-      checkIsAdmin () {
-        this.userService.is().then(({data}) => {
-          this.isAdmin = data
-        })
-      },
-      // 获取数据列表
-      refreshList () {
-        this.loading = true
-        this.reportCancellApplyService.findList({
-          'current': this.tablePage.currentPage,
-          'size': this.tablePage.pageSize,
-          'orders': this.tablePage.orders,
-          ...this.searchForm
-        }).then(({data}) => {
-          this.dataList = data.records
-          this.tablePage.total = data.total
-          this.tableKey = Math.random()
-          this.loading = false
-        })
-        // this.projectReportService.list({
-        //   'current': this.tablePage.currentPage,
-        //   'size': this.tablePage.pageSize,
-        //   'orders': this.tablePage.orders,
-        //   ...this.searchForm
-        // }).then(({data}) => {
-        //   this.dataList = data.records
-        //   this.tablePage.total = data.total
-        //   this.tableKey = Math.random()
-        //   this.loading = false
-        // })
-        this.checkIsAdmin()
-        this.processService.getByName('财务-报告审核').then(({data}) => {
-          if (!this.commonJS.isEmpty(data.id)) {
-            this.processDefinitionAuditId = data.id
-            this.procDefAuditKey = data.key
-          }
-        })
-      },
-      // 当前页
-      currentChangeHandle ({ currentPage, pageSize }) {
-        this.tablePage.currentPage = currentPage
-        this.tablePage.pageSize = pageSize
-        this.refreshList()
-      },
-      // 排序
-      sortChangeHandle (column) {
-        this.tablePage.orders = []
-        if (column.order != null) {
-          this.tablePage.orders.push({column: this.$utils.toLine(column.property), asc: column.order === 'asc'})
-        }
-        this.refreshList()
-      },
-      // 删除
-      del (id) {
-        let ids = id || this.$refs.clientTable.getCheckboxRecords().map(item => {
-          return item.id
-        }).join(',')
-        this.$confirm(`确定删除所选项吗?`, '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          this.loading = true
-          this.reportCancellApplyService.delete(ids).then(({data}) => {
-            this.$message.success(data)
-            this.refreshList()
-            this.loading = false
-          })
-          // this.projectReportService.delete(ids).then(({data}) => {
-          //   this.$message.success(data)
-          //   this.refreshList()
-          //   this.loading = false
-          // })
-        })
-      },
-      resetSearch () {
-        this.$refs.searchForm.resetFields()
-        this.refreshList()
-      },
-      start () {
-        // 读取流程表单
-        let tabTitle = `发起流程【报告审核申请】`
-        let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [报告审核申请]`
-        this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
-          status: 'startAndHold'}).then((data) => {
-            this.$router.push({
-              path: '/flowable/task/TaskForm',
-              query: {
-                ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
-                procDefId: this.processDefinitionAuditId,
-                procDefKey: this.procDefAuditKey,
-                status: 'startAndHold',
-                title: tabTitle,
-                formType: data.data.formType,
-                formUrl: data.data.formUrl,
-                formTitle: processTitle,
-                businessId: 'false',
-                isShow: false,
-                routePath: '/cw/reportManagement/reportReview/ReportReviewList'
-              }
-            })
-          })
-      },
-      // 发起客户登记
-      push (row) {
-        // 读取流程表单
-        let title = `发起流程【报告审核申请】`
-        let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[报告审核申请]`
-        let status = 'startAndHold'
-        if (row.status === '3' || row.status === '4') {
-          status = 'startAndClose'
-        }
-        this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
-          businessId: row.id,
-          businessTable: 'cw_project_report_cancell_apply'}).then((data) => {
-            this.$router.push({
-              path: '/flowable/task/TaskForm',
-              query: {
-                ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
-                procDefId: this.processDefinitionAuditId,
-                procDefKey: this.procDefAuditKey,
-                title: title,
-                formType: data.data.formType,
-                formUrl: data.data.formUrl,
-                formTitle: processTitle,
-                businessTable: 'cw_project_report_cancell_apply',
-                businessId: row.id,
-                isShow: 'false',
-                status: status,
-                routePath: '/cw/reportManagement/reportReview/ReportReviewList'
-              }
-            })
-          })
-      },
-      // 查看客户登记流程结果
-      detail (row) {
-        if (row.status !== '0' && row.status !== '1') {
-          // eslint-disable-next-line eqeqeq
-          this.taskService.getTaskDef({
-            procInsId: row.procInsId,
-            procDefId: this.processDefinitionAuditId
-          }).then(({data}) => {
-            this.$router.push({
-              path: '/flowable/task/TaskFormDetail',
-              query: {
-                isShow: 'false',
-                readOnly: true,
-                title: '质控管理' + '流程详情',
-                formTitle: '质控管理' + '流程详情',
-                businessId: row.id,
-                status: 'reback',
-                ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'title', 'businessId')
-              }
-            })
-          })
-        }
-      },
-      // 撤回报告流程
-      reback (row) {
-        this.$confirm(`确定要撤回该申请吗?`, '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(async () => {
-          await this.reportCancellApplyService.queryById(row.id).then(({data}) => {
-            if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
-              this.$message.error('数据已发生改变或不存在,请刷新数据')
-              this.refreshList()
-            } else {
-              this.processService.revokeProcIns(row.procInsId).then(({data}) => {
-                let form = {status: '3', id: row.id}
-                this.reportCancellApplyService.updateStatusById(form)
-                this.$message.success(data)
-                this.refreshList()
-              })
-            }
-          })
-          // await this.projectReportService.queryById(row.id).then(({data}) => {
-          //   if (data.status !== '2') { // status的值不等于“审核中”,就弹出提示
-          //     this.$message.error('数据已发生改变或不存在,请刷新数据')
-          //     this.refreshList()
-          //   } else {
-          //     this.processService.revokeProcIns(row.procInsId).then(({data}) => {
-          //       let form = {status: '3', id: row.id}
-          //       this.projectReportService.updateStatusById(form)
-          //       this.$message.success(data)
-          //       this.refreshList()
-          //     })
-          //   }
-          // })
-        })
-      }
-    }
-  }
-</script>