| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!--<el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="检查类别" prop="checktype"> |
| | | <el-select v-model="ruleForm.checktype" placeholder="请选择" style="width: 100%"> |
| | | <el-option |
| | | v-for="item in JCLBList" |
| | | :key="item.value" |
| | | :label="item.value" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="检查单位" prop="check_main_branch"> |
| | | <el-select v-model="ruleForm.check_main_branch" placeholder="请选择" @change="changeJCDW" style="width: 100%"> |
| | | <el-option |
| | | v-for="item in JCDWList" |
| | | :key="item.label" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="检查部门" prop="check_branch"> |
| | | <el-select v-model="ruleForm.check_branch" placeholder="请选择" style="width: 100%"> |
| | | <el-option |
| | | v-for="item in JCBMList" |
| | | :key="item.value" |
| | | :label="item.value" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | |
| | | </el-col> |
| | | </el-row>--> |
| | | |
| | | <el-row> |
| | | <el-col :span="9"> |
| | |
| | | <el-input v-model="ruleForm.check_man"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!--<el-col :span="9" :offset="4"> |
| | | <el-form-item label="陪检人员" prop="acc_man"> |
| | | <el-input v-model="ruleForm.acc_man"></el-input> |
| | | </el-form-item> |
| | | </el-col>--> |
| | | </el-row> |
| | | |
| | | |
| | | <!-- <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="行走路线"> |
| | | <el-input v-model="ruleForm.route" rows="3" type="textarea" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row>--> |
| | | |
| | | <el-row style="margin-bottom: 20px"> |
| | | <el-col :span="9"> |
| | |
| | | initWxy |
| | | } from "@/api/sgyhpczl/initSelect"; |
| | | import {initDangerRebound} from '@/api/sgyhpczl/hiddenDangerRegistration' |
| | | import {getDangerDetails} from "@/api/sgyhpczl/recheckCancellationNumber"; |
| | | import {getDangerDetails,self_info} from "@/api/sgyhpczl/recheckCancellationNumber"; |
| | | |
| | | import {saveSelfDanger} from '@/api/sgyhpczl/hiddenDangerManagement' |
| | | import {saveSelfDanger,self_edit_do} from '@/api/sgyhpczl/hiddenDangerManagement' |
| | | import {deepClone} from '@/utils' |
| | | |
| | | export default { |
| | |
| | | YWKSList: [], |
| | | update: false, |
| | | reboundList: [], |
| | | ruleForm: {}, |
| | | ruleForm: { |
| | | check_date:"", |
| | | check_class:"", |
| | | check_man:"" |
| | | }, |
| | | rules: { |
| | | check_date: [{required: true, message: '不能为空', trigger: 'blur'},], |
| | | check_class: [{required: true, message: '不能为空', trigger: 'blur'},], |
| | | check_main_branch: [{required: true, message: '不能为空', trigger: 'blur'},], |
| | | check_branch: [{required: true, message: '不能为空', trigger: 'blur'},], |
| | | check_man: [{required: true, message: '不能为空', trigger: 'blur'},], |
| | | checktype: [{required: true, message: '不能为空', trigger: 'blur'},], |
| | | }, |
| | | tableData: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | | if (this.$route.query != null) { |
| | | console.log(11111) |
| | | getDangerDetails(this.$route.query.id).then(res => { |
| | | self_info(this.$route.query.id).then(res => { |
| | | console.log(res) |
| | | if (res.data.ok) { |
| | | this.tableData.push(res.data.data); |
| | |
| | | }); |
| | | } else { |
| | | console.log(this.tableData) |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | var requestData = this.tableData[0]; |
| | | requestData.check_class= this.ruleForm.check_class |
| | | requestData.check_man= this.ruleForm.check_man |
| | | requestData.check_date= this.ruleForm.check_date |
| | | console.log(requestData) |
| | | self_edit_do(requestData).then(res => { |
| | | if (res.data.ok == 1) { |
| | | this.$message({type: 'success', message: "编辑成功", duration: 3000}) |
| | | this.$router.push({ |
| | | path: "/hiddenDangerManagement" |
| | | }) |
| | | } else { |
| | | this.$message({type: 'error', message: res.data.msg, duration: 3000}) |
| | | } |
| | | }) |
| | | |
| | | } else { |
| | | console.log("error submit!!"); |
| | | return false; |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | close() { |