| | |
| | | |
| | | <el-dialog :visible.sync="visible" append-to-body destroy-on-close title="审核" width="30%" |
| | | custom-class="flow-design-dialog" :before-close="handleClose"> |
| | | <audit-base @handleSubmit="submitAudit"></audit-base> |
| | | <audit-base ref="auditBase" @handleSubmit="submitAudit"></audit-base> |
| | | </el-dialog> |
| | | <el-drawer title="消防自查详情" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl"> |
| | | |
| | | |
| | | <el-drawer title="无诈申请" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl"> |
| | | <div class="title"> |
| | | <div class="icon">{{ refreshNum }}</div> |
| | | 基础信息 |
| | |
| | | <div class="info-name">场所名称</div> |
| | | <div class="info-value">{{ rowDetail.placeName }}</div> |
| | | </div> |
| | | <!-- <div class="info-item"> |
| | | <div class="info-name">场所类别</div> |
| | | <div class="info-value">{{ rowDetail.noExplosionCategoryName }}</div> |
| | | </div> --> |
| | | <div class="info-item"> |
| | | <div class="info-name">检查人</div> |
| | | <div class="info-name">场所标准地址</div> |
| | | <div class="info-value">{{ rowDetail.addressName }}</div> |
| | | </div> |
| | | <div class="info-item"> |
| | | <div class="info-name">上报人</div> |
| | | <div class="info-value">{{ rowDetail.name }}</div> |
| | | </div> |
| | | <div class="info-item"> |
| | | <div class="info-name">检查时间</div> |
| | | <div class="info-name">上报时间</div> |
| | | <div class="info-value">{{ rowDetail.createTime }}</div> |
| | | </div> |
| | | <div class="info-item"> |
| | | <div class="info-name">门牌二维码</div> |
| | | <div class="info-value"><img style="width: 60px;height: 60px;" :src="rowDetail.qrImg" alt="" /></div> |
| | | </div> |
| | | </div> |
| | | <div class="title"> |
| | | <div class="icon"></div> |
| | | 检查记录 |
| | | 上报记录 |
| | | </div> |
| | | |
| | | <div class="question-list" v-for="(tItem, tIndex) in rowDetail.qTypeList" :key='tIndex' v-loading="drawerLoading"> |
| | |
| | | </div> |
| | | <div class="yh-pic-box"> |
| | | <div class="yh-pic-name"> |
| | | 上报图片 |
| | | 上报附件 |
| | | </div> |
| | | <div class="yh-pic-list"> |
| | | <div class="pic-item" v-for="pic in item.imageUrlsList"> |
| | | <el-image style="width: 100px; height: 100px" :src="pic" :fit="fit"></el-image> |
| | | |
| | | <div v-if="type === 1" class="pic-item" v-for="pic in item.imageUrlsList"> |
| | | <el-image style="width: 100px; height: 100px" :src="pic" :fit="fit" |
| | | :preview-src-list="item.imageUrlsList"></el-image> |
| | | </div> |
| | | |
| | | <div v-if="type === 2" style="line-height: 100px;" v-for="pic in item.imageUrlsList"> |
| | | <el-button @click="downloadFile(item.imageUrls)" type="primary">下载</el-button> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | applyTaskExamine |
| | | } from "@/api/task/task" |
| | | |
| | | import auditBase from './components/auditBase' |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | |
| | | export default { |
| | | data() { |
| | | //手机号格式校验 |
| | | let validatorPhone = function(rule, value, callback) { |
| | | if (value) { |
| | | if (!/^1[3456789]\d{9}$/.test(value)) { |
| | | callback(new Error('手机号格式有误!')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | callback() |
| | | } |
| | | // let validatorPhone = function(rule, value, callback) { |
| | | // if (value) { |
| | | // if (!/^1[3456789]\d{9}$/.test(value)) { |
| | | // callback(new Error('手机号格式有误!')) |
| | | // } else { |
| | | // callback() |
| | | // } |
| | | // } |
| | | // callback() |
| | | // } |
| | | |
| | | return { |
| | | isDetail: false, |
| | |
| | | columnBtn: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | label: "创建时间", |
| | | prop: "dateRange", |
| | | type: "daterange", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | searchRange: true, |
| | | startPlaceholder: '开始日期', |
| | | endPlaceholder: '结束日期', |
| | | align: 'center', |
| | | search: true, |
| | | hide: true, |
| | | searchSpan: 5, |
| | | searchLabelWidth: 76, |
| | | }, { |
| | | label: "场所名称", |
| | | prop: "placeName", |
| | | span: 24, |
| | |
| | | overHidden: true, |
| | | align: 'center' |
| | | }, { |
| | | label: "场所类别", |
| | | label: "无诈类别", |
| | | prop: "noExplosionCategory", |
| | | align: 'center', |
| | | dicUrl: "/api/blade-system/dict-biz/tree?code=noExplosionCategory", |
| | |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 96, |
| | | align: 'center' |
| | | }, { |
| | | label: "所属街道", |
| | | prop: "streetName", |
| | |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "所属网格", |
| | | prop: "gridName", |
| | | label: "派出所", |
| | | prop: "pcsName", |
| | | span: 24, |
| | | row: true, |
| | | searchSpan: 4, |
| | |
| | | searchSpan: 4, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "无诈上报数量", |
| | | prop: "number", |
| | | span: 24, |
| | | row: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | | align: 'center' |
| | | }, |
| | | // { |
| | | // label: "无诈上报数量", |
| | | // prop: "number", |
| | | // span: 24, |
| | | // row: true, |
| | | // slot: true, |
| | | // searchSpan: 4, |
| | | // align: 'center' |
| | | // }, |
| | | { |
| | | width: 110, |
| | | label: "审核状态", |
| | |
| | | ], |
| | | }, |
| | | data: [], |
| | | type: '', |
| | | |
| | | auditBasePopup: false, |
| | | questionTypeList: [], |
| | |
| | | |
| | | provide() { |
| | | return { |
| | | placeElement: this, |
| | | placeElement: this |
| | | } |
| | | }, |
| | | |
| | | components: { |
| | | auditBase, |
| | | campusReporting, |
| | | hotelReporting, |
| | | labelReporting, |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | |
| | | downloadFile(url) { |
| | | window.location.href = url |
| | | // window.open(url); |
| | | // const link = document.createElement('a'); |
| | | // link.href = url; |
| | | // link.download = ""; |
| | | // link.target = "_blank"; // 可选,如果希望在新窗口中下载文件,请取消注释此行 |
| | | // link.click(); |
| | | }, |
| | | // 点击展开收缩 |
| | | flodQL(index) { |
| | | this.rowDetail.qTypeList[index].isShowQList = !this.rowDetail.qTypeList[index].isShowQList |
| | |
| | | }, |
| | | |
| | | getDetail(rowData) { |
| | | console.log("*************rowData**************" + JSON.stringify(rowData.type)) |
| | | this.type = rowData.type |
| | | this.getPatrolGroupTree({ |
| | | type: 2, |
| | | childType: rowData.noExplosionCategory |
| | |
| | | isShowQList: true |
| | | }) |
| | | }) |
| | | // console.log("999999999999999999999999" + JSON.stringify(newArr)) |
| | | |
| | | row.qTypeList = newArr |
| | | } |
| | | // 九小类型转换 |
| | |
| | | reportType: row.reportType |
| | | } |
| | | this.visible = true |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | that.$refs.auditBase.init(row) |
| | | }) |
| | | }, |
| | | |
| | | colseDetail() { |
| | |
| | | |
| | | delete row.smallLabel |
| | | |
| | | add({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | // add({ |
| | | // ...row, |
| | | // label |
| | | // }).then( |
| | | // () => { |
| | | // this.onLoad(this.page) |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }) |
| | | // done() |
| | | // }, |
| | | // (error) => { |
| | | // window.console.log(error) |
| | | // loading() |
| | | // } |
| | | // ) |
| | | }, |
| | | |
| | | rowUpdate(row, index, done, loading) { |
| | |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | // update({ |
| | | // ...row, |
| | | // label |
| | | // }).then( |
| | | // () => { |
| | | // this.onLoad(this.page) |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }) |
| | | // done() |
| | | // }, |
| | | // (error) => { |
| | | // window.console.log(error) |
| | | // loading() |
| | | // } |
| | | // ) |
| | | }, |
| | | |
| | | rowDel(row) { |
| | |
| | | searchChange(params, done) { |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | let dateRange = params.dateRange |
| | | if (params.dateRange) { |
| | | params.startTime = dateRange[0] + " 00:00:00" |
| | | params.endTime = dateRange[1] + " 23:59:59" |
| | | delete params.dateRange |
| | | } |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids) |
| | | // return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | const {} = this.query |
| | | this.query = {} |
| | | let values = { |
| | | ...params, |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | data.records.forEach(item => {}) |
| | | // data.records.forEach(item => {}) |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.loading = false |