| | |
| | | } |
| | | }, |
| | | coAdd(val, type) { |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].clearValidate(); |
| | | }); |
| | | this.titleN = type; |
| | | if (type == "新增") { |
| | | this.dialogVisible = true; |
| | |
| | | ); |
| | | this.formInline=JSON.parse(JSON.stringify(val)); |
| | | } |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].clearValidate(); |
| | | }); |
| | | }, |
| | | listAdd() { |
| | | this.$refs["form"].validate((valid) => { |
| | |
| | | <el-date-picker |
| | | v-model="listQuery.filter.inspectionStartTime" |
| | | type="date" |
| | | format="yyyy 年 MM 月 dd 日" |
| | | format="yyyy 年 MM 月 dd 日" |
| | | placeholder="选择日期" |
| | | > |
| | | </el-date-picker> |
| | |
| | | <el-input v-model="listQuery.filter.inspectorName"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4" style="text-align: center"> |
| | | <el-col :span="8" style="text-align: center"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | |
| | | @click="jump()" |
| | | >新增</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | class="btns" |
| | | @click="resetPage()" |
| | | >重置</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | status: "", |
| | | }, |
| | | pageIndex: 1, |
| | | pageSize: 5, |
| | | pageSize: 10, |
| | | }, |
| | | list: [], |
| | | pageSize: 10, |
| | |
| | | this.safetySelfInspectionL(); |
| | | }, |
| | | methods: { |
| | | resetPage(){ |
| | | this.listQuery.filter={} |
| | | this.listQuery.pageIndex=1 |
| | | this.listQuery.pageSize=10 |
| | | this.safetySelfInspectionL(); |
| | | }, |
| | | |
| | | async safetySelfInspectionL() { |
| | | var res = await safetySelfInspectionList(this.listQuery).then((res) => { |
| | | if (res.data.code == 200) { |
| | |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | <el-table-column align="center" label="评审结果"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="(scope.row.safetyInspectionItemResult== 0)" |
| | | >是</span |
| | | >否决</span |
| | | > |
| | | <span v-if="(scope.row.safetyInspectionItemResult == 1)" |
| | | >否</span |
| | | >扣分</span |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="" |
| | | prop="remark" |
| | | align="center" |
| | | label="备注" |
| | | ></el-table-column> |
| | |
| | | .titles { |
| | | font-size: 14px; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="date" |
| | | align="center" |
| | | label="扣分" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="date" |
| | | prop="remark" |
| | | align="center" |
| | | label="扣分备注" |
| | | > |
| | |
| | | </div> |
| | | <el-dialog :title="id" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%"> |
| | | <el-form ref="form" :rules="rules" :model="form" label-width="110px"> |
| | | <el-form-item label="自查清单名称" prop="name"> |
| | | <el-form-item label="自查清单名称" prop="inspectionName"> |
| | | <el-input v-model="form.inspectionName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="检查人名称" prop="type"> |
| | | <el-form-item label="检查人名称" prop="inspector"> |
| | | <el-select |
| | | v-model="form.inspector" |
| | | style="width: 100%" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="时间" prop="time"> |
| | | <el-form-item label="时间" prop="inspectionTime"> |
| | | <el-col :span="11"> |
| | | <el-date-picker |
| | | type="date" |
| | | format="yyyy 年 MM 月 dd 日" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="开始时间" |
| | | v-model="form.inspectionTime" |
| | | style="width: 100%" |
| | |
| | | class="dialog-footer" |
| | | > |
| | | <el-button type="primary" class="btn" @click="addC">确 定</el-button> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button @click="closeDialog">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | itemId: "", |
| | | parent: [], |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: "要素名称不能为空", trigger: "change" }, |
| | | ], |
| | | type: [ |
| | | { required: true, message: "级别不能为空", trigger: "change" }, |
| | | ], |
| | | time: [ |
| | | { required: true, message: "父要素不能为空", trigger: "change" }, |
| | | ] |
| | | }, |
| | | rules: { |
| | | inspectionName: [{required: true, message: '自查清单名称不能为空', trigger: 'blur'}], |
| | | inspector: [{required: true, message: '检查人名称为空', trigger: 'blur'}], |
| | | inspectionTime: [{required: true, message: '检查时间不能为空', trigger: 'blur'}], |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | }, |
| | | open(type) { |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].clearValidate(); |
| | | }); |
| | | this.dialogVisible = true; |
| | | this.form.status = type; |
| | | var arr = []; |
| | |
| | | } |
| | | }); |
| | | }, |
| | | closeDialog(){ |
| | | this.dialogVisible = false |
| | | console.log(123,this.form) |
| | | }, |
| | | addC() { |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | } |
| | | </style> |
| | | </style> |