|
@@ -1,9 +1,11 @@
|
|
<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
|
|
<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
|
|
<div>
|
|
<div>
|
|
<el-row>
|
|
<el-row>
|
|
|
|
+ <!-- 管理员审批页面 -->
|
|
<el-col :span="24" v-if="isAuditUser && (status === 'audit' || status === 'taskFormDetail')">
|
|
<el-col :span="24" v-if="isAuditUser && (status === 'audit' || status === 'taskFormDetail')">
|
|
<el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method === 'view' ? 'readonly' : ''"
|
|
<el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method === 'view' ? 'readonly' : ''"
|
|
- :disabled="status === 'audit' || status === 'taskFormDetail'" label-width="110px" @submit.native.prevent>
|
|
|
|
|
|
+ label-width="110px" @submit.native.prevent>
|
|
|
|
+ <!-- :disabled="status === 'audit' || status === 'taskFormDetail'" -->
|
|
<el-row :gutter="15">
|
|
<el-row :gutter="15">
|
|
<!-- <el-col :span="12">-->
|
|
<!-- <el-col :span="12">-->
|
|
<!-- <el-form-item label="档案名称" prop="name"-->
|
|
<!-- <el-form-item label="档案名称" prop="name"-->
|
|
@@ -22,25 +24,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="报告册数" prop="reportNum" :rules="[
|
|
|
|
- { required: true, message: '报告册数不能为空', trigger: 'blur' }
|
|
|
|
- ]">
|
|
|
|
- <el-input-number v-model="inputForm.reportNum" controls-position="right" style="width:100%"
|
|
|
|
- :precision="0" :max="9999999999" :step="1" :min="0" placeholder="请填写报告册数" :controls="false" clearable>
|
|
|
|
- </el-input-number>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="底稿册数" prop="papersNum" :rules="[
|
|
|
|
- { required: true, message: '底稿册数不能为空', trigger: 'blur' }
|
|
|
|
- ]">
|
|
|
|
- <el-input-number v-model="inputForm.papersNum" controls-position="right" style="width:100%"
|
|
|
|
- :precision="0" :max="9999999999" :step="1" :min="0" placeholder="请填写底稿册数" :controls="false" clearable>
|
|
|
|
- </el-input-number>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
|
|
+
|
|
|
|
+ <el-col :span="12" v-if="status === 'audit'">
|
|
<el-form-item label="审计收费(元)" prop="auditMoney" :rules="[
|
|
<el-form-item label="审计收费(元)" prop="auditMoney" :rules="[
|
|
{ required: true, message: '请输入审计收费(元)', trigger: 'blur' }
|
|
{ required: true, message: '请输入审计收费(元)', trigger: 'blur' }
|
|
]">
|
|
]">
|
|
@@ -59,12 +44,30 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="12" v-else>
|
|
|
|
+ <el-form-item label="审计收费(元)" prop="auditMoney" :rules="[
|
|
|
|
+ { required: true, message: '请输入审计收费(元)', trigger: 'blur' }
|
|
|
|
+ ]">
|
|
|
|
+ <el-input v-on:input="inputForm.auditMoney = inputForm.auditMoney.replace(/[^\d.]/g, '')
|
|
|
|
+ .replace(/^\./g, '')
|
|
|
|
+ .replace(/\.{2,}/g, '.')
|
|
|
|
+ .replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
|
|
|
|
+ .replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" v-model="inputForm.auditMoney"
|
|
|
|
+ controls-position="right" :controls="false" style="width:100%;" placeholder="请输入审计收费(元)"
|
|
|
|
+ :disabled="true" clearable @keyup="inputMoney">
|
|
|
|
+ <template #suffix>
|
|
|
|
+ <el-button :disabled="true" style="background-color: white;color: #1b1e25;border-color: white;"
|
|
|
|
+ type="primary" @click="openInvoice(this.inputForm.id)" icon="el-icon-search"></el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="档案年度" prop="year" :rules="[
|
|
<el-form-item label="档案年度" prop="year" :rules="[
|
|
{ required: true, message: '档案年度不能为空', trigger: 'blur' }
|
|
{ required: true, message: '档案年度不能为空', trigger: 'blur' }
|
|
]">
|
|
]">
|
|
- <el-date-picker v-model="inputForm.year" type="year" value-format="YYYY" placeholder="选择档案年度"
|
|
|
|
- style="width:100%" placement="bottom-start" :clearable="false">
|
|
|
|
|
|
+ <el-date-picker :disabled="true" v-model="inputForm.year" type="year" value-format="YYYY"
|
|
|
|
+ placeholder="选择档案年度" style="width:100%" placement="bottom-start" :clearable="false">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -72,23 +75,36 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="委托项目类型" prop="businessType" :rules="[
|
|
|
|
|
|
+ <el-form-item label="委托项目类型" prop="entrustType" :rules="[
|
|
]">
|
|
]">
|
|
- <el-select v-model="inputForm.businessType" placeholder="请选择委托项目类型" style="width:100%;">
|
|
|
|
- <el-option v-for="item in $dictUtils.getDictList('cw_business_type')" :key="item.value"
|
|
|
|
|
|
+ <el-select :disabled="status === 'taskFormDetail'" @change="handleEntrustTypeChange"
|
|
|
|
+ v-model="inputForm.entrustType" placeholder="请选择委托项目类型" style="width:100%;">
|
|
|
|
+ <el-option v-for="item in $dictUtils.getDictList('cw_entrust_type')" :key="item.value"
|
|
:label="item.label" :value="item.value">
|
|
:label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="项目负责人" prop="projectCreateName" :rules="[
|
|
|
|
- ]">
|
|
|
|
- <el-input :disabled="true" v-model="inputForm.projectCreateName" placeholder="请填写项目负责人"
|
|
|
|
- clearable></el-input>
|
|
|
|
|
|
+ <el-col :span="12" v-if="inputForm.projectMaster">
|
|
|
|
+ <el-form-item label="项目现场负责人" prop="projectMaster">
|
|
|
|
+ <SelectUserTree :disabled="true" ref="companyTree" size="large" :props="{
|
|
|
|
+ value: 'id', // ID字段名
|
|
|
|
+ label: 'name', // 显示名称
|
|
|
|
+ children: 'children' // 子级字段名
|
|
|
|
+ }" :url="`/system-server/sys/user/treeUserDataAllOffice?type=2`" :value="inputForm.projectMaster"
|
|
|
|
+ :clearable="true" :accordion="true" @getValue="(value) => { inputForm.projectMaster = value }" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" v-else>
|
|
|
|
+ <el-form-item label="项目现场负责人" prop="realHeader">
|
|
|
|
+ <SelectUserTree :disabled="true" ref="companyTree" size="large" :props="{
|
|
|
|
+ value: 'id', // ID字段名
|
|
|
|
+ label: 'name', // 显示名称
|
|
|
|
+ children: 'children' // 子级字段名
|
|
|
|
+ }" :url="`/system-server/sys/user/treeUserDataAllOffice?type=2`" :value="inputForm.realHeader"
|
|
|
|
+ :clearable="true" :accordion="true" @getValue="(value) => { inputForm.realHeader = value }" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="报告文号" prop="reportNo" :rules="[
|
|
<el-form-item label="报告文号" prop="reportNo" :rules="[
|
|
]">
|
|
]">
|
|
@@ -97,7 +113,17 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="被审计单位" prop="auditedUnitsName" :rules="[
|
|
|
|
+ { required: true, message: '被审计单位不能为空', trigger: 'blur' },
|
|
|
|
+ { required: true, message: '被审计单位不能为空', trigger: 'change' }
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.auditedUnitsName" @click="openChooseClient"
|
|
|
|
+ placeholder="请填写被审计单位" clearable>
|
|
|
|
+ <el-button slot="append" @click="openChooseClient" icon="el-icon-search"></el-button>
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="项目名称" prop="cwProjectRecordsDTO.projectName" :rules="[
|
|
<el-form-item label="项目名称" prop="cwProjectRecordsDTO.projectName" :rules="[
|
|
]">
|
|
]">
|
|
@@ -110,33 +136,107 @@
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="报告日期" prop="reportDate" :rules="[
|
|
<el-form-item label="报告日期" prop="reportDate" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.reportDate" placeholder="请填写报告日期" clearable></el-input>
|
|
|
|
|
|
+ <!-- <el-input :disabled="status === 'taskFormDetail'" v-model="inputForm.reportDate" placeholder="请填写报告日期"
|
|
|
|
+ clearable></el-input> -->
|
|
|
|
+ <el-date-picker style="width:100%" placement="bottom-start" value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
+ format="YYYY-MM-DD" type="date" :disabled="true" v-model="inputForm.reportDate" placeholder="选择报告日期">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="二级复核" prop="secondAuditName" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.secondAuditName" placeholder="" clearable>
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="归档时间" prop="auditDate" :rules="[
|
|
<el-form-item label="归档时间" prop="auditDate" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.auditDate" placeholder="请填写归档时间" clearable></el-input>
|
|
|
|
|
|
+ <!-- <el-input :disabled="status === 'taskFormDetail'" v-model="inputForm.auditDate" placeholder="请填写归档时间"
|
|
|
|
+ clearable></el-input> -->
|
|
|
|
+ <el-date-picker :disabled="status === 'taskFormDetail'" v-model="inputForm.auditDate" type="datetime"
|
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" placeholder="选择归档时间"
|
|
|
|
+ style="width:100%" placement="bottom-start" :clearable="false">
|
|
|
|
+ </el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1Name" :rules="[
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1Name" :rules="[
|
|
|
|
+ { validator: validateSignatures, trigger: 'blur' },
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.signatureAnnotator1Name" placeholder="请填写签字注师1"
|
|
|
|
- clearable></el-input>
|
|
|
|
|
|
+ <el-input :disabled="status === 'taskFormDetail'" clearable v-model="inputForm.signatureAnnotator1Name"
|
|
|
|
+ @clear.native="clearSignatureAnnotator1Name" @click="openUserDia1" placeholder="请填写签字注师1">
|
|
|
|
+ <template #suffix>
|
|
|
|
+ <el-button :disabled="status === 'taskFormDetail'"
|
|
|
|
+ style="background-color: white;color: #1b1e25;border-color: white;" type="primary" slot="append"
|
|
|
|
+ icon="el-icon-search" @click="openUserDia1">
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2Name" :rules="[
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2Name" :rules="[
|
|
|
|
+ { validator: validateSignatures, trigger: 'blur' },
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.signatureAnnotator2Name" placeholder="请填写签字注师2"
|
|
|
|
- clearable></el-input>
|
|
|
|
|
|
+ <el-input :disabled="status === 'taskFormDetail'" clearable v-model="inputForm.signatureAnnotator2Name"
|
|
|
|
+ @clear.native="clearSignatureAnnotator2Name" @click="openUserDia2" placeholder="请填写签字注师2">
|
|
|
|
+ <template #suffix>
|
|
|
|
+ <el-button :disabled="status === 'taskFormDetail'"
|
|
|
|
+ style="background-color: white;color: #1b1e25;border-color: white;" type="primary" slot="append"
|
|
|
|
+ icon="el-icon-search" @click="openUserDia2">
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="报告册数" prop="reportNum" :rules="[
|
|
|
|
+ { required: true, message: '报告册数不能为空', trigger: 'blur' }
|
|
|
|
+ ]">
|
|
|
|
+ <el-input-number :disabled="status === 'taskFormDetail'" v-model="inputForm.reportNum"
|
|
|
|
+ controls-position="right" style="width:100%" :precision="0" :max="9999999999" :step="1" :min="0"
|
|
|
|
+ placeholder="请填写报告册数" :controls="false" clearable>
|
|
|
|
+ </el-input-number>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
|
+ <el-form-item label="底稿册数" prop="papersNum" :rules="[
|
|
|
|
+ { required: true, message: '底稿册数不能为空', trigger: 'blur' }
|
|
|
|
+ ]">
|
|
|
|
+ <el-input-number :disabled="status === 'taskFormDetail'" v-model="inputForm.papersNum"
|
|
|
|
+ controls-position="right" style="width:100%" :precision="0" :max="9999999999" :step="1" :min="0"
|
|
|
|
+ placeholder="请填写底稿册数" :controls="false" clearable>
|
|
|
|
+ </el-input-number>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="合同" prop="contract" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="status === 'taskFormDetail'" v-model="inputForm.contract"
|
|
|
|
+ placeholder="参考兴光流转表中合同列填写。如:有、2018-A5等" clearable>
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-col v-if="status !== 'audit'" :span="12">
|
|
|
|
+ <el-form-item label="盒号" prop="number" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.number" placeholder="请填写盒号" clearable></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col v-if="status !== 'audit'" :span="12">
|
|
|
|
+ <el-form-item label="确认盒号" prop="isNumber" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.isNumber" placeholder="请填写确认盒号" clearable></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" v-if="status !== 'audit'">
|
|
<el-form-item class="star-require" label="审定金额(不含税/元)" prop="approvedNoIncludingTax" :rules="[
|
|
<el-form-item class="star-require" label="审定金额(不含税/元)" prop="approvedNoIncludingTax" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input v-model="inputForm.approvedNoIncludingTax"
|
|
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.approvedNoIncludingTax"
|
|
:placeholder="`报告中审定金额(不含税/元)为:${this.inputForm.approvedNoIncludingTaxBak}元。与所填写不同,如需归档,请进行同步,保证金额相同`"
|
|
:placeholder="`报告中审定金额(不含税/元)为:${this.inputForm.approvedNoIncludingTaxBak}元。与所填写不同,如需归档,请进行同步,保证金额相同`"
|
|
v-on:input="inputForm.approvedNoIncludingTax = inputForm.approvedNoIncludingTax.replace(/[^\d.]/g, '')
|
|
v-on:input="inputForm.approvedNoIncludingTax = inputForm.approvedNoIncludingTax.replace(/[^\d.]/g, '')
|
|
.replace(/^\./g, '')
|
|
.replace(/^\./g, '')
|
|
@@ -145,10 +245,10 @@
|
|
.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" clearable></el-input>
|
|
.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12">
|
|
|
|
|
|
+ <el-col :span="12" v-if="status !== 'audit'">
|
|
<el-form-item class="star-require" label="审定金额(含税/元)" prop="approvedIncludingTax" :rules="[
|
|
<el-form-item class="star-require" label="审定金额(含税/元)" prop="approvedIncludingTax" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input v-model="inputForm.approvedIncludingTax"
|
|
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.approvedIncludingTax"
|
|
:placeholder="`报告中审定金额(含税/元)为:${this.inputForm.approvedIncludingTaxBak}元。与所填写不同,如需归档,请进行同步,保证金额相同`"
|
|
:placeholder="`报告中审定金额(含税/元)为:${this.inputForm.approvedIncludingTaxBak}元。与所填写不同,如需归档,请进行同步,保证金额相同`"
|
|
v-on:input="inputForm.approvedIncludingTax = inputForm.approvedIncludingTax.replace(/[^\d.]/g, '')
|
|
v-on:input="inputForm.approvedIncludingTax = inputForm.approvedIncludingTax.replace(/[^\d.]/g, '')
|
|
.replace(/^\./g, '')
|
|
.replace(/^\./g, '')
|
|
@@ -157,64 +257,68 @@
|
|
.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" clearable></el-input>
|
|
.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col v-if="status !== 'audit'" :span="12">
|
|
|
|
- <el-form-item label="审核备注" prop="approveRemarks" :rules="[
|
|
|
|
|
|
+ <el-col v-if="status !== 'audit'" :span="24">
|
|
|
|
+ <el-form-item label="备注" prop="approveRemarks" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input type="textarea" :disabled="true" v-model="inputForm.approveRemarks" placeholder="请填写审核备注"
|
|
|
|
|
|
+ <el-input type="textarea" :disabled="true" v-model="inputForm.approveRemarks" placeholder="请填写备注"
|
|
clearable></el-input>
|
|
clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col v-if="status !== 'audit'" :span="12">
|
|
|
|
- <el-form-item label="案卷号" prop="number" :rules="[
|
|
|
|
|
|
+ <!-- <el-form v-if="status === 'audit'" style="width: 100%" :model="inputForm" ref="inputForm"
|
|
|
|
+ v-loading="loading" :class="method === 'view' ? 'readonly' : ''" label-width="110px"
|
|
|
|
+ @submit.native.prevent> -->
|
|
|
|
+ <el-col :span="12" v-if="status === 'audit'">
|
|
|
|
+ <el-form-item label="盒号" prop="number" :rules="[
|
|
|
|
+ { required: true, message: '盒号不能为空', trigger: 'blur' }
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.number" placeholder="请填写案卷号" clearable></el-input>
|
|
|
|
|
|
+ <el-input style="width: 100%" :disabled="false" v-model="inputForm.number" placeholder="请填写盒号"
|
|
|
|
+ clearable></el-input>
|
|
|
|
+ <span style="color: #E6A23C; font-weight: bold;">{{ boxNumberTips }}</span>
|
|
|
|
+
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col v-if="status !== 'audit'" :span="12">
|
|
|
|
- <el-form-item label="确认案卷号" prop="isNumber" :rules="[
|
|
|
|
|
|
+ <el-col :span="12" v-if="status === 'audit'">
|
|
|
|
+ <el-form-item label="确认盒号" prop="isNumber" :rules="[
|
|
|
|
+ { required: true, message: '确认盒号不能为空', trigger: 'blur' }
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.isNumber" placeholder="请填写确认案卷号" clearable></el-input>
|
|
|
|
|
|
+ <el-input :disabled="false" style="width: 100%" v-model="inputForm.isNumber" placeholder="请填写确认盒号"
|
|
|
|
+ clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-form v-if="status === 'audit'" style="width: 100%" :model="inputForm" ref="inputForm"
|
|
|
|
- v-loading="loading" :class="method === 'view' ? 'readonly' : ''" label-width="110px"
|
|
|
|
- @submit.native.prevent>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="案卷号" prop="number" :rules="[
|
|
|
|
- { required: true, message: '案卷号不能为空', trigger: 'blur' }
|
|
|
|
- ]">
|
|
|
|
- <el-input style="width: 100%" :disabled="false" v-model="inputForm.number" placeholder="请填写案卷号"
|
|
|
|
- clearable></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="确认案卷号" prop="isNumber" :rules="[
|
|
|
|
- { required: true, message: '确认案卷号不能为空', trigger: 'blur' }
|
|
|
|
- ]">
|
|
|
|
- <el-input :disabled="false" style="width: 100%" v-model="inputForm.isNumber" placeholder="请填写确认案卷号"
|
|
|
|
- clearable></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item label="审核备注" prop="approveRemarks" :rules="[
|
|
|
|
- ]">
|
|
|
|
- <el-input type="textarea" :disabled="false" style="width: 100%" v-model="inputForm.approveRemarks"
|
|
|
|
- placeholder="请填写审核备注" clearable></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-form>
|
|
|
|
- <el-divider content-position="left"><i class="el-icon-document"></i> 合同信息</el-divider>
|
|
|
|
- <el-row :gutter="15" style="width: 100%;">
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <el-form-item label="合同" prop="contract" :rules="[
|
|
|
|
- ]">
|
|
|
|
- <el-input v-model="inputForm.contract" placeholder="参考兴光流转表中合同列填写。如:有、2018-A5等" clearable>
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
|
|
+ <el-col :span="12" v-if="status === 'audit'">
|
|
|
|
+ <el-form-item class="star-require" label="审定金额(不含税/元)" prop="approvedNoIncludingTax" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.approvedNoIncludingTax"
|
|
|
|
+ :placeholder="`报告中审定金额(不含税/元)为:${this.inputForm.approvedNoIncludingTaxBak}元。与所填写不同,如需归档,请进行同步,保证金额相同`"
|
|
|
|
+ v-on:input="inputForm.approvedNoIncludingTax = inputForm.approvedNoIncludingTax.replace(/[^\d.]/g, '')
|
|
|
|
+ .replace(/^\./g, '')
|
|
|
|
+ .replace(/\.{2,}/g, '.')
|
|
|
|
+ .replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
|
|
|
|
+ .replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" clearable></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" v-if="status === 'audit'">
|
|
|
|
+ <el-form-item class="star-require" label="审定金额(含税/元)" prop="approvedIncludingTax" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.approvedIncludingTax"
|
|
|
|
+ :placeholder="`报告中审定金额(含税/元)为:${this.inputForm.approvedIncludingTaxBak}元。与所填写不同,如需归档,请进行同步,保证金额相同`"
|
|
|
|
+ v-on:input="inputForm.approvedIncludingTax = inputForm.approvedIncludingTax.replace(/[^\d.]/g, '')
|
|
|
|
+ .replace(/^\./g, '')
|
|
|
|
+ .replace(/\.{2,}/g, '.')
|
|
|
|
+ .replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
|
|
|
|
+ .replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^0+/, '0')" clearable></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" v-if="status === 'audit'">
|
|
|
|
+ <el-form-item label="备注" prop="approveRemarks" :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input type="textarea" :disabled="false" style="width: 100%" v-model="inputForm.approveRemarks"
|
|
|
|
+ placeholder="请填写备注" clearable></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <!-- </el-form> -->
|
|
|
|
|
|
-<!-- <el-row :gutter="15" v-if="inputForm.contractNo">
|
|
|
|
|
|
+ <!-- <el-row :gutter="15" v-if="inputForm.contractNo">
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="案卷号" prop="filedNo" :rules="[
|
|
<el-form-item label="案卷号" prop="filedNo" :rules="[
|
|
@@ -427,7 +531,17 @@
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="委托项目类型" prop="entrustType" :rules="[
|
|
|
|
+ { required: true, message: '委托项目类型不能为空', trigger: 'change' }
|
|
|
|
+ ]">
|
|
|
|
+ <el-select v-model="inputForm.entrustType" placeholder="请选择委托项目类型" style="width:100%;">
|
|
|
|
+ <el-option v-for="item in $dictUtils.getDictList('cw_entrust_type')" :key="item.value"
|
|
|
|
+ :label="item.label" :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="归档时间" prop="auditDate" :rules="[
|
|
<el-form-item label="归档时间" prop="auditDate" :rules="[
|
|
]">
|
|
]">
|
|
@@ -435,21 +549,21 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col v-if="status !== 'audit'" :span="12">
|
|
<el-col v-if="status !== 'audit'" :span="12">
|
|
- <el-form-item label="案卷号" prop="number" :rules="[
|
|
|
|
|
|
+ <el-form-item label="盒号" prop="number" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.number" placeholder="请填写案卷号" clearable></el-input>
|
|
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.number" placeholder="请填写盒号" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col v-if="status !== 'audit'" :span="12">
|
|
<el-col v-if="status !== 'audit'" :span="12">
|
|
- <el-form-item label="确认案卷号" prop="isNumber" :rules="[
|
|
|
|
|
|
+ <el-form-item label="确认盒号" prop="isNumber" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.isNumber" placeholder="请填写确认案卷号" clearable></el-input>
|
|
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.isNumber" placeholder="请填写确认盒号" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col v-if="status !== 'audit'" :span="12">
|
|
<el-col v-if="status !== 'audit'" :span="12">
|
|
- <el-form-item label="审核备注" prop="approveRemarks" :rules="[
|
|
|
|
|
|
+ <el-form-item label="备注" prop="approveRemarks" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.approveRemarks" placeholder="请填写审核备注"
|
|
|
|
|
|
+ <el-input type="textarea" :disabled="true" v-model="inputForm.approveRemarks" placeholder="请填写备注"
|
|
clearable></el-input>
|
|
clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -457,26 +571,26 @@
|
|
v-loading="loading" :class="method === 'view' ? 'readonly' : ''" label-width="110px"
|
|
v-loading="loading" :class="method === 'view' ? 'readonly' : ''" label-width="110px"
|
|
@submit.native.prevent>
|
|
@submit.native.prevent>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="案卷号" prop="number" :rules="[
|
|
|
|
- { required: true, message: '案卷号不能为空', trigger: 'blur' }
|
|
|
|
|
|
+ <el-form-item label="盒号" prop="number" :rules="[
|
|
|
|
+ { required: true, message: '盒号不能为空', trigger: 'blur' }
|
|
]">
|
|
]">
|
|
- <el-input style="width: 100%" :disabled="false" v-model="inputForm.number" placeholder="请填写案卷号"
|
|
|
|
|
|
+ <el-input style="width: 100%" :disabled="false" v-model="inputForm.number" placeholder="请填写盒号"
|
|
clearable></el-input>
|
|
clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="确认案卷号" prop="isNumber" :rules="[
|
|
|
|
- { required: true, message: '确认案卷号不能为空', trigger: 'blur' }
|
|
|
|
|
|
+ <el-form-item label="确认盒号" prop="isNumber" :rules="[
|
|
|
|
+ { required: true, message: '确认盒号不能为空', trigger: 'blur' }
|
|
]">
|
|
]">
|
|
- <el-input :disabled="false" style="width: 100%" v-model="inputForm.isNumber" placeholder="请填写确认案卷号"
|
|
|
|
|
|
+ <el-input :disabled="false" style="width: 100%" v-model="inputForm.isNumber" placeholder="请填写确认盒号"
|
|
clearable></el-input>
|
|
clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="审核备注" prop="approveRemarks" :rules="[
|
|
|
|
|
|
+ <el-form-item label="备注" prop="approveRemarks" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="false" style="width: 100%" v-model="inputForm.approveRemarks"
|
|
|
|
- placeholder="请填写审核备注" clearable></el-input>
|
|
|
|
|
|
+ <el-input type="textarea" :disabled="false" style="width: 100%" v-model="inputForm.approveRemarks"
|
|
|
|
+ placeholder="请填写备注" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -532,23 +646,36 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1Name" :rules="[
|
|
<el-form-item label="签字注师1" prop="signatureAnnotator1Name" :rules="[
|
|
|
|
+ { validator: validateSignatures, trigger: 'blur' },
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.signatureAnnotator1Name" placeholder="请填写签字注师1"
|
|
|
|
- clearable></el-input>
|
|
|
|
|
|
+ <el-input clearable v-model="inputForm.signatureAnnotator1Name"
|
|
|
|
+ @clear.native="clearSignatureAnnotator1Name" @click="openUserDia1" placeholder="请填写签字注师1">
|
|
|
|
+ <template #suffix>
|
|
|
|
+ <el-button style="background-color: white;color: #1b1e25;border-color: white;" type="primary"
|
|
|
|
+ slot="append" icon="el-icon-search" @click="openUserDia1">
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2Name" :rules="[
|
|
<el-form-item label="签字注师2" prop="signatureAnnotator2Name" :rules="[
|
|
|
|
+ { validator: validateSignatures, trigger: 'blur' },
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.signatureAnnotator2Name" placeholder="请填写签字注师2"
|
|
|
|
- clearable></el-input>
|
|
|
|
|
|
+ <el-input clearable v-model="inputForm.signatureAnnotator2Name"
|
|
|
|
+ @clear.native="clearSignatureAnnotator2Name" @click="openUserDia2" placeholder="请填写签字注师2">
|
|
|
|
+ <template #suffix>
|
|
|
|
+ <el-button style="background-color: white;color: #1b1e25;border-color: white;" type="primary"
|
|
|
|
+ slot="append" icon="el-icon-search" @click="openUserDia2">
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="报告主办人" prop="reportCreateName" :rules="[
|
|
<el-form-item label="报告主办人" prop="reportCreateName" :rules="[
|
|
]">
|
|
]">
|
|
- <el-input :disabled="true" v-model="inputForm.reportCreateName" placeholder="请填写报告主办人"
|
|
|
|
- clearable></el-input>
|
|
|
|
|
|
+ <el-input :disabled="true" v-model="inputForm.reportCreateName" placeholder="请填写报告主办人"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<!-- <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status !== 'audit'"-->
|
|
<!-- <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status !== 'audit'"-->
|
|
@@ -585,6 +712,7 @@
|
|
<WorkClientChooseByProjectCom ref="workClientChooseByProjectCom" @getClient="getClient">
|
|
<WorkClientChooseByProjectCom ref="workClientChooseByProjectCom" @getClient="getClient">
|
|
</WorkClientChooseByProjectCom>
|
|
</WorkClientChooseByProjectCom>
|
|
<ReportChooseByProjectCom ref="reportChooseByProjectCom" @getReport="getReport"></ReportChooseByProjectCom>
|
|
<ReportChooseByProjectCom ref="reportChooseByProjectCom" @getReport="getReport"></ReportChooseByProjectCom>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<el-dialog title="开票信息选择" :close-on-click-modal="false" draggable width="1100px" height="500px" @close="closeTable"
|
|
<el-dialog title="开票信息选择" :close-on-click-modal="false" draggable width="1100px" height="500px" @close="closeTable"
|
|
@@ -663,6 +791,8 @@
|
|
</template>
|
|
</template>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
+ <user-select1 ref="userSelect1" @doSubmit="selectUser1"></user-select1>
|
|
|
|
+ <user-select2 ref="userSelect2" @doSubmit="selectUser2"></user-select2>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -677,6 +807,10 @@ import officeService from '@/api/sys/officeService'
|
|
import processService from '@/api/flowable/processService'
|
|
import processService from '@/api/flowable/processService'
|
|
import ProjectRecordsService from "../../../api/cw/projectRecords/ProjectRecordsService";
|
|
import ProjectRecordsService from "../../../api/cw/projectRecords/ProjectRecordsService";
|
|
import taskService from "@/api/flowable/taskService.js";
|
|
import taskService from "@/api/flowable/taskService.js";
|
|
|
|
+import UserSelect1 from '@/views/utils/UserTreeSelect'
|
|
|
|
+import UserSelect2 from '@/views/utils/UserTreeSelect'
|
|
|
|
+import SelectUserTree from '@/views/utils/treeUserSelect'
|
|
|
|
+
|
|
import { v } from 'vxe-table'
|
|
import { v } from 'vxe-table'
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
@@ -695,6 +829,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ boxNumberTips: "",
|
|
reportVisible: false,
|
|
reportVisible: false,
|
|
dialogTableVisible: false,
|
|
dialogTableVisible: false,
|
|
title: '',
|
|
title: '',
|
|
@@ -708,6 +843,7 @@ export default {
|
|
name: ''
|
|
name: ''
|
|
},
|
|
},
|
|
remarks: '',
|
|
remarks: '',
|
|
|
|
+ reportId: "",
|
|
projectId: '',
|
|
projectId: '',
|
|
name: '',
|
|
name: '',
|
|
auditedUnits: '',
|
|
auditedUnits: '',
|
|
@@ -724,13 +860,14 @@ export default {
|
|
approvedNoIncludingTaxBak: "",
|
|
approvedNoIncludingTaxBak: "",
|
|
approvedIncludingTaxBak: "",
|
|
approvedIncludingTaxBak: "",
|
|
businessType: "",
|
|
businessType: "",
|
|
- projectCreateName: '',
|
|
|
|
|
|
+ projectManager: '',
|
|
filedNo: '',
|
|
filedNo: '',
|
|
contractNo: "",
|
|
contractNo: "",
|
|
contractName: "",
|
|
contractName: "",
|
|
clientContacts: "",
|
|
clientContacts: "",
|
|
contractAmount: "",
|
|
contractAmount: "",
|
|
contractCreateName: "",
|
|
contractCreateName: "",
|
|
|
|
+ entrustType: "",
|
|
auditDate: '',
|
|
auditDate: '',
|
|
procInsId: '',
|
|
procInsId: '',
|
|
processDefinitionId: '',
|
|
processDefinitionId: '',
|
|
@@ -769,7 +906,10 @@ export default {
|
|
procDefId: '',
|
|
procDefId: '',
|
|
procDefKey: '',
|
|
procDefKey: '',
|
|
formTitle: '',
|
|
formTitle: '',
|
|
- title: ''
|
|
|
|
|
|
+ title: '',
|
|
|
|
+ secondAuditName: '',
|
|
|
|
+ projectMaster: '',
|
|
|
|
+ realHeader: ''
|
|
},
|
|
},
|
|
keyWatch: '',
|
|
keyWatch: '',
|
|
activeName: 'files',
|
|
activeName: 'files',
|
|
@@ -846,6 +986,9 @@ export default {
|
|
ProjectRecordsChooseCom,
|
|
ProjectRecordsChooseCom,
|
|
WorkClientChooseByProjectCom,
|
|
WorkClientChooseByProjectCom,
|
|
ReportChooseByProjectCom,
|
|
ReportChooseByProjectCom,
|
|
|
|
+ UserSelect1,
|
|
|
|
+ UserSelect2,
|
|
|
|
+ SelectUserTree
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getKeyWatch(keyWatch) {
|
|
getKeyWatch(keyWatch) {
|
|
@@ -879,13 +1022,14 @@ export default {
|
|
approvedNoIncludingTaxBak: "",
|
|
approvedNoIncludingTaxBak: "",
|
|
approvedIncludingTaxBak: "",
|
|
approvedIncludingTaxBak: "",
|
|
businessType: "",
|
|
businessType: "",
|
|
- projectCreateName: '',
|
|
|
|
|
|
+ projectManager: '',
|
|
filedNo: '',
|
|
filedNo: '',
|
|
contractNo: "",
|
|
contractNo: "",
|
|
contractName: "",
|
|
contractName: "",
|
|
clientContacts: "",
|
|
clientContacts: "",
|
|
contractAmount: "",
|
|
contractAmount: "",
|
|
contractCreateName: "",
|
|
contractCreateName: "",
|
|
|
|
+ entrustType: "",
|
|
auditDate: '',
|
|
auditDate: '',
|
|
procInsId: '',
|
|
procInsId: '',
|
|
processDefinitionId: '',
|
|
processDefinitionId: '',
|
|
@@ -924,6 +1068,9 @@ export default {
|
|
procDefKey: '',
|
|
procDefKey: '',
|
|
formTitle: '',
|
|
formTitle: '',
|
|
title: '',
|
|
title: '',
|
|
|
|
+ secondAuditName: '',
|
|
|
|
+ projectMaster: '',
|
|
|
|
+ realHeader: ''
|
|
}
|
|
}
|
|
this.selectRecord = []
|
|
this.selectRecord = []
|
|
this.inputForm.id = id
|
|
this.inputForm.id = id
|
|
@@ -931,10 +1078,7 @@ export default {
|
|
this.$nextTick(async () => {
|
|
this.$nextTick(async () => {
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
this.loading = true
|
|
this.loading = true
|
|
-
|
|
|
|
-
|
|
|
|
const data = await this.projectReportArchiveService.queryById(this.inputForm.id)
|
|
const data = await this.projectReportArchiveService.queryById(this.inputForm.id)
|
|
- console.log(data)
|
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
this.$refs.uploadComponent.clearUpload()
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
@@ -973,6 +1117,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if (!this.commonJS.isEmpty(data.status) && data.status == 2) {
|
|
if (!this.commonJS.isEmpty(data.status) && data.status == 2) {
|
|
|
|
+ this.handleBoxNumber(data.entrustType)
|
|
//将原有审核时间进行处理并同步
|
|
//将原有审核时间进行处理并同步
|
|
//通过reportId获取上一次审核通过时间
|
|
//通过reportId获取上一次审核通过时间
|
|
const hiData = await this.projectReportArchiveService.getLastAuditDateByReportId(this.inputForm.reportId);
|
|
const hiData = await this.projectReportArchiveService.getLastAuditDateByReportId(this.inputForm.reportId);
|
|
@@ -1112,12 +1257,13 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
} else if (status === 'start') {
|
|
} else if (status === 'start') {
|
|
|
|
+
|
|
// 送审 待审核
|
|
// 送审 待审核
|
|
this.inputForm.status = '2'
|
|
this.inputForm.status = '2'
|
|
} else if (status === 'reapply') {
|
|
} else if (status === 'reapply') {
|
|
this.inputForm.status = '2'
|
|
this.inputForm.status = '2'
|
|
}
|
|
}
|
|
- this.$refs['inputForm'].validate((valid) => {
|
|
|
|
|
|
+ this.$refs['inputForm'].validate(async (valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.loading = true
|
|
this.loading = true
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
@@ -1130,9 +1276,9 @@ export default {
|
|
// this.inputForm.agreeUserId = this.$store.state.user.id
|
|
// this.inputForm.agreeUserId = this.$store.state.user.id
|
|
this.inputForm.status = '5'
|
|
this.inputForm.status = '5'
|
|
if (this.inputForm.isNumber !== this.inputForm.number) {
|
|
if (this.inputForm.isNumber !== this.inputForm.number) {
|
|
- this.$message.error('“案卷号”与“确认案卷号”不一致,请重新填写')
|
|
|
|
|
|
+ this.$message.error('“盒号”与“确认盒号”不一致,请重新填写')
|
|
this.loading = false
|
|
this.loading = false
|
|
- throw new Error('“案卷号”与“确认案卷号”不一致,请重新填写')
|
|
|
|
|
|
+ throw new Error('“盒号”与“确认盒号”不一致,请重新填写')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
@@ -1209,9 +1355,9 @@ export default {
|
|
if (res.includes(userInfo.id)) {
|
|
if (res.includes(userInfo.id)) {
|
|
if (type === 'reject') {
|
|
if (type === 'reject') {
|
|
if (this.inputForm.isNumber !== this.inputForm.number) {
|
|
if (this.inputForm.isNumber !== this.inputForm.number) {
|
|
- this.$message.error('“案卷号”与“确认案卷号”不一致,请重新填写')
|
|
|
|
|
|
+ this.$message.error('“盒号”与“确认盒号”不一致,请重新填写')
|
|
this.loading = false
|
|
this.loading = false
|
|
- throw new Error('“案卷号”与“确认案卷号”不一致,请重新填写')
|
|
|
|
|
|
+ throw new Error('“盒号”与“确认盒号”不一致,请重新填写')
|
|
} else {
|
|
} else {
|
|
// 驳回
|
|
// 驳回
|
|
let _this = this
|
|
let _this = this
|
|
@@ -1262,9 +1408,9 @@ export default {
|
|
} else {
|
|
} else {
|
|
if (type === 'reject') {
|
|
if (type === 'reject') {
|
|
if (this.inputForm.isNumber !== this.inputForm.number) {
|
|
if (this.inputForm.isNumber !== this.inputForm.number) {
|
|
- this.$message.error('“案卷号”与“确认案卷号”不一致,请重新填写')
|
|
|
|
|
|
+ this.$message.error('“盒号”与“确认盒号”不一致,请重新填写')
|
|
this.loading = false
|
|
this.loading = false
|
|
- throw new Error('“案卷号”与“确认案卷号”不一致,请重新填写')
|
|
|
|
|
|
+ throw new Error('“盒号”与“确认盒号”不一致,请重新填写')
|
|
} else {
|
|
} else {
|
|
// 驳回
|
|
// 驳回
|
|
let _this = this
|
|
let _this = this
|
|
@@ -1332,6 +1478,7 @@ export default {
|
|
name: ''
|
|
name: ''
|
|
},
|
|
},
|
|
remarks: '',
|
|
remarks: '',
|
|
|
|
+ reportId: "",
|
|
projectId: '',
|
|
projectId: '',
|
|
name: '',
|
|
name: '',
|
|
auditedUnits: '',
|
|
auditedUnits: '',
|
|
@@ -1348,13 +1495,14 @@ export default {
|
|
approvedNoIncludingTaxBak: "",
|
|
approvedNoIncludingTaxBak: "",
|
|
approvedIncludingTaxBak: "",
|
|
approvedIncludingTaxBak: "",
|
|
businessType: "",
|
|
businessType: "",
|
|
- projectCreateName: '',
|
|
|
|
|
|
+ projectManager: '',
|
|
filedNo: '',
|
|
filedNo: '',
|
|
contractNo: "",
|
|
contractNo: "",
|
|
contractName: "",
|
|
contractName: "",
|
|
clientContacts: "",
|
|
clientContacts: "",
|
|
contractAmount: "",
|
|
contractAmount: "",
|
|
contractCreateName: "",
|
|
contractCreateName: "",
|
|
|
|
+ entrustType: "",
|
|
auditDate: '',
|
|
auditDate: '',
|
|
procInsId: '',
|
|
procInsId: '',
|
|
processDefinitionId: '',
|
|
processDefinitionId: '',
|
|
@@ -1392,7 +1540,10 @@ export default {
|
|
procDefId: '',
|
|
procDefId: '',
|
|
procDefKey: '',
|
|
procDefKey: '',
|
|
formTitle: '',
|
|
formTitle: '',
|
|
- title: ''
|
|
|
|
|
|
+ title: '',
|
|
|
|
+ secondAuditName: '',
|
|
|
|
+ projectMaster: '',
|
|
|
|
+ realHeader: ''
|
|
}
|
|
}
|
|
this.$refs.uploadComponent.clearUpload()
|
|
this.$refs.uploadComponent.clearUpload()
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
@@ -1604,6 +1755,63 @@ export default {
|
|
} else if (index == 2) {
|
|
} else if (index == 2) {
|
|
this.inputForm.approvedIncludingTax = this.inputForm.approvedIncludingTaxBak
|
|
this.inputForm.approvedIncludingTax = this.inputForm.approvedIncludingTaxBak
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ // 签字注师1校验
|
|
|
|
+ validateSignatures(rule, value, callback) {
|
|
|
|
+ const { signatureAnnotator1Name, signatureAnnotator2Name } = this.inputForm
|
|
|
|
+ if (
|
|
|
|
+ (signatureAnnotator1Name && !signatureAnnotator2Name) ||
|
|
|
|
+ (!signatureAnnotator1Name && signatureAnnotator2Name)
|
|
|
|
+ ) {
|
|
|
|
+ callback(new Error('签字注师1和签字注师2需同时填写或同时为空'))
|
|
|
|
+ } else {
|
|
|
|
+ callback()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ openUserDia1() {
|
|
|
|
+ this.$refs.userSelect1.init()
|
|
|
|
+ },
|
|
|
|
+ selectUser1(user) {
|
|
|
|
+ console.log(user[0].name)
|
|
|
|
+ this.inputForm.signatureAnnotator1Name = user[0].name
|
|
|
|
+ this.inputForm.signatureAnnotator1 = user[0].id
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator1Name')
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator2Name')
|
|
|
|
+ },
|
|
|
|
+ openUserDia2() {
|
|
|
|
+ this.$refs.userSelect2.init()
|
|
|
|
+ },
|
|
|
|
+ selectUser2(user) {
|
|
|
|
+ console.log(user[0].name)
|
|
|
|
+ this.inputForm.signatureAnnotator2Name = user[0].name
|
|
|
|
+ this.inputForm.signatureAnnotator2 = user[0].id
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator1Name')
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator2Name')
|
|
|
|
+ },
|
|
|
|
+ clearSignatureAnnotator1Name() {
|
|
|
|
+ this.inputForm.signatureAnnotator1Name = ''
|
|
|
|
+ this.inputForm.signatureAnnotator1 = ''
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator1Name')
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator2Name')
|
|
|
|
+ },
|
|
|
|
+ clearSignatureAnnotator2Name() {
|
|
|
|
+ this.inputForm.signatureAnnotator2Name = ''
|
|
|
|
+ this.inputForm.signatureAnnotator2 = ''
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator1Name')
|
|
|
|
+ this.$refs.inputForm.validateField('signatureAnnotator2Name')
|
|
|
|
+ },
|
|
|
|
+ async handleBoxNumber(value) {
|
|
|
|
+ let boxNumberData = await this.projectReportArchiveService.getFileBoxNumber({
|
|
|
|
+ entrustType: value
|
|
|
|
+ })
|
|
|
|
+ if (boxNumberData) {
|
|
|
|
+ this.boxNumberTips = `盒号(${boxNumberData.number}),对应报告文号(${boxNumberData.reportNo})`
|
|
|
|
+ } else {
|
|
|
|
+ this.boxNumberTips = ''
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ handleEntrustTypeChange(value) {
|
|
|
|
+ this.handleBoxNumber(value)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|