|
|
@@ -14,7 +14,7 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="itemsshow">查看变更项</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="fenbanbtn"
|
|
|
- v-if="auditBtn && InfoStatus == '10'">分办</el-button>
|
|
|
+ v-if="auditBtn && InfoStatusBool()">分办</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="submitInfoChange"
|
|
|
v-if="auditBtn && InfoStatus == '1'">初审</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="submitInfoChange"
|
|
|
@@ -503,10 +503,18 @@
|
|
|
<el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
|
|
|
<wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="提交申请" :visible.sync="commitshowfen" width="360px">
|
|
|
+ <el-dialog title="提交申请" :visible.sync="commitshowfen" width="520px">
|
|
|
<el-form label-width="90px" :model="entityForm" ref="EntityFormref">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
+ <el-form-item label="审批状态">
|
|
|
+ <el-radio-group v-model="shenheForm.SuccessStatus">
|
|
|
+ <el-radio :label="1">通过</el-radio>
|
|
|
+ <el-radio :label="0">退回</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
<el-form-item label="初审人员">
|
|
|
<el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
|
|
|
<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
|
|
|
@@ -520,11 +528,17 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
<el-form-item label="备注">
|
|
|
<el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="请输入备注内容"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 0">
|
|
|
+ <el-form-item label="退回原因">
|
|
|
+ <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="请输入备注内容">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<span style="float: right;margin-top:-10px;">
|
|
|
@@ -877,23 +891,42 @@
|
|
|
this.getAccessCardNo()
|
|
|
},
|
|
|
methods: {
|
|
|
+ InfoStatusBool () {
|
|
|
+ console.log(this.InfoStatus, 'this.InfoStatus')
|
|
|
+ if (this.InfoStatus === '10' || this.InfoStatus === '-10' || this.InfoStatus === '-1' ||
|
|
|
+ this.InfoStatus === '-2' || this.InfoStatus === '-5') {
|
|
|
+ return true
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ },
|
|
|
fenbanbtn () {
|
|
|
this.commitshowfen = true
|
|
|
},
|
|
|
addInfoChangeAudit () {
|
|
|
- if (this.auditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择初审人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.fushenauditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择复审人!'
|
|
|
- })
|
|
|
- return
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ if (this.auditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择初审人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.fushenauditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '退回意见不能低于5个字符!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
this.shenheForm.SecondAudit = this.fushenauditer
|
|
|
this.shenheForm.FirstAudit = parseInt(this.auditer)
|