|
|
@ -9,116 +9,120 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-top"> |
|
|
<div class="right-top"> |
|
|
<el-button @click="cancel()">{{ $t('form.cancel') }}</el-button> |
|
|
<el-button @click="cancel()">{{ $t('form.cancel') }}</el-button> |
|
|
<el-button @click="exportExcel()">{{ $t('form.export') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="exportPDF()">{{ $t('form.export') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.gsp.gspxq') |
|
|
|
|
|
|
|
|
<div ref="content"> |
|
|
|
|
|
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.gsp.gspxq') |
|
|
}}<img src="@/assets/images/detail-title.png" /></div> |
|
|
}}<img src="@/assets/images/detail-title.png" /></div> |
|
|
<div class="detail-content"> |
|
|
|
|
|
<div class="content-left"> |
|
|
|
|
|
<div class="content-title"> |
|
|
|
|
|
<div class="line"></div> |
|
|
|
|
|
<div class="subtitle"> 基本信息</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.mc') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.mc" maxlength="50" disabled /> |
|
|
|
|
|
|
|
|
<div class="detail-content"> |
|
|
|
|
|
<div class="content-left"> |
|
|
|
|
|
<div class="content-title"> |
|
|
|
|
|
<div class="line"></div> |
|
|
|
|
|
<div class="subtitle"> 基本信息</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.bh') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.bh" maxlength="50" disabled /> |
|
|
|
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.mc') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.mc" maxlength="50" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.bh') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.bh" maxlength="50" disabled /> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.ph" maxlength="50" disabled /> |
|
|
|
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.ph" maxlength="50" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.gg') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.gg" maxlength="50" disabled> <template slot="append">{{ |
|
|
|
|
|
form.ggdw }}</template> </el-input> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.gg') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.gg" maxlength="50" disabled> <template slot="append">{{ |
|
|
|
|
|
form.ggdw }}</template> </el-input> |
|
|
|
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.jsrq') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.jsrq" maxlength="50" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.kcl') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.kc" maxlength="50" disabled> <template slot="append">{{ |
|
|
|
|
|
form.kcdw }}</template> </el-input> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.jsrq') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.jsrq" maxlength="50" disabled /> |
|
|
|
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.yxq') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.yxq" maxlength="50" disabled /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.zjzt') }}</div> |
|
|
|
|
|
<el-select v-model="form.zjzt" disabled style="width: 100%;"> |
|
|
|
|
|
<el-option key="1" :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> |
|
|
|
|
|
<el-option key="3" :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> |
|
|
|
|
|
<el-option key="5" :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" /> |
|
|
|
|
|
<el-option key="7" :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" /> |
|
|
|
|
|
<el-option key="9" :label="$t('page.business.resource.resource.zjzt.gd')" :value="9" /> |
|
|
|
|
|
<el-option key="11" :label="$t('page.business.resource.resource.zjzt.djd')" :value="11" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.kcl') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.kc" maxlength="50" disabled > <template slot="append">{{ |
|
|
|
|
|
form.kcdw }}</template> </el-input> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content-title"> |
|
|
|
|
|
<div class="line"></div> |
|
|
|
|
|
<div class="subtitle"> {{ $t('page.business.resource.gsp.tz') }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<div class="left"> |
|
|
|
|
|
<div class="left-title">{{ $t('page.business.resource.gsp.yxq') }}</div> |
|
|
|
|
|
<el-input type="text" :value="form.yxq" maxlength="50" disabled /> |
|
|
|
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<el-table :data="tzList" v-loading="loadingTz"> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.syr')" align="center" prop="qmrMc" |
|
|
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.lqghr')" align="center" |
|
|
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ scope.row.lqrMc }}{{ scope.row.ghrMc }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.ffjsr')" align="center" |
|
|
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ scope.row.ffrMc }}{{ scope.row.jsrMc }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.czlx')" align="center" prop="qmyy" |
|
|
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.czl')" align="center" |
|
|
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ scope.row.czl }}{{ scope.row.czldw }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.bzyy')" align="center" prop="remark" |
|
|
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.ccsj')" align="center" prop="createTime" |
|
|
|
|
|
width="150px" /> |
|
|
|
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right"> |
|
|
|
|
|
<div class="right-title">{{ $t('page.business.resource.gsp.zjzt') }}</div> |
|
|
|
|
|
<el-select v-model="form.zjzt" disabled style="width: 100%;"> |
|
|
|
|
|
<el-option key="1" :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> |
|
|
|
|
|
<el-option key="3" :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> |
|
|
|
|
|
<el-option key="5" :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" /> |
|
|
|
|
|
<el-option key="7" :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" /> |
|
|
|
|
|
<el-option key="9" :label="$t('page.business.resource.resource.zjzt.gd')" :value="9" /> |
|
|
|
|
|
<el-option key="11" :label="$t('page.business.resource.resource.zjzt.djd')" :value="11" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<pagination v-show="totalTz > 0" :total="totalTz" :page.sync="queryParamstZ.pageNum" |
|
|
|
|
|
:limit.sync="queryParamstZ.pageSize" @pagination="getTzList" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="content-right"> |
|
|
|
|
|
<div class="content-title"> |
|
|
|
|
|
<div class="line"></div> |
|
|
|
|
|
<div class="subtitle"> {{ $t('page.business.resource.gsp.jcgj') }}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<jcgjList ref="jcgjList" @handleQuery="jcgjListHandleQuery" /> |
|
|
|
|
|
|
|
|
<div class="content-title"> |
|
|
|
|
|
<div class="line"></div> |
|
|
|
|
|
<div class="subtitle"> {{ $t('page.business.resource.gsp.tz') }}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<el-table :data="tzList" v-loading="loadingTz"> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.syr')" align="center" prop="qmrMc" |
|
|
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.lqghr')" align="center" |
|
|
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ scope.row.lqrMc }}{{ scope.row.ghrMc }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.ffjsr')" align="center" |
|
|
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ scope.row.ffrMc }}{{ scope.row.jsrMc }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.czlx')" align="center" prop="qmyy" |
|
|
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.czl')" align="center" |
|
|
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ scope.row.czl }}{{ scope.row.czldw }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.bzyy')" align="center" prop="remark" |
|
|
|
|
|
:show-overflow-tooltip="true" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.ccsj')" align="center" prop="createTime" |
|
|
|
|
|
width="150px" /> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="pal"> |
|
|
|
|
|
<pagination v-show="totalTz > 0" :total="totalTz" :page.sync="queryParamstZ.pageNum" |
|
|
|
|
|
:limit.sync="queryParamstZ.pageSize" @pagination="getTzList" /> |
|
|
|
|
|
|
|
|
<pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal" |
|
|
|
|
|
@pagination="getJjcgjList" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="content-right"> |
|
|
|
|
|
<div class="content-title"> |
|
|
|
|
|
<div class="line"></div> |
|
|
|
|
|
<div class="subtitle"> {{ $t('page.business.resource.mjy.jcgj') }}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<jcgjList ref="jcgjList" @handleQuery="jcgjListHandleQuery" /> |
|
|
|
|
|
|
|
|
<XqExport ref="XqExport" key="XqExport" /> |
|
|
|
|
|
|
|
|
<pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal" |
|
|
|
|
|
@pagination="getJjcgjList" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -127,10 +131,12 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { info, tzList, jcgjList } from "@/api/business/gsp/gsp" |
|
|
import { info, tzList, jcgjList } from "@/api/business/gsp/gsp" |
|
|
import JcgjList from "@/views/business/comps/common/JcgjList"; |
|
|
import JcgjList from "@/views/business/comps/common/JcgjList"; |
|
|
|
|
|
|
|
|
|
|
|
import html2canvas from 'html2canvas'; |
|
|
|
|
|
import jsPDF from 'jspdf' |
|
|
|
|
|
import XqExport from "./XqExport" |
|
|
export default { |
|
|
export default { |
|
|
name: "Xq", |
|
|
name: "Xq", |
|
|
components: { JcgjList }, |
|
|
|
|
|
|
|
|
components: { JcgjList, XqExport }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
form: {}, |
|
|
form: {}, |
|
|
@ -155,6 +161,40 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
exportPDF() { |
|
|
|
|
|
console.log(this.$refs.XqExport) |
|
|
|
|
|
this.$refs.XqExport.exportPDF() |
|
|
|
|
|
// const element = this.$refs.content |
|
|
|
|
|
// const canvas = await html2canvas(element, { |
|
|
|
|
|
// scale: 2, // 提高清晰度 |
|
|
|
|
|
// useCORS: true, // 允许跨域图片 |
|
|
|
|
|
// backgroundColor: '#ffffff' |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
// const imgData = canvas.toDataURL('image/png') |
|
|
|
|
|
// const pdf = new jsPDF('p', 'mm', 'a4') // A4纸,纵向 |
|
|
|
|
|
|
|
|
|
|
|
// const imgWidth = 210 // A4纸宽度 |
|
|
|
|
|
// const pageHeight = 295 // A4纸高度 |
|
|
|
|
|
// const imgHeight = (canvas.height * imgWidth) / canvas.width |
|
|
|
|
|
|
|
|
|
|
|
// let heightLeft = imgHeight |
|
|
|
|
|
// let position = 0 |
|
|
|
|
|
|
|
|
|
|
|
// // 第一页 |
|
|
|
|
|
// pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight) |
|
|
|
|
|
// heightLeft -= pageHeight |
|
|
|
|
|
|
|
|
|
|
|
// // 多页处理 |
|
|
|
|
|
// while (heightLeft > 0) { |
|
|
|
|
|
// position = heightLeft - imgHeight |
|
|
|
|
|
// pdf.addPage() |
|
|
|
|
|
// pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight) |
|
|
|
|
|
// heightLeft -= pageHeight |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// pdf.save('document.pdf') |
|
|
|
|
|
}, |
|
|
exportExcel() { |
|
|
exportExcel() { |
|
|
alert('todo') |
|
|
alert('todo') |
|
|
}, |
|
|
}, |
|
|
@ -197,6 +237,8 @@ export default { |
|
|
this.getTzList() |
|
|
this.getTzList() |
|
|
this.open = true |
|
|
this.open = true |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.$refs.XqExport.show(row) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|