138 lines
4.6 KiB
Vue
138 lines
4.6 KiB
Vue
<template>
|
|
<div class="AuditOperationBox">
|
|
<el-form
|
|
ref="examineForm"
|
|
:model="examineForm"
|
|
:rules="examineFormRules"
|
|
size="medium"
|
|
class="label-input-form prc-content-border">
|
|
<!-- <el-row :gutter="24">-->
|
|
<!-- <el-col :span="9">-->
|
|
<!-- <el-form-item label="选择赋权时间:" prop="date"-->
|
|
<!-- label-width="132px" class="add-form-item"-->
|
|
<!-- :class="{'form-item-disabled': formdisableflag}">-->
|
|
<!-- <el-date-picker-->
|
|
<!-- v-model="examineForm.date"-->
|
|
<!-- type="date"-->
|
|
<!-- placeholder="选择赋权时间">-->
|
|
<!-- </el-date-picker>-->
|
|
<!-- </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">
|
|
<template slot="label">审批意见:</template>
|
|
<el-input :disabled="formdisableflag" :maxlength='1000'
|
|
v-model="examineForm.approvalOpinion"
|
|
placeholder="请输入审批意见"
|
|
:autosize="{ minRows: 2, maxRows: 4}"
|
|
type="textarea"
|
|
/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<!-- <el-row :gutter="24">-->
|
|
<!-- <el-col :span="24">-->
|
|
<!-- <el-form-item label="附件" prop="entStandText" label-width="132px" class="add-form-item"-->
|
|
<!-- :class="{'form-item-disabled': formdisableflag}">-->
|
|
<!-- <el-button-->
|
|
<!-- size="small"-->
|
|
<!-- class="form-upload-btn"-->
|
|
<!-- icon="el-icon-upload"-->
|
|
<!-- @click="clickButtonToUpload('approvalFile')"-->
|
|
<!-- >-->
|
|
<!-- {{ examineForm.approvalFile === 'null' || examineForm.approvalFile === '' ||-->
|
|
<!-- examineForm.approvalFile == null ? '点击上传' : '查看已上传的文件' }}-->
|
|
<!-- </el-button>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- </el-col>-->
|
|
<!-- </el-row>-->
|
|
</el-form>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: 'AuditOperation',
|
|
props: {
|
|
isDisable:{
|
|
type:Boolean,
|
|
default:false
|
|
},
|
|
examine:{
|
|
type:Object
|
|
}
|
|
},
|
|
|
|
data () {
|
|
return {
|
|
examineForm: {
|
|
planReasonFile: '',
|
|
oldName: '',
|
|
flag: '1',
|
|
approvalOpinion: ''
|
|
},
|
|
examineFormRules: {
|
|
flag: [
|
|
{ required: true, message: '审核结果不能为空', trigger: 'change' }
|
|
],
|
|
approvalOpinion: [
|
|
{ type: 'string', max: 1000, message: '审批意见不能超过1000个字符', trigger: 'blur' }
|
|
]
|
|
},
|
|
formdisableflag: false
|
|
|
|
}
|
|
},
|
|
created () {
|
|
// 判断穿过来的query里的参数 是不是查看
|
|
if (this.isDisable) {
|
|
this.examineForm = this.examine
|
|
this.formdisableflag = true
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
/** 在提交表单的校验 通过继续执行 */
|
|
submit () {
|
|
this.isSubmit = false
|
|
this.$refs.examineForm.validate((valid) => {
|
|
if (valid) {
|
|
this.isSubmit = true
|
|
return true
|
|
} else {
|
|
this.$message.warning('请检查表单是否填写正确')
|
|
return false
|
|
}
|
|
})
|
|
}
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.AssignButton {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.AssignButton:hover {
|
|
cursor: pointer;
|
|
}
|
|
</style>
|