Merge branch 'dev'
Showing
82 changed files
with
1474 additions
and
2680 deletions
| 1 | /* | 1 | /* | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-05-16 14:05:25 | 4 | * @LastEditTime: 2023-09-15 09:32:40 | 
| 5 | */ | 5 | */ | 
| 6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' | 
| 7 | import { log } from 'bpmn-js-token-simulation' | 7 | import { log } from 'bpmn-js-token-simulation' | 
| ... | @@ -25,7 +25,7 @@ export function addRepairRecord (data) { | ... | @@ -25,7 +25,7 @@ export function addRepairRecord (data) { | 
| 25 | */ | 25 | */ | 
| 26 | export function deleteFlow (params) { | 26 | export function deleteFlow (params) { | 
| 27 | return request({ | 27 | return request({ | 
| 28 | url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow?bsmSlsq='+params, | 28 | url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow?bsmSlsq=' + params, | 
| 29 | method: 'get', | 29 | method: 'get', | 
| 30 | }) | 30 | }) | 
| 31 | } | 31 | } | 
| ... | @@ -37,7 +37,7 @@ export function deleteFlow (params) { | ... | @@ -37,7 +37,7 @@ export function deleteFlow (params) { | 
| 37 | */ | 37 | */ | 
| 38 | export function deleteRepairRecord (params) { | 38 | export function deleteRepairRecord (params) { | 
| 39 | return request({ | 39 | return request({ | 
| 40 | url: SERVER.SERVERAPI + '/rest/djbRepair/deleteRepairRecord?bsmRepair='+params, | 40 | url: SERVER.SERVERAPI + '/rest/djbRepair/deleteRepairRecord?bsmRepair=' + params, | 
| 41 | method: 'get', | 41 | method: 'get', | 
| 42 | }) | 42 | }) | 
| 43 | } | 43 | } | 
| ... | @@ -49,7 +49,7 @@ export function deleteRepairRecord (params) { | ... | @@ -49,7 +49,7 @@ export function deleteRepairRecord (params) { | 
| 49 | */ | 49 | */ | 
| 50 | export function init (params) { | 50 | export function init (params) { | 
| 51 | return request({ | 51 | return request({ | 
| 52 | url: SERVER.SERVERAPI + '/rest/djbRepair/init?bsmRepair='+params.bsmRepair+'&isEdit='+params.isEdit, | 52 | url: SERVER.SERVERAPI + '/rest/djbRepair/init?bsmRepair=' + params.bsmRepair + '&isEdit=' + params.isEdit, | 
| 53 | method: 'get', | 53 | method: 'get', | 
| 54 | }) | 54 | }) | 
| 55 | } | 55 | } | 
| ... | @@ -61,7 +61,7 @@ export function init (params) { | ... | @@ -61,7 +61,7 @@ export function init (params) { | 
| 61 | */ | 61 | */ | 
| 62 | export function leftMenubl (params) { | 62 | export function leftMenubl (params) { | 
| 63 | return request({ | 63 | return request({ | 
| 64 | url: SERVER.SERVERAPI + '/rest/djbRepair/leftMenu?bsmSlsq='+params, | 64 | url: SERVER.SERVERAPI + '/rest/djbRepair/leftMenu?bsmSlsq=' + params, | 
| 65 | method: 'get', | 65 | method: 'get', | 
| 66 | params | 66 | params | 
| 67 | }) | 67 | }) | 
| ... | @@ -110,7 +110,7 @@ export function getZtQlxx (params) { | ... | @@ -110,7 +110,7 @@ export function getZtQlxx (params) { | 
| 110 | * @param {*} data | 110 | * @param {*} data | 
| 111 | * @author: renchao | 111 | * @author: renchao | 
| 112 | */ | 112 | */ | 
| 113 | export function startBusinessFlow (data) { | 113 | export function startBusinessFlow (data) { | 
| 114 | return request({ | 114 | return request({ | 
| 115 | url: SERVER.SERVERAPI + '/rest/djbRepair/startBusinessFlow', | 115 | url: SERVER.SERVERAPI + '/rest/djbRepair/startBusinessFlow', | 
| 116 | method: 'post', | 116 | method: 'post', | 
| ... | @@ -122,7 +122,7 @@ export function getZtQlxx (params) { | ... | @@ -122,7 +122,7 @@ export function getZtQlxx (params) { | 
| 122 | * @param {*} data | 122 | * @param {*} data | 
| 123 | * @author: renchao | 123 | * @author: renchao | 
| 124 | */ | 124 | */ | 
| 125 | export function addidea (data) { | 125 | export function addidea (data) { | 
| 126 | return request({ | 126 | return request({ | 
| 127 | url: SERVER.SERVERAPI + '/rest/djbRepair/sh', | 127 | url: SERVER.SERVERAPI + '/rest/djbRepair/sh', | 
| 128 | method: 'post', | 128 | method: 'post', | 
| ... | @@ -134,9 +134,9 @@ export function getZtQlxx (params) { | ... | @@ -134,9 +134,9 @@ export function getZtQlxx (params) { | 
| 134 | * @param {*} data | 134 | * @param {*} data | 
| 135 | * @author: renchao | 135 | * @author: renchao | 
| 136 | */ | 136 | */ | 
| 137 | export function getShList (data) { | 137 | export function getShList (data) { | 
| 138 | return request({ | 138 | return request({ | 
| 139 | url: SERVER.SERVERAPI + '/rest/djbRepair/getShList?bsmRepair='+data.bsmRepair, | 139 | url: SERVER.SERVERAPI + '/rest/djbRepair/getShList?bsmRepair=' + data.bsmRepair, | 
| 140 | method: 'post', | 140 | method: 'post', | 
| 141 | data | 141 | data | 
| 142 | }) | 142 | }) | 
| ... | @@ -147,10 +147,24 @@ export function getZtQlxx (params) { | ... | @@ -147,10 +147,24 @@ export function getZtQlxx (params) { | 
| 147 | * @param {*} data | 147 | * @param {*} data | 
| 148 | * @author: renchao | 148 | * @author: renchao | 
| 149 | */ | 149 | */ | 
| 150 | export function getQlxxByQlxxBsm (params) { | 150 | export function getQlxxByQlxxBsm (params) { | 
| 151 | return request({ | 151 | return request({ | 
| 152 | url: SERVER.SERVERAPI + '/rest/djbRepair/getQlxxByQlxxBsm', | 152 | url: SERVER.SERVERAPI + '/rest/djbRepair/getQlxxByQlxxBsm', | 
| 153 | method: 'get', | 153 | method: 'get', | 
| 154 | params | 154 | params | 
| 155 | }) | 155 | }) | 
| 156 | } | 156 | } | 
| 157 | |||
| 158 | |||
| 159 | /** | ||
| 160 | * @description: 初始化材料信息 | ||
| 161 | * @param {*} data | ||
| 162 | * @author: renchao | ||
| 163 | */ | ||
| 164 | export function repairInitClml (data) { | ||
| 165 | return request({ | ||
| 166 | url: SERVER.SERVERAPI + '/rest/djbRepair/repairInitClml', | ||
| 167 | method: 'post', | ||
| 168 | data | ||
| 169 | }) | ||
| 170 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... | 
src/api/djyw.js
0 → 100644
| 1 | /* | ||
| 2 | * @Description: 登记业务信息接口 | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-09-18 14:22:02 | ||
| 5 | */ | ||
| 6 | import request from '@/utils/request' | ||
| 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
| 8 | /** | ||
| 9 | * @description: 根据业务号查询系统参数数据 | ||
| 10 | * @param {*} ywh | ||
| 11 | * @author: renchao | ||
| 12 | */ | ||
| 13 | export function getXtParamsByYwh (ywh) { | ||
| 14 | return request({ | ||
| 15 | url: SERVER.SERVERAPI + '/rest/ywbl/djyw/getXtParamsByYwh', | ||
| 16 | method: 'get', | ||
| 17 | params: { | ||
| 18 | ywh: ywh | ||
| 19 | } | ||
| 20 | }) | ||
| 21 | } | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @description: 根据业务号查询补录参数数据 | ||
| 25 | * @param {*} ywh | ||
| 26 | * @param {*} bsmQlxx | ||
| 27 | * @author: renchao | ||
| 28 | */ | ||
| 29 | export function getBlParamsByYwh (ywh, bsmQlxx) { | ||
| 30 | return request({ | ||
| 31 | url: SERVER.SERVERAPI + '/rest/ywbl/djyw/getBlParamsByYwh', | ||
| 32 | method: 'get', | ||
| 33 | params: { | ||
| 34 | ywh: ywh, | ||
| 35 | bsmQlxx: bsmQlxx | ||
| 36 | } | ||
| 37 | }) | ||
| 38 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-09-11 10:18:11 | 4 | * @LastEditTime: 2023-09-14 17:11:15 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <transition name="msgbox-fade"> | 7 | <transition name="msgbox-fade"> | 
| ... | @@ -160,7 +160,7 @@ | ... | @@ -160,7 +160,7 @@ | 
| 160 | .mask-content { | 160 | .mask-content { | 
| 161 | padding: 5px 20px 30px 20px; | 161 | padding: 5px 20px 30px 20px; | 
| 162 | width: 100%; | 162 | width: 100%; | 
| 163 | min-height: 20%; | 163 | min-height: 253px; | 
| 164 | max-height: 90vh; | 164 | max-height: 90vh; | 
| 165 | overflow-y: scroll; | 165 | overflow-y: scroll; | 
| 166 | } | 166 | } | ... | ... | 
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-09-07 15:04:46 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <dialogBox title="新建材料信息" width="20%" isMain v-model="myValue" @closeDialog="closeDialog" @submitForm="handleSubmit" | ||
| 8 | :isFullscreen="false"> | ||
| 9 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px"> | ||
| 10 | <el-row> | ||
| 11 | <el-col :span="24"> | ||
| 12 | <el-form-item label="材料类型" prop="cllx"> | ||
| 13 | <el-select v-model="ruleForm.cllx" class="width100" placeholder="请选择"> | ||
| 14 | <el-option v-for="item in cllxList" :key="item.dcode" :label="item.dname" :value="item.dcode"> | ||
| 15 | </el-option> | ||
| 16 | </el-select> | ||
| 17 | </el-form-item> | ||
| 18 | </el-col> | ||
| 19 | </el-row> | ||
| 20 | <el-row :gutter="20"> | ||
| 21 | <el-col :span="24"> | ||
| 22 | <el-form-item label="材料名称" prop="clmc"> | ||
| 23 | <el-input v-model="ruleForm.clmc"></el-input> | ||
| 24 | </el-form-item> | ||
| 25 | </el-col> | ||
| 26 | </el-row> | ||
| 27 | </el-form> | ||
| 28 | </dialogBox> | ||
| 29 | </template> | ||
| 30 | <script> | ||
| 31 | import store from '@/store/index.js' | ||
| 32 | export default { | ||
| 33 | props: { | ||
| 34 | value: { type: Boolean, default: false }, | ||
| 35 | }, | ||
| 36 | data () { | ||
| 37 | return { | ||
| 38 | cllxList: store.getters.dictData['A40'], | ||
| 39 | myValue: this.value, | ||
| 40 | ruleForm: { | ||
| 41 | cllx: "", | ||
| 42 | clmc: "", | ||
| 43 | }, | ||
| 44 | rules: { | ||
| 45 | cllx: [ | ||
| 46 | { required: true, message: '请选择材料类型', trigger: 'change' } | ||
| 47 | ], | ||
| 48 | clmc: [ | ||
| 49 | { required: true, message: '请输入材料名称', trigger: 'blur' } | ||
| 50 | ] | ||
| 51 | } | ||
| 52 | } | ||
| 53 | }, | ||
| 54 | watch: { | ||
| 55 | value (val) { | ||
| 56 | this.myValue = val; | ||
| 57 | }, | ||
| 58 | }, | ||
| 59 | methods: { | ||
| 60 | /** | ||
| 61 | * @description: closeDialog | ||
| 62 | * @author: renchao | ||
| 63 | */ | ||
| 64 | closeDialog () { | ||
| 65 | this.$emit("input", false); | ||
| 66 | this.ruleForm = { | ||
| 67 | cllx: "", | ||
| 68 | clmc: "", | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | /** | ||
| 72 | * @description: handleSubmit | ||
| 73 | * @author: renchao | ||
| 74 | */ | ||
| 75 | handleSubmit () { | ||
| 76 | this.$refs['ruleForm'].validate((valid) => { | ||
| 77 | if (valid) { | ||
| 78 | this.$parent.addSave(this.ruleForm); | ||
| 79 | this.ruleForm = { | ||
| 80 | cllx: "", | ||
| 81 | clmc: "", | ||
| 82 | } | ||
| 83 | this.$emit("input", false); | ||
| 84 | } else { | ||
| 85 | return false; | ||
| 86 | } | ||
| 87 | }) | ||
| 88 | } | ||
| 89 | } | ||
| 90 | }; | ||
| 91 | </script> | ||
| 92 | <style scoped lang="scss"> | ||
| 93 | .submit-button { | ||
| 94 | text-align: center; | ||
| 95 | height: 52px; | ||
| 96 | padding-top: 10px; | ||
| 97 | background-color: #fff; | ||
| 98 | } | ||
| 99 | </style> | 
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-09-14 11:14:54 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class="clmlmx-box"> | ||
| 8 | <lb-table :column="column" :key="key" row-key="bsmMaterial" ref="listTable" :heightNumSetting="true" :calcHeight="500" :pagination="false" | ||
| 9 | :data="tableData"> | ||
| 10 | </lb-table> | ||
| 11 | <div class="text-center"> | ||
| 12 | <el-button @click="handleCancel">取消</el-button> | ||
| 13 | <el-button type="primary" @click="handleSubmit" :loading="loading">保存</el-button> | ||
| 14 | </div> | ||
| 15 | </div> | ||
| 16 | </template> | ||
| 17 | <script> | ||
| 18 | import store from '@/store/index.js' | ||
| 19 | import Sortable from 'sortablejs' | ||
| 20 | import { ywPopupCacel } from "@/utils/popup.js"; | ||
| 21 | import { editCompanyMaterialList } from "@/api/company.js"; | ||
| 22 | export default { | ||
| 23 | props: { | ||
| 24 | formData: { | ||
| 25 | type: Object, | ||
| 26 | default: () => { | ||
| 27 | return {} | ||
| 28 | } | ||
| 29 | } | ||
| 30 | }, | ||
| 31 | data () { | ||
| 32 | return { | ||
| 33 | loading: false, | ||
| 34 | sortable: null, | ||
| 35 | column: [ | ||
| 36 | { | ||
| 37 | label: "材料名称", | ||
| 38 | render: (h, scope) => { | ||
| 39 | return ( | ||
| 40 | (scope.row.sfxjcl == '1') ? | ||
| 41 | <el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input> : <span>{scope.row.clmc}</span> | ||
| 42 | ) | ||
| 43 | } | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | label: "材料类型", | ||
| 47 | width: "110", | ||
| 48 | render: (h, scope) => { | ||
| 49 | return ( | ||
| 50 | <el-select value={scope.row.cllx} | ||
| 51 | onChange={(val) => { scope.row.cllx = val }}> | ||
| 52 | { | ||
| 53 | store.getters.dictData['A40'].map(option => { | ||
| 54 | return ( | ||
| 55 | <el-option label={option.dname} value={option.dcode}></el-option> | ||
| 56 | ) | ||
| 57 | }) | ||
| 58 | } | ||
| 59 | </el-select> | ||
| 60 | ) | ||
| 61 | } | ||
| 62 | }, | ||
| 63 | { | ||
| 64 | label: "页数", | ||
| 65 | width: "80", | ||
| 66 | render: (h, scope) => { | ||
| 67 | if (scope.row.count && scope.row.count > 0) { | ||
| 68 | return ( | ||
| 69 | <div> | ||
| 70 | <span>{scope.row.count}</span> | ||
| 71 | </div> | ||
| 72 | ); | ||
| 73 | } else { | ||
| 74 | return ( | ||
| 75 | <div> | ||
| 76 | <span>0</span> | ||
| 77 | </div> | ||
| 78 | ); | ||
| 79 | } | ||
| 80 | }, | ||
| 81 | }, | ||
| 82 | { | ||
| 83 | label: "操作", | ||
| 84 | width: "100", | ||
| 85 | render: (h, scope) => { | ||
| 86 | return ( | ||
| 87 | <el-button | ||
| 88 | type="text" | ||
| 89 | icon="el-icon-delete" | ||
| 90 | disabled={scope.row.count != 0} | ||
| 91 | onClick={() => { | ||
| 92 | this.handleDelete(scope.$index, scope.row); | ||
| 93 | }} | ||
| 94 | > | ||
| 95 | 删除 | ||
| 96 | </el-button> | ||
| 97 | ) | ||
| 98 | } | ||
| 99 | } | ||
| 100 | ], | ||
| 101 | key: 0, | ||
| 102 | tableData: [] | ||
| 103 | } | ||
| 104 | }, | ||
| 105 | mounted () { | ||
| 106 | this.initSort() | ||
| 107 | this.tableData = _.cloneDeep(this.formData.data) | ||
| 108 | }, | ||
| 109 | beforeDestroy () { | ||
| 110 | if (this.sortable) { | ||
| 111 | this.sortable.destroy(); | ||
| 112 | } | ||
| 113 | }, | ||
| 114 | watch: { | ||
| 115 | 'formData.data': { | ||
| 116 | handler: function (val, oldVal) { | ||
| 117 | this.tableData = _.cloneDeep(val) | ||
| 118 | }, | ||
| 119 | immediate: true, | ||
| 120 | deep: true | ||
| 121 | } | ||
| 122 | }, | ||
| 123 | methods: { | ||
| 124 | handleCancel () { | ||
| 125 | ywPopupCacel() | ||
| 126 | }, | ||
| 127 | handleSubmit () { | ||
| 128 | this.loading = true | ||
| 129 | store.dispatch('user/reWorkFresh', false) | ||
| 130 | editCompanyMaterialList(this.tableData, this.formData.bsmCompany).then(res => { | ||
| 131 | this.loading = false | ||
| 132 | if (res.code == 200) { | ||
| 133 | this.$message({ | ||
| 134 | message: '保存成功', | ||
| 135 | type: 'success' | ||
| 136 | }) | ||
| 137 | store.dispatch('user/reWorkFresh', true) | ||
| 138 | ywPopupCacel() | ||
| 139 | } | ||
| 140 | }).catch(() => { | ||
| 141 | this.loading = false | ||
| 142 | }) | ||
| 143 | }, | ||
| 144 | /** | ||
| 145 | * @description: 材料目录删除 | ||
| 146 | * @param {*} index | ||
| 147 | * @param {*} row | ||
| 148 | * @author: renchao | ||
| 149 | */ | ||
| 150 | handleDelete (index, row) { | ||
| 151 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { | ||
| 152 | confirmButtonText: '确定', | ||
| 153 | cancelButtonText: '取消', | ||
| 154 | type: 'warning' | ||
| 155 | }).then(() => { | ||
| 156 | this.tableData.splice(index, 1); | ||
| 157 | }).catch(() => { | ||
| 158 | this.$message({ | ||
| 159 | type: 'info', | ||
| 160 | message: '已取消删除' | ||
| 161 | }) | ||
| 162 | }) | ||
| 163 | }, | ||
| 164 | initSort () { | ||
| 165 | const el = this.$refs.listTable.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0] | ||
| 166 | this.sortable = Sortable.create(el, { | ||
| 167 | ghostClass: 'sortable-ghost', | ||
| 168 | setData: function (dataTransfer) { | ||
| 169 | dataTransfer.setData('Text', '') | ||
| 170 | }, | ||
| 171 | onEnd: evt => { | ||
| 172 | const targetRow = this.tableData.splice(evt.oldIndex, 1)[0]; | ||
| 173 | this.tableData.splice(evt.newIndex, 0, targetRow); | ||
| 174 | } | ||
| 175 | }) | ||
| 176 | } | ||
| 177 | } | ||
| 178 | } | ||
| 179 | </script> | ||
| 180 | <style scoped lang='scss'> | ||
| 181 | @import "~@/styles/mixin.scss"; | ||
| 182 | .clmlmx-box { | ||
| 183 | margin: 0 auto; | ||
| 184 | .title { | ||
| 185 | text-align: center; | ||
| 186 | height: 60px; | ||
| 187 | line-height: 60px; | ||
| 188 | border: 1px solid #dfe6ec; | ||
| 189 | font-size: 20px; | ||
| 190 | background: #81d3f81a; | ||
| 191 | margin-bottom: -1px; | ||
| 192 | } | ||
| 193 | } | ||
| 194 | </style> | 
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| ... | @@ -135,7 +135,7 @@ | ... | @@ -135,7 +135,7 @@ | 
| 135 | label="上手权利信息:" | 135 | label="上手权利信息:" | 
| 136 | prop="ssQlxx.bdcqzh" | 136 | prop="ssQlxx.bdcqzh" | 
| 137 | :rules="rules.ssQlxxrules" | 137 | :rules="rules.ssQlxxrules" | 
| 138 | v-if="ruleForm.cfdj.sfbxf == '1'"> | 138 | v-if="ruleForm.qlxx.djlx == '300'"> | 
| 139 | <select-table | 139 | <select-table | 
| 140 | v-model="ruleForm.ssQlxx" | 140 | v-model="ruleForm.ssQlxx" | 
| 141 | :table-width="730" | 141 | :table-width="730" | 
| ... | @@ -189,9 +189,9 @@ | ... | @@ -189,9 +189,9 @@ | 
| 189 | <el-form-item label="是否被续封:" | 189 | <el-form-item label="是否被续封:" | 
| 190 | prop="cfdj.sfbxf" | 190 | prop="cfdj.sfbxf" | 
| 191 | :rules="rules.sfbxfrules"> | 191 | :rules="rules.sfbxfrules"> | 
| 192 | <el-radio-group v-model="ruleForm.cfdj.sfbxf" @change="djlxchange"> | 192 | <el-radio-group v-model="ruleForm.qlxx.djlx" @change="djlxchange"> | 
| 193 | <el-radio label="1">是</el-radio> | 193 | <el-radio label="800">是</el-radio> | 
| 194 | <el-radio label="2">否</el-radio> | 194 | <el-radio label="300">否</el-radio> | 
| 195 | </el-radio-group> | 195 | </el-radio-group> | 
| 196 | </el-form-item> | 196 | </el-form-item> | 
| 197 | </el-col> | 197 | </el-col> | 
| ... | @@ -546,9 +546,9 @@ | ... | @@ -546,9 +546,9 @@ | 
| 546 | init(this.propsParam).then((res) => { | 546 | init(this.propsParam).then((res) => { | 
| 547 | if (res.code == 200) { | 547 | if (res.code == 200) { | 
| 548 | this.ruleForm = res.result; | 548 | this.ruleForm = res.result; | 
| 549 | if (this.ruleForm.cfdj) { | 549 | // if (this.ruleForm.cfdj) { | 
| 550 | this.ruleForm.cfdj.sfbxf = "2" | 550 | // this.ruleForm.cfdj.sfbxf = "2" | 
| 551 | } | 551 | // } | 
| 552 | this.isShow = true; | 552 | this.isShow = true; | 
| 553 | let djlx = this.ruleForm.qlxx.djlx; | 553 | let djlx = this.ruleForm.qlxx.djlx; | 
| 554 | this.$endLoading(); | 554 | this.$endLoading(); | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-08-22 16:27:38 | 4 | * @LastEditTime: 2023-09-15 09:33:54 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> | 
| ... | @@ -210,11 +210,6 @@ | ... | @@ -210,11 +210,6 @@ | 
| 210 | <el-input v-model="ruleForm.qlxx.bdcqzh"></el-input> | 210 | <el-input v-model="ruleForm.qlxx.bdcqzh"></el-input> | 
| 211 | </el-form-item> | 211 | </el-form-item> | 
| 212 | </el-col> | 212 | </el-col> | 
| 213 | <!-- <el-col :span="8"> | ||
| 214 | <el-form-item label="区县代码:" prop="qlxx.qxdm" :rules="rules.qxdmrules"> | ||
| 215 | <el-input v-model="ruleForm.qlxx.qxdm"></el-input> | ||
| 216 | </el-form-item> | ||
| 217 | </el-col> --> | ||
| 218 | <el-col :span="8"> | 213 | <el-col :span="8"> | 
| 219 | <el-form-item | 214 | <el-form-item | 
| 220 | label="登记机构:" | 215 | label="登记机构:" | ... | ... | 
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-05-09 09:20:10 | 4 | * @LastEditTime: 2023-09-15 09:30:33 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <el-dialog | 7 | <el-dialog | 
| ... | @@ -11,8 +11,7 @@ | ... | @@ -11,8 +11,7 @@ | 
| 11 | :visible.sync="dialogVisible" | 11 | :visible.sync="dialogVisible" | 
| 12 | custom-class="insetDialog" | 12 | custom-class="insetDialog" | 
| 13 | append-to-body | 13 | append-to-body | 
| 14 | width="31%" | 14 | width="31%"> | 
| 15 | > | ||
| 16 | <!-- <el-radio-group v-model="radio"> | 15 | <!-- <el-radio-group v-model="radio"> | 
| 17 | <el-radio-button | 16 | <el-radio-button | 
| 18 | v-for="(value, key) in qllxlistdata" | 17 | v-for="(value, key) in qllxlistdata" | 
| ... | @@ -21,9 +20,9 @@ | ... | @@ -21,9 +20,9 @@ | 
| 21 | ></el-radio-button> | 20 | ></el-radio-button> | 
| 22 | 21 | ||
| 23 | </el-radio-group> --> | 22 | </el-radio-group> --> | 
| 24 | <el-button class="gettypebutton" v-for="(value, key) in qllxlistdata" | 23 | <el-button class="gettypebutton" v-for="(value, key) in qllxlistdata" | 
| 25 | :key="key" | 24 | :key="key" | 
| 26 | :label="value" @click="clicksss(key)" plain>{{value}}</el-button> | 25 | :label="value" @click="clicksss(key)" plain>{{value}}</el-button> | 
| 27 | <div class="btn"> | 26 | <div class="btn"> | 
| 28 | <el-button type="primary" @click="handleSubmit">确定</el-button> | 27 | <el-button type="primary" @click="handleSubmit">确定</el-button> | 
| 29 | <el-button type="primary" @click="closeDialog">取消</el-button> | 28 | <el-button type="primary" @click="closeDialog">取消</el-button> | 
| ... | @@ -32,99 +31,97 @@ | ... | @@ -32,99 +31,97 @@ | 
| 32 | </template> | 31 | </template> | 
| 33 | 32 | ||
| 34 | <script> | 33 | <script> | 
| 35 | export default { | 34 | export default { | 
| 36 | data() { | 35 | data () { | 
| 37 | return { | 36 | return { | 
| 38 | dialogVisible: false, | 37 | dialogVisible: false, | 
| 39 | qllxlistdata: {}, | 38 | qllxlistdata: {}, | 
| 40 | radio: "", | 39 | radio: "", | 
| 41 | qllx:"" | 40 | qllx: "" | 
| 42 | }; | 41 | }; | 
| 43 | }, | ||
| 44 | |||
| 45 | methods: { | ||
| 46 | /** | ||
| 47 | * @description: closeDialog | ||
| 48 | * @author: renchao | ||
| 49 | */ | ||
| 50 | closeDialog() { | ||
| 51 | this.dialogVisible = false; | ||
| 52 | }, | 42 | }, | 
| 53 | 43 | ||
| 54 | /** | 44 | methods: { | 
| 55 | * @description: clicksss | 45 | /** | 
| 56 | * @param {*} el | 46 | * @description: closeDialog | 
| 57 | * @author: renchao | 47 | * @author: renchao | 
| 58 | */ | 48 | */ | 
| 59 | clicksss(el){ | 49 | closeDialog () { | 
| 60 | console.log("elllllllllllllllllllll",el); | 50 | this.dialogVisible = false; | 
| 61 | this.qllx=el | 51 | }, | 
| 62 | }, | ||
| 63 | /** | ||
| 64 | * @description: handleSubmit | ||
| 65 | * @author: renchao | ||
| 66 | */ | ||
| 67 | handleSubmit() { | ||
| 68 | 52 | ||
| 69 | if(this.qllx){ | 53 | /** | 
| 70 | let qllxobj = { | 54 | * @description: clicksss | 
| 71 | qllx:this.qllx, | 55 | * @param {*} el | 
| 72 | bsmQlxx:"" | 56 | * @author: renchao | 
| 73 | }; | 57 | */ | 
| 74 | this.$parent.addRepairRecord(qllxobj) | 58 | clicksss (el) { | 
| 75 | }else{ | 59 | this.qllx = el | 
| 76 | this.$message({ | 60 | }, | 
| 61 | /** | ||
| 62 | * @description: handleSubmit | ||
| 63 | * @author: renchao | ||
| 64 | */ | ||
| 65 | handleSubmit () { | ||
| 66 | |||
| 67 | if (this.qllx) { | ||
| 68 | let qllxobj = { | ||
| 69 | qllx: this.qllx, | ||
| 70 | bsmQlxx: "" | ||
| 71 | }; | ||
| 72 | this.$parent.addRepairRecord(qllxobj) | ||
| 73 | } else { | ||
| 74 | this.$message({ | ||
| 77 | type: "warning", | 75 | type: "warning", | 
| 78 | message: "请选择权利类型!", | 76 | message: "请选择权利类型!", | 
| 79 | }); | 77 | }); | 
| 80 | } | 78 | } | 
| 81 | this.qllx="" | 79 | this.qllx = "" | 
| 80 | }, | ||
| 82 | }, | 81 | }, | 
| 83 | }, | 82 | }; | 
| 84 | }; | ||
| 85 | </script> | 83 | </script> | 
| 86 | <style scoped lang="scss"> | 84 | <style scoped lang="scss"> | 
| 87 | @import '~@/styles/public.scss'; | 85 | @import "~@/styles/public.scss"; | 
| 88 | .qllxdialog { | 86 | .qllxdialog { | 
| 89 | margin-top: 160px; | 87 | margin-top: 160px; | 
| 90 | /deep/.el-dialog__body { | 88 | /deep/.el-dialog__body { | 
| 91 | margin-top: 10px; | 89 | margin-top: 10px; | 
| 92 | // height: 100px; | 90 | // height: 100px; | 
| 93 | padding: 20px; | 91 | padding: 20px; | 
| 92 | } | ||
| 93 | .gettypebutton { | ||
| 94 | cursor: pointer; | ||
| 95 | margin-left: 20px; | ||
| 96 | width: 45%; | ||
| 97 | line-height: 20px; | ||
| 98 | background-color: #ebebeb; | ||
| 99 | margin-top: 20px; | ||
| 100 | padding-left: 20px; | ||
| 101 | border-radius: 2px; | ||
| 102 | -webkit-box-sizing: border-box; | ||
| 103 | box-sizing: border-box; | ||
| 104 | border: 1px solid #ebebeb; | ||
| 105 | -webkit-transition: all 0.3s; | ||
| 106 | transition: all 0.3s; | ||
| 107 | color: #000; | ||
| 108 | } | ||
| 109 | .gettypebutton:hover { | ||
| 110 | border: 1px solid #0f93f6; | ||
| 111 | color: #0f93f6; | ||
| 112 | } | ||
| 113 | .gettypebutton:focus { | ||
| 114 | background-color: #0f93f6; | ||
| 115 | border: 1px solid #0f93f6; | ||
| 116 | color: #ebebeb; | ||
| 117 | } | ||
| 118 | .btn { | ||
| 119 | margin-top: 30px; | ||
| 120 | text-align: center; | ||
| 121 | .el-button { | ||
| 122 | margin-top: 10px; | ||
| 123 | margin-left: 20px; | ||
| 124 | } | ||
| 125 | } | ||
| 94 | } | 126 | } | 
| 95 | .gettypebutton{ | ||
| 96 | cursor: pointer; | ||
| 97 | margin-left: 20px; | ||
| 98 | width: 45%; | ||
| 99 | line-height: 20px; | ||
| 100 | background-color: #ebebeb; | ||
| 101 | margin-top: 20px; | ||
| 102 | padding-left: 20px; | ||
| 103 | border-radius: 2px; | ||
| 104 | -webkit-box-sizing: border-box; | ||
| 105 | box-sizing: border-box; | ||
| 106 | border: 1px solid #ebebeb; | ||
| 107 | -webkit-transition: all 0.3s; | ||
| 108 | transition: all 0.3s; | ||
| 109 | color: #000; | ||
| 110 | } | ||
| 111 | .gettypebutton:hover{ | ||
| 112 | border: 1px solid #0F93F6; | ||
| 113 | color: #0F93F6; | ||
| 114 | } | ||
| 115 | .gettypebutton:focus{ | ||
| 116 | background-color: #0F93F6; | ||
| 117 | border: 1px solid #0F93F6; | ||
| 118 | color: #ebebeb; | ||
| 119 | } | ||
| 120 | .btn{ | ||
| 121 | margin-top:30px; | ||
| 122 | text-align: center; | ||
| 123 | .el-button { | ||
| 124 | margin-top: 10px; | ||
| 125 | margin-left: 20px; | ||
| 126 | } | ||
| 127 | } | ||
| 128 | |||
| 129 | } | ||
| 130 | </style> | 127 | </style> | ... | ... | 
| 1 | /* | 1 | /* | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-05-29 14:39:11 | 4 | * @LastEditTime: 2023-09-15 09:31:37 | 
| 5 | */ | 5 | */ | 
| 6 | //流程环节操作按钮 | 6 | //流程环节操作按钮 | 
| 7 | export function getForm(tabName) { | 7 | export function getForm (tabName) { | 
| 8 | let form; | 8 | let form; | 
| 9 | switch (tabName) { | 9 | switch (tabName) { | 
| 10 | case "zdjbxx": | 10 | case "zdjbxx": | 
| ... | @@ -46,7 +46,7 @@ export function getForm(tabName) { | ... | @@ -46,7 +46,7 @@ export function getForm(tabName) { | 
| 46 | case "yydj": | 46 | case "yydj": | 
| 47 | form = require("@/views/registerBook/yydj.vue"); | 47 | form = require("@/views/registerBook/yydj.vue"); | 
| 48 | break; | 48 | break; | 
| 49 | //林地使用权 | 49 | //林地使用权 | 
| 50 | case "slxxlq": | 50 | case "slxxlq": | 
| 51 | form = require("@/views/djbworkflow/djbBook/components/blxxtabs/lq.vue"); | 51 | form = require("@/views/djbworkflow/djbBook/components/blxxtabs/lq.vue"); | 
| 52 | break; | 52 | break; | 
| ... | @@ -82,7 +82,7 @@ export function getForm(tabName) { | ... | @@ -82,7 +82,7 @@ export function getForm(tabName) { | 
| 82 | form = require("@/views/djbworkflow/djbBook/components/blxxtabs/cfdj.vue"); | 82 | form = require("@/views/djbworkflow/djbBook/components/blxxtabs/cfdj.vue"); | 
| 83 | break; | 83 | break; | 
| 84 | case "clxx": | 84 | case "clxx": | 
| 85 | form = require("@/views/workflow/components/clxx/clxxUnify.vue"); | 85 | form = require("@/views/djbworkflow/djbBook/components/clxx/index.vue"); | 
| 86 | break; | 86 | break; | 
| 87 | case "spyj": | 87 | case "spyj": | 
| 88 | form = require("@/views/djbworkflow/djbBook/spyj.vue"); | 88 | form = require("@/views/djbworkflow/djbBook/spyj.vue"); | ... | ... | 
| 1 | /* | 1 | /* | 
| 2 | * @Description:workFramezu.vue组件的方法 头部按钮弹框方法 | 2 | * @Description:workFramezu.vue组件的方法 头部按钮弹框方法 | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-09-01 15:12:48 | 4 | * @LastEditTime: 2023-09-18 11:06:44 | 
| 5 | */ | 5 | */ | 
| 6 | import { getPrintTemplateByCode } from "@/api/print"; | 6 | import { getPrintTemplateByCode } from "@/api/print"; | 
| 7 | import { getQllxByBdcdyid } from "@/api/djbDetail.js"; | 7 | import { getQllxByBdcdyid } from "@/api/djbDetail.js"; | 
| ... | @@ -171,7 +171,8 @@ export default { | ... | @@ -171,7 +171,8 @@ export default { | 
| 171 | break; | 171 | break; | 
| 172 | case "B8": | 172 | case "B8": | 
| 173 | this.$popupDialog('楼盘表', 'lpb/index', { | 173 | this.$popupDialog('楼盘表', 'lpb/index', { | 
| 174 | bsm: '' | 174 | bsm: '', | 
| 175 | onlyShow: true, | ||
| 175 | }, '90%', true) | 176 | }, '90%', true) | 
| 176 | break; | 177 | break; | 
| 177 | case "back": //退回按钮 | 178 | case "back": //退回按钮 | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-08-14 12:52:54 | 4 | * @LastEditTime: 2023-09-15 09:27:14 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="container"> | 7 | <div class="container"> | 
| ... | @@ -53,7 +53,6 @@ | ... | @@ -53,7 +53,6 @@ | 
| 53 | :key="item.value"> | 53 | :key="item.value"> | 
| 54 | </el-tab-pane> | 54 | </el-tab-pane> | 
| 55 | </el-tabs> | 55 | </el-tabs> | 
| 56 | |||
| 57 | <component | 56 | <component | 
| 58 | :key="fresh" | 57 | :key="fresh" | 
| 59 | :is="componentTag" | 58 | :is="componentTag" | 
| ... | @@ -132,7 +131,6 @@ | ... | @@ -132,7 +131,6 @@ | 
| 132 | mounted () { | 131 | mounted () { | 
| 133 | // this.getleftMenubl() | 132 | // this.getleftMenubl() | 
| 134 | }, | 133 | }, | 
| 135 | |||
| 136 | methods: { | 134 | methods: { | 
| 137 | /** | 135 | /** | 
| 138 | * @description: stepForm | 136 | * @description: stepForm | 
| ... | @@ -163,7 +161,6 @@ | ... | @@ -163,7 +161,6 @@ | 
| 163 | }); | 161 | }); | 
| 164 | } | 162 | } | 
| 165 | }, | 163 | }, | 
| 166 | // 获取右侧选项卡 | ||
| 167 | /** | 164 | /** | 
| 168 | * @description: 获取右侧选项卡 | 165 | * @description: 获取右侧选项卡 | 
| 169 | * @param {*} val | 166 | * @param {*} val | 
| ... | @@ -185,7 +182,6 @@ | ... | @@ -185,7 +182,6 @@ | 
| 185 | this.stepForm(this.currentSelectProps.qllx); | 182 | this.stepForm(this.currentSelectProps.qllx); | 
| 186 | } | 183 | } | 
| 187 | }, | 184 | }, | 
| 188 | // 获取渲染登记簿列表 | ||
| 189 | /** | 185 | /** | 
| 190 | * @description: 获取渲染登记簿列表 | 186 | * @description: 获取渲染登记簿列表 | 
| 191 | * @author: renchao | 187 | * @author: renchao | 
| ... | @@ -218,7 +214,6 @@ | ... | @@ -218,7 +214,6 @@ | 
| 218 | } | 214 | } | 
| 219 | }); | 215 | }); | 
| 220 | }, | 216 | }, | 
| 221 | //选项卡切换事件 | ||
| 222 | /** | 217 | /** | 
| 223 | * @description: 右侧表单选项卡事件 | 218 | * @description: 右侧表单选项卡事件 | 
| 224 | * @param {*} handleClick | 219 | * @param {*} handleClick | 
| ... | @@ -233,7 +228,6 @@ | ... | @@ -233,7 +228,6 @@ | 
| 233 | } | 228 | } | 
| 234 | 229 | ||
| 235 | }, | 230 | }, | 
| 236 | //右侧表单选项卡事件 | ||
| 237 | /** | 231 | /** | 
| 238 | * @description: 右侧表单选项卡事件 | 232 | * @description: 右侧表单选项卡事件 | 
| 239 | * @param {*} activeName | 233 | * @param {*} activeName | 
| ... | @@ -243,7 +237,6 @@ | ... | @@ -243,7 +237,6 @@ | 
| 243 | beforeLeave (activeName) { | 237 | beforeLeave (activeName) { | 
| 244 | if (activeName && activeName != 0) this.getFromRouter(activeName); | 238 | if (activeName && activeName != 0) this.getFromRouter(activeName); | 
| 245 | }, | 239 | }, | 
| 246 | //切换选项卡内容组件 | ||
| 247 | /** | 240 | /** | 
| 248 | * @description: 切换选项卡内容组件 | 241 | * @description: 切换选项卡内容组件 | 
| 249 | * @param {*} tabname | 242 | * @param {*} tabname | 
| ... | @@ -255,7 +248,6 @@ | ... | @@ -255,7 +248,6 @@ | 
| 255 | changeywh () { | 248 | changeywh () { | 
| 256 | this.$refs.Menu.getleftMenubl("change"); | 249 | this.$refs.Menu.getleftMenubl("change"); | 
| 257 | }, | 250 | }, | 
| 258 | // 增加补录记录 | ||
| 259 | /** | 251 | /** | 
| 260 | * @description: 增加补录记录 | 252 | * @description: 增加补录记录 | 
| 261 | * @param {*} row | 253 | * @param {*} row | 
| ... | @@ -300,21 +292,9 @@ | ... | @@ -300,21 +292,9 @@ | 
| 300 | .catch((res) => { | 292 | .catch((res) => { | 
| 301 | console.log("错", res); | 293 | console.log("错", res); | 
| 302 | }); | 294 | }); | 
| 303 | }, | 295 | } | 
| 304 | // openDialog () { | 296 | } | 
| 305 | // this.$store.dispatch('user/refreshPage', false) | 297 | } | 
| 306 | // let data = JSON.parse(localStorage.getItem('ywbl')) | ||
| 307 | // let title | ||
| 308 | // if (data?.sqywmc) { | ||
| 309 | // title = "申请业务:" + data?.sqywmc | ||
| 310 | // } else { | ||
| 311 | // title = "申请业务:" + data?.djywmc | ||
| 312 | // } | ||
| 313 | |||
| 314 | // this.$popupDialog(title, "ywbl/ywsq/selectBdc", { 'djywbm': this.$route.query.sqywbm, 'isJump': true, 'sqywInfo': data }, "80%", true) | ||
| 315 | // } | ||
| 316 | }, | ||
| 317 | }; | ||
| 318 | </script> | 298 | </script> | 
| 319 | <style scoped lang="scss"> | 299 | <style scoped lang="scss"> | 
| 320 | .rightContainer { | 300 | .rightContainer { | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-09-12 16:55:35 | 4 | * @LastEditTime: 2023-09-15 14:46:47 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="edit"> | 7 | <div class="edit"> | 
| ... | @@ -22,6 +22,7 @@ | ... | @@ -22,6 +22,7 @@ | 
| 22 | :zrzbsm="formData.bsm" | 22 | :zrzbsm="formData.bsm" | 
| 23 | :scyclx="formData.scyclx" | 23 | :scyclx="formData.scyclx" | 
| 24 | :onlyShow="formData.onlyShow" | 24 | :onlyShow="formData.onlyShow" | 
| 25 | :showSave="formData.showSave" | ||
| 25 | :unitData="formData.unitData" | 26 | :unitData="formData.unitData" | 
| 26 | :sqywInfo="formData" | 27 | :sqywInfo="formData" | 
| 27 | :key="time"></lpbContent> | 28 | :key="time"></lpbContent> | ... | ... | 
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ | 
| 2 | * @Author: yangwei | 2 | * @Author: yangwei | 
| 3 | * @Date: 2023-02-28 15:47:12 | 3 | * @Date: 2023-02-28 15:47:12 | 
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei | 
| 5 | * @LastEditTime: 2023-09-14 15:04:20 | 5 | * @LastEditTime: 2023-09-15 14:52:50 | 
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue | 
| 7 | * @Description: | 7 | * @Description: | 
| 8 | * | 8 | * | 
| ... | @@ -96,6 +96,10 @@ export default { | ... | @@ -96,6 +96,10 @@ export default { | 
| 96 | return []; | 96 | return []; | 
| 97 | }, | 97 | }, | 
| 98 | }, | 98 | }, | 
| 99 | onlyShow:{ | ||
| 100 | type: Boolean, | ||
| 101 | default: true, | ||
| 102 | } | ||
| 99 | }, | 103 | }, | 
| 100 | data() { | 104 | data() { | 
| 101 | return { | 105 | return { | 
| ... | @@ -140,23 +144,25 @@ export default { | ... | @@ -140,23 +144,25 @@ export default { | 
| 140 | * @author: renchao | 144 | * @author: renchao | 
| 141 | */ | 145 | */ | 
| 142 | handleClickC(e, item) { | 146 | handleClickC(e, item) { | 
| 143 | // 判断点击的层是否选中 | 147 | if (!this.onlyShow) { | 
| 144 | if (e.target.className.indexOf("tdSelect") == -1) { | 148 | // 判断点击的层是否选中 | 
| 145 | //未选中→选中 | 149 | if (e.target.className.indexOf("tdSelect") == -1) { | 
| 146 | item.hs.forEach((h) => { | 150 | //未选中→选中 | 
| 147 | //加边框 | 151 | item.hs.forEach((h) => { | 
| 148 | e.target.className += " tdSelect"; | 152 | //加边框 | 
| 149 | h.select = true; | 153 | e.target.className += " tdSelect"; | 
| 150 | // 使用hbsmList时,需要去重 | 154 | h.select = true; | 
| 151 | this.hbsmList.push(h.bsm) | 155 | // 使用hbsmList时,需要去重 | 
| 152 | }); | 156 | this.hbsmList.push(h.bsm) | 
| 153 | } else { | 157 | }); | 
| 154 | //选中→未选中 | 158 | } else { | 
| 155 | item.hs.forEach((h) => { | 159 | //选中→未选中 | 
| 156 | e.target.className = "floor"; | 160 | item.hs.forEach((h) => { | 
| 157 | h.select = false; | 161 | e.target.className = "floor"; | 
| 158 | this.hbsmList = this.hbsmList.filter((i) => i != h.bsm); | 162 | h.select = false; | 
| 159 | }); | 163 | this.hbsmList = this.hbsmList.filter((i) => i != h.bsm); | 
| 164 | }); | ||
| 165 | } | ||
| 160 | } | 166 | } | 
| 161 | }, | 167 | }, | 
| 162 | //户单击事件 | 168 | //户单击事件 | 
| ... | @@ -168,26 +174,28 @@ export default { | ... | @@ -168,26 +174,28 @@ export default { | 
| 168 | * @author: renchao | 174 | * @author: renchao | 
| 169 | */ | 175 | */ | 
| 170 | handleClickH(e, bsm, hs) { | 176 | handleClickH(e, bsm, hs) { | 
| 171 | let self = this; | 177 | if (!this.onlyShow) { | 
| 172 | // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件 | 178 | let self = this; | 
| 173 | clearTimeout(self.time); | 179 | // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件 | 
| 174 | self.time = setTimeout(() => { | 180 | clearTimeout(self.time); | 
| 175 | // this.closeMenu(); | 181 | self.time = setTimeout(() => { | 
| 176 | //判断点击的户是否选中 | 182 | // this.closeMenu(); | 
| 177 | if (!hs.select) { | 183 | //判断点击的户是否选中 | 
| 178 | //未选中→选中 | 184 | if (!hs.select) { | 
| 179 | //加边框 | 185 | //未选中→选中 | 
| 180 | hs.select = true; | 186 | //加边框 | 
| 181 | // 将户bsm放进hbsmList | 187 | hs.select = true; | 
| 182 | self.hbsmList.push(bsm); | 188 | // 将户bsm放进hbsmList | 
| 183 | } else { | 189 | self.hbsmList.push(bsm); | 
| 184 | //选中→未选中 | 190 | } else { | 
| 185 | hs.select = false; | 191 | //选中→未选中 | 
| 186 | self.hbsmList = self.hbsmList.filter((i) => i != bsm); | 192 | hs.select = false; | 
| 187 | } | 193 | self.hbsmList = self.hbsmList.filter((i) => i != bsm); | 
| 188 | //更新当前选中户数据 | 194 | } | 
| 189 | this.$forceUpdate(); | 195 | //更新当前选中户数据 | 
| 190 | }, 200); | 196 | this.$forceUpdate(); | 
| 197 | }, 200); | ||
| 198 | } | ||
| 191 | }, | 199 | }, | 
| 192 | // 户单元状态点击事件 | 200 | // 户单元状态点击事件 | 
| 193 | /** | 201 | /** | 
| ... | @@ -198,7 +206,9 @@ export default { | ... | @@ -198,7 +206,9 @@ export default { | 
| 198 | * @author: renchao | 206 | * @author: renchao | 
| 199 | */ | 207 | */ | 
| 200 | hDyztClick(e, bsm, hs) { | 208 | hDyztClick(e, bsm, hs) { | 
| 201 | this.handleClickH(e.target.parentNode, bsm, hs); | 209 | if (!this.onlyShow) { | 
| 210 | this.handleClickH(e.target.parentNode, bsm, hs); | ||
| 211 | } | ||
| 202 | }, | 212 | }, | 
| 203 | //户双击事件 | 213 | //户双击事件 | 
| 204 | /** | 214 | /** | ... | ... | 
| ... | @@ -4,22 +4,22 @@ | ... | @@ -4,22 +4,22 @@ | 
| 4 | <!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 --> | 4 | <!-- 纵向倒序排列 逻辑幢位于独立幢单元和独立层户的上方 --> | 
| 5 | <div class="ch-zdy-wrap"> | 5 | <div class="ch-zdy-wrap"> | 
| 6 | <!-- 幢单元 --> | 6 | <!-- 幢单元 --> | 
| 7 | <zdy-cpn v-if="lpbData.zdys.length" :zdys="lpbData.zdys" :onlyShow="onlyShow"/> | 7 | <zdy-cpn v-if="lpbData.zdys.length" :zdys="lpbData.zdys" :onlyShow="onlyShow"/> | 
| 8 | <!-- 独立层户 --> | 8 | <!-- 独立层户 --> | 
| 9 | <ch-cpn v-if="lpbData.cs.length" :ch="lpbData.cs" /> | 9 | <ch-cpn v-if="lpbData.cs.length" :ch="lpbData.cs" :onlyShow="onlyShow"/> | 
| 10 | </div> | 10 | </div> | 
| 11 | <!-- 逻辑幢 --> | 11 | <!-- 逻辑幢 --> | 
| 12 | <ljzs-cpn v-if="lpbData.ljzs.length" :ljzs="lpbData.ljzs" :onlyShow="onlyShow"/> | 12 | <ljzs-cpn v-if="lpbData.ljzs.length" :ljzs="lpbData.ljzs" :onlyShow="onlyShow"/> | 
| 13 | </div> | 13 | </div> | 
| 14 | <!-- 自然幢名称 --> | 14 | <!-- 自然幢名称 --> | 
| 15 | <!-- <p class="lpb-xmmc" :style="{ 'border-bottom': onlyShow ? 0 : '1px solid #e6e6e6'}"> --> | 15 | <p class="lpb-xmmc" v-if="onlyShow" style="border-bottom: 1px solid #e6e6e6">{{ lpbData.xmmc }}</p> | 
| 16 | <p class="lpb-xmmc" :style="{ 'border-bottom':'1px solid #e6e6e6'}"> | 16 | <p class="lpb-xmmc" v-else :style="{ 'border-bottom':'1px solid #e6e6e6'}"> | 
| 17 | <el-checkbox @change="zdySelectAll($event)">{{ | 17 | <el-checkbox @change="zdySelectAll($event)">{{ | 
| 18 | lpbData.xmmc | 18 | lpbData.xmmc | 
| 19 | }}</el-checkbox> | 19 | }}</el-checkbox> | 
| 20 | </p> | 20 | </p> | 
| 21 | <el-button type="primary" class="save-btn" v-if="!onlyShow" @click="saveLpb">保存</el-button> | 21 | <el-button type="primary" class="save-btn" v-if="!onlyShow && showSave" @click="saveLpb">保存</el-button> | 
| 22 | <el-button type="primary" class="save-btn" v-else @click="submitForm" :loading="loading">发起申请</el-button> | 22 | <el-button type="primary" class="save-btn" v-if="!onlyShow" @click="submitForm" :loading="loading">发起申请</el-button> | 
| 23 | <!-- 右键菜单 --> | 23 | <!-- 右键菜单 --> | 
| 24 | <ul | 24 | <ul | 
| 25 | v-show="lpbChVisible" | 25 | v-show="lpbChVisible" | 
| ... | @@ -70,6 +70,10 @@ export default { | ... | @@ -70,6 +70,10 @@ export default { | 
| 70 | type: Boolean, | 70 | type: Boolean, | 
| 71 | default: true, | 71 | default: true, | 
| 72 | }, | 72 | }, | 
| 73 | showSave:{ | ||
| 74 | type: Boolean, | ||
| 75 | default: false, | ||
| 76 | }, | ||
| 73 | scyclx: { | 77 | scyclx: { | 
| 74 | type: Number, | 78 | type: Number, | 
| 75 | default: 0, | 79 | default: 0, | 
| ... | @@ -278,8 +282,8 @@ export default { | ... | @@ -278,8 +282,8 @@ export default { | 
| 278 | }, | 282 | }, | 
| 279 | computed:{ | 283 | computed:{ | 
| 280 | lpbContentHeight(){ | 284 | lpbContentHeight(){ | 
| 281 | // return this.onlyShow ? 36 : 76 | 285 | return this.onlyShow ? 32 : 76 | 
| 282 | return 76 | 286 | // return 76 | 
| 283 | } | 287 | } | 
| 284 | }, | 288 | }, | 
| 285 | watch: { | 289 | watch: { | ... | ... | 
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ | 
| 2 | * @Author: yangwei | 2 | * @Author: yangwei | 
| 3 | * @Date: 2023-02-28 17:25:45 | 3 | * @Date: 2023-02-28 17:25:45 | 
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei | 
| 5 | * @LastEditTime: 2023-09-14 14:35:19 | 5 | * @LastEditTime: 2023-09-15 14:55:58 | 
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ljzs.vue | 
| 7 | * @Description: | 7 | * @Description: | 
| 8 | * | 8 | * | 
| ... | @@ -26,7 +26,7 @@ | ... | @@ -26,7 +26,7 @@ | 
| 26 | }}</el-checkbox> | 26 | }}</el-checkbox> | 
| 27 | </p> | 27 | </p> | 
| 28 | <!-- 独立层户 --> | 28 | <!-- 独立层户 --> | 
| 29 | <ch-cpn v-if="ljz.cs.length" :ref="ljz.bsm" :ch="ljz.cs" /> | 29 | <ch-cpn v-if="ljz.cs.length" :ref="ljz.bsm" :ch="ljz.cs" :onlyShow="onlyShow"/> | 
| 30 | <!-- 幢单元 --> | 30 | <!-- 幢单元 --> | 
| 31 | <zdy-cpn v-if="ljz.zdys.length" :ref="'zdy' + ljz.bsm" :zdys="ljz.zdys" :onlyShow="onlyShow"/> | 31 | <zdy-cpn v-if="ljz.zdys.length" :ref="'zdy' + ljz.bsm" :zdys="ljz.zdys" :onlyShow="onlyShow"/> | 
| 32 | </div> | 32 | </div> | 
| ... | @@ -40,13 +40,14 @@ | ... | @@ -40,13 +40,14 @@ | 
| 40 | v-else | 40 | v-else | 
| 41 | > | 41 | > | 
| 42 | <!-- 逻辑幢名称 --> | 42 | <!-- 逻辑幢名称 --> | 
| 43 | <p class="lpb-xmmc ljz-xmmc"> | 43 | <p class="lpb-xmmc ljz-xmmc" v-if="onlyShow">{{ ljzarr[0].ljzmc }}</p> | 
| 44 | <p class="lpb-xmmc ljz-xmmc" v-else> | ||
| 44 | <el-checkbox @change="zdySelectAll($event,ljzarr[0].bsm)">{{ | 45 | <el-checkbox @change="zdySelectAll($event,ljzarr[0].bsm)">{{ | 
| 45 | ljzarr[0].ljzmc | 46 | ljzarr[0].ljzmc | 
| 46 | }}</el-checkbox> | 47 | }}</el-checkbox> | 
| 47 | </p> | 48 | </p> | 
| 48 | <!-- 独立层户 --> | 49 | <!-- 独立层户 --> | 
| 49 | <ch-cpn v-if="ljzarr[0].cs.length" :ref="ljzarr[0].bsm" :ch="ljzarr[0].cs" /> | 50 | <ch-cpn v-if="ljzarr[0].cs.length" :ref="ljzarr[0].bsm" :ch="ljzarr[0].cs" :onlyShow="onlyShow"/> | 
| 50 | <!-- 幢单元 --> | 51 | <!-- 幢单元 --> | 
| 51 | <zdy-cpn v-if="ljzarr[0].zdys.length" :ref="'zdy' + ljzarr[0].bsm" :zdys="ljzarr[0].zdys" :onlyShow="onlyShow"/> | 52 | <zdy-cpn v-if="ljzarr[0].zdys.length" :ref="'zdy' + ljzarr[0].bsm" :zdys="ljzarr[0].zdys" :onlyShow="onlyShow"/> | 
| 52 | </div> | 53 | </div> | ... | ... | 
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ | 
| 2 | * @Author: yangwei | 2 | * @Author: yangwei | 
| 3 | * @Date: 2023-02-28 16:29:04 | 3 | * @Date: 2023-02-28 16:29:04 | 
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei | 
| 5 | * @LastEditTime: 2023-09-14 14:36:51 | 5 | * @LastEditTime: 2023-09-15 14:57:10 | 
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue | 
| 7 | * @Description: | 7 | * @Description: | 
| 8 | * | 8 | * | 
| ... | @@ -13,12 +13,13 @@ | ... | @@ -13,12 +13,13 @@ | 
| 13 | <div v-for="zdy in realZdys" :key="zdy.bsm"> | 13 | <div v-for="zdy in realZdys" :key="zdy.bsm"> | 
| 14 | <!-- 幢单元名称 --> | 14 | <!-- 幢单元名称 --> | 
| 15 | <p class="lpb-xmmc"> | 15 | <p class="lpb-xmmc"> | 
| 16 | <el-checkbox @change="zdySelectAll($event,zdy.bsm)">{{ | 16 | <el-checkbox @change="zdySelectAll($event,zdy.bsm)" v-if="!onlyShow">{{ | 
| 17 | zdy.zdymc | 17 | zdy.zdymc | 
| 18 | }}</el-checkbox> | 18 | }}</el-checkbox> | 
| 19 | <span v-else>{{zdy.zdymc}}</span> | ||
| 19 | </p> | 20 | </p> | 
| 20 | <!-- 每个幢单元下的层户 --> | 21 | <!-- 每个幢单元下的层户 --> | 
| 21 | <ch-cpn :ref="zdy.bsm" :ch="zdy.cs" /> | 22 | <ch-cpn :ref="zdy.bsm" :ch="zdy.cs" :onlyShow="onlyShow"/> | 
| 22 | </div> | 23 | </div> | 
| 23 | </div> | 24 | </div> | 
| 24 | </template> | 25 | </template> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:45:50 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate id="boxcfdj" :tableData="tableData" :render="render"/> | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | </div> | ||
| 11 | <div class="tableBox"> | ||
| 12 | <div class="title"> | ||
| 13 | {{ title }} | ||
| 14 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 15 | >打印</el-button | ||
| 16 | > | ||
| 17 | <div class="checkbox"> | ||
| 18 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 19 | <el-checkbox | ||
| 20 | v-for="item in qsztList" | ||
| 21 | :key="item.value" | ||
| 22 | :label="item.value" | ||
| 23 | >{{ item.label }}</el-checkbox | ||
| 24 | > | ||
| 25 | </el-checkbox-group> | ||
| 26 | </div> | ||
| 27 | </div> | ||
| 28 | <div class="xxTableBox rollTable"> | ||
| 29 | <table class="xxTable"> | ||
| 30 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 31 | <td>{{ item.label }}</td> | ||
| 32 | <td | ||
| 33 | v-for="(row, index) in tableData" | ||
| 34 | :key="index" | ||
| 35 | :class="[ | ||
| 36 | row.qszt == '2' ? 'lishi' : '', | ||
| 37 | row.qszt == '0' ? 'linshi' : '', | ||
| 38 | row.qlzt == '4' ? 'linshi' : '', | ||
| 39 | |||
| 40 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 41 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 42 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 43 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 44 | ]" | ||
| 45 | > | ||
| 46 | <div | ||
| 47 | class="setbut" | ||
| 48 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 49 | > | ||
| 50 | <el-button | ||
| 51 | type="text" | ||
| 52 | icon="el-icon-edit-outline" | ||
| 53 | @click="editDialog(row)" | ||
| 54 | >编辑</el-button | ||
| 55 | > | ||
| 56 | <el-button | ||
| 57 | type="text" | ||
| 58 | icon="el-icon-edit-outline" | ||
| 59 | @click="editDialog(row, 'D')" | ||
| 60 | >删除</el-button | ||
| 61 | > | ||
| 62 | </div> | ||
| 63 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 64 | 有效 | ||
| 65 | </div> | ||
| 66 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 67 | 正在补录 | ||
| 68 | </div> | ||
| 69 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 70 | 正在申请 | ||
| 71 | </div> | ||
| 72 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 73 | 正在注销 | ||
| 74 | </div> | ||
| 75 | |||
| 76 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 77 | <span v-if="item.prop == 'qszt'"> | ||
| 78 | {{ getQsztName(row[item.prop]) }} | ||
| 79 | </span> | ||
| 80 | <span v-else>{{ row[item.prop] }}</span> | ||
| 81 | </p> | ||
| 82 | |||
| 83 | <el-tooltip | ||
| 84 | v-else | ||
| 85 | effect="dark" | ||
| 86 | :content="row[item.prop]" | ||
| 87 | placement="top" | ||
| 88 | popper-class="tooltip-width" | ||
| 89 | > | ||
| 90 | <span class="ellipsis-line"> | ||
| 91 | {{ row[item.prop] }} | ||
| 92 | </span> | ||
| 93 | </el-tooltip> | ||
| 94 | </td> | ||
| 95 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 96 | </tr> | ||
| 97 | </table> | ||
| 98 | </div> | ||
| 99 | </div> | ||
| 100 | </div> | 10 | </div> | 
| 101 | </template> | 11 | </template> | 
| 102 | 12 | ||
| 103 | <script> | 13 | <script> | 
| 104 | import printTemplate from "./components/printTemplate.vue"; | 14 | import djbDetail from "./components/djbDetail.vue" | 
| 105 | import { datas } from "./qlxxFormData.js"; | 15 | import { datas } from "./qlxxFormData.js"; | 
| 106 | import { getSjlx } from "@/utils/dictionary.js"; | 16 | import { getSjlx } from "@/utils/dictionary.js"; | 
| 107 | import { getCfdjList } from "@/api/djbDetail.js"; | 17 | import { getCfdjList } from "@/api/djbDetail.js"; | 
| 108 | export default { | 18 | export default { | 
| 109 | components: { | 19 | components: { | 
| 110 | printTemplate, | 20 | djbDetail | 
| 111 | }, | ||
| 112 | data() { | ||
| 113 | return { | ||
| 114 | printObj: { | ||
| 115 | id: "box", | ||
| 116 | //其他配置项, | ||
| 117 | }, | ||
| 118 | shows:false, | ||
| 119 | title: "查封登记信息", | ||
| 120 | qsztList: datas.columns().qsztList, | ||
| 121 | checkList: datas.columns().checkList, | ||
| 122 | //传递参数 | ||
| 123 | propsParam: this.$attrs, | ||
| 124 | //列表数据 | ||
| 125 | tableData: [], | ||
| 126 | //空列值个数 | ||
| 127 | emptycolNum: datas.columns().emptycolNum, | ||
| 128 | //列名称对象 | ||
| 129 | columns: datas.columns().CFDJ, | ||
| 130 | render: false, | ||
| 131 | }; | ||
| 132 | }, | ||
| 133 | created() { | ||
| 134 | this.loadData(); | ||
| 135 | }, | ||
| 136 | methods: { | ||
| 137 | /** | ||
| 138 | * @description: openPrint | ||
| 139 | * @author: miaofang | ||
| 140 | */ | ||
| 141 | openPrint() { | ||
| 142 | this.render = true; | ||
| 143 | setTimeout(() => { | ||
| 144 | this.prinsss(); | ||
| 145 | }, 100); | ||
| 146 | }, | 21 | }, | 
| 147 | /** | 22 | data () { | 
| 148 | * @description: prinsss | 23 | return { | 
| 149 | * @author: miaofang | 24 | shows: false, | 
| 150 | */ | 25 | title: "查封登记信息", | 
| 151 | prinsss() { | 26 | //传递参数 | 
| 152 | printJS({ | 27 | propsParam: this.$attrs, | 
| 153 | printable: "boxcfdj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | 28 | //列表数据 | 
| 154 | type: "html", | 29 | tableData: [], | 
| 155 | maxWidth: 800, // 最大宽度 | 30 | //列名称对象 | 
| 156 | font_size: "", // 不设置则使用默认字体大小 | 31 | columns: datas.columns().CFDJ, | 
| 157 | style: `@font-face { | 32 | render: false, | 
| 158 | font-family: "STZHONGS"; | 33 | }; | 
| 159 | src: url(${window.ttf}) format("truetype"); | ||
| 160 | }`, | ||
| 161 | // 继承原来的所有样式 | ||
| 162 | targetStyles: ["*"], | ||
| 163 | }); | ||
| 164 | this.render=false | ||
| 165 | }, | 34 | }, | 
| 166 | /** | 35 | created () { | 
| 167 | * @description: loadData | 36 | this.loadData(); | 
| 168 | * @author: renchao | ||
| 169 | */ | ||
| 170 | loadData() { | ||
| 171 | if (this.$parent.addRepairRecord) { | ||
| 172 | this.columns.unshift({ prop: "cz", label: "操作" }); | ||
| 173 | } | ||
| 174 | getCfdjList({ | ||
| 175 | bdcdyid: this.propsParam.bdcdyid, | ||
| 176 | qllx: this.propsParam.qllx, | ||
| 177 | qszt: this.checkList, | ||
| 178 | }).then((res) => { | ||
| 179 | if (res.code === 200) { | ||
| 180 | this.tableData = res.result; | ||
| 181 | this.shows=this.tableData.length>0 | ||
| 182 | this.tableData.forEach((item) => { | ||
| 183 | item.sjlx = getSjlx(item.sjlx); | ||
| 184 | }); | ||
| 185 | this.tableData.forEach((item, index) => { | ||
| 186 | if (item.sfbxf == "1") { | ||
| 187 | item.zxywh = ""; | ||
| 188 | item.zxdbr = ""; | ||
| 189 | item.zxsj = ""; | ||
| 190 | } | ||
| 191 | }); | ||
| 192 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 193 | this.emptycolNum = | ||
| 194 | datas.columns().emptycolNum - this.tableData.length; | ||
| 195 | } else { | ||
| 196 | this.emptycolNum = 0; | ||
| 197 | } | ||
| 198 | } | ||
| 199 | }); | ||
| 200 | }, | ||
| 201 | /** | ||
| 202 | * @description: checkChange | ||
| 203 | * @author: renchao | ||
| 204 | */ | ||
| 205 | checkChange() { | ||
| 206 | if (this.checkList.length === 0) { | ||
| 207 | this.tableData = []; | ||
| 208 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 209 | } else { | ||
| 210 | this.loadData(); | ||
| 211 | } | ||
| 212 | }, | 37 | }, | 
| 213 | /** | 38 | methods: { | 
| 214 | * @description: getQsztName | 39 | /** | 
| 215 | * @author: renchao | 40 | * @description: loadData | 
| 216 | */ | 41 | * @author: renchao | 
| 217 | getQsztName(code) { | 42 | */ | 
| 218 | let name = ""; | 43 | loadData () { | 
| 219 | for (let item of this.qsztList) { | 44 | if (this.$parent.addRepairRecord) { | 
| 220 | if (item.value == code) { | 45 | this.columns.unshift({ prop: "cz", label: "操作" }); | 
| 221 | name = item.label; | ||
| 222 | break; | ||
| 223 | } | 46 | } | 
| 224 | } | 47 | getCfdjList({ | 
| 225 | return name; | 48 | bdcdyid: this.propsParam.bdcdyid, | 
| 226 | }, | 49 | qllx: this.propsParam.qllx, | 
| 227 | // 新增一条补录信息 | 50 | qszt: this.checkList, | 
| 228 | /** | 51 | }).then((res) => { | 
| 229 | * @description: 新增一条补录信息 | 52 | if (res.code === 200) { | 
| 230 | * @param {*} row | 53 | this.tableData = res.result; | 
| 231 | * @param {*} del | 54 | this.shows = this.tableData.length > 0 | 
| 232 | * @author: renchao | 55 | this.tableData.forEach((item) => { | 
| 233 | */ | 56 | item.sjlx = getSjlx(item.sjlx); | 
| 234 | editDialog(row, del) { | 57 | }); | 
| 235 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 58 | this.tableData.forEach((item, index) => { | 
| 236 | confirmButtonText: "确定", | 59 | if (item.sfbxf == "1") { | 
| 237 | cancelButtonText: "取消", | 60 | item.zxywh = ""; | 
| 238 | type: "warning", | 61 | item.zxdbr = ""; | 
| 239 | }) | 62 | item.zxsj = ""; | 
| 240 | .then(() => { | 63 | } | 
| 241 | this.$parent.addRepairRecord(row, del); | 64 | }); | 
| 242 | 65 | if (this.tableData.length < datas.columns().emptycolNum) { | |
| 243 | this.$message({ | 66 | this.emptycolNum = | 
| 244 | type: "success", | 67 | datas.columns().emptycolNum - this.tableData.length; | 
| 245 | message: "补录成功!", | 68 | } else { | 
| 246 | }); | 69 | this.emptycolNum = 0; | 
| 70 | } | ||
| 71 | } | ||
| 247 | }) | 72 | }) | 
| 248 | .catch(() => { | 73 | } | 
| 249 | this.$message({ | 74 | } | 
| 250 | type: "info", | 75 | } | 
| 251 | message: "取消编辑", | ||
| 252 | }); | ||
| 253 | }); | ||
| 254 | }, | ||
| 255 | }, | ||
| 256 | }; | ||
| 257 | </script> | 76 | </script> | 
| 258 | 77 | ||
| 259 | <style lang="scss" scoped> | 78 | <style lang="scss" scoped> | 
| 260 | @import "./qlxxCommon.scss"; | 79 | @import "./qlxxCommon.scss"; | 
| 261 | .title { | 80 | .title { | 
| 262 | position: relative; | 81 | position: relative; | 
| 263 | .print { | 82 | .print { | 
| 264 | // background-color: #0079fe; | 83 | // background-color: #0079fe; | 
| 265 | z-index: 10; | 84 | z-index: 10; | 
| 266 | position: absolute; | 85 | position: absolute; | 
| 267 | left: 11px; | 86 | left: 11px; | 
| 268 | top: 5px; | 87 | top: 5px; | 
| 88 | } | ||
| 269 | } | 89 | } | 
| 270 | } | ||
| 271 | </style> | 90 | </style> | ... | ... | 
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-09-18 14:42:14 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class="tableBox"> | ||
| 8 | <div v-show="false"> | ||
| 9 | <printTemplate | ||
| 10 | id="boxdiyaq" | ||
| 11 | :tableData="tableData" | ||
| 12 | :render="render" /> | ||
| 13 | </div> | ||
| 14 | <div class="title"> | ||
| 15 | {{ title }} | ||
| 16 | <el-button class="print" v-show="shows" @click="openPrint()">打印</el-button> | ||
| 17 | <div class="checkbox"> | ||
| 18 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 19 | <el-checkbox | ||
| 20 | v-for="item in qsztList" | ||
| 21 | :key="item.value" | ||
| 22 | :label="item.value">{{ item.label }}</el-checkbox> | ||
| 23 | </el-checkbox-group> | ||
| 24 | </div> | ||
| 25 | </div> | ||
| 26 | <div class="xxTableBox rollTable"> | ||
| 27 | <table class="xxTable"> | ||
| 28 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 29 | <td> | ||
| 30 | {{ item.label }} | ||
| 31 | </td> | ||
| 32 | <td | ||
| 33 | v-for="(row, index) in tableData" | ||
| 34 | :key="index" | ||
| 35 | :class="[ | ||
| 36 | row.qszt == '2' ? 'lishi' : '', | ||
| 37 | row.qszt == '0' ? 'linshi' : '', | ||
| 38 | row.qlzt == '4' ? 'linshi' : '', | ||
| 39 | |||
| 40 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 41 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 42 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 43 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 44 | ]"> | ||
| 45 | <div | ||
| 46 | class="setbut" | ||
| 47 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'"> | ||
| 48 | <el-button | ||
| 49 | type="text" | ||
| 50 | icon="el-icon-edit-outline" | ||
| 51 | @click="editDialog(row)">编辑</el-button> | ||
| 52 | <el-button | ||
| 53 | type="text" | ||
| 54 | icon="el-icon-edit-outline" | ||
| 55 | @click="editDialog(row, 'D')">删除</el-button> | ||
| 56 | </div> | ||
| 57 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 58 | 有效 | ||
| 59 | </div> | ||
| 60 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 61 | 正在补录 | ||
| 62 | </div> | ||
| 63 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 64 | 正在申请 | ||
| 65 | </div> | ||
| 66 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 67 | 正在注销 | ||
| 68 | </div> | ||
| 69 | |||
| 70 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 71 | <span v-if="item.prop == 'qszt'"> | ||
| 72 | {{ getQsztName(row[item.prop]) }} | ||
| 73 | </span> | ||
| 74 | <el-link v-if="item.prop == 'ywh'" | ||
| 75 | @click="handleSelectYwh(tableData, row[item.prop])" | ||
| 76 | type="primary">{{ row[item.prop] }}</el-link> | ||
| 77 | <span v-if="!['qszt','ywh' ].includes(item.prop)">{{ row[item.prop] }}</span> | ||
| 78 | </p> | ||
| 79 | |||
| 80 | <el-tooltip | ||
| 81 | v-else | ||
| 82 | effect="dark" | ||
| 83 | :content="row[item.prop]" | ||
| 84 | placement="top" | ||
| 85 | popper-class="tooltip-width"> | ||
| 86 | <span class="ellipsis-line"> | ||
| 87 | {{ row[item.prop] }} | ||
| 88 | </span> | ||
| 89 | </el-tooltip> | ||
| 90 | </td> | ||
| 91 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 92 | </tr> | ||
| 93 | </table> | ||
| 94 | </div> | ||
| 95 | </div> | ||
| 96 | </template> | ||
| 97 | <script> | ||
| 98 | import Router from '@/router' | ||
| 99 | import { datas } from "../qlxxFormData.js"; | ||
| 100 | import printTemplate from "../components/printTemplate.vue"; | ||
| 101 | import { getXtParamsByYwh, getBlParamsByYwh } from '@/api/djyw' | ||
| 102 | export default { | ||
| 103 | components: { | ||
| 104 | printTemplate | ||
| 105 | }, | ||
| 106 | props: { | ||
| 107 | title: { | ||
| 108 | type: String, | ||
| 109 | default: '' | ||
| 110 | }, | ||
| 111 | shows: { | ||
| 112 | type: Boolean, | ||
| 113 | default: false | ||
| 114 | }, | ||
| 115 | // 传递参数 | ||
| 116 | propsParam: { | ||
| 117 | type: Object, | ||
| 118 | default: () => { } | ||
| 119 | }, | ||
| 120 | // 列表数据 | ||
| 121 | tableData: { | ||
| 122 | type: Array, | ||
| 123 | default: () => [] | ||
| 124 | }, | ||
| 125 | columns: { | ||
| 126 | type: Array, | ||
| 127 | default: () => [] | ||
| 128 | }, | ||
| 129 | }, | ||
| 130 | data () { | ||
| 131 | return { | ||
| 132 | qsztList: datas.columns().qsztList, | ||
| 133 | checkList: datas.columns().checkList, | ||
| 134 | //空列值个数 | ||
| 135 | emptycolNum: datas.columns().emptycolNum, | ||
| 136 | render: false, | ||
| 137 | }; | ||
| 138 | }, | ||
| 139 | methods: { | ||
| 140 | openPrint () { | ||
| 141 | this.render = true; | ||
| 142 | setTimeout(() => { | ||
| 143 | this.prinsss(); | ||
| 144 | }, 100); | ||
| 145 | }, | ||
| 146 | /** | ||
| 147 | * @description: prinsss | ||
| 148 | * @author: miaofang | ||
| 149 | */ | ||
| 150 | prinsss () { | ||
| 151 | printJS({ | ||
| 152 | printable: "boxdiyaq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 153 | type: "html", | ||
| 154 | maxWidth: 800, // 最大宽度 | ||
| 155 | font_size: "", // 不设置则使用默认字体大小 | ||
| 156 | style: `@font-face { | ||
| 157 | font-family: "STZHONGS"; | ||
| 158 | src: url(${window.ttf}) format("truetype"); | ||
| 159 | }`, | ||
| 160 | // 继承原来的所有样式 | ||
| 161 | targetStyles: ["*"], | ||
| 162 | }); | ||
| 163 | this.render = false | ||
| 164 | }, | ||
| 165 | /** | ||
| 166 | * @description: checkChange | ||
| 167 | * @author: renchao | ||
| 168 | */ | ||
| 169 | checkChange () { | ||
| 170 | if (this.checkList.length === 0) { | ||
| 171 | this.tableData = []; | ||
| 172 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 173 | } else { | ||
| 174 | this.$parent.loadData(); | ||
| 175 | } | ||
| 176 | }, | ||
| 177 | /** | ||
| 178 | * @description: getQsztName | ||
| 179 | * @param {*} code | ||
| 180 | * @author: renchao | ||
| 181 | */ | ||
| 182 | getQsztName (code) { | ||
| 183 | let name = ""; | ||
| 184 | for (let item of this.qsztList) { | ||
| 185 | if (item.value == code) { | ||
| 186 | name = item.label; | ||
| 187 | break; | ||
| 188 | } | ||
| 189 | } | ||
| 190 | return name; | ||
| 191 | }, | ||
| 192 | /** | ||
| 193 | * @description: 新增一条补录信息 | ||
| 194 | * @param {*} row | ||
| 195 | * @param {*} del | ||
| 196 | * @author: renchao | ||
| 197 | */ | ||
| 198 | editDialog (row, del) { | ||
| 199 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 200 | confirmButtonText: "确定", | ||
| 201 | cancelButtonText: "取消", | ||
| 202 | type: "warning", | ||
| 203 | }) | ||
| 204 | .then(() => { | ||
| 205 | this.$parent.$parent.addRepairRecord(row, del); | ||
| 206 | this.$message({ | ||
| 207 | type: "success", | ||
| 208 | message: "补录成功!" | ||
| 209 | }) | ||
| 210 | }) | ||
| 211 | .catch(() => { | ||
| 212 | this.$message({ | ||
| 213 | type: "info", | ||
| 214 | message: "取消编辑" | ||
| 215 | }) | ||
| 216 | }) | ||
| 217 | }, | ||
| 218 | // 选择业务号 | ||
| 219 | handleSelectYwh (data, ywh) { | ||
| 220 | let sjlx = '', | ||
| 221 | bsmQlxx = '' | ||
| 222 | data.forEach(item => { | ||
| 223 | if (item.ywh == ywh) { | ||
| 224 | sjlx = item.sjlx | ||
| 225 | bsmQlxx = item.bsmQlxx | ||
| 226 | } | ||
| 227 | }) | ||
| 228 | if (sjlx == '系统数据') { | ||
| 229 | getXtParamsByYwh(ywh).then(res => { | ||
| 230 | let data = res.result | ||
| 231 | const { href } = Router.resolve('/workFrameView?bsmSlsq=' + data.bsmSlsq + '&bestepid=' + data.bestepid + '&bsmBusiness=' + data.bsmBusiness + '&type=jdcx') | ||
| 232 | window.open(href, `urlname${data.bsmSlsq}`) | ||
| 233 | }) | ||
| 234 | } else { | ||
| 235 | getBlParamsByYwh(ywh, bsmQlxx).then(res => { | ||
| 236 | let data = res.result | ||
| 237 | const { href } = Router.resolve('/workFrameView?bsmSlsq=' + data.bsmSlsq + '&bestepid=' + data.bestepid + '&bsmBusiness=' + data.bsmBusiness + '&type=jdcx') | ||
| 238 | window.open(href, `urlname${data.bsmSlsq}`) | ||
| 239 | }) | ||
| 240 | } | ||
| 241 | } | ||
| 242 | } | ||
| 243 | } | ||
| 244 | </script> | ||
| 245 | |||
| 246 | <style lang="scss" scoped> | ||
| 247 | @import "../qlxxCommon.scss"; | ||
| 248 | .title { | ||
| 249 | position: relative; | ||
| 250 | .print { | ||
| 251 | z-index: 10; | ||
| 252 | position: absolute; | ||
| 253 | left: 11px; | ||
| 254 | top: 5px; | ||
| 255 | } | ||
| 256 | } | ||
| 257 | </style> | 
| ... | @@ -69,6 +69,8 @@ export default { | ... | @@ -69,6 +69,8 @@ export default { | 
| 69 | }, | 69 | }, | 
| 70 | render: { | 70 | render: { | 
| 71 | handler(newValue, oldValue) { | 71 | handler(newValue, oldValue) { | 
| 72 | console.log("newValue",newValue); | ||
| 73 | console.log("columns",this.columns); | ||
| 72 | if (newValue) { | 74 | if (newValue) { | 
| 73 | this.loadData(); | 75 | this.loadData(); | 
| 74 | } | 76 | } | 
| ... | @@ -88,6 +90,7 @@ export default { | ... | @@ -88,6 +90,7 @@ export default { | 
| 88 | }).then((res) => { | 90 | }).then((res) => { | 
| 89 | if (res.code === 200) { | 91 | if (res.code === 200) { | 
| 90 | this.columns = res.result; | 92 | this.columns = res.result; | 
| 93 | console.log("columnssssssssssss",this.columns); | ||
| 91 | } | 94 | } | 
| 92 | }); | 95 | }); | 
| 93 | if (this.tableData.length && this.datass.length == 0) { | 96 | if (this.tableData.length && this.datass.length == 0) { | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:14:31 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate id="boxdiyaq" :tableData="tableData" :render="render"/> | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | </div> | ||
| 11 | <div class="tableBox"> | ||
| 12 | <div class="title"> | ||
| 13 | {{ title }} | ||
| 14 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 15 | >打印</el-button | ||
| 16 | > | ||
| 17 | <div class="checkbox"> | ||
| 18 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 19 | <el-checkbox | ||
| 20 | v-for="item in qsztList" | ||
| 21 | :key="item.value" | ||
| 22 | :label="item.value" | ||
| 23 | >{{ item.label }}</el-checkbox | ||
| 24 | > | ||
| 25 | </el-checkbox-group> | ||
| 26 | </div> | ||
| 27 | </div> | ||
| 28 | <div class="xxTableBox rollTable"> | ||
| 29 | <table class="xxTable"> | ||
| 30 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 31 | <td> | ||
| 32 | {{ item.label }} | ||
| 33 | </td> | ||
| 34 | <td | ||
| 35 | v-for="(row, index) in tableData" | ||
| 36 | :key="index" | ||
| 37 | :class="[ | ||
| 38 | row.qszt == '2' ? 'lishi' : '', | ||
| 39 | row.qszt == '0' ? 'linshi' : '', | ||
| 40 | row.qlzt == '4' ? 'linshi' : '', | ||
| 41 | |||
| 42 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 43 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 44 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 45 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 46 | ]" | ||
| 47 | > | ||
| 48 | <div | ||
| 49 | class="setbut" | ||
| 50 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 51 | > | ||
| 52 | <el-button | ||
| 53 | type="text" | ||
| 54 | icon="el-icon-edit-outline" | ||
| 55 | @click="editDialog(row)" | ||
| 56 | >编辑</el-button | ||
| 57 | > | ||
| 58 | <el-button | ||
| 59 | type="text" | ||
| 60 | icon="el-icon-edit-outline" | ||
| 61 | @click="editDialog(row, 'D')" | ||
| 62 | >删除</el-button | ||
| 63 | > | ||
| 64 | </div> | ||
| 65 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 66 | 有效 | ||
| 67 | </div> | ||
| 68 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 69 | 正在补录 | ||
| 70 | </div> | ||
| 71 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 72 | 正在申请 | ||
| 73 | </div> | ||
| 74 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 75 | 正在注销 | ||
| 76 | </div> | ||
| 77 | |||
| 78 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 79 | <span v-if="item.prop == 'qszt'"> | ||
| 80 | {{ getQsztName(row[item.prop]) }} | ||
| 81 | </span> | ||
| 82 | <span v-else>{{ row[item.prop] }}</span> | ||
| 83 | </p> | ||
| 84 | |||
| 85 | <el-tooltip | ||
| 86 | v-else | ||
| 87 | effect="dark" | ||
| 88 | :content="row[item.prop]" | ||
| 89 | placement="top" | ||
| 90 | popper-class="tooltip-width" | ||
| 91 | > | ||
| 92 | <span class="ellipsis-line"> | ||
| 93 | {{ row[item.prop] }} | ||
| 94 | </span> | ||
| 95 | </el-tooltip> | ||
| 96 | </td> | ||
| 97 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 98 | </tr> | ||
| 99 | </table> | ||
| 100 | </div> | ||
| 101 | </div> | ||
| 102 | </div> | 10 | </div> | 
| 103 | </template> | 11 | </template> | 
| 104 | 12 | ||
| 105 | <script> | 13 | <script> | 
| 106 | import { datas } from "./qlxxFormData.js"; | 14 | import djbDetail from "./components/djbDetail.vue" | 
| 107 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 15 | import { datas } from "./qlxxFormData.js"; | 
| 108 | import { getDiyaqList } from "@/api/djbDetail.js"; | 16 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 
| 109 | import printTemplate from "./components/printTemplate.vue"; | 17 | import { getDiyaqList } from "@/api/djbDetail.js"; | 
| 110 | export default { | 18 | export default { | 
| 111 | components: { | 19 | components: { | 
| 112 | printTemplate, | 20 | djbDetail | 
| 113 | }, | ||
| 114 | data() { | ||
| 115 | return { | ||
| 116 | printObj: { | ||
| 117 | id: "box", | ||
| 118 | //其他配置项, | ||
| 119 | }, | ||
| 120 | shows:false, | ||
| 121 | title: "抵押权登记信息", | ||
| 122 | qsztList: datas.columns().qsztList, | ||
| 123 | checkList: datas.columns().checkList, | ||
| 124 | //传递参数 | ||
| 125 | propsParam: this.$attrs, | ||
| 126 | //列表数据 | ||
| 127 | tableData: [], | ||
| 128 | //空列值个数 | ||
| 129 | emptycolNum: datas.columns().emptycolNum, | ||
| 130 | //列名称对象 | ||
| 131 | columns: datas.columns().DYAQ, | ||
| 132 | render: false, | ||
| 133 | }; | ||
| 134 | }, | ||
| 135 | created() { | ||
| 136 | this.loadData(); | ||
| 137 | }, | ||
| 138 | methods: { | ||
| 139 | /** | ||
| 140 | * @description: openPrint | ||
| 141 | * @author: miaofang | ||
| 142 | */ | ||
| 143 | openPrint() { | ||
| 144 | this.render = true; | ||
| 145 | setTimeout(() => { | ||
| 146 | this.prinsss(); | ||
| 147 | }, 100); | ||
| 148 | }, | ||
| 149 | /** | ||
| 150 | * @description: prinsss | ||
| 151 | * @author: miaofang | ||
| 152 | */ | ||
| 153 | prinsss() { | ||
| 154 | printJS({ | ||
| 155 | printable: "boxdiyaq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 156 | type: "html", | ||
| 157 | maxWidth: 800, // 最大宽度 | ||
| 158 | font_size: "", // 不设置则使用默认字体大小 | ||
| 159 | style: `@font-face { | ||
| 160 | font-family: "STZHONGS"; | ||
| 161 | src: url(${window.ttf}) format("truetype"); | ||
| 162 | }`, | ||
| 163 | // 继承原来的所有样式 | ||
| 164 | targetStyles: ["*"], | ||
| 165 | }); | ||
| 166 | this.render=false | ||
| 167 | }, | 21 | }, | 
| 168 | /** | 22 | data () { | 
| 169 | * @description: loadData | 23 | return { | 
| 170 | * @author: renchao | 24 | shows: false, | 
| 171 | */ | 25 | title: "抵押权登记信息", | 
| 172 | loadData() { | 26 | //传递参数 | 
| 173 | if (this.$parent.addRepairRecord) { | 27 | propsParam: this.$attrs, | 
| 174 | this.columns.unshift({ prop: "cz", label: "操作" }); | 28 | //列表数据 | 
| 175 | } | 29 | tableData: [], | 
| 176 | getDiyaqList({ | 30 | //列名称对象 | 
| 177 | bdcdyid: this.propsParam.bdcdyid, | 31 | columns: datas.columns().DYAQ, | 
| 178 | qllx: this.propsParam.qllx, | 32 | render: false, | 
| 179 | qszt: this.checkList, | 33 | }; | 
| 180 | }).then((res) => { | ||
| 181 | if (res.code === 200) { | ||
| 182 | this.tableData = res.result; | ||
| 183 | this.shows=this.tableData.length>0 | ||
| 184 | this.tableData.forEach((item) => { | ||
| 185 | item.sjlx = getSjlx(item.sjlx); | ||
| 186 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | ||
| 187 | }); | ||
| 188 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 189 | this.emptycolNum = | ||
| 190 | datas.columns().emptycolNum - this.tableData.length; | ||
| 191 | } else { | ||
| 192 | this.emptycolNum = 0; | ||
| 193 | } | ||
| 194 | } | ||
| 195 | }); | ||
| 196 | }, | 34 | }, | 
| 197 | /** | 35 | created () { | 
| 198 | * @description: checkChange | 36 | this.loadData(); | 
| 199 | * @author: renchao | ||
| 200 | */ | ||
| 201 | checkChange() { | ||
| 202 | if (this.checkList.length === 0) { | ||
| 203 | this.tableData = []; | ||
| 204 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 205 | } else { | ||
| 206 | this.loadData(); | ||
| 207 | } | ||
| 208 | }, | 37 | }, | 
| 209 | /** | 38 | methods: { | 
| 210 | * @description: getQsztName | 39 | /** | 
| 211 | * @param {*} code | 40 | * @description: loadData | 
| 212 | * @author: renchao | 41 | * @author: renchao | 
| 213 | */ | 42 | */ | 
| 214 | getQsztName(code) { | 43 | loadData () { | 
| 215 | let name = ""; | 44 | if (this.$parent.addRepairRecord) { | 
| 216 | for (let item of this.qsztList) { | 45 | this.columns.unshift({ prop: "cz", label: "操作" }); | 
| 217 | if (item.value == code) { | ||
| 218 | name = item.label; | ||
| 219 | break; | ||
| 220 | } | 46 | } | 
| 221 | } | 47 | getDiyaqList({ | 
| 222 | return name; | 48 | bdcdyid: this.propsParam.bdcdyid, | 
| 223 | }, | 49 | qllx: this.propsParam.qllx, | 
| 224 | // 新增一条补录信息 | 50 | qszt: this.checkList, | 
| 225 | /** | 51 | }).then((res) => { | 
| 226 | * @description: 新增一条补录信息 | 52 | if (res.code === 200) { | 
| 227 | * @param {*} row | 53 | this.tableData = res.result; | 
| 228 | * @param {*} del | 54 | this.shows = this.tableData.length > 0 | 
| 229 | * @author: renchao | 55 | this.tableData.forEach((item) => { | 
| 230 | */ | 56 | item.sjlx = getSjlx(item.sjlx); | 
| 231 | editDialog(row, del) { | 57 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | 
| 232 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 58 | }); | 
| 233 | confirmButtonText: "确定", | 59 | if (this.tableData.length < datas.columns().emptycolNum) { | 
| 234 | cancelButtonText: "取消", | 60 | this.emptycolNum = | 
| 235 | type: "warning", | 61 | datas.columns().emptycolNum - this.tableData.length; | 
| 236 | }) | 62 | } else { | 
| 237 | .then(() => { | 63 | this.emptycolNum = 0; | 
| 238 | this.$parent.addRepairRecord(row, del); | 64 | } | 
| 239 | this.$message({ | 65 | } | 
| 240 | type: "success", | ||
| 241 | message: "补录成功!", | ||
| 242 | }); | ||
| 243 | }) | 66 | }) | 
| 244 | .catch(() => { | 67 | } | 
| 245 | this.$message({ | 68 | } | 
| 246 | type: "info", | 69 | } | 
| 247 | message: "取消编辑", | ||
| 248 | }); | ||
| 249 | }); | ||
| 250 | }, | ||
| 251 | }, | ||
| 252 | }; | ||
| 253 | </script> | 70 | </script> | 
| 254 | |||
| 255 | <style lang="scss" scoped> | 71 | <style lang="scss" scoped> | 
| 256 | @import "./qlxxCommon.scss"; | 72 | @import "./qlxxCommon.scss"; | 
| 257 | .title { | 73 | .title { | 
| 258 | position: relative; | 74 | position: relative; | 
| 259 | .print { | 75 | .print { | 
| 260 | // background-color: #0079fe; | 76 | z-index: 10; | 
| 261 | z-index: 10; | 77 | position: absolute; | 
| 262 | position: absolute; | 78 | left: 11px; | 
| 263 | left: 11px; | 79 | top: 5px; | 
| 264 | top: 5px; | 80 | } | 
| 265 | } | 81 | } | 
| 266 | } | ||
| 267 | </style> | 82 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:41:23 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate id="boxdiyiq" :tableData="tableData" :render="render"/> | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | </div> | ||
| 11 | <div class="tableBox"> | ||
| 12 | <div class="title"> | ||
| 13 | {{ title }} | ||
| 14 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 15 | >打印</el-button | ||
| 16 | > | ||
| 17 | <div class="checkbox"> | ||
| 18 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 19 | <el-checkbox | ||
| 20 | v-for="item in qsztList" | ||
| 21 | :key="item.value" | ||
| 22 | :label="item.value" | ||
| 23 | >{{ item.label }}</el-checkbox | ||
| 24 | > | ||
| 25 | </el-checkbox-group> | ||
| 26 | </div> | ||
| 27 | </div> | ||
| 28 | <div class="xxTableBox rollTable"> | ||
| 29 | <table class="xxTable"> | ||
| 30 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 31 | <td> | ||
| 32 | {{ item.label }} | ||
| 33 | </td> | ||
| 34 | <td | ||
| 35 | v-for="(row, index) in tableData" | ||
| 36 | :key="index" | ||
| 37 | :class="[ | ||
| 38 | row.qszt == '2' ? 'lishi' : '', | ||
| 39 | row.qszt == '0' ? 'linshi' : '', | ||
| 40 | row.qlzt == '4' ? 'linshi' : '', | ||
| 41 | |||
| 42 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 43 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 44 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 45 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 46 | ]" | ||
| 47 | > | ||
| 48 | <div | ||
| 49 | class="setbut" | ||
| 50 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 51 | > | ||
| 52 | <el-button | ||
| 53 | type="text" | ||
| 54 | icon="el-icon-edit-outline" | ||
| 55 | @click="editDialog(row)" | ||
| 56 | >编辑</el-button | ||
| 57 | > | ||
| 58 | <el-button | ||
| 59 | type="text" | ||
| 60 | icon="el-icon-edit-outline" | ||
| 61 | @click="editDialog(row, 'D')" | ||
| 62 | >删除</el-button | ||
| 63 | > | ||
| 64 | </div> | ||
| 65 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 66 | 有效 | ||
| 67 | </div> | ||
| 68 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 69 | 正在补录 | ||
| 70 | </div> | ||
| 71 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 72 | 正在申请 | ||
| 73 | </div> | ||
| 74 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 75 | 正在注销 | ||
| 76 | </div> | ||
| 77 | |||
| 78 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 79 | <span v-if="item.prop == 'qszt'"> | ||
| 80 | {{ getQsztName(row[item.prop]) }} | ||
| 81 | </span> | ||
| 82 | <span v-else>{{ row[item.prop] }}</span> | ||
| 83 | </p> | ||
| 84 | |||
| 85 | <el-tooltip | ||
| 86 | v-else | ||
| 87 | effect="dark" | ||
| 88 | :content="row[item.prop]" | ||
| 89 | placement="top" | ||
| 90 | popper-class="tooltip-width" | ||
| 91 | > | ||
| 92 | <span class="ellipsis-line"> | ||
| 93 | {{ row[item.prop] }} | ||
| 94 | </span> | ||
| 95 | </el-tooltip> | ||
| 96 | </td> | ||
| 97 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 98 | </tr> | ||
| 99 | </table> | ||
| 100 | </div> | ||
| 101 | </div> | ||
| 102 | </div> | 10 | </div> | 
| 103 | </template> | 11 | </template> | 
| 104 | 12 | ||
| 105 | <script> | 13 | <script> | 
| 106 | import { datas } from "./qlxxFormData.js"; | 14 | import djbDetail from "./components/djbDetail.vue" | 
| 107 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 15 | import { datas } from "./qlxxFormData.js"; | 
| 108 | import { getDiyiqList } from "@/api/djbDetail.js"; | 16 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 
| 109 | import printTemplate from "./components/printTemplate.vue"; | 17 | import { getDiyiqList } from "@/api/djbDetail.js"; | 
| 110 | export default { | 18 | export default { | 
| 111 | components: { | 19 | components: { | 
| 112 | printTemplate, | 20 | djbDetail | 
| 113 | }, | ||
| 114 | data() { | ||
| 115 | return { | ||
| 116 | printObj: { | ||
| 117 | id: "box", | ||
| 118 | //其他配置项, | ||
| 119 | }, | ||
| 120 | shows:false, | ||
| 121 | title: "地役权登记信息", | ||
| 122 | qsztList: datas.columns().qsztList, | ||
| 123 | checkList: datas.columns().checkList, | ||
| 124 | //传递参数 | ||
| 125 | propsParam: this.$attrs, | ||
| 126 | //列表数据 | ||
| 127 | tableData: [], | ||
| 128 | //空列值个数 | ||
| 129 | emptycolNum: datas.columns().emptycolNum, | ||
| 130 | //列名称对象 | ||
| 131 | columns: datas.columns().DYIQ, | ||
| 132 | render: false, | ||
| 133 | }; | ||
| 134 | }, | ||
| 135 | created() { | ||
| 136 | this.loadData(); | ||
| 137 | }, | ||
| 138 | methods: { /** | ||
| 139 | * @description: openPrint | ||
| 140 | * @author: miaofang | ||
| 141 | */ | ||
| 142 | openPrint() { | ||
| 143 | this.render = true; | ||
| 144 | setTimeout(() => { | ||
| 145 | this.prinsss(); | ||
| 146 | }, 100); | ||
| 147 | }, | ||
| 148 | /** | ||
| 149 | * @description: prinsss | ||
| 150 | * @author: miaofang | ||
| 151 | */ | ||
| 152 | prinsss() { | ||
| 153 | printJS({ | ||
| 154 | printable: "boxdiyiq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 155 | type: "html", | ||
| 156 | maxWidth: 800, // 最大宽度 | ||
| 157 | font_size: "", // 不设置则使用默认字体大小 | ||
| 158 | style: `@font-face { | ||
| 159 | font-family: "STZHONGS"; | ||
| 160 | src: url(${window.ttf}) format("truetype"); | ||
| 161 | }`, | ||
| 162 | // 继承原来的所有样式 | ||
| 163 | targetStyles: ["*"], | ||
| 164 | }); | ||
| 165 | this.render=false | ||
| 166 | }, | 21 | }, | 
| 167 | /** | 22 | data () { | 
| 168 | * @description: loadData | 23 | return { | 
| 169 | * @author: miaofang | 24 | shows: false, | 
| 170 | */ | 25 | title: "地役权登记信息", | 
| 171 | loadData() { | 26 | //传递参数 | 
| 172 | if (this.$parent.addRepairRecord) { | 27 | propsParam: this.$attrs, | 
| 173 | this.columns.unshift({ prop: "cz", label: "操作" }); | 28 | //列表数据 | 
| 174 | } | 29 | tableData: [], | 
| 175 | getDiyiqList({ | 30 | //列名称对象 | 
| 176 | bdcdyid: this.propsParam.bdcdyid, | 31 | columns: datas.columns().DYIQ, | 
| 177 | qllx: this.propsParam.qllx, | 32 | render: false, | 
| 178 | qszt: this.checkList, | 33 | }; | 
| 179 | }).then((res) => { | ||
| 180 | if (res.code === 200) { | ||
| 181 | this.tableData = res.result; | ||
| 182 | this.shows=this.tableData.length>0 | ||
| 183 | this.tableData.forEach((item) => { | ||
| 184 | item.sjlx = getSjlx(item.sjlx); | ||
| 185 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | ||
| 186 | }); | ||
| 187 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 188 | this.emptycolNum = | ||
| 189 | datas.columns().emptycolNum - this.tableData.length; | ||
| 190 | } else { | ||
| 191 | this.emptycolNum = 0; | ||
| 192 | } | ||
| 193 | } | ||
| 194 | }); | ||
| 195 | }, | 34 | }, | 
| 196 | /** | 35 | created () { | 
| 197 | * @description: checkChange | 36 | this.loadData(); | 
| 198 | * @author: miaofang | ||
| 199 | */ | ||
| 200 | checkChange() { | ||
| 201 | if (this.checkList.length === 0) { | ||
| 202 | this.tableData = []; | ||
| 203 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 204 | } else { | ||
| 205 | this.loadData(); | ||
| 206 | } | ||
| 207 | }, | 37 | }, | 
| 208 | /** | 38 | methods: { | 
| 209 | * @description: getQsztName | 39 | loadData () { | 
| 210 | * @param {*} code | 40 | if (this.$parent.addRepairRecord) { | 
| 211 | * @author: miaofang | 41 | this.columns.unshift({ prop: "cz", label: "操作" }); | 
| 212 | */ | ||
| 213 | getQsztName(code) { | ||
| 214 | let name = ""; | ||
| 215 | for (let item of this.qsztList) { | ||
| 216 | if (item.value == code) { | ||
| 217 | name = item.label; | ||
| 218 | break; | ||
| 219 | } | 42 | } | 
| 220 | } | 43 | getDiyiqList({ | 
| 221 | return name; | 44 | bdcdyid: this.propsParam.bdcdyid, | 
| 222 | }, | 45 | qllx: this.propsParam.qllx, | 
| 223 | // 新增一条补录信息 | 46 | qszt: this.checkList, | 
| 224 | /** | 47 | }).then((res) => { | 
| 225 | * @description: 新增一条补录信息 | 48 | if (res.code === 200) { | 
| 226 | * @param {*} row | 49 | this.tableData = res.result; | 
| 227 | * @param {*} del | 50 | this.shows = this.tableData.length > 0 | 
| 228 | * @author: miaofang | 51 | this.tableData.forEach((item) => { | 
| 229 | */ | 52 | item.sjlx = getSjlx(item.sjlx); | 
| 230 | editDialog(row, del) { | 53 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | 
| 231 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 54 | }); | 
| 232 | confirmButtonText: "确定", | 55 | if (this.tableData.length < datas.columns().emptycolNum) { | 
| 233 | cancelButtonText: "取消", | 56 | this.emptycolNum = | 
| 234 | type: "warning", | 57 | datas.columns().emptycolNum - this.tableData.length; | 
| 235 | }) | 58 | } else { | 
| 236 | .then(() => { | 59 | this.emptycolNum = 0; | 
| 237 | this.$parent.addRepairRecord(row, del); | 60 | } | 
| 238 | 61 | } | |
| 239 | this.$message({ | ||
| 240 | type: "success", | ||
| 241 | message: "补录成功!", | ||
| 242 | }); | ||
| 243 | }) | 62 | }) | 
| 244 | .catch(() => { | 63 | } | 
| 245 | this.$message({ | 64 | } | 
| 246 | type: "info", | 65 | }; | 
| 247 | message: "取消编辑", | ||
| 248 | }); | ||
| 249 | }); | ||
| 250 | }, | ||
| 251 | }, | ||
| 252 | }; | ||
| 253 | </script> | 66 | </script> | 
| 254 | 67 | ||
| 255 | <style lang="scss" scoped> | 68 | <style lang="scss" scoped> | 
| 256 | @import "./qlxxCommon.scss"; | 69 | @import "./qlxxCommon.scss"; | 
| 257 | .title { | 70 | .title { | 
| 258 | position: relative; | 71 | position: relative; | 
| 259 | .print { | 72 | .print { | 
| 260 | // background-color: #0079fe; | 73 | // background-color: #0079fe; | 
| 261 | z-index: 10; | 74 | z-index: 10; | 
| 262 | position: absolute; | 75 | position: absolute; | 
| 263 | left: 11px; | 76 | left: 11px; | 
| 264 | top: 5px; | 77 | top: 5px; | 
| 78 | } | ||
| 265 | } | 79 | } | 
| 266 | } | ||
| 267 | </style> | 80 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-08-23 15:57:40 | 4 | * @LastEditTime: 2023-09-18 13:39:51 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="content"> | 7 | <div class="content"> | 
| ... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ | 
| 33 | <el-button | 33 | <el-button | 
| 34 | v-for="(item, index) in item.children" | 34 | v-for="(item, index) in item.children" | 
| 35 | :re='item' | 35 | :re='item' | 
| 36 | :key="index" | 36 | :key="item.id" | 
| 37 | class="sfqcontent" | 37 | class="sfqcontent" | 
| 38 | @click="addlist(item, index)"> | 38 | @click="addlist(item, index)"> | 
| 39 | {{ item.label }} | 39 | {{ item.label }} | 
| ... | @@ -83,7 +83,6 @@ | ... | @@ -83,7 +83,6 @@ | 
| 83 | this.loadData(this.formData.bdcdyh); | 83 | this.loadData(this.formData.bdcdyh); | 
| 84 | }, | 84 | }, | 
| 85 | methods: { | 85 | methods: { | 
| 86 | |||
| 87 | /** | 86 | /** | 
| 88 | * @description: getBdcdyh | 87 | * @description: getBdcdyh | 
| 89 | * @author: miaofang | 88 | * @author: miaofang | 
| ... | @@ -122,12 +121,8 @@ | ... | @@ -122,12 +121,8 @@ | 
| 122 | bdcdyh: val.bdcdyh, | 121 | bdcdyh: val.bdcdyh, | 
| 123 | qllx: this.formData.qllx, | 122 | qllx: this.formData.qllx, | 
| 124 | bsmQlxx: this.formData.bsmQlxx, | 123 | bsmQlxx: this.formData.bsmQlxx, | 
| 125 | }; | 124 | } | 
| 126 | }, | 125 | }, | 
| 127 | /** | ||
| 128 | * @description: loadData | ||
| 129 | * @author: renchao | ||
| 130 | */ | ||
| 131 | loadData (val) { | 126 | loadData (val) { | 
| 132 | getBdcqljqtsx({ | 127 | getBdcqljqtsx({ | 
| 133 | bdcdyid: this.formData.bdcdyid, | 128 | bdcdyid: this.formData.bdcdyid, | 
| ... | @@ -142,26 +137,24 @@ | ... | @@ -142,26 +137,24 @@ | 
| 142 | this.defaultNode = getNode( | 137 | this.defaultNode = getNode( | 
| 143 | this.formData.qllx, | 138 | this.formData.qllx, | 
| 144 | { linShi: 0, xianShi: 0, liShi: 0 }, | 139 | { linShi: 0, xianShi: 0, liShi: 0 }, | 
| 145 | res.result.bdcdylx|| "" | 140 | res.result.bdcdylx || "" | 
| 146 | ); | 141 | ); | 
| 147 | this.sfqdata[0].children.forEach((item, index) => { | 142 | this.sfqdata[0].children.forEach((item, index) => { | 
| 148 | if (item.id == this.defaultNode.id) { | 143 | if (item.id == this.defaultNode.id) { | 
| 149 | this.iskey = index | 144 | this.iskey = index | 
| 150 | } | 145 | } | 
| 151 | }) | 146 | }) | 
| 152 | |||
| 153 | this.setstyle(0, 0, this.iskey); | 147 | this.setstyle(0, 0, this.iskey); | 
| 154 | 148 | console.log(this.sfqdata, ' this.sfqdata'); | |
| 155 | 149 | }) | |
| 156 | }); | ||
| 157 | } | 150 | } | 
| 158 | }); | 151 | }) | 
| 159 | this.currentSelectProps = { | 152 | this.currentSelectProps = { | 
| 160 | bdcdyid: this.formData.bdcdyid, | 153 | bdcdyid: this.formData.bdcdyid, | 
| 161 | bdcdyh: val, | 154 | bdcdyh: val, | 
| 162 | qllx: this.formData.qllx, | 155 | qllx: this.formData.qllx, | 
| 163 | bsmQlxx: this.formData.bsmQlxx, | 156 | bsmQlxx: this.formData.bsmQlxx, | 
| 164 | }; | 157 | } | 
| 165 | }, | 158 | }, | 
| 166 | /** | 159 | /** | 
| 167 | * @description: handleNodeClick | 160 | * @description: handleNodeClick | 
| ... | @@ -171,12 +164,6 @@ | ... | @@ -171,12 +164,6 @@ | 
| 171 | handleNodeClick (data) { | 164 | handleNodeClick (data) { | 
| 172 | this.loadComponent(data.form); | 165 | this.loadComponent(data.form); | 
| 173 | }, | 166 | }, | 
| 174 | /** | ||
| 175 | * @description: setstyle | ||
| 176 | * @param {*} data | ||
| 177 | * @author: renchao | ||
| 178 | * 设置样式和点击定位到当前功能 | ||
| 179 | */ | ||
| 180 | setstyle (newindex, index, key) { | 167 | setstyle (newindex, index, key) { | 
| 181 | if (key != undefined || this.keyy == index) { | 168 | if (key != undefined || this.keyy == index) { | 
| 182 | if (key != undefined) { | 169 | if (key != undefined) { | 
| ... | @@ -193,10 +180,6 @@ | ... | @@ -193,10 +180,6 @@ | 
| 193 | dpme.style.color = "black"; | 180 | dpme.style.color = "black"; | 
| 194 | dpme.style.border = "none"; | 181 | dpme.style.border = "none"; | 
| 195 | } | 182 | } | 
| 196 | |||
| 197 | |||
| 198 | |||
| 199 | |||
| 200 | }, | 183 | }, | 
| 201 | /** | 184 | /** | 
| 202 | * @description: addlist | 185 | * @description: addlist | 
| ... | @@ -213,13 +196,12 @@ | ... | @@ -213,13 +196,12 @@ | 
| 213 | this.currentSelectProps.bdcdyid = data.bdcdyid; | 196 | this.currentSelectProps.bdcdyid = data.bdcdyid; | 
| 214 | this.loadComponent(data.form); | 197 | this.loadComponent(data.form); | 
| 215 | } else { | 198 | } else { | 
| 216 | this.loadComponent(data.form); | 199 | let newindex = this.sfqdata.findIndex((item) => { | 
| 217 | let newindex = this.sfqdata.findIndex((item) => { | ||
| 218 | return item.bdcdyid == data.bdcdyid; | 200 | return item.bdcdyid == data.bdcdyid; | 
| 219 | }); | 201 | }); | 
| 220 | this.setstyle(newindex, index); | 202 | this.setstyle(newindex, index); | 
| 203 | this.loadComponent(data.form); | ||
| 221 | } | 204 | } | 
| 222 | |||
| 223 | }, | 205 | }, | 
| 224 | /** | 206 | /** | 
| 225 | * @description: loadComponent | 207 | * @description: loadComponent | 
| ... | @@ -227,11 +209,12 @@ | ... | @@ -227,11 +209,12 @@ | 
| 227 | * @author: renchao | 209 | * @author: renchao | 
| 228 | */ | 210 | */ | 
| 229 | loadComponent (form) { | 211 | loadComponent (form) { | 
| 212 | console.log(form, 'form'); | ||
| 230 | this.componentTag = (r) => | 213 | this.componentTag = (r) => | 
| 231 | require.ensure([], () => r(require("@/views/registerBook/" + form))); | 214 | require.ensure([], () => r(require("@/views/registerBook/" + form))); | 
| 232 | }, | 215 | } | 
| 233 | }, | 216 | } | 
| 234 | }; | 217 | } | 
| 235 | </script> | 218 | </script> | 
| 236 | <style scoped lang="scss"> | 219 | <style scoped lang="scss"> | 
| 237 | /deep/.rollTable { | 220 | /deep/.rollTable { | ... | ... | 
| 1 | import { log } from "bpmn-js-token-simulation"; | 1 | /* | 
| 2 | 2 | * @Description: | |
| 3 | 3 | * @Autor: renchao | |
| 4 | * @LastEditTime: 2023-09-15 10:52:40 | ||
| 5 | */ | ||
| 4 | var qlxxPage = [ | 6 | var qlxxPage = [ | 
| 5 | { qllx: "A01", id: "tdsyq", form: "tdsyq.vue", label: "集体土地所有权" }, | 7 | { qllx: "A01", id: "tdsyq", form: "tdsyq.vue", label: "集体土地所有权" }, | 
| 6 | { qllx: "A02", id: "tdsyq", form: "tdsyq.vue", label: "国家土地所有权" }, | 8 | { qllx: "A02", id: "tdsyq", form: "tdsyq.vue", label: "国家土地所有权" }, | 
| ... | @@ -45,7 +47,7 @@ var qlxxPage = [ | ... | @@ -45,7 +47,7 @@ var qlxxPage = [ | 
| 45 | * @param {*} bdcdyh | 47 | * @param {*} bdcdyh | 
| 46 | * @author: renchao | 48 | * @author: renchao | 
| 47 | */ | 49 | */ | 
| 48 | export function loadTreeData(bdcdyh) { | 50 | export function loadTreeData (bdcdyh) { | 
| 49 | let treedata = []; | 51 | let treedata = []; | 
| 50 | //加载封面 | 52 | //加载封面 | 
| 51 | treedata.push({ id: "djbfm", form: "djbfm.vue", label: "登记簿封面" }); | 53 | treedata.push({ id: "djbfm", form: "djbfm.vue", label: "登记簿封面" }); | 
| ... | @@ -53,24 +55,24 @@ export function loadTreeData(bdcdyh) { | ... | @@ -53,24 +55,24 @@ export function loadTreeData(bdcdyh) { | 
| 53 | treedata[1].children.push({ id: "bdcqldjml", form: "bdcqldjml.vue", label: "不动产权利登记目录", children: [] }); | 55 | treedata[1].children.push({ id: "bdcqldjml", form: "bdcqldjml.vue", label: "不动产权利登记目录", children: [] }); | 
| 54 | return treedata; | 56 | return treedata; | 
| 55 | } | 57 | } | 
| 56 | export function loadsfqData(qlxxData, bdcdyh,bdcdyid) { | 58 | export function loadsfqData (qlxxData, bdcdyh, bdcdyid) { | 
| 57 | let treedata={ | 59 | let treedata = { | 
| 58 | bdcdyid:bdcdyid,id: "bdcqljqtsx", form: "bdcqljqtsx.vue", label: "不动产权利及其他事项\n (" + bdcdyh.slice(19) + ")", children: [], | 60 | bdcdyid: bdcdyid, id: "bdcqljqtsx", form: "bdcqljqtsx.vue", label: "不动产权利及其他事项\n (" + bdcdyh.slice(19) + ")", children: [], | 
| 59 | }; | 61 | }; | 
| 60 | //主体权利 | 62 | //主体权利 | 
| 61 | treedata.children.push(getNode(qlxxData.ztqllx, qlxxData.ztql, qlxxData.bdcdylx,bdcdyid)); | 63 | treedata.children.push(getNode(qlxxData.ztqllx, qlxxData.ztql, qlxxData.bdcdylx, bdcdyid)); | 
| 62 | //抵押权 | 64 | //抵押权 | 
| 63 | treedata.children.push(getNode("A37", qlxxData.diyaq, '',bdcdyid)); | 65 | treedata.children.push(getNode("A37", qlxxData.diyaq, '', bdcdyid)); | 
| 64 | //地役权 | 66 | //地役权 | 
| 65 | treedata.children.push(getNode("A19", qlxxData.diyiq, '',bdcdyid)); | 67 | treedata.children.push(getNode("A19", qlxxData.diyiq, '', bdcdyid)); | 
| 66 | //预告登记 | 68 | //预告登记 | 
| 67 | treedata.children.push(getNode("B40", qlxxData.ygdj, '',bdcdyid)); | 69 | treedata.children.push(getNode("B40", qlxxData.ygdj, '', bdcdyid)); | 
| 68 | //异议登记 | 70 | //异议登记 | 
| 69 | treedata.children.push(getNode("B38", qlxxData.yydj, '',bdcdyid)); | 71 | treedata.children.push(getNode("B38", qlxxData.yydj, '', bdcdyid)); | 
| 70 | //查封登记 | 72 | //查封登记 | 
| 71 | treedata.children.push(getNode("B39", qlxxData.cfdj, '',bdcdyid)); | 73 | treedata.children.push(getNode("B39", qlxxData.cfdj, '', bdcdyid)); | 
| 72 | 74 | ||
| 73 | return treedata; | 75 | return treedata; | 
| 74 | } | 76 | } | 
| 75 | 77 | ||
| 76 | //获取权利类型、不动产单元类型对应的树形节点信息 | 78 | //获取权利类型、不动产单元类型对应的树形节点信息 | 
| ... | @@ -81,18 +83,18 @@ export function loadsfqData(qlxxData, bdcdyh,bdcdyid) { | ... | @@ -81,18 +83,18 @@ export function loadsfqData(qlxxData, bdcdyh,bdcdyid) { | 
| 81 | * @param {*} bdcdylx | 83 | * @param {*} bdcdylx | 
| 82 | * @author: renchao | 84 | * @author: renchao | 
| 83 | */ | 85 | */ | 
| 84 | export function getNode(qllx, qlxx, bdcdylx,bdcdyid) { | 86 | export function getNode (qllx, qlxx, bdcdylx, bdcdyid) { | 
| 85 | let node; | 87 | let node; | 
| 86 | for (var i = 0; i < qlxxPage.length; i++) { | 88 | for (var i = 0; i < qlxxPage.length; i++) { | 
| 87 | if (qlxxPage[i].qllx == qllx) { | 89 | if (qlxxPage[i].qllx == qllx) { | 
| 88 | if (qllx == "A04" || qllx == "A06" || qllx == "A08") { | 90 | if (qllx == "A04" || qllx == "A06" || qllx == "A08") { | 
| 89 | if (bdcdylx == "4") { | 91 | if (bdcdylx == "4") { | 
| 90 | node = {bdcdyid:bdcdyid,id: "fdcq1", form: "fdcq1.vue", label: qlxxPage[i].label + "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi +")"}; | 92 | node = { bdcdyid: bdcdyid, id: "fdcq1", form: "fdcq1.vue", label: qlxxPage[i].label + "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi + ")" }; | 
| 91 | } else { | 93 | } else { | 
| 92 | node = { bdcdyid:bdcdyid,id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label + "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi +")"}; | 94 | node = { bdcdyid: bdcdyid, id: "fdcq2", form: "fdcq2.vue", label: qlxxPage[i].label + "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi + ")" }; | 
| 93 | } | 95 | } | 
| 94 | } else { | 96 | } else { | 
| 95 | node = { bdcdyid:bdcdyid,id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label + "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi +")"}; | 97 | node = { bdcdyid: bdcdyid, id: qlxxPage[i].id, form: qlxxPage[i].form, label: qlxxPage[i].label + "(临:" + qlxx.linShi + ",现:" + qlxx.xianShi + ",历:" + qlxx.liShi + ")" }; | 
| 96 | } | 98 | } | 
| 97 | break; | 99 | break; | 
| 98 | } | 100 | } | ... | ... | 
This diff is collapsed.
Click to expand it.
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:42:34 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | id="boxfdcq" | ||
| 11 | :tableData="tableData" | ||
| 12 | :render="render" | ||
| 13 | /> | ||
| 14 | </div> | ||
| 15 | <div class="tableBox"> | ||
| 16 | <div class="title"> | ||
| 17 | {{ title }} | ||
| 18 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 19 | >打印</el-button | ||
| 20 | > | ||
| 21 | <div class="checkbox"> | ||
| 22 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 23 | <el-checkbox | ||
| 24 | v-for="item in qsztList" | ||
| 25 | :key="item.value" | ||
| 26 | :label="item.value" | ||
| 27 | >{{ item.label }}</el-checkbox | ||
| 28 | > | ||
| 29 | </el-checkbox-group> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | <div class="xxTableBox rollTable"> | ||
| 33 | <table class="xxTable"> | ||
| 34 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 35 | <td> | ||
| 36 | {{ item.label }} | ||
| 37 | </td> | ||
| 38 | <td | ||
| 39 | v-for="(row, index) in tableData" | ||
| 40 | :key="index" | ||
| 41 | :class="[ | ||
| 42 | row.qszt == '2' ? 'lishi' : '', | ||
| 43 | row.qszt == '0' ? 'linshi' : '', | ||
| 44 | row.qlzt == '4' ? 'linshi' : '', | ||
| 45 | |||
| 46 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 47 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 48 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 49 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 50 | ]" | ||
| 51 | > | ||
| 52 | <div | ||
| 53 | class="setbut" | ||
| 54 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 55 | > | ||
| 56 | <el-button | ||
| 57 | type="text" | ||
| 58 | icon="el-icon-edit-outline" | ||
| 59 | @click="editDialog(row)" | ||
| 60 | >编辑</el-button | ||
| 61 | > | ||
| 62 | <el-button | ||
| 63 | type="text" | ||
| 64 | icon="el-icon-edit-outline" | ||
| 65 | @click="editDialog(row, 'D')" | ||
| 66 | >删除</el-button | ||
| 67 | > | ||
| 68 | </div> | ||
| 69 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 70 | 有效 | ||
| 71 | </div> | ||
| 72 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 73 | 正在补录 | ||
| 74 | </div> | ||
| 75 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 76 | 正在申请 | ||
| 77 | </div> | ||
| 78 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 79 | 正在注销 | ||
| 80 | </div> | ||
| 81 | |||
| 82 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 83 | <span v-if="item.prop == 'qszt'"> | ||
| 84 | {{ getQsztName(row[item.prop]) }} | ||
| 85 | </span> | ||
| 86 | <span v-else>{{ row[item.prop] }}</span> | ||
| 87 | </p> | ||
| 88 | |||
| 89 | <el-tooltip | ||
| 90 | v-else | ||
| 91 | effect="dark" | ||
| 92 | :content="row[item.prop]" | ||
| 93 | placement="top" | ||
| 94 | popper-class="tooltip-width" | ||
| 95 | > | ||
| 96 | <span class="ellipsis-line"> | ||
| 97 | {{ row[item.prop] }} | ||
| 98 | </span> | ||
| 99 | </el-tooltip> | ||
| 100 | </td> | ||
| 101 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 102 | </tr> | ||
| 103 | </table> | ||
| 104 | </div> | ||
| 105 | </div> | ||
| 106 | </div> | 10 | </div> | 
| 107 | </template> | 11 | </template> | 
| 108 | |||
| 109 | <script> | 12 | <script> | 
| 110 | import printTemplate from "./components/printTemplate.vue"; | 13 | import { datas } from "./qlxxFormData.js"; | 
| 111 | import { datas } from "./qlxxFormData.js"; | 14 | import { getSjlx } from "@/utils/dictionary.js"; | 
| 112 | import { getSjlx } from "@/utils/dictionary.js"; | 15 | import { getFdcq2List } from "@/api/djbDetail.js"; | 
| 113 | import { getFdcq2List } from "@/api/djbDetail.js"; | 16 | import djbDetail from "./components/djbDetail.vue" | 
| 114 | export default { | 17 | export default { | 
| 115 | components: { | 18 | components: { | 
| 116 | printTemplate, | 19 | djbDetail | 
| 117 | }, | ||
| 118 | data() { | ||
| 119 | return { | ||
| 120 | |||
| 121 | shows: false, | ||
| 122 | title: "房地产权登记信息(独幢、层、套、间房屋)", | ||
| 123 | qsztList: datas.columns().qsztList, | ||
| 124 | checkList: datas.columns().checkList, | ||
| 125 | //传递参数 | ||
| 126 | propsParam: this.$attrs, | ||
| 127 | //列表数据 | ||
| 128 | tableData: [], | ||
| 129 | //空列值个数 | ||
| 130 | emptycolNum: datas.columns().emptycolNum, | ||
| 131 | //列名称对象 | ||
| 132 | columns: datas.columns().FDCQ2, | ||
| 133 | render: false, | ||
| 134 | }; | ||
| 135 | }, | ||
| 136 | created() { | ||
| 137 | this.loadData(); | ||
| 138 | }, | ||
| 139 | methods: { | ||
| 140 | /** | ||
| 141 | * @description: openPrint | ||
| 142 | * @author: miaofang | ||
| 143 | */ | ||
| 144 | openPrint() { | ||
| 145 | this.render = true; | ||
| 146 | setTimeout(() => { | ||
| 147 | this.prinsss(); | ||
| 148 | }, 100); | ||
| 149 | }, | ||
| 150 | /** | ||
| 151 | * @description: prinsss | ||
| 152 | * @author: miaofang | ||
| 153 | */ | ||
| 154 | prinsss() { | ||
| 155 | printJS({ | ||
| 156 | printable: "boxfdcq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 157 | type: "html", | ||
| 158 | maxWidth: 800, // 最大宽度 | ||
| 159 | font_size: "", // 不设置则使用默认字体大小 | ||
| 160 | style: `@font-face { | ||
| 161 | font-family: "STZHONGS"; | ||
| 162 | src: url(${window.ttf}) format("truetype"); | ||
| 163 | }`, | ||
| 164 | // 继承原来的所有样式 | ||
| 165 | targetStyles: ["*"], | ||
| 166 | }); | ||
| 167 | this.render = false | ||
| 168 | }, | 20 | }, | 
| 169 | /** | 21 | |
| 170 | * @description: loadData | 22 | data () { | 
| 171 | * @author: miaofang | 23 | return { | 
| 172 | */ | 24 | shows: false, | 
| 173 | loadData() { | 25 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 
| 174 | if (this.$parent.addRepairRecord) { | 26 | //传递参数 | 
| 175 | this.columns.unshift({ prop: "cz", label: "操作" }); | 27 | propsParam: this.$attrs, | 
| 176 | } | 28 | //列表数据 | 
| 177 | getFdcq2List({ | 29 | tableData: [], | 
| 178 | bdcdyid: this.propsParam.bdcdyid, | 30 | //列名称对象 | 
| 179 | qllx: this.propsParam.qllx, | 31 | columns: datas.columns().FDCQ2, | 
| 180 | qszt: this.checkList, | 32 | render: false, | 
| 181 | }).then((res) => { | 33 | }; | 
| 182 | if (res.code === 200) { | ||
| 183 | this.tableData = res.result; | ||
| 184 | this.shows = this.tableData.length > 0; | ||
| 185 | this.tableData.forEach((item) => { | ||
| 186 | item.sjlx = getSjlx(item.sjlx); | ||
| 187 | }); | ||
| 188 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 189 | this.emptycolNum = | ||
| 190 | datas.columns().emptycolNum - this.tableData.length; | ||
| 191 | } else { | ||
| 192 | this.emptycolNum = 0; | ||
| 193 | } | ||
| 194 | } | ||
| 195 | }); | ||
| 196 | }, | 34 | }, | 
| 197 | /** | 35 | created () { | 
| 198 | * @description: checkChange | 36 | this.loadData(); | 
| 199 | * @author: miaofang | ||
| 200 | */ | ||
| 201 | checkChange() { | ||
| 202 | if (this.checkList.length === 0) { | ||
| 203 | this.tableData = []; | ||
| 204 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 205 | } else { | ||
| 206 | this.loadData(); | ||
| 207 | } | ||
| 208 | }, | 37 | }, | 
| 209 | /** | 38 | methods: { | 
| 210 | * @description: getQsztName | 39 | /** | 
| 211 | * @param {*} code | 40 | * @description: loadData | 
| 212 | * @author: miaofang | 41 | * @author: miaofang | 
| 213 | */ | 42 | */ | 
| 214 | getQsztName(code) { | 43 | loadData () { | 
| 215 | let name = ""; | 44 | if (this.$parent.addRepairRecord) { | 
| 216 | for (let item of this.qsztList) { | 45 | this.columns.unshift({ prop: "cz", label: "操作" }); | 
| 217 | if (item.value == code) { | ||
| 218 | name = item.label; | ||
| 219 | break; | ||
| 220 | } | 46 | } | 
| 221 | } | 47 | getFdcq2List({ | 
| 222 | return name; | 48 | bdcdyid: this.propsParam.bdcdyid, | 
| 223 | }, | 49 | qllx: this.propsParam.qllx, | 
| 224 | // 新增一条补录信息 | 50 | qszt: this.checkList, | 
| 225 | /** | 51 | }).then((res) => { | 
| 226 | * @description: 新增一条补录信息 | 52 | if (res.code === 200) { | 
| 227 | * @param {*} row | 53 | this.tableData = res.result; | 
| 228 | * @param {*} del | 54 | this.shows = this.tableData.length > 0; | 
| 229 | * @author: miaofang | 55 | this.tableData.forEach((item) => { | 
| 230 | */ | 56 | item.sjlx = getSjlx(item.sjlx); | 
| 231 | editDialog(row, del) { | 57 | }); | 
| 232 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 58 | if (this.tableData.length < datas.columns().emptycolNum) { | 
| 233 | confirmButtonText: "确定", | 59 | this.emptycolNum = | 
| 234 | cancelButtonText: "取消", | 60 | datas.columns().emptycolNum - this.tableData.length; | 
| 235 | type: "warning", | 61 | } else { | 
| 236 | }) | 62 | this.emptycolNum = 0; | 
| 237 | .then(() => { | 63 | } | 
| 238 | this.$parent.addRepairRecord(row, del); | 64 | } | 
| 239 | }) | 65 | }) | 
| 240 | .catch(() => { | 66 | } | 
| 241 | this.$message({ | 67 | } | 
| 242 | type: "info", | 68 | }; | 
| 243 | message: "取消", | ||
| 244 | }); | ||
| 245 | }); | ||
| 246 | }, | ||
| 247 | }, | ||
| 248 | }; | ||
| 249 | </script> | 69 | </script> | 
| 250 | 70 | ||
| 251 | <style lang="scss" scoped> | 71 | <style lang="scss" scoped> | 
| 252 | @import "./qlxxCommon.scss"; | 72 | @import "./qlxxCommon.scss"; | 
| 253 | .title { | 73 | .title { | 
| 254 | position: relative; | 74 | position: relative; | 
| 255 | .print { | 75 | .print { | 
| 256 | // background-color: #0079fe; | 76 | // background-color: #0079fe; | 
| 257 | z-index: 10; | 77 | z-index: 10; | 
| 258 | position: absolute; | 78 | position: absolute; | 
| 259 | left: 11px; | 79 | left: 11px; | 
| 260 | top: 5px; | 80 | top: 5px; | 
| 81 | } | ||
| 261 | } | 82 | } | 
| 262 | } | ||
| 263 | </style> | 83 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:43:36 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | id="boxjsydsyq" | ||
| 11 | :tableData="tableData" | ||
| 12 | :render="render" | ||
| 13 | /> | ||
| 14 | </div> | ||
| 15 | <div class="tableBox"> | ||
| 16 | <div class="title"> | ||
| 17 | {{ title }} | ||
| 18 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 19 | >打印</el-button | ||
| 20 | > | ||
| 21 | <div class="checkbox"> | ||
| 22 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 23 | <el-checkbox | ||
| 24 | v-for="item in qsztList" | ||
| 25 | :key="item.value" | ||
| 26 | :label="item.value" | ||
| 27 | >{{ item.label }}</el-checkbox | ||
| 28 | > | ||
| 29 | </el-checkbox-group> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | <div class="xxTableBox rollTable"> | ||
| 33 | <!-- 固定前三个 --> | ||
| 34 | <table class="xxTable"> | ||
| 35 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 36 | <td> | ||
| 37 | {{ item.label }} | ||
| 38 | </td> | ||
| 39 | <td | ||
| 40 | v-for="(row, index) in tableData" | ||
| 41 | :key="index" | ||
| 42 | :class="[ | ||
| 43 | row.qszt == '2' ? 'lishi' : '', | ||
| 44 | row.qszt == '0' ? 'linshi' : '', | ||
| 45 | row.qlzt == '4' ? 'linshi' : '', | ||
| 46 | |||
| 47 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 48 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 49 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 50 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 51 | ]" | ||
| 52 | > | ||
| 53 | <div | ||
| 54 | class="setbut" | ||
| 55 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 56 | > | ||
| 57 | <el-button | ||
| 58 | type="text" | ||
| 59 | icon="el-icon-edit-outline" | ||
| 60 | @click="editDialog(row)" | ||
| 61 | >编辑</el-button | ||
| 62 | > | ||
| 63 | <el-button | ||
| 64 | type="text" | ||
| 65 | icon="el-icon-edit-outline" | ||
| 66 | @click="editDialog(row, 'D')" | ||
| 67 | >删除</el-button | ||
| 68 | > | ||
| 69 | </div> | ||
| 70 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 71 | 有效 | ||
| 72 | </div> | ||
| 73 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 74 | 正在补录 | ||
| 75 | </div> | ||
| 76 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 77 | 正在申请 | ||
| 78 | </div> | ||
| 79 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 80 | 正在注销 | ||
| 81 | </div> | ||
| 82 | |||
| 83 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 84 | <span v-if="item.prop == 'qszt'"> | ||
| 85 | {{ getQsztName(row[item.prop]) }} | ||
| 86 | </span> | ||
| 87 | <span v-else>{{ row[item.prop] }}</span> | ||
| 88 | </p> | ||
| 89 | <el-tooltip | ||
| 90 | v-else | ||
| 91 | effect="dark" | ||
| 92 | :content="row[item.prop]" | ||
| 93 | placement="top" | ||
| 94 | popper-class="tooltip-width" | ||
| 95 | > | ||
| 96 | <span class="ellipsis-line"> | ||
| 97 | {{ row[item.prop] }} | ||
| 98 | </span> | ||
| 99 | </el-tooltip> | ||
| 100 | </td> | ||
| 101 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 102 | </tr> | ||
| 103 | </table> | ||
| 104 | </div> | ||
| 105 | </div> | ||
| 106 | </div> | 10 | </div> | 
| 107 | </template> | 11 | </template> | 
| 108 | 12 | ||
| 109 | <script> | 13 | <script> | 
| 110 | import printTemplate from "./components/printTemplate.vue"; | 14 | import { datas } from "./qlxxFormData.js"; | 
| 111 | import { datas } from "./qlxxFormData.js"; | 15 | import { getSjlx } from "@/utils/dictionary.js"; | 
| 112 | import { getSjlx } from "@/utils/dictionary.js"; | 16 | import { getJsydsyqList } from "@/api/djbDetail.js"; | 
| 113 | import { getJsydsyqList } from "@/api/djbDetail.js"; | 17 | import djbDetail from "./components/djbDetail.vue" | 
| 114 | export default { | 18 | export default { | 
| 115 | components: { | 19 | components: { | 
| 116 | printTemplate, | 20 | djbDetail, | 
| 117 | }, | ||
| 118 | data() { | ||
| 119 | return { | ||
| 120 | printObj: { | ||
| 121 | id: "box", | ||
| 122 | //其他配置项, | ||
| 123 | }, | ||
| 124 | shows: false, | ||
| 125 | title: "建设用地使用权、宅基地使用权登记信息", | ||
| 126 | qsztList: datas.columns().qsztList, | ||
| 127 | checkList: datas.columns().checkList, | ||
| 128 | //传递参数 | ||
| 129 | propsParam: this.$attrs, | ||
| 130 | //列表数据 | ||
| 131 | tableData: [], | ||
| 132 | //空列值个数 | ||
| 133 | emptycolNum: datas.columns().emptycolNum, | ||
| 134 | //列名称对象 | ||
| 135 | columns: datas.columns().JSYDSYQ, | ||
| 136 | render: false, | ||
| 137 | }; | ||
| 138 | }, | ||
| 139 | created() { | ||
| 140 | this.loadData(); | ||
| 141 | }, | ||
| 142 | methods: { | ||
| 143 | /** | ||
| 144 | * @description: openPrint | ||
| 145 | * @author: miaofang | ||
| 146 | */ | ||
| 147 | openPrint() { | ||
| 148 | this.render = true; | ||
| 149 | setTimeout(() => { | ||
| 150 | this.prinsss(); | ||
| 151 | }, 100); | ||
| 152 | }, | ||
| 153 | /** | ||
| 154 | * @description: prinsss | ||
| 155 | * @author: miaofang | ||
| 156 | */ | ||
| 157 | prinsss() { | ||
| 158 | printJS({ | ||
| 159 | printable: "boxjsydsyq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 160 | type: "html", | ||
| 161 | maxWidth: 800, // 最大宽度 | ||
| 162 | font_size: "", // 不设置则使用默认字体大小 | ||
| 163 | style: `@font-face { | ||
| 164 | font-family: "STZHONGS"; | ||
| 165 | src: url(${window.ttf}) format("truetype"); | ||
| 166 | }`, | ||
| 167 | // 继承原来的所有样式 | ||
| 168 | targetStyles: ["*"], | ||
| 169 | }); | ||
| 170 | this.render=false | ||
| 171 | }, | 21 | }, | 
| 172 | /** | 22 | data () { | 
| 173 | * @description: loadData | 23 | return { | 
| 174 | * @author: miaofang | 24 | printObj: { | 
| 175 | */ | 25 | id: "box", | 
| 176 | loadData() { | 26 | //其他配置项, | 
| 177 | getJsydsyqList({ | 27 | }, | 
| 178 | bdcdyid: this.propsParam.bdcdyid, | 28 | shows: false, | 
| 179 | qllx: this.propsParam.qllx, | 29 | title: "建设用地使用权、宅基地使用权登记信息", | 
| 180 | qszt: this.checkList, | 30 | //传递参数 | 
| 181 | }).then((res) => { | 31 | propsParam: this.$attrs, | 
| 182 | if (res.code === 200) { | 32 | //列表数据 | 
| 183 | this.tableData = res.result; | 33 | tableData: [], | 
| 184 | this.shows = this.tableData.length > 0; | 34 | //列名称对象 | 
| 185 | this.tableData.forEach((item) => { | 35 | columns: datas.columns().JSYDSYQ, | 
| 186 | item.sjlx = getSjlx(item.sjlx); | 36 | render: false, | 
| 187 | }); | 37 | }; | 
| 188 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 189 | this.emptycolNum = | ||
| 190 | datas.columns().emptycolNum - this.tableData.length; | ||
| 191 | } else { | ||
| 192 | this.emptycolNum = 0; | ||
| 193 | } | ||
| 194 | } | ||
| 195 | }); | ||
| 196 | }, | ||
| 197 | /** | ||
| 198 | * @description: checkChange | ||
| 199 | * @author: miaofang | ||
| 200 | */ | ||
| 201 | checkChange() { | ||
| 202 | if (this.checkList.length === 0) { | ||
| 203 | this.tableData = []; | ||
| 204 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 205 | } else { | ||
| 206 | this.loadData(); | ||
| 207 | } | ||
| 208 | }, | 38 | }, | 
| 209 | /** | 39 | created () { | 
| 210 | * @description: getQsztName | 40 | this.loadData(); | 
| 211 | * @param {*} code | ||
| 212 | * @author: miaofang | ||
| 213 | */ | ||
| 214 | getQsztName(code) { | ||
| 215 | let name = ""; | ||
| 216 | for (let item of this.qsztList) { | ||
| 217 | if (item.value == code) { | ||
| 218 | name = item.label; | ||
| 219 | break; | ||
| 220 | } | ||
| 221 | } | ||
| 222 | return name; | ||
| 223 | }, | 41 | }, | 
| 224 | // 新增一条补录信息 | 42 | methods: { | 
| 225 | /** | 43 | loadData () { | 
| 226 | * @description: 新增一条补录信息 | 44 | getJsydsyqList({ | 
| 227 | * @param {*} row | 45 | bdcdyid: this.propsParam.bdcdyid, | 
| 228 | * @param {*} del | 46 | qllx: this.propsParam.qllx, | 
| 229 | * @author: miaofang | 47 | qszt: this.checkList, | 
| 230 | */ | 48 | }).then((res) => { | 
| 231 | editDialog(row, del) { | 49 | if (res.code === 200) { | 
| 232 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 50 | this.tableData = res.result; | 
| 233 | confirmButtonText: "确定", | 51 | this.shows = this.tableData.length > 0; | 
| 234 | cancelButtonText: "取消", | 52 | this.tableData.forEach((item) => { | 
| 235 | type: "warning", | 53 | item.sjlx = getSjlx(item.sjlx); | 
| 236 | }) | 54 | }); | 
| 237 | .then(() => { | 55 | if (this.tableData.length < datas.columns().emptycolNum) { | 
| 238 | this.$parent.addRepairRecord(row, del); | 56 | this.emptycolNum = | 
| 239 | 57 | datas.columns().emptycolNum - this.tableData.length; | |
| 240 | this.$message({ | 58 | } else { | 
| 241 | type: "success", | 59 | this.emptycolNum = 0; | 
| 242 | message: "补录成功!", | 60 | } | 
| 243 | }); | 61 | } | 
| 244 | }) | 62 | }) | 
| 245 | .catch(() => { | 63 | } | 
| 246 | this.$message({ | 64 | } | 
| 247 | type: "info", | 65 | } | 
| 248 | message: "取消编辑", | ||
| 249 | }); | ||
| 250 | }); | ||
| 251 | }, | ||
| 252 | }, | ||
| 253 | }; | ||
| 254 | </script> | 66 | </script> | 
| 255 | 67 | ||
| 256 | <style lang="scss" scoped> | 68 | <style lang="scss" scoped> | 
| 257 | @import "./qlxxCommon.scss"; | 69 | @import "./qlxxCommon.scss"; | 
| 258 | .title { | 70 | .title { | 
| 259 | position: relative; | 71 | position: relative; | 
| 260 | .print { | 72 | .print { | 
| 261 | // background-color: #0079fe; | 73 | // background-color: #0079fe; | 
| 262 | z-index: 10; | 74 | z-index: 10; | 
| 263 | position: absolute; | 75 | position: absolute; | 
| 264 | left: 11px; | 76 | left: 11px; | 
| 265 | top: 5px; | 77 | top: 5px; | 
| 78 | } | ||
| 266 | } | 79 | } | 
| 267 | } | ||
| 268 | </style> | 80 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:44:04 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | id="boxldsyq" | ||
| 11 | :tableData="tableData" | ||
| 12 | :render="render" | ||
| 13 | /> | ||
| 14 | </div> | ||
| 15 | <div class="tableBox"> | ||
| 16 | <div class="title"> | ||
| 17 | {{ title }} | ||
| 18 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 19 | >打印</el-button | ||
| 20 | > | ||
| 21 | <div class="checkbox"> | ||
| 22 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 23 | <el-checkbox | ||
| 24 | v-for="item in qsztList" | ||
| 25 | :key="item.value" | ||
| 26 | :label="item.value" | ||
| 27 | >{{ item.label }}</el-checkbox | ||
| 28 | > | ||
| 29 | </el-checkbox-group> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | <div class="xxTableBox rollTable"> | ||
| 33 | <!-- 固定前三个 --> | ||
| 34 | <table class="xxTable"> | ||
| 35 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 36 | <td>{{ item.label }}</td> | ||
| 37 | <td | ||
| 38 | v-for="(row, index) in tableData" | ||
| 39 | :key="index" | ||
| 40 | :class="[ | ||
| 41 | row.qszt == '2' ? 'lishi' : '', | ||
| 42 | row.qszt == '0' ? 'linshi' : '', | ||
| 43 | row.qlzt == '4' ? 'linshi' : '', | ||
| 44 | |||
| 45 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 46 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 47 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 48 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 49 | ]" | ||
| 50 | > | ||
| 51 | <div | ||
| 52 | class="setbut" | ||
| 53 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 54 | > | ||
| 55 | <el-button | ||
| 56 | type="text" | ||
| 57 | icon="el-icon-edit-outline" | ||
| 58 | @click="editDialog(row)" | ||
| 59 | >编辑</el-button | ||
| 60 | > | ||
| 61 | <el-button | ||
| 62 | type="text" | ||
| 63 | icon="el-icon-edit-outline" | ||
| 64 | @click="editDialog(row, 'D')" | ||
| 65 | >删除</el-button | ||
| 66 | > | ||
| 67 | </div> | ||
| 68 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 69 | 有效 | ||
| 70 | </div> | ||
| 71 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 72 | 正在补录 | ||
| 73 | </div> | ||
| 74 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 75 | 正在申请 | ||
| 76 | </div> | ||
| 77 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 78 | 正在注销 | ||
| 79 | </div> | ||
| 80 | |||
| 81 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 82 | <span v-if="item.prop == 'qszt'"> | ||
| 83 | {{ getQsztName(row[item.prop]) }} | ||
| 84 | </span> | ||
| 85 | <span v-else>{{ row[item.prop] }}</span> | ||
| 86 | </p> | ||
| 87 | <el-tooltip | ||
| 88 | v-else | ||
| 89 | effect="dark" | ||
| 90 | :content="row[item.prop]" | ||
| 91 | placement="top" | ||
| 92 | popper-class="tooltip-width" | ||
| 93 | > | ||
| 94 | <span class="ellipsis-line"> | ||
| 95 | {{ row[item.prop] }} | ||
| 96 | </span> | ||
| 97 | </el-tooltip> | ||
| 98 | </td> | ||
| 99 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 100 | </tr> | ||
| 101 | </table> | ||
| 102 | </div> | ||
| 103 | </div> | ||
| 104 | </div> | 10 | </div> | 
| 105 | </template> | 11 | </template> | 
| 106 | 12 | ||
| 107 | <script> | 13 | <script> | 
| 108 | import { datas } from "./qlxxFormData.js"; | 14 | import { datas } from "./qlxxFormData.js"; | 
| 109 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 15 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 
| 110 | import { getLqList } from "@/api/djbDetail.js"; | 16 | import { getLqList } from "@/api/djbDetail.js"; | 
| 111 | import printTemplate from "./components/printTemplate.vue"; | 17 | import djbDetail from "./components/djbDetail.vue" | 
| 112 | export default { | 18 | export default { | 
| 113 | components: { | 19 | components: { | 
| 114 | printTemplate, | 20 | djbDetail, | 
| 115 | }, | ||
| 116 | data() { | ||
| 117 | return { | ||
| 118 | printObj: { | ||
| 119 | id: "box", | ||
| 120 | //其他配置项, | ||
| 121 | }, | ||
| 122 | shows: false, | ||
| 123 | title: "林权登记信息", | ||
| 124 | qsztList: datas.columns().qsztList, | ||
| 125 | checkList: datas.columns().checkList, | ||
| 126 | //传递参数 | ||
| 127 | propsParam: this.$attrs, | ||
| 128 | //列表数据 | ||
| 129 | tableData: [], | ||
| 130 | //空列值个数 | ||
| 131 | emptycolNum: datas.columns().emptycolNum, | ||
| 132 | //列名称对象 | ||
| 133 | columns: datas.columns().LDSYQ, | ||
| 134 | render: false, | ||
| 135 | }; | ||
| 136 | }, | ||
| 137 | created() { | ||
| 138 | this.loadData(); | ||
| 139 | }, | ||
| 140 | methods: { | ||
| 141 | /** | ||
| 142 | * @description: openPrint | ||
| 143 | * @author: miaofang | ||
| 144 | */ | ||
| 145 | openPrint() { | ||
| 146 | this.render = true; | ||
| 147 | setTimeout(() => { | ||
| 148 | this.prinsss(); | ||
| 149 | }, 100); | ||
| 150 | }, | ||
| 151 | /** | ||
| 152 | * @description: prinsss | ||
| 153 | * @author: miaofang | ||
| 154 | */ | ||
| 155 | prinsss() { | ||
| 156 | printJS({ | ||
| 157 | printable: "boxldsyq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 158 | type: "html", | ||
| 159 | maxWidth: 800, // 最大宽度 | ||
| 160 | font_size: "", // 不设置则使用默认字体大小 | ||
| 161 | style: `@font-face { | ||
| 162 | font-family: "STZHONGS"; | ||
| 163 | src: url(${window.ttf}) format("truetype"); | ||
| 164 | }`, | ||
| 165 | // 继承原来的所有样式 | ||
| 166 | targetStyles: ["*"], | ||
| 167 | }); | ||
| 168 | this.render=false | ||
| 169 | }, | 21 | }, | 
| 170 | /** | 22 | data () { | 
| 171 | * @description: loadData | 23 | return { | 
| 172 | * @author: miaofang | 24 | printObj: { | 
| 173 | */ | 25 | id: "box", | 
| 174 | loadData() { | 26 | //其他配置项, | 
| 175 | if (this.$parent.addRepairRecord) { | 27 | }, | 
| 176 | this.columns.unshift({ | 28 | shows: false, | 
| 177 | prop: "cz", | 29 | title: "林权登记信息", | 
| 178 | label: "操作", | 30 | //传递参数 | 
| 179 | }); | 31 | propsParam: this.$attrs, | 
| 180 | } | 32 | //列表数据 | 
| 181 | getLqList({ | 33 | tableData: [], | 
| 182 | bdcdyid: this.propsParam.bdcdyid, | 34 | //列名称对象 | 
| 183 | qllx: this.propsParam.qllx, | 35 | columns: datas.columns().LDSYQ, | 
| 184 | qszt: this.checkList, | 36 | render: false, | 
| 185 | }).then((res) => { | 37 | }; | 
| 186 | if (res.code === 200) { | ||
| 187 | this.tableData = res.result; | ||
| 188 | this.shows = this.tableData.length > 0; | ||
| 189 | this.tableData.forEach((item) => { | ||
| 190 | item.sjlx = getSjlx(item.sjlx); | ||
| 191 | item.ldsyqxz = getDictLeabel(item.ldsyqxz, "A45"); | ||
| 192 | item.lz = getDictLeabel(item.lz, "A26"); | ||
| 193 | item.qy = getDictLeabel(item.qy, "A52"); | ||
| 194 | }); | ||
| 195 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 196 | this.emptycolNum = | ||
| 197 | datas.columns().emptycolNum - this.tableData.length; | ||
| 198 | } else { | ||
| 199 | this.emptycolNum = 0; | ||
| 200 | } | ||
| 201 | } | ||
| 202 | }); | ||
| 203 | }, | 38 | }, | 
| 204 | /** | 39 | created () { | 
| 205 | * @description: checkChange | 40 | this.loadData(); | 
| 206 | * @author: miaofang | ||
| 207 | */ | ||
| 208 | checkChange() { | ||
| 209 | if (this.checkList.length === 0) { | ||
| 210 | this.tableData = []; | ||
| 211 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 212 | } else { | ||
| 213 | this.loadData(); | ||
| 214 | } | ||
| 215 | }, | 41 | }, | 
| 216 | /** | 42 | methods: { | 
| 217 | * @description: getQsztName | 43 | loadData () { | 
| 218 | * @param {*} code | 44 | if (this.$parent.addRepairRecord) { | 
| 219 | * @author: miaofang | 45 | this.columns.unshift({ | 
| 220 | */ | 46 | prop: "cz", | 
| 221 | getQsztName(code) { | 47 | label: "操作", | 
| 222 | let name = ""; | ||
| 223 | for (let item of this.qsztList) { | ||
| 224 | if (item.value == code) { | ||
| 225 | name = item.label; | ||
| 226 | break; | ||
| 227 | } | ||
| 228 | } | ||
| 229 | return name; | ||
| 230 | }, | ||
| 231 | // 新增一条补录信息 | ||
| 232 | /** | ||
| 233 | * @description: 新增一条补录信息 | ||
| 234 | * @param {*} row | ||
| 235 | * @param {*} del | ||
| 236 | * @author: miaofang | ||
| 237 | */ | ||
| 238 | editDialog(row, del) { | ||
| 239 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 240 | confirmButtonText: "确定", | ||
| 241 | cancelButtonText: "取消", | ||
| 242 | type: "warning", | ||
| 243 | }) | ||
| 244 | .then(() => { | ||
| 245 | this.$parent.addRepairRecord(row, del); | ||
| 246 | |||
| 247 | this.$message({ | ||
| 248 | type: "success", | ||
| 249 | message: "补录成功!", | ||
| 250 | }); | ||
| 251 | }) | ||
| 252 | .catch(() => { | ||
| 253 | this.$message({ | ||
| 254 | type: "info", | ||
| 255 | message: "取消编辑", | ||
| 256 | }); | 48 | }); | 
| 49 | } | ||
| 50 | getLqList({ | ||
| 51 | bdcdyid: this.propsParam.bdcdyid, | ||
| 52 | qllx: this.propsParam.qllx, | ||
| 53 | qszt: this.checkList, | ||
| 54 | }).then((res) => { | ||
| 55 | if (res.code === 200) { | ||
| 56 | this.tableData = res.result; | ||
| 57 | this.shows = this.tableData.length > 0; | ||
| 58 | this.tableData.forEach((item) => { | ||
| 59 | item.sjlx = getSjlx(item.sjlx); | ||
| 60 | item.ldsyqxz = getDictLeabel(item.ldsyqxz, "A45"); | ||
| 61 | item.lz = getDictLeabel(item.lz, "A26"); | ||
| 62 | item.qy = getDictLeabel(item.qy, "A52"); | ||
| 63 | }); | ||
| 64 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 65 | this.emptycolNum = | ||
| 66 | datas.columns().emptycolNum - this.tableData.length; | ||
| 67 | } else { | ||
| 68 | this.emptycolNum = 0; | ||
| 69 | } | ||
| 70 | } | ||
| 257 | }); | 71 | }); | 
| 258 | }, | 72 | } | 
| 259 | }, | 73 | } | 
| 260 | }; | 74 | } | 
| 261 | </script> | 75 | </script> | 
| 262 | 76 | ||
| 263 | <style lang="scss" scoped> | 77 | <style lang="scss" scoped> | 
| 264 | @import "./qlxxCommon.scss"; | 78 | @import "./qlxxCommon.scss"; | 
| 265 | .title { | 79 | .title { | 
| 266 | position: relative; | 80 | position: relative; | 
| 267 | .print { | 81 | .print { | 
| 268 | // background-color: #0079fe; | 82 | // background-color: #0079fe; | 
| 269 | z-index: 10; | 83 | z-index: 10; | 
| 270 | position: absolute; | 84 | position: absolute; | 
| 271 | left: 11px; | 85 | left: 11px; | 
| 272 | top: 5px; | 86 | top: 5px; | 
| 87 | } | ||
| 273 | } | 88 | } | 
| 274 | } | ||
| 275 | </style> | 89 | </style> | ... | ... | 
This diff is collapsed.
Click to expand it.
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Author: yangwei | ||
| 3 | * @Date: 2023-08-15 14:15:06 | ||
| 4 | * @LastEditors: yangwei | ||
| 5 | * @LastEditTime: 2023-08-15 14:15:19 | ||
| 6 | * @FilePath: \bdcdj-web\src\views\registerBook\sllmsyq.vue | ||
| 7 | * @Description: | ||
| 8 | * | ||
| 9 | * Copyright (c) 2023 by yangwei, All Rights Reserved. | ||
| 10 | --> | ||
| 11 | <!-- | ||
| 12 | * @Description: | 2 | * @Description: | 
| 13 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 14 | * @LastEditTime: 2023-08-11 15:33:53 | 4 | * @LastEditTime: 2023-09-18 13:45:03 | 
| 15 | --> | 5 | --> | 
| 16 | <template> | 6 | <template> | 
| 17 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 18 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 19 | <printTemplate | 9 | :columns="columns" :tableData="tableData" /> | 
| 20 | id="boxsllmsyq" | ||
| 21 | :tableData="tableData" | ||
| 22 | :render="render" | ||
| 23 | /> | ||
| 24 | </div> | ||
| 25 | <div class="tableBox"> | ||
| 26 | <div class="title"> | ||
| 27 | {{ title }} | ||
| 28 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 29 | >打印</el-button | ||
| 30 | > | ||
| 31 | <div class="checkbox"> | ||
| 32 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 33 | <el-checkbox | ||
| 34 | v-for="item in qsztList" | ||
| 35 | :key="item.value" | ||
| 36 | :label="item.value" | ||
| 37 | >{{ item.label }}</el-checkbox | ||
| 38 | > | ||
| 39 | </el-checkbox-group> | ||
| 40 | </div> | ||
| 41 | </div> | ||
| 42 | <div class="xxTableBox rollTable"> | ||
| 43 | <!-- 固定前三个 --> | ||
| 44 | <table class="xxTable"> | ||
| 45 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 46 | <td>{{ item.label }}</td> | ||
| 47 | <td | ||
| 48 | v-for="(row, index) in tableData" | ||
| 49 | :key="index" | ||
| 50 | :class="[ | ||
| 51 | row.qszt == '2' ? 'lishi' : '', | ||
| 52 | row.qszt == '0' ? 'linshi' : '', | ||
| 53 | row.qlzt == '4' ? 'linshi' : '', | ||
| 54 | |||
| 55 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 56 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 57 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 58 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 59 | ]" | ||
| 60 | > | ||
| 61 | <div | ||
| 62 | class="setbut" | ||
| 63 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | ||
| 64 | > | ||
| 65 | <el-button | ||
| 66 | type="text" | ||
| 67 | icon="el-icon-edit-outline" | ||
| 68 | @click="editDialog(row)" | ||
| 69 | >编辑</el-button | ||
| 70 | > | ||
| 71 | <el-button | ||
| 72 | type="text" | ||
| 73 | icon="el-icon-edit-outline" | ||
| 74 | @click="editDialog(row, 'D')" | ||
| 75 | >删除</el-button | ||
| 76 | > | ||
| 77 | </div> | ||
| 78 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 79 | 有效 | ||
| 80 | </div> | ||
| 81 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 82 | 正在补录 | ||
| 83 | </div> | ||
| 84 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 85 | 正在申请 | ||
| 86 | </div> | ||
| 87 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 88 | 正在注销 | ||
| 89 | </div> | ||
| 90 | |||
| 91 | <!-- <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> | ||
| 92 | <span v-else>{{ row[item.prop] }}</span> --> | ||
| 93 | |||
| 94 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 95 | <span v-if="item.prop == 'qszt'"> | ||
| 96 | {{ getQsztName(row[item.prop]) }} | ||
| 97 | </span> | ||
| 98 | <span v-else>{{ row[item.prop] }}</span> | ||
| 99 | </p> | ||
| 100 | |||
| 101 | <el-tooltip | ||
| 102 | v-else | ||
| 103 | effect="dark" | ||
| 104 | :content="row[item.prop]" | ||
| 105 | placement="top" | ||
| 106 | popper-class="tooltip-width" | ||
| 107 | > | ||
| 108 | <span class="ellipsis-line"> | ||
| 109 | {{ row[item.prop] }} | ||
| 110 | </span> | ||
| 111 | </el-tooltip> | ||
| 112 | </td> | ||
| 113 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 114 | </tr> | ||
| 115 | </table> | ||
| 116 | </div> | ||
| 117 | </div> | ||
| 118 | </div> | 10 | </div> | 
| 119 | </template> | 11 | </template> | 
| 120 | 12 | ||
| 121 | <script> | 13 | <script> | 
| 122 | import { datas } from "./qlxxFormData.js"; | 14 | import { datas } from "./qlxxFormData.js"; | 
| 123 | import { getSjlx } from "@/utils/dictionary.js"; | 15 | import { getSjlx } from "@/utils/dictionary.js"; | 
| 124 | import { getLqList } from "@/api/djbDetail.js"; | 16 | import { getLqList } from "@/api/djbDetail.js"; | 
| 125 | import printTemplate from "./components/printTemplate.vue"; | 17 | import djbDetail from "./components/djbDetail.vue" | 
| 126 | export default { | 18 | export default { | 
| 127 | components: { | 19 | components: { | 
| 128 | printTemplate, | 20 | djbDetail, | 
| 129 | }, | ||
| 130 | data() { | ||
| 131 | return { | ||
| 132 | printObj: { | ||
| 133 | id: "box", | ||
| 134 | //其他配置项, | ||
| 135 | }, | ||
| 136 | shows: false, | ||
| 137 | title: "林权登记信息", | ||
| 138 | qsztList: datas.columns().qsztList, | ||
| 139 | checkList: datas.columns().checkList, | ||
| 140 | //传递参数 | ||
| 141 | propsParam: this.$attrs, | ||
| 142 | //列表数据 | ||
| 143 | tableData: [], | ||
| 144 | //空列值个数 | ||
| 145 | emptycolNum: datas.columns().emptycolNum, | ||
| 146 | //列名称对象 | ||
| 147 | columns: datas.columns().LDSYQ, | ||
| 148 | render: false, | ||
| 149 | }; | ||
| 150 | }, | ||
| 151 | created() { | ||
| 152 | this.loadData(); | ||
| 153 | }, | ||
| 154 | methods: { | ||
| 155 | /** | ||
| 156 | * @description: openPrint | ||
| 157 | * @author: miaofang | ||
| 158 | */ | ||
| 159 | openPrint() { | ||
| 160 | this.render = true; | ||
| 161 | setTimeout(() => { | ||
| 162 | this.prinsss(); | ||
| 163 | }, 100); | ||
| 164 | }, | ||
| 165 | /** | ||
| 166 | * @description: prinsss | ||
| 167 | * @author: miaofang | ||
| 168 | */ | ||
| 169 | prinsss() { | ||
| 170 | printJS({ | ||
| 171 | printable: "boxsllmsyq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 172 | type: "html", | ||
| 173 | maxWidth: 800, // 最大宽度 | ||
| 174 | font_size: "", // 不设置则使用默认字体大小 | ||
| 175 | style: `@font-face { | ||
| 176 | font-family: "STZHONGS"; | ||
| 177 | src: url(${window.ttf}) format("truetype"); | ||
| 178 | }`, | ||
| 179 | // 继承原来的所有样式 | ||
| 180 | targetStyles: ["*"], | ||
| 181 | }); | ||
| 182 | this.render=false | ||
| 183 | }, | ||
| 184 | /** | ||
| 185 | * @description: loadData | ||
| 186 | * @author: miaofang | ||
| 187 | */ | ||
| 188 | loadData() { | ||
| 189 | if (this.$parent.addRepairRecord) { | ||
| 190 | this.columns.unshift({ | ||
| 191 | prop: "cz", | ||
| 192 | label: "操作", | ||
| 193 | }); | ||
| 194 | } | ||
| 195 | getLqList({ | ||
| 196 | bdcdyid: this.propsParam.bdcdyid, | ||
| 197 | qllx: this.propsParam.qllx, | ||
| 198 | qszt: this.checkList, | ||
| 199 | }).then((res) => { | ||
| 200 | if (res.code === 200) { | ||
| 201 | this.tableData = res.result; | ||
| 202 | this.shows = this.tableData.length > 0; | ||
| 203 | this.tableData.forEach((item) => { | ||
| 204 | item.sjlx = getSjlx(item.sjlx); | ||
| 205 | }); | ||
| 206 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 207 | this.emptycolNum = | ||
| 208 | datas.columns().emptycolNum - this.tableData.length; | ||
| 209 | } else { | ||
| 210 | this.emptycolNum = 0; | ||
| 211 | } | ||
| 212 | } | ||
| 213 | }); | ||
| 214 | }, | 21 | }, | 
| 215 | /** | 22 | data () { | 
| 216 | * @description: checkChange | 23 | return { | 
| 217 | * @author: miaofang | 24 | shows: false, | 
| 218 | */ | 25 | title: "林权登记信息", | 
| 219 | checkChange() { | 26 | //传递参数 | 
| 220 | if (this.checkList.length === 0) { | 27 | propsParam: this.$attrs, | 
| 221 | this.tableData = []; | 28 | //列表数据 | 
| 222 | this.emptycolNum = datas.columns().emptycolNum; | 29 | tableData: [], | 
| 223 | } else { | 30 | //列名称对象 | 
| 224 | this.loadData(); | 31 | columns: datas.columns().LDSYQ, | 
| 225 | } | 32 | render: false, | 
| 33 | }; | ||
| 226 | }, | 34 | }, | 
| 227 | /** | 35 | created () { | 
| 228 | * @description: getQsztName | 36 | this.loadData(); | 
| 229 | * @param {*} code | ||
| 230 | * @author: miaofang | ||
| 231 | */ | ||
| 232 | getQsztName(code) { | ||
| 233 | let name = ""; | ||
| 234 | for (let item of this.qsztList) { | ||
| 235 | if (item.value == code) { | ||
| 236 | name = item.label; | ||
| 237 | break; | ||
| 238 | } | ||
| 239 | } | ||
| 240 | return name; | ||
| 241 | }, | 37 | }, | 
| 242 | // 新增一条补录信息 | 38 | methods: { | 
| 243 | /** | 39 | loadData () { | 
| 244 | * @description: 新增一条补录信息 | 40 | if (this.$parent.addRepairRecord) { | 
| 245 | * @param {*} row | 41 | this.columns.unshift({ | 
| 246 | * @param {*} del | 42 | prop: "cz", | 
| 247 | * @author: miaofang | 43 | label: "操作", | 
| 248 | */ | ||
| 249 | editDialog(row, del) { | ||
| 250 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 251 | confirmButtonText: "确定", | ||
| 252 | cancelButtonText: "取消", | ||
| 253 | type: "warning", | ||
| 254 | }) | ||
| 255 | .then(() => { | ||
| 256 | this.$parent.addRepairRecord(row, del); | ||
| 257 | |||
| 258 | this.$message({ | ||
| 259 | type: "success", | ||
| 260 | message: "补录成功!", | ||
| 261 | }); | ||
| 262 | }) | ||
| 263 | .catch(() => { | ||
| 264 | this.$message({ | ||
| 265 | type: "info", | ||
| 266 | message: "取消编辑", | ||
| 267 | }); | 44 | }); | 
| 45 | } | ||
| 46 | getLqList({ | ||
| 47 | bdcdyid: this.propsParam.bdcdyid, | ||
| 48 | qllx: this.propsParam.qllx, | ||
| 49 | qszt: this.checkList, | ||
| 50 | }).then((res) => { | ||
| 51 | if (res.code === 200) { | ||
| 52 | this.tableData = res.result; | ||
| 53 | this.shows = this.tableData.length > 0; | ||
| 54 | this.tableData.forEach((item) => { | ||
| 55 | item.sjlx = getSjlx(item.sjlx); | ||
| 56 | }); | ||
| 57 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 58 | this.emptycolNum = | ||
| 59 | datas.columns().emptycolNum - this.tableData.length; | ||
| 60 | } else { | ||
| 61 | this.emptycolNum = 0; | ||
| 62 | } | ||
| 63 | } | ||
| 268 | }); | 64 | }); | 
| 65 | } | ||
| 269 | }, | 66 | }, | 
| 270 | }, | 67 | }; | 
| 271 | }; | ||
| 272 | </script> | 68 | </script> | 
| 273 | 69 | ||
| 274 | <style lang="scss" scoped> | 70 | <style lang="scss" scoped> | 
| 275 | @import "./qlxxCommon.scss"; | 71 | @import "./qlxxCommon.scss"; | 
| 276 | .title { | 72 | .title { | 
| 277 | position: relative; | 73 | position: relative; | 
| 278 | .print { | 74 | .print { | 
| 279 | // background-color: #0079fe; | 75 | // background-color: #0079fe; | 
| 280 | z-index: 10; | 76 | z-index: 10; | 
| 281 | position: absolute; | 77 | position: absolute; | 
| 282 | left: 11px; | 78 | left: 11px; | 
| 283 | top: 5px; | 79 | top: 5px; | 
| 80 | } | ||
| 284 | } | 81 | } | 
| 285 | } | ||
| 286 | </style> | 82 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:06:42 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate id="boxtdsyq" :tableData="tableData" :render="render"/> | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | </div> | ||
| 11 | <div class="tableBox"> | ||
| 12 | <div class="title"> | ||
| 13 | {{ title }} | ||
| 14 | <el-button class="print" v-show="shows" @click="openPrint()">打印</el-button> | ||
| 15 | <div class="checkbox"> | ||
| 16 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 17 | <el-checkbox v-for="item in qsztList" :key="item.value" :label="item.value">{{ item.label }}</el-checkbox> | ||
| 18 | </el-checkbox-group> | ||
| 19 | </div> | ||
| 20 | </div> | ||
| 21 | <div class="xxTableBox rollTable"> | ||
| 22 | <!-- 固定前三个 --> | ||
| 23 | <table class="xxTable"> | ||
| 24 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 25 | <td> | ||
| 26 | {{ item.label }} | ||
| 27 | </td> | ||
| 28 | <td v-for="(row, index) in tableData" :key="index" :class="[ | ||
| 29 | row.qszt == '2' ? 'lishi' : '', | ||
| 30 | row.qszt == '0' ? 'linshi' : '', | ||
| 31 | row.qlzt == '4' ? 'linshi' : '', | ||
| 32 | |||
| 33 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 34 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 35 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 36 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '' | ||
| 37 | ]"> | ||
| 38 | <div class="setbut" v-if="item.prop == 'cz'&&row.sjlx !='系统数据'"> | ||
| 39 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
| 40 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row,'D')">删除</el-button> | ||
| 41 | </div> | ||
| 42 | <div class="icon" v-if="item.prop == 'qszt' &&row.qlzt == '1'"> | ||
| 43 | 有效 | ||
| 44 | </div> | ||
| 45 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 46 | 正在补录 | ||
| 47 | </div> | ||
| 48 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 49 | 正在申请 | ||
| 50 | </div> | ||
| 51 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 52 | 正在注销 | ||
| 53 | </div> | ||
| 54 | |||
| 55 | <p v-if="!['djyy','fj'].includes(item.prop)"> | ||
| 56 | <span v-if="item.prop == 'qszt'"> | ||
| 57 | {{ getQsztName(row[item.prop]) }} | ||
| 58 | </span> | ||
| 59 | <span v-else>{{ row[item.prop] }}</span> | ||
| 60 | </p> | ||
| 61 | |||
| 62 | <el-tooltip v-else effect="dark" :content="row[item.prop]" placement="top" popper-class="tooltip-width"> | ||
| 63 | <span class="ellipsis-line"> | ||
| 64 | {{ row[item.prop] }} | ||
| 65 | </span> | ||
| 66 | </el-tooltip> | ||
| 67 | </td> | ||
| 68 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 69 | </tr> | ||
| 70 | </table> | ||
| 71 | </div> | ||
| 72 | </div> | ||
| 73 | </div> | 10 | </div> | 
| 74 | </template> | 11 | </template> | 
| 75 | 12 | ||
| ... | @@ -77,68 +14,42 @@ | ... | @@ -77,68 +14,42 @@ | 
| 77 | import { datas } from "./qlxxFormData.js"; | 14 | import { datas } from "./qlxxFormData.js"; | 
| 78 | import { getSjlx } from "@/utils/dictionary.js"; | 15 | import { getSjlx } from "@/utils/dictionary.js"; | 
| 79 | import { getTdsyqList } from "@/api/djbDetail.js"; | 16 | import { getTdsyqList } from "@/api/djbDetail.js"; | 
| 80 | import printTemplate from "./components/printTemplate.vue"; | 17 | import djbDetail from "./components/djbDetail.vue" | 
| 81 | export default { | 18 | export default { | 
| 82 | components: { | 19 | components: { | 
| 83 | printTemplate, | 20 | djbDetail, | 
| 84 | }, | 21 | }, | 
| 85 | data() { | 22 | data () { | 
| 86 | return { | 23 | return { | 
| 87 | printObj: { | 24 | printObj: { | 
| 88 | id: "box", | 25 | id: "box", | 
| 89 | //其他配置项, | 26 | //其他配置项, | 
| 90 | }, | 27 | }, | 
| 91 | shows:false, | 28 | shows: false, | 
| 92 | title: "土地所有权信息", | 29 | title: "土地所有权信息", | 
| 93 | qsztList: datas.columns().qsztList, | ||
| 94 | checkList: datas.columns().checkList, | ||
| 95 | //传递参数 | 30 | //传递参数 | 
| 96 | propsParam: this.$attrs, | 31 | propsParam: this.$attrs, | 
| 97 | //列表数据 | 32 | //列表数据 | 
| 98 | tableData: [], | 33 | tableData: [], | 
| 99 | //空列值个数 | ||
| 100 | emptycolNum: datas.columns().emptycolNum, | ||
| 101 | //列名称对象 | 34 | //列名称对象 | 
| 102 | columns: datas.columns().TDSYQ, | 35 | columns: datas.columns().TDSYQ, | 
| 103 | render:false | 36 | render: false, | 
| 104 | }; | 37 | }; | 
| 105 | }, | 38 | }, | 
| 106 | created () { | 39 | created () { | 
| 107 | this.loadData(); | 40 | this.loadData(); | 
| 108 | }, | 41 | }, | 
| 109 | methods: { | 42 | methods: { | 
| 110 | openPrint(){ | ||
| 111 | this.render=true | ||
| 112 | setTimeout(() => { | ||
| 113 | this.prinsss() | ||
| 114 | }, 100) | ||
| 115 | }, | ||
| 116 | prinsss(){ | ||
| 117 | printJS({ | ||
| 118 | printable: "boxtdsyq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 119 | type: "html", | ||
| 120 | maxWidth: 800, // 最大宽度 | ||
| 121 | font_size: "", // 不设置则使用默认字体大小 | ||
| 122 | style: `@font-face { | ||
| 123 | font-family: "STZHONGS"; | ||
| 124 | src: url(${window.ttf}) format("truetype"); | ||
| 125 | }`, | ||
| 126 | // 继承原来的所有样式 | ||
| 127 | targetStyles: ["*"] | ||
| 128 | }); | ||
| 129 | this.render=false | ||
| 130 | }, | ||
| 131 | /** | 43 | /** | 
| 132 | * @description: loadData | 44 | * @description: loadData | 
| 133 | * @author: miaofang | 45 | * @author: miaofang | 
| 134 | */ | 46 | */ | 
| 135 | loadData () { | 47 | loadData () { | 
| 136 | |||
| 137 | if (this.$parent.addRepairRecord) { | 48 | if (this.$parent.addRepairRecord) { | 
| 138 | this.columns.unshift({ | 49 | this.columns.unshift({ | 
| 139 | prop: "cz", | 50 | prop: "cz", | 
| 140 | label: "操作" | 51 | label: "操作", | 
| 141 | }) | 52 | }); | 
| 142 | } | 53 | } | 
| 143 | getTdsyqList({ | 54 | getTdsyqList({ | 
| 144 | bdcdyid: this.propsParam.bdcdyid, | 55 | bdcdyid: this.propsParam.bdcdyid, | 
| ... | @@ -147,10 +58,10 @@ export default { | ... | @@ -147,10 +58,10 @@ export default { | 
| 147 | }).then((res) => { | 58 | }).then((res) => { | 
| 148 | if (res.code === 200) { | 59 | if (res.code === 200) { | 
| 149 | this.tableData = res.result; | 60 | this.tableData = res.result; | 
| 150 | this.shows=this.tableData.length>0 | 61 | this.shows = this.tableData.length > 0; | 
| 151 | this.tableData.forEach(item => { | 62 | this.tableData.forEach((item) => { | 
| 152 | item.sjlx = getSjlx(item.sjlx) | 63 | item.sjlx = getSjlx(item.sjlx); | 
| 153 | }) | 64 | }); | 
| 154 | if (this.tableData.length < datas.columns().emptycolNum) { | 65 | if (this.tableData.length < datas.columns().emptycolNum) { | 
| 155 | this.emptycolNum = | 66 | this.emptycolNum = | 
| 156 | datas.columns().emptycolNum - this.tableData.length; | 67 | datas.columns().emptycolNum - this.tableData.length; | 
| ... | @@ -158,76 +69,22 @@ export default { | ... | @@ -158,76 +69,22 @@ export default { | 
| 158 | this.emptycolNum = 0; | 69 | this.emptycolNum = 0; | 
| 159 | } | 70 | } | 
| 160 | } | 71 | } | 
| 161 | }); | 72 | }) | 
| 162 | }, | 73 | } | 
| 163 | /** | 74 | } | 
| 164 | * @description: checkChange | ||
| 165 | * @author: miaofang | ||
| 166 | */ | ||
| 167 | checkChange () { | ||
| 168 | if (this.checkList.length === 0) { | ||
| 169 | this.tableData = []; | ||
| 170 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 171 | } else { | ||
| 172 | this.loadData(); | ||
| 173 | } | ||
| 174 | }, | ||
| 175 | /** | ||
| 176 | * @description: getQsztName | ||
| 177 | * @param {*} code | ||
| 178 | * @author: miaofang | ||
| 179 | */ | ||
| 180 | getQsztName (code) { | ||
| 181 | let name = ""; | ||
| 182 | for (let item of this.qsztList) { | ||
| 183 | if (item.value == code) { | ||
| 184 | name = item.label; | ||
| 185 | break; | ||
| 186 | } | ||
| 187 | } | ||
| 188 | return name; | ||
| 189 | }, | ||
| 190 | // 新增一条补录信息 | ||
| 191 | /** | ||
| 192 | * @description: 新增一条补录信息 | ||
| 193 | * @param {*} row | ||
| 194 | * @param {*} del | ||
| 195 | * @author: miaofang | ||
| 196 | */ | ||
| 197 | editDialog (row, del) { | ||
| 198 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | ||
| 199 | confirmButtonText: '确定', | ||
| 200 | cancelButtonText: '取消', | ||
| 201 | type: 'warning' | ||
| 202 | }).then(() => { | ||
| 203 | this.$parent.addRepairRecord(row, del) | ||
| 204 | |||
| 205 | this.$message({ | ||
| 206 | type: 'success', | ||
| 207 | message: '补录成功!' | ||
| 208 | }); | ||
| 209 | }).catch(() => { | ||
| 210 | this.$message({ | ||
| 211 | type: 'info', | ||
| 212 | message: '取消编辑' | ||
| 213 | }); | ||
| 214 | }); | ||
| 215 | |||
| 216 | }, | ||
| 217 | }, | ||
| 218 | }; | 75 | }; | 
| 219 | </script> | 76 | </script> | 
| 220 | 77 | ||
| 221 | <style lang="scss" scoped> | 78 | <style lang="scss" scoped> | 
| 222 | @import "./qlxxCommon.scss"; | 79 | @import "./qlxxCommon.scss"; | 
| 223 | .title { | 80 | .title { | 
| 224 | position: relative; | 81 | position: relative; | 
| 225 | .print { | 82 | .print { | 
| 226 | // background-color: #0079fe; | 83 | // background-color: #0079fe; | 
| 227 | z-index: 10; | 84 | z-index: 10; | 
| 228 | position: absolute; | 85 | position: absolute; | 
| 229 | left: 11px; | 86 | left: 11px; | 
| 230 | top: 5px; | 87 | top: 5px; | 
| 88 | } | ||
| 231 | } | 89 | } | 
| 232 | } | ||
| 233 | </style> | 90 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:40:33 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate id="boxygdj" :tableData="tableData" :render="render"/> | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | </div> | ||
| 11 | <div class="tableBox"> | ||
| 12 | <div class="title"> | ||
| 13 | {{ title }} | ||
| 14 | <el-button class="print" v-show="shows" @click="openPrint()">打印</el-button> | ||
| 15 | <div class="checkbox"> | ||
| 16 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 17 | <el-checkbox | ||
| 18 | v-for="item in qsztList" | ||
| 19 | :key="item.value" | ||
| 20 | :label="item.value" | ||
| 21 | >{{ item.label }}</el-checkbox | ||
| 22 | > | ||
| 23 | </el-checkbox-group> | ||
| 24 | </div> | ||
| 25 | </div> | ||
| 26 | <div class="xxTableBox rollTable"> | ||
| 27 | <table class="xxTable"> | ||
| 28 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 29 | <td> | ||
| 30 | {{ item.label }} | ||
| 31 | </td> | ||
| 32 | <td | ||
| 33 | v-for="(row, index) in tableData" | ||
| 34 | :key="index" | ||
| 35 | :class="[ | ||
| 36 | row.qszt == '2' ? 'lishi' : '', | ||
| 37 | row.qszt == '0' ? 'linshi' : '', | ||
| 38 | row.qlzt == '4' ? 'linshi' : '', | ||
| 39 | |||
| 40 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 41 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 42 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 43 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 44 | ]" | ||
| 45 | > | ||
| 46 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
| 47 | <el-button | ||
| 48 | type="text" | ||
| 49 | icon="el-icon-edit-outline" | ||
| 50 | @click="editDialog(row)" | ||
| 51 | >编辑</el-button | ||
| 52 | > | ||
| 53 | <el-button | ||
| 54 | type="text" | ||
| 55 | icon="el-icon-edit-outline" | ||
| 56 | @click="editDialog(row, 'D')" | ||
| 57 | >删除</el-button | ||
| 58 | > | ||
| 59 | </div> | ||
| 60 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 61 | 有效 | ||
| 62 | </div> | ||
| 63 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 64 | 正在补录 | ||
| 65 | </div> | ||
| 66 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 67 | 正在申请 | ||
| 68 | </div> | ||
| 69 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 70 | 正在注销 | ||
| 71 | </div> | ||
| 72 | |||
| 73 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 74 | <span v-if="item.prop == 'qszt'"> | ||
| 75 | {{ getQsztName(row[item.prop]) }} | ||
| 76 | </span> | ||
| 77 | <span v-else>{{ row[item.prop] }}</span> | ||
| 78 | </p> | ||
| 79 | |||
| 80 | <el-tooltip | ||
| 81 | v-else | ||
| 82 | effect="dark" | ||
| 83 | :content="row[item.prop]" | ||
| 84 | placement="top" | ||
| 85 | popper-class="tooltip-width" | ||
| 86 | > | ||
| 87 | <span class="ellipsis-line"> | ||
| 88 | {{ row[item.prop] }} | ||
| 89 | </span> | ||
| 90 | </el-tooltip> | ||
| 91 | </td> | ||
| 92 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 93 | </tr> | ||
| 94 | </table> | ||
| 95 | </div> | ||
| 96 | </div> | ||
| 97 | </div> | 10 | </div> | 
| 98 | </template> | 11 | </template> | 
| 99 | 12 | ||
| 100 | <script> | 13 | <script> | 
| 101 | import printTemplate from "./components/printTemplate.vue"; | 14 | import { datas } from "./qlxxFormData.js"; | 
| 102 | import { datas } from "./qlxxFormData.js"; | 15 | import { getYgdjList } from "@/api/djbDetail.js"; | 
| 103 | import { getYgdjList } from "@/api/djbDetail.js"; | 16 | import djbDetail from "./components/djbDetail.vue" | 
| 104 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 17 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 
| 105 | export default { | 18 | export default { | 
| 106 | components: { | 19 | components: { | 
| 107 | printTemplate, | 20 | djbDetail, | 
| 108 | }, | ||
| 109 | data() { | ||
| 110 | return { | ||
| 111 | // printObj: { | ||
| 112 | // id: "box", | ||
| 113 | // //其他配置项, | ||
| 114 | // }, | ||
| 115 | shows:false, | ||
| 116 | title: "预告登记信息", | ||
| 117 | qsztList: datas.columns().qsztList, | ||
| 118 | checkList: datas.columns().checkList, | ||
| 119 | //传递参数 | ||
| 120 | propsParam: this.$attrs, | ||
| 121 | //列表数据 | ||
| 122 | tableData: [], | ||
| 123 | //空列值个数 | ||
| 124 | emptycolNum: datas.columns().emptycolNum, | ||
| 125 | //列名称对象 | ||
| 126 | columns: datas.columns().YGDJ, | ||
| 127 | render:false | ||
| 128 | }; | ||
| 129 | }, | ||
| 130 | created() { | ||
| 131 | this.loadData(); | ||
| 132 | }, | ||
| 133 | methods: { | ||
| 134 | openPrint(){ | ||
| 135 | this.render=true | ||
| 136 | setTimeout(() => { | ||
| 137 | this.prinsss() | ||
| 138 | }, 100) | ||
| 139 | }, | 21 | }, | 
| 140 | prinsss(){ | 22 | data () { | 
| 141 | printJS({ | 23 | return { | 
| 142 | printable: "boxygdj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | 24 | shows: false, | 
| 143 | type: "html", | 25 | title: "预告登记信息", | 
| 144 | maxWidth: 800, // 最大宽度 | 26 | //传递参数 | 
| 145 | font_size: "", // 不设置则使用默认字体大小 | 27 | propsParam: this.$attrs, | 
| 146 | style: `@font-face { | 28 | //列表数据 | 
| 147 | font-family: "STZHONGS"; | 29 | tableData: [], | 
| 148 | src: url(${window.ttf}) format("truetype"); | 30 | //列名称对象 | 
| 149 | }`, | 31 | columns: datas.columns().YGDJ, | 
| 150 | // 继承原来的所有样式 | 32 | render: false | 
| 151 | targetStyles: ["*"] | 33 | }; | 
| 152 | }); | ||
| 153 | this.render=false | ||
| 154 | }, | ||
| 155 | /** | ||
| 156 | * @description: loadData | ||
| 157 | * @author: miaofang | ||
| 158 | */ | ||
| 159 | loadData() { | ||
| 160 | // 判断是否在登记簿补录调的子页面 | ||
| 161 | if (this.$parent.addRepairRecord) { | ||
| 162 | this.columns.unshift({ | ||
| 163 | prop: "cz", | ||
| 164 | label: "操作", | ||
| 165 | }); | ||
| 166 | } | ||
| 167 | getYgdjList({ | ||
| 168 | bdcdyid: this.propsParam.bdcdyid, | ||
| 169 | qllx: this.propsParam.qllx, | ||
| 170 | qszt: this.checkList, | ||
| 171 | }).then((res) => { | ||
| 172 | if (res.code === 200) { | ||
| 173 | this.tableData = res.result; | ||
| 174 | this.shows=this.tableData.length>0 | ||
| 175 | this.tableData.forEach((item) => { | ||
| 176 | item.sjlx = getSjlx(item.sjlx); | ||
| 177 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | ||
| 178 | }); | ||
| 179 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 180 | this.emptycolNum = | ||
| 181 | datas.columns().emptycolNum - this.tableData.length; | ||
| 182 | } else { | ||
| 183 | this.emptycolNum = 0; | ||
| 184 | } | ||
| 185 | } | ||
| 186 | }); | ||
| 187 | }, | 34 | }, | 
| 188 | /** | 35 | created () { | 
| 189 | * @description: checkChange | 36 | this.loadData(); | 
| 190 | * @author: miaofang | ||
| 191 | */ | ||
| 192 | checkChange() { | ||
| 193 | if (this.checkList.length === 0) { | ||
| 194 | this.tableData = []; | ||
| 195 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 196 | } else { | ||
| 197 | this.loadData(); | ||
| 198 | } | ||
| 199 | }, | 37 | }, | 
| 200 | /** | 38 | methods: { | 
| 201 | * @description: getQsztName | 39 | loadData () { | 
| 202 | * @param {*} code | 40 | // 判断是否在登记簿补录调的子页面 | 
| 203 | * @author: miaofang | 41 | if (this.$parent.addRepairRecord) { | 
| 204 | */ | 42 | this.columns.unshift({ | 
| 205 | getQsztName(code) { | 43 | prop: "cz", | 
| 206 | let name = ""; | 44 | label: "操作", | 
| 207 | for (let item of this.qsztList) { | ||
| 208 | if (item.value == code) { | ||
| 209 | name = item.label; | ||
| 210 | break; | ||
| 211 | } | ||
| 212 | } | ||
| 213 | return name; | ||
| 214 | }, | ||
| 215 | // 新增一条补录信息 | ||
| 216 | /** | ||
| 217 | * @description: 新增一条补录信息 | ||
| 218 | * @param {*} row | ||
| 219 | * @param {*} del | ||
| 220 | * @author: miaofang | ||
| 221 | */ | ||
| 222 | editDialog(row, del) { | ||
| 223 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 224 | confirmButtonText: "确定", | ||
| 225 | cancelButtonText: "取消", | ||
| 226 | type: "warning", | ||
| 227 | }) | ||
| 228 | .then(() => { | ||
| 229 | this.$parent.addRepairRecord(row, del); | ||
| 230 | |||
| 231 | this.$message({ | ||
| 232 | type: "success", | ||
| 233 | message: "补录成功!", | ||
| 234 | }); | 45 | }); | 
| 46 | } | ||
| 47 | getYgdjList({ | ||
| 48 | bdcdyid: this.propsParam.bdcdyid, | ||
| 49 | qllx: this.propsParam.qllx, | ||
| 50 | qszt: this.checkList, | ||
| 51 | }).then((res) => { | ||
| 52 | if (res.code === 200) { | ||
| 53 | this.tableData = res.result; | ||
| 54 | this.shows = this.tableData.length > 0 | ||
| 55 | this.tableData.forEach((item) => { | ||
| 56 | item.sjlx = getSjlx(item.sjlx); | ||
| 57 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | ||
| 58 | }); | ||
| 59 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 60 | this.emptycolNum = | ||
| 61 | datas.columns().emptycolNum - this.tableData.length; | ||
| 62 | } else { | ||
| 63 | this.emptycolNum = 0; | ||
| 64 | } | ||
| 65 | } | ||
| 235 | }) | 66 | }) | 
| 236 | .catch(() => { | 67 | } | 
| 237 | this.$message({ | 68 | } | 
| 238 | type: "info", | 69 | } | 
| 239 | message: "取消编辑", | ||
| 240 | }); | ||
| 241 | }); | ||
| 242 | }, | ||
| 243 | }, | ||
| 244 | }; | ||
| 245 | </script> | 70 | </script> | 
| 246 | 71 | ||
| 247 | <style lang="scss" scoped> | 72 | <style lang="scss" scoped> | 
| 248 | @import "./qlxxCommon.scss"; | 73 | @import "./qlxxCommon.scss"; | 
| 249 | .title { | 74 | .title { | 
| 250 | position: relative; | 75 | position: relative; | 
| 251 | .print { | 76 | .print { | 
| 252 | // background-color: #0079fe; | 77 | // background-color: #0079fe; | 
| 253 | z-index: 10; | 78 | z-index: 10; | 
| 254 | position: absolute; | 79 | position: absolute; | 
| 255 | left: 11px; | 80 | left: 11px; | 
| 256 | top: 5px; | 81 | top: 5px; | 
| 82 | } | ||
| 257 | } | 83 | } | 
| 258 | } | ||
| 259 | </style> | 84 | </style> | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: miaofang | 3 | * @Autor: miaofang | 
| 4 | * @LastEditTime: 2023-08-23 15:54:12 | 4 | * @LastEditTime: 2023-09-18 13:46:21 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> | 
| 8 | <div v-show="false"> | 8 | <djbDetail :title="title" :shows="shows" :propsParam="propsParam" | 
| 9 | <printTemplate | 9 | :columns="columns" :tableData="tableData" /> | 
| 10 | id="boxyydj" | ||
| 11 | :tableData="tableData" | ||
| 12 | :render="render" | ||
| 13 | /> | ||
| 14 | </div> | ||
| 15 | <div class="tableBox"> | ||
| 16 | <div class="title"> | ||
| 17 | {{ title }} | ||
| 18 | <el-button class="print" v-show="shows" @click="openPrint()" | ||
| 19 | >打印</el-button | ||
| 20 | > | ||
| 21 | <div class="checkbox"> | ||
| 22 | <el-checkbox-group v-model="checkList" @change="checkChange"> | ||
| 23 | <el-checkbox | ||
| 24 | v-for="item in qsztList" | ||
| 25 | :key="item.value" | ||
| 26 | :label="item.value" | ||
| 27 | >{{ item.label }}</el-checkbox | ||
| 28 | > | ||
| 29 | </el-checkbox-group> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | <div class="xxTableBox rollTable"> | ||
| 33 | <table class="xxTable"> | ||
| 34 | <tr v-for="(item, colindex) in columns" :key="colindex"> | ||
| 35 | <td> | ||
| 36 | {{ item.label }} | ||
| 37 | </td> | ||
| 38 | <td | ||
| 39 | v-for="(row, index) in tableData" | ||
| 40 | :key="index" | ||
| 41 | :class="[ | ||
| 42 | row.qszt == '2' ? 'lishi' : '', | ||
| 43 | row.qszt == '0' ? 'linshi' : '', | ||
| 44 | row.qlzt == '4' ? 'linshi' : '', | ||
| 45 | |||
| 46 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 47 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 48 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 49 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 50 | ]" | ||
| 51 | > | ||
| 52 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
| 53 | <el-button | ||
| 54 | type="text" | ||
| 55 | icon="el-icon-edit-outline" | ||
| 56 | @click="editDialog(row)" | ||
| 57 | >编辑</el-button | ||
| 58 | > | ||
| 59 | <el-button | ||
| 60 | type="text" | ||
| 61 | icon="el-icon-edit-outline" | ||
| 62 | @click="editDialog(row, 'D')" | ||
| 63 | >删除</el-button | ||
| 64 | > | ||
| 65 | </div> | ||
| 66 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 67 | 有效 | ||
| 68 | </div> | ||
| 69 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 70 | 正在补录 | ||
| 71 | </div> | ||
| 72 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 73 | 正在申请 | ||
| 74 | </div> | ||
| 75 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 76 | 正在注销 | ||
| 77 | </div> | ||
| 78 | |||
| 79 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 80 | <span v-if="item.prop == 'qszt'"> | ||
| 81 | {{ getQsztName(row[item.prop]) }} | ||
| 82 | </span> | ||
| 83 | <span v-else>{{ row[item.prop] }}</span> | ||
| 84 | </p> | ||
| 85 | |||
| 86 | <el-tooltip | ||
| 87 | v-else | ||
| 88 | effect="dark" | ||
| 89 | :content="row[item.prop]" | ||
| 90 | placement="top" | ||
| 91 | popper-class="tooltip-width" | ||
| 92 | > | ||
| 93 | <span class="ellipsis-line"> | ||
| 94 | {{ row[item.prop] }} | ||
| 95 | </span> | ||
| 96 | </el-tooltip> | ||
| 97 | </td> | ||
| 98 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 99 | </tr> | ||
| 100 | </table> | ||
| 101 | </div> | ||
| 102 | </div> | ||
| 103 | </div> | 10 | </div> | 
| 104 | </template> | 11 | </template> | 
| 105 | 12 | ||
| 106 | <script> | 13 | <script> | 
| 107 | import { datas } from "./qlxxFormData.js"; | 14 | import { datas } from "./qlxxFormData.js"; | 
| 108 | import { getYydjList } from "@/api/djbDetail.js"; | 15 | import { getYydjList } from "@/api/djbDetail.js"; | 
| 109 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 16 | import { getSjlx, getDictLeabel } from "@/utils/dictionary.js"; | 
| 110 | import printTemplate from "./components/printTemplate.vue"; | 17 | import djbDetail from "./components/djbDetail.vue" | 
| 111 | export default { | 18 | export default { | 
| 112 | components: { | 19 | components: { | 
| 113 | printTemplate, | 20 | djbDetail | 
| 114 | }, | ||
| 115 | data() { | ||
| 116 | return { | ||
| 117 | printObj: { | ||
| 118 | id: "box", | ||
| 119 | //其他配置项, | ||
| 120 | }, | ||
| 121 | shows: false, | ||
| 122 | title: "异议登记信息", | ||
| 123 | qsztList: datas.columns().qsztList, | ||
| 124 | checkList: datas.columns().checkList, | ||
| 125 | //传递参数 | ||
| 126 | propsParam: this.$attrs, | ||
| 127 | //列表数据 | ||
| 128 | tableData: [], | ||
| 129 | //空列值个数 | ||
| 130 | emptycolNum: datas.columns().emptycolNum, | ||
| 131 | //列名称对象 | ||
| 132 | columns: datas.columns().YYDJ, | ||
| 133 | render: false, | ||
| 134 | }; | ||
| 135 | }, | ||
| 136 | created() { | ||
| 137 | this.loadData(); | ||
| 138 | }, | ||
| 139 | methods: { | ||
| 140 | openPrint() { | ||
| 141 | this.render = true; | ||
| 142 | setTimeout(() => { | ||
| 143 | this.prinsss(); | ||
| 144 | }, 100); | ||
| 145 | }, | 21 | }, | 
| 146 | prinsss() { | 22 | data () { | 
| 147 | printJS({ | 23 | return { | 
| 148 | printable: "boxyydj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | 24 | shows: false, | 
| 149 | type: "html", | 25 | title: "异议登记信息", | 
| 150 | maxWidth: 800, // 最大宽度 | 26 | //传递参数 | 
| 151 | font_size: "", // 不设置则使用默认字体大小 | 27 | propsParam: this.$attrs, | 
| 152 | style: `@font-face { | 28 | //列表数据 | 
| 153 | font-family: "STZHONGS"; | 29 | tableData: [], | 
| 154 | src: url(${window.ttf}) format("truetype"); | 30 | //列名称对象 | 
| 155 | }`, | 31 | columns: datas.columns().YYDJ, | 
| 156 | // 继承原来的所有样式 | 32 | render: false, | 
| 157 | targetStyles: ["*"], | 33 | }; | 
| 158 | }); | ||
| 159 | this.render=false | ||
| 160 | }, | ||
| 161 | /** | ||
| 162 | * @description: loadData | ||
| 163 | * @author: miaofang | ||
| 164 | */ | ||
| 165 | loadData() { | ||
| 166 | if (this.$parent.addRepairRecord) { | ||
| 167 | this.columns.unshift({ | ||
| 168 | prop: "cz", | ||
| 169 | label: "操作", | ||
| 170 | }); | ||
| 171 | } | ||
| 172 | getYydjList({ | ||
| 173 | bdcdyid: this.propsParam.bdcdyid, | ||
| 174 | qllx: this.propsParam.qllx, | ||
| 175 | qszt: this.checkList, | ||
| 176 | }).then((res) => { | ||
| 177 | if (res.code === 200) { | ||
| 178 | this.tableData = res.result; | ||
| 179 | this.shows = this.tableData.length > 0; | ||
| 180 | this.tableData.forEach((item) => { | ||
| 181 | item.sjlx = getSjlx(item.sjlx); | ||
| 182 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | ||
| 183 | }); | ||
| 184 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 185 | this.emptycolNum = | ||
| 186 | datas.columns().emptycolNum - this.tableData.length; | ||
| 187 | } else { | ||
| 188 | this.emptycolNum = 0; | ||
| 189 | } | ||
| 190 | } | ||
| 191 | }); | ||
| 192 | }, | 34 | }, | 
| 193 | /** | 35 | created () { | 
| 194 | * @description: checkChange | 36 | this.loadData(); | 
| 195 | * @author: miaofang | ||
| 196 | */ | ||
| 197 | checkChange() { | ||
| 198 | if (this.checkList.length === 0) { | ||
| 199 | this.tableData = []; | ||
| 200 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 201 | } else { | ||
| 202 | this.loadData(); | ||
| 203 | } | ||
| 204 | }, | 37 | }, | 
| 205 | /** | 38 | methods: { | 
| 206 | * @description: getQsztName | 39 | loadData () { | 
| 207 | * @param {*} code | 40 | if (this.$parent.addRepairRecord) { | 
| 208 | * @author: miaofang | 41 | this.columns.unshift({ | 
| 209 | */ | 42 | prop: "cz", | 
| 210 | getQsztName(code) { | 43 | label: "操作", | 
| 211 | let name = ""; | ||
| 212 | for (let item of this.qsztList) { | ||
| 213 | if (item.value == code) { | ||
| 214 | name = item.label; | ||
| 215 | break; | ||
| 216 | } | ||
| 217 | } | ||
| 218 | return name; | ||
| 219 | }, | ||
| 220 | // 新增一条补录信息 | ||
| 221 | /** | ||
| 222 | * @description: 新增一条补录信息 | ||
| 223 | * @param {*} row | ||
| 224 | * @param {*} del | ||
| 225 | * @author: miaofang | ||
| 226 | */ | ||
| 227 | editDialog(row, del) { | ||
| 228 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 229 | confirmButtonText: "确定", | ||
| 230 | cancelButtonText: "取消", | ||
| 231 | type: "warning", | ||
| 232 | }) | ||
| 233 | .then(() => { | ||
| 234 | this.$parent.addRepairRecord(row, del); | ||
| 235 | |||
| 236 | this.$message({ | ||
| 237 | type: "success", | ||
| 238 | message: "补录成功!", | ||
| 239 | }); | 44 | }); | 
| 45 | } | ||
| 46 | getYydjList({ | ||
| 47 | bdcdyid: this.propsParam.bdcdyid, | ||
| 48 | qllx: this.propsParam.qllx, | ||
| 49 | qszt: this.checkList, | ||
| 50 | }).then((res) => { | ||
| 51 | if (res.code === 200) { | ||
| 52 | this.tableData = res.result; | ||
| 53 | this.shows = this.tableData.length > 0; | ||
| 54 | this.tableData.forEach((item) => { | ||
| 55 | item.sjlx = getSjlx(item.sjlx); | ||
| 56 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | ||
| 57 | }); | ||
| 58 | if (this.tableData.length < datas.columns().emptycolNum) { | ||
| 59 | this.emptycolNum = | ||
| 60 | datas.columns().emptycolNum - this.tableData.length; | ||
| 61 | } else { | ||
| 62 | this.emptycolNum = 0; | ||
| 63 | } | ||
| 64 | } | ||
| 240 | }) | 65 | }) | 
| 241 | .catch(() => { | 66 | } | 
| 242 | this.$message({ | 67 | } | 
| 243 | type: "info", | 68 | } | 
| 244 | message: "取消编辑", | ||
| 245 | }); | ||
| 246 | }); | ||
| 247 | }, | ||
| 248 | }, | ||
| 249 | }; | ||
| 250 | </script> | 69 | </script> | 
| 251 | 70 | ||
| 252 | <style lang="scss" scoped> | 71 | <style lang="scss" scoped> | 
| 253 | @import "./qlxxCommon.scss"; | 72 | @import "./qlxxCommon.scss"; | 
| 254 | .title { | 73 | .title { | 
| 255 | position: relative; | 74 | position: relative; | 
| 256 | .print { | 75 | .print { | 
| 257 | // background-color: #0079fe; | 76 | z-index: 10; | 
| 258 | z-index: 10; | 77 | position: absolute; | 
| 259 | position: absolute; | 78 | left: 11px; | 
| 260 | left: 11px; | 79 | top: 5px; | 
| 261 | top: 5px; | 80 | } | 
| 262 | } | 81 | } | 
| 263 | } | ||
| 264 | </style> | 82 | </style> | ... | ... | 
| ... | @@ -22,14 +22,9 @@ class data extends filter { | ... | @@ -22,14 +22,9 @@ class data extends filter { | 
| 22 | ) | 22 | ) | 
| 23 | } | 23 | } | 
| 24 | }, | 24 | }, | 
| 25 | |||
| 25 | { | 26 | { | 
| 26 | prop: "ywh", | 27 | label: "推送状态", | 
| 27 | label: "业务号", | ||
| 28 | // width: '110', | ||
| 29 | }, | ||
| 30 | { | ||
| 31 | label: "权属状态", | ||
| 32 | // width: '80', | ||
| 33 | render: (h, scope) => { | 28 | render: (h, scope) => { | 
| 34 | let obj = { | 29 | let obj = { | 
| 35 | "0": { | 30 | "0": { | 
| ... | @@ -52,10 +47,38 @@ class data extends filter { | ... | @@ -52,10 +47,38 @@ class data extends filter { | 
| 52 | } | 47 | } | 
| 53 | }, | 48 | }, | 
| 54 | { | 49 | { | 
| 50 | prop: "ywh", | ||
| 51 | label: "业务号", | ||
| 52 | // width: '110', | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | prop: "ywh1", | ||
| 56 | label: "登记业务名称", | ||
| 57 | // width: '110', | ||
| 58 | }, | ||
| 59 | { | ||
| 60 | prop: "ywh2", | ||
| 61 | label: "登记情形名称", | ||
| 62 | // width: '110', | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | prop: "bdcdyh", | ||
| 66 | label: "不动产单元号", | ||
| 67 | // width: '110', | ||
| 68 | }, | ||
| 69 | { | ||
| 55 | prop: "createtime", | 70 | prop: "createtime", | 
| 56 | label: "创建时间", | 71 | label: "创建时间", | 
| 57 | }, | 72 | }, | 
| 58 | { | 73 | { | 
| 74 | prop: "createtime", | ||
| 75 | label: "推送时间", | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | prop: "createtime1", | ||
| 79 | label: "响应时间", | ||
| 80 | }, | ||
| 81 | { | ||
| 59 | label: '操作', | 82 | label: '操作', | 
| 60 | width: '100', | 83 | width: '100', | 
| 61 | render: (h, scope) => { | 84 | render: (h, scope) => { | ... | ... | 
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
- 
Please register or sign in to post a comment