<!--案卷详情 只读--> <template> <app-container style="margin-bottom: 10px"> <el-row class="table-title"> <el-col :span="6"><div class="title-header"><i class="el-icon-menu"/>店铺信息</div></el-col> <el-col :span="12" :offset="6" class="edit_btns"> <el-button class="edit_btn" size="small" @click="dialogVisible = true">查看地图</el-button> </el-col> </el-row> <el-form ref="caseform" class="form" label-width="90px"> <el-row :gutter="20"> <el-col :span="6"> <el-form-item label="三包编号"> <table-cell-read :text="caseDetail.shopCode" readonly="true"/> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="租用面积(㎡)" label-width="120px"> <table-cell-read :text="caseDetail.rentArea.toString()"/> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="所在街道"> <table-cell-read :text="caseDetail.streetName"/> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="所在社区"> <table-cell-read :text="caseDetail.communityName"/> </el-form-item> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="6"> <el-form-item label="详细地址"> <table-cell-read :text="caseDetail.address"/> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="大队负责人"> <table-cell-read :text="caseDetail.chargeName"/> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="联系电话"> <table-cell-read :text="caseDetail.chargePhone"/> </el-form-item> </el-col> </el-row> </el-form> <el-row class="table-title"> <el-col :span="6"><div class="title-header"><i class="el-icon-menu"/>商户变更记录</div></el-col> </el-row> <el-table :data="list" class="table" border @row-click="check" > <el-table-column :index="indexMethod" align="center" type="index" label="序号" width="55"/> <el-table-column v-for="column in columns" :key="column.value" :label="column.text" :width="column.width" :align="column.align" show-overflow-tooltip> <template slot-scope="scope"> <span :class="column.class">{{ scope.row[column.value] }}</span> </template> </el-table-column> <el-table-column label="操作" width="120" align="center"> <template slot-scope="scope"> <el-button type="primary" size="mini" @click="check(scope.row)">详情</el-button> </template> </el-table-column> </el-table> <el-dialog :visible.sync="dialogVisible" :append-to-body="true" title="位置详情" > <arc-gis-map-shop :position="caseDetail.regionPoints" /> </el-dialog> </app-container> </template> <script> // import 'element-ui/lib/theme-chalk/index.css' import { shopDetail } from '@/api/merchant/merchant' import { changeListByShop } from '@/api/change/change' import ArcGisMapShop from '@/components/Map/arcgisMapShop' export default { name: 'ShopChangeDetail', components: { ArcGisMapShop }, data() { return { id: '', code: '', imgurl: process.env.BASE_API + '/static/', showNeedVisit: false, caseDetail: {}, operationKey: '', // 案件处理按钮key recordList: [], // 流转记录列表 list: [], // 流转记录列表 processForm: { // 提交案卷处理表单 processId: '', // 流程实例ID bizId: '', // 业务表单ID(caseId) currState: '', // 当前案件状态 changeState: '', // 案件流转后状态 remarks: '', // 审批意见 approvalResult: '' // 审批结果标志 }, columns: [ { text: '商户名称', value: 'merchantName', align: 'center' }, { text: '租用状态', value: 'rentStatusName', align: 'center' }, { text: '联系人', value: 'contactName', align: 'center' }, { text: '联系电话', value: 'contactPhone', align: 'center' }, { text: '更新人员', value: 'applyUserName', align: 'center' }, { text: '更新时间', value: 'applyTime', width: 180, align: 'center' } ], rules: { refuseReason: [{ required: true, message: '驳回原因不能为空', trigger: ['blur', 'change'] }] }, // 前端校验规则 dialogVisible: false } }, computed: { isNeedVisit: function() { return this.caseDetail.isNeedRevisit === 1 ? '需要回访' : '不需要回访' } }, mounted() { this.id = this.$route.params.id this.code = this.$route.params.code this.initData() this.fetchData() }, methods: { indexMethod(index) { return index + 1 }, check(row) { this.$router.push({ path: '/changeDetail/' + row.recordId }) }, async initData() { // 查询案件详情接口 const resDetail = await shopDetail(this.id) this.caseDetail = resDetail.data }, async fetchData() { // 查询案件详情接口 const resDetail = await changeListByShop(this.code) this.list = resDetail.data } } } </script> <style rel="stylesheet/scss" lang="scss" scoped> $tableTitleHeight:46px; .table-title{ background-color: rgb(255, 255, 255); height: 46px; .title-header{ line-height:$tableTitleHeight; color: #606266; font-size: 15px; i{ margin-left: 5px; margin-right: 5px; } } } .edit_btns{ .edit_btn{ float:right; margin:7px 3px;//为了需要居中显示margin-top和bottom要用$tableTitleHeight减去按钮原高度除以2 } } .app-container{ // padding-top: 50px; margin-bottom: 20px; } .form{ margin: 20px; // margin-left: 20px; // margin-right: 20px; } .table{ margin: 20px; width: 98%; } .title{ margin-left: 38px; font-size: 15px; font-weight: bold; margin-bottom: 20px; } .content{ margin-left: 50px; font-size: 14px; margin-bottom: 10px; } .button{ margin-bottom: 30px; } .image-container { margin-left: 40px; margin-right: 20px; margin-bottom: 20px; } .el-image.image { width: 150px; height: 150px; margin-right: 20px; } /deep/ .gutter{ background-color: #f3f3f3; } /deep/ .el-icon-circle-close{ color: #e2e2e2 } </style>