【修改】修改报告上传流程
This commit is contained in:
@@ -19,18 +19,6 @@
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="审批结果:" prop="flag"
|
||||
label-width="132px" class="add-form-item"
|
||||
:class="{'form-item-disabled': formdisableflag}">
|
||||
<el-radio-group :disabled="formdisableflag" v-model="examineForm.flag" >
|
||||
<el-radio :label="'1'">同意</el-radio>
|
||||
<el-radio :label="'2'">不同意</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="24">
|
||||
<el-form-item :prop="!formdisableflag?'approvalOpinion':''" label-width="132px" class="add-form-item">
|
||||
@@ -44,6 +32,17 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<process-footer
|
||||
v-if="!isDisable"
|
||||
showCancel
|
||||
:show-transfer="isShowTran"
|
||||
:show-agree="isAgree"
|
||||
:show-no-agree="isNoAgree"
|
||||
:btyLoading="isBty"
|
||||
:tyLoading="isTy"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
></process-footer>
|
||||
<!-- <el-row :gutter="24">-->
|
||||
<!-- <el-col :span="24">-->
|
||||
<!-- <el-form-item label="附件" prop="entStandText" label-width="132px" class="add-form-item"-->
|
||||
@@ -63,12 +62,18 @@
|
||||
</el-form>
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import processFooter from '@/components/ProcessFooter'
|
||||
|
||||
export default {
|
||||
name: 'AuditOperation',
|
||||
components:{
|
||||
processFooter,
|
||||
|
||||
},
|
||||
props: {
|
||||
isDisable:{
|
||||
type:Boolean,
|
||||
@@ -76,11 +81,32 @@ export default {
|
||||
},
|
||||
examine:{
|
||||
type:Object
|
||||
},
|
||||
taskId:{
|
||||
type:String,
|
||||
default:''
|
||||
},
|
||||
prcId:{
|
||||
type:String,
|
||||
default:''
|
||||
},
|
||||
prcType:{
|
||||
type:String,
|
||||
default:''
|
||||
}
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
isBty:false,
|
||||
isTy:false,
|
||||
isNoAgree: true,
|
||||
isAgree: true,
|
||||
visibleTree: false,
|
||||
isSubmit: false,
|
||||
tranLoading: false,
|
||||
isShowTran: true,
|
||||
isShowSubmit: true,
|
||||
examineForm: {
|
||||
planReasonFile: '',
|
||||
oldName: '',
|
||||
@@ -107,19 +133,42 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleTransfer(){
|
||||
debugger
|
||||
this.$emit('handleTransfer')
|
||||
},
|
||||
handleSubmit(type) {
|
||||
debugger
|
||||
if(type=='n'){
|
||||
// 校验原因是否填写
|
||||
this.examineForm.flag=2
|
||||
if(this.examineForm.approvalOpinion==''){
|
||||
this.$message.warning("请您填写原因")
|
||||
return
|
||||
}
|
||||
}else{
|
||||
this.examineForm.flag=1
|
||||
}
|
||||
this.$emit('handleSubmit')
|
||||
|
||||
// if (this.$refs.operationRef.submit()) {
|
||||
// 通过了校验 需要整合参数 拿到原来的dataJson 再把新添加的增进去 在拼成dataJson
|
||||
|
||||
},
|
||||
/** 在提交表单的校验 通过继续执行 */
|
||||
submit () {
|
||||
this.isSubmit = false
|
||||
let v
|
||||
this.$refs.examineForm.validate((valid) => {
|
||||
v=valid
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
|
||||
return true
|
||||
} else {
|
||||
this.$message.warning('请检查表单是否填写正确')
|
||||
return false
|
||||
}
|
||||
})
|
||||
return v
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user