| | |
| | | </el-form> |
| | | <el-form :model="sendData" :rules="rules" ref="sendData" label-width="150px" class="demo-ruleForm" |
| | | style="margin: 0 14% 0 16%;"> |
| | | > |
| | | > |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="发送流程" prop="name"> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="是否同意延期:" prop="name"> |
| | | <el-form-item label="是否同意延期:" prop="ispass"> |
| | | <el-radio-group v-model="sendData.ispass"> |
| | | <el-radio :label="0">同意延期</el-radio> |
| | | <el-radio :label="1">不同意</el-radio> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <div |
| | | v-if="ruleForm.safetyInspectionItemResult == 0"> |
| | | <div v-if="ruleForm.safetyInspectionItemResult == 0"> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="限改时间" prop="alter_time"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row></el-row> |
| | | <el-row></el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="备注" prop="desc"> |
| | | <el-input class="textarea" type="textarea" v-model="sendData.dealContent"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div |
| | | v-else="ruleForm.safetyInspectionItemResult == 1"> |
| | |
| | | <el-col :span="9"> |
| | | <el-form-item label="限改时间" prop="alter_time"> |
| | | <el-date-picker |
| | | disabled |
| | | v-model="sendData.alter_time" |
| | | type="date" |
| | | placeholder="选择日期" |
| | |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="备注" prop="desc1"> |
| | | <el-input class="textarea" type="textarea" v-model="sendData.dealContent"></el-input> |
| | | <el-input class="textarea" type="textarea" |
| | | v-model="sendData.dealContent"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item style="text-align: center;"> |
| | | <el-button class="btn" size="small" type="primary" @click="submitForm('ruleForm')">保存 |
| | | <el-button class="btn" size="small" type="primary" @click="submitForm('sendData')">保存 |
| | | </el-button> |
| | | <el-button size="small" @click="close()">关闭</el-button> |
| | | </el-form-item> |
| | |
| | | alter_time: {required: true, message: '请填写复查时间', trigger: 'blur'}, |
| | | }, |
| | | sendData: { |
| | | id:"", |
| | | step:"1", |
| | | ispass:"同意延期", |
| | | alter_time:"", |
| | | dealContent:"", |
| | | id: "", |
| | | step: "1", |
| | | ispass: 0, |
| | | alter_time: "", |
| | | dealContent: "", |
| | | |
| | | }, |
| | | tableData: [], |
| | |
| | | this.getDangerDetails(); |
| | | this.getWfRecordList() |
| | | }, |
| | | watch: { |
| | | "sendData.ispass": function (newVal, oldVal) { |
| | | console.log(newVal) |
| | | if (newVal == 0) { |
| | | this.sendData.alter_time = this.ruleForm.extension; |
| | | } else { |
| | | this.sendData.alter_time = this.ruleForm.alter_time; |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | getDangerDetails() { |
| | | getDangerDetails(this.$route.query.id).then(res => { |
| | |
| | | if (data.ok) { |
| | | this.ruleForm = data.data; |
| | | this.sendData.id = this.ruleForm.id; |
| | | this.sendData.alter_time = this.ruleForm.alter_time; |
| | | |
| | | this.sendData.alter_time = this.ruleForm.extension; |
| | | this.ruleForm.url = process.env.BASE_API; |
| | | this.ruleForm.callback_branch = data.data.check_main_branch |
| | | //this.ruleForm.ispass=0 |
| | | this.sendDataForm.id = this.ruleForm.id |
| | | } else { |
| | | this.$message({type: 'error', message: "数据查询失败,请重试!", duration: 3000}) |
| | | } |
| | |
| | | submitForm(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | alert('submit!'); |
| | | sendDangerNext(this.sendData).then(res => { |
| | | var msg = res.data.msg; |
| | | if (res.data.ok) { |
| | | this.$router.push({ |
| | | path: "/delayHiddenDangerRectification", |
| | | }) |
| | | this.$message({type: 'success', message: msg, duration: 3000}) |
| | | } else { |
| | | this.$message({type: 'error', message: msg, duration: 3000}) |
| | | } |
| | | }) |
| | | } else { |
| | | console.log('error submit!!'); |
| | | return false; |