Merge branch 'dev'
Showing
82 changed files
with
1093 additions
and
2510 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" |
| ... | @@ -32,13 +31,13 @@ | ... | @@ -32,13 +31,13 @@ |
| 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 | }, | 42 | }, |
| 44 | 43 | ||
| ... | @@ -47,7 +46,7 @@ export default { | ... | @@ -47,7 +46,7 @@ export default { |
| 47 | * @description: closeDialog | 46 | * @description: closeDialog |
| 48 | * @author: renchao | 47 | * @author: renchao |
| 49 | */ | 48 | */ |
| 50 | closeDialog() { | 49 | closeDialog () { |
| 51 | this.dialogVisible = false; | 50 | this.dialogVisible = false; |
| 52 | }, | 51 | }, |
| 53 | 52 | ||
| ... | @@ -56,43 +55,42 @@ export default { | ... | @@ -56,43 +55,42 @@ export default { |
| 56 | * @param {*} el | 55 | * @param {*} el |
| 57 | * @author: renchao | 56 | * @author: renchao |
| 58 | */ | 57 | */ |
| 59 | clicksss(el){ | 58 | clicksss (el) { |
| 60 | console.log("elllllllllllllllllllll",el); | 59 | this.qllx = el |
| 61 | this.qllx=el | ||
| 62 | }, | 60 | }, |
| 63 | /** | 61 | /** |
| 64 | * @description: handleSubmit | 62 | * @description: handleSubmit |
| 65 | * @author: renchao | 63 | * @author: renchao |
| 66 | */ | 64 | */ |
| 67 | handleSubmit() { | 65 | handleSubmit () { |
| 68 | 66 | ||
| 69 | if(this.qllx){ | 67 | if (this.qllx) { |
| 70 | let qllxobj = { | 68 | let qllxobj = { |
| 71 | qllx:this.qllx, | 69 | qllx: this.qllx, |
| 72 | bsmQlxx:"" | 70 | bsmQlxx: "" |
| 73 | }; | 71 | }; |
| 74 | this.$parent.addRepairRecord(qllxobj) | 72 | this.$parent.addRepairRecord(qllxobj) |
| 75 | }else{ | 73 | } else { |
| 76 | this.$message({ | 74 | this.$message({ |
| 77 | type: "warning", | 75 | type: "warning", |
| 78 | message: "请选择权利类型!", | 76 | message: "请选择权利类型!", |
| 79 | }); | 77 | }); |
| 80 | } | 78 | } |
| 81 | this.qllx="" | 79 | this.qllx = "" |
| 82 | }, | 80 | }, |
| 83 | }, | 81 | }, |
| 84 | }; | 82 | }; |
| 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; |
| 94 | } | 92 | } |
| 95 | .gettypebutton{ | 93 | .gettypebutton { |
| 96 | cursor: pointer; | 94 | cursor: pointer; |
| 97 | margin-left: 20px; | 95 | margin-left: 20px; |
| 98 | width: 45%; | 96 | width: 45%; |
| ... | @@ -108,23 +106,22 @@ export default { | ... | @@ -108,23 +106,22 @@ export default { |
| 108 | transition: all 0.3s; | 106 | transition: all 0.3s; |
| 109 | color: #000; | 107 | color: #000; |
| 110 | } | 108 | } |
| 111 | .gettypebutton:hover{ | 109 | .gettypebutton:hover { |
| 112 | border: 1px solid #0F93F6; | 110 | border: 1px solid #0f93f6; |
| 113 | color: #0F93F6; | 111 | color: #0f93f6; |
| 114 | } | 112 | } |
| 115 | .gettypebutton:focus{ | 113 | .gettypebutton:focus { |
| 116 | background-color: #0F93F6; | 114 | background-color: #0f93f6; |
| 117 | border: 1px solid #0F93F6; | 115 | border: 1px solid #0f93f6; |
| 118 | color: #ebebeb; | 116 | color: #ebebeb; |
| 119 | } | 117 | } |
| 120 | .btn{ | 118 | .btn { |
| 121 | margin-top:30px; | 119 | margin-top: 30px; |
| 122 | text-align: center; | 120 | text-align: center; |
| 123 | .el-button { | 121 | .el-button { |
| 124 | margin-top: 10px; | 122 | margin-top: 10px; |
| 125 | margin-left: 20px; | 123 | margin-left: 20px; |
| 126 | } | 124 | } |
| 127 | } | 125 | } |
| 128 | 126 | } | |
| 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": |
| ... | @@ -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,6 +144,7 @@ export default { | ... | @@ -140,6 +144,7 @@ export default { |
| 140 | * @author: renchao | 144 | * @author: renchao |
| 141 | */ | 145 | */ |
| 142 | handleClickC(e, item) { | 146 | handleClickC(e, item) { |
| 147 | if (!this.onlyShow) { | ||
| 143 | // 判断点击的层是否选中 | 148 | // 判断点击的层是否选中 |
| 144 | if (e.target.className.indexOf("tdSelect") == -1) { | 149 | if (e.target.className.indexOf("tdSelect") == -1) { |
| 145 | //未选中→选中 | 150 | //未选中→选中 |
| ... | @@ -158,6 +163,7 @@ export default { | ... | @@ -158,6 +163,7 @@ export default { |
| 158 | this.hbsmList = this.hbsmList.filter((i) => i != h.bsm); | 163 | this.hbsmList = this.hbsmList.filter((i) => i != h.bsm); |
| 159 | }); | 164 | }); |
| 160 | } | 165 | } |
| 166 | } | ||
| 161 | }, | 167 | }, |
| 162 | //户单击事件 | 168 | //户单击事件 |
| 163 | /** | 169 | /** |
| ... | @@ -168,6 +174,7 @@ export default { | ... | @@ -168,6 +174,7 @@ export default { |
| 168 | * @author: renchao | 174 | * @author: renchao |
| 169 | */ | 175 | */ |
| 170 | handleClickH(e, bsm, hs) { | 176 | handleClickH(e, bsm, hs) { |
| 177 | if (!this.onlyShow) { | ||
| 171 | let self = this; | 178 | let self = this; |
| 172 | // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件 | 179 | // 开启延时器,200ms的间隔区分单击和双击,解决双击时执行两次单击事件 |
| 173 | clearTimeout(self.time); | 180 | clearTimeout(self.time); |
| ... | @@ -188,6 +195,7 @@ export default { | ... | @@ -188,6 +195,7 @@ export default { |
| 188 | //更新当前选中户数据 | 195 | //更新当前选中户数据 |
| 189 | this.$forceUpdate(); | 196 | this.$forceUpdate(); |
| 190 | }, 200); | 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) { |
| 209 | if (!this.onlyShow) { | ||
| 201 | this.handleClickH(e.target.parentNode, bsm, hs); | 210 | this.handleClickH(e.target.parentNode, bsm, hs); |
| 211 | } | ||
| 202 | }, | 212 | }, |
| 203 | //户双击事件 | 213 | //户双击事件 |
| 204 | /** | 214 | /** | ... | ... |
| ... | @@ -6,20 +6,20 @@ | ... | @@ -6,20 +6,20 @@ |
| 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 | }, | 21 | }, |
| 112 | data() { | 22 | data () { |
| 113 | return { | 23 | return { |
| 114 | printObj: { | 24 | shows: false, |
| 115 | id: "box", | ||
| 116 | //其他配置项, | ||
| 117 | }, | ||
| 118 | shows:false, | ||
| 119 | title: "查封登记信息", | 25 | title: "查封登记信息", |
| 120 | qsztList: datas.columns().qsztList, | ||
| 121 | checkList: datas.columns().checkList, | ||
| 122 | //传递参数 | 26 | //传递参数 |
| 123 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 124 | //列表数据 | 28 | //列表数据 |
| 125 | tableData: [], | 29 | tableData: [], |
| 126 | //空列值个数 | ||
| 127 | emptycolNum: datas.columns().emptycolNum, | ||
| 128 | //列名称对象 | 30 | //列名称对象 |
| 129 | columns: datas.columns().CFDJ, | 31 | columns: datas.columns().CFDJ, |
| 130 | render: false, | 32 | render: false, |
| 131 | }; | 33 | }; |
| 132 | }, | 34 | }, |
| 133 | created() { | 35 | created () { |
| 134 | this.loadData(); | 36 | this.loadData(); |
| 135 | }, | 37 | }, |
| 136 | methods: { | 38 | methods: { |
| 137 | /** | 39 | /** |
| 138 | * @description: openPrint | ||
| 139 | * @author: miaofang | ||
| 140 | */ | ||
| 141 | openPrint() { | ||
| 142 | this.render = true; | ||
| 143 | setTimeout(() => { | ||
| 144 | this.prinsss(); | ||
| 145 | }, 100); | ||
| 146 | }, | ||
| 147 | /** | ||
| 148 | * @description: prinsss | ||
| 149 | * @author: miaofang | ||
| 150 | */ | ||
| 151 | prinsss() { | ||
| 152 | printJS({ | ||
| 153 | printable: "boxcfdj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 154 | type: "html", | ||
| 155 | maxWidth: 800, // 最大宽度 | ||
| 156 | font_size: "", // 不设置则使用默认字体大小 | ||
| 157 | style: `@font-face { | ||
| 158 | font-family: "STZHONGS"; | ||
| 159 | src: url(${window.ttf}) format("truetype"); | ||
| 160 | }`, | ||
| 161 | // 继承原来的所有样式 | ||
| 162 | targetStyles: ["*"], | ||
| 163 | }); | ||
| 164 | this.render=false | ||
| 165 | }, | ||
| 166 | /** | ||
| 167 | * @description: loadData | 40 | * @description: loadData |
| 168 | * @author: renchao | 41 | * @author: renchao |
| 169 | */ | 42 | */ |
| 170 | loadData() { | 43 | loadData () { |
| 171 | if (this.$parent.addRepairRecord) { | 44 | if (this.$parent.addRepairRecord) { |
| 172 | this.columns.unshift({ prop: "cz", label: "操作" }); | 45 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| 173 | } | 46 | } |
| ... | @@ -178,7 +51,7 @@ export default { | ... | @@ -178,7 +51,7 @@ export default { |
| 178 | }).then((res) => { | 51 | }).then((res) => { |
| 179 | if (res.code === 200) { | 52 | if (res.code === 200) { |
| 180 | this.tableData = res.result; | 53 | this.tableData = res.result; |
| 181 | this.shows=this.tableData.length>0 | 54 | this.shows = this.tableData.length > 0 |
| 182 | this.tableData.forEach((item) => { | 55 | this.tableData.forEach((item) => { |
| 183 | item.sjlx = getSjlx(item.sjlx); | 56 | item.sjlx = getSjlx(item.sjlx); |
| 184 | }); | 57 | }); |
| ... | @@ -196,69 +69,15 @@ export default { | ... | @@ -196,69 +69,15 @@ export default { |
| 196 | this.emptycolNum = 0; | 69 | this.emptycolNum = 0; |
| 197 | } | 70 | } |
| 198 | } | 71 | } |
| 199 | }); | 72 | }) |
| 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 | } | 73 | } |
| 212 | }, | ||
| 213 | /** | ||
| 214 | * @description: getQsztName | ||
| 215 | * @author: renchao | ||
| 216 | */ | ||
| 217 | getQsztName(code) { | ||
| 218 | let name = ""; | ||
| 219 | for (let item of this.qsztList) { | ||
| 220 | if (item.value == code) { | ||
| 221 | name = item.label; | ||
| 222 | break; | ||
| 223 | } | 74 | } |
| 224 | } | 75 | } |
| 225 | return name; | ||
| 226 | }, | ||
| 227 | // 新增一条补录信息 | ||
| 228 | /** | ||
| 229 | * @description: 新增一条补录信息 | ||
| 230 | * @param {*} row | ||
| 231 | * @param {*} del | ||
| 232 | * @author: renchao | ||
| 233 | */ | ||
| 234 | editDialog(row, del) { | ||
| 235 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 236 | confirmButtonText: "确定", | ||
| 237 | cancelButtonText: "取消", | ||
| 238 | type: "warning", | ||
| 239 | }) | ||
| 240 | .then(() => { | ||
| 241 | this.$parent.addRepairRecord(row, del); | ||
| 242 | |||
| 243 | this.$message({ | ||
| 244 | type: "success", | ||
| 245 | message: "补录成功!", | ||
| 246 | }); | ||
| 247 | }) | ||
| 248 | .catch(() => { | ||
| 249 | this.$message({ | ||
| 250 | type: "info", | ||
| 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; |
| ... | @@ -267,5 +86,5 @@ export default { | ... | @@ -267,5 +86,5 @@ export default { |
| 267 | left: 11px; | 86 | left: 11px; |
| 268 | top: 5px; | 87 | top: 5px; |
| 269 | } | 88 | } |
| 270 | } | 89 | } |
| 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 | }, | 21 | }, |
| 114 | data() { | 22 | data () { |
| 115 | return { | 23 | return { |
| 116 | printObj: { | 24 | shows: false, |
| 117 | id: "box", | ||
| 118 | //其他配置项, | ||
| 119 | }, | ||
| 120 | shows:false, | ||
| 121 | title: "抵押权登记信息", | 25 | title: "抵押权登记信息", |
| 122 | qsztList: datas.columns().qsztList, | ||
| 123 | checkList: datas.columns().checkList, | ||
| 124 | //传递参数 | 26 | //传递参数 |
| 125 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 126 | //列表数据 | 28 | //列表数据 |
| 127 | tableData: [], | 29 | tableData: [], |
| 128 | //空列值个数 | ||
| 129 | emptycolNum: datas.columns().emptycolNum, | ||
| 130 | //列名称对象 | 30 | //列名称对象 |
| 131 | columns: datas.columns().DYAQ, | 31 | columns: datas.columns().DYAQ, |
| 132 | render: false, | 32 | render: false, |
| 133 | }; | 33 | }; |
| 134 | }, | 34 | }, |
| 135 | created() { | 35 | created () { |
| 136 | this.loadData(); | 36 | this.loadData(); |
| 137 | }, | 37 | }, |
| 138 | methods: { | 38 | methods: { |
| 139 | /** | 39 | /** |
| 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 | }, | ||
| 168 | /** | ||
| 169 | * @description: loadData | 40 | * @description: loadData |
| 170 | * @author: renchao | 41 | * @author: renchao |
| 171 | */ | 42 | */ |
| 172 | loadData() { | 43 | loadData () { |
| 173 | if (this.$parent.addRepairRecord) { | 44 | if (this.$parent.addRepairRecord) { |
| 174 | this.columns.unshift({ prop: "cz", label: "操作" }); | 45 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| 175 | } | 46 | } |
| ... | @@ -180,7 +51,7 @@ export default { | ... | @@ -180,7 +51,7 @@ export default { |
| 180 | }).then((res) => { | 51 | }).then((res) => { |
| 181 | if (res.code === 200) { | 52 | if (res.code === 200) { |
| 182 | this.tableData = res.result; | 53 | this.tableData = res.result; |
| 183 | this.shows=this.tableData.length>0 | 54 | this.shows = this.tableData.length > 0 |
| 184 | this.tableData.forEach((item) => { | 55 | this.tableData.forEach((item) => { |
| 185 | item.sjlx = getSjlx(item.sjlx); | 56 | item.sjlx = getSjlx(item.sjlx); |
| 186 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | 57 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); |
| ... | @@ -192,76 +63,20 @@ export default { | ... | @@ -192,76 +63,20 @@ export default { |
| 192 | this.emptycolNum = 0; | 63 | this.emptycolNum = 0; |
| 193 | } | 64 | } |
| 194 | } | 65 | } |
| 195 | }); | 66 | }) |
| 196 | }, | ||
| 197 | /** | ||
| 198 | * @description: checkChange | ||
| 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 | } | 67 | } |
| 208 | }, | ||
| 209 | /** | ||
| 210 | * @description: getQsztName | ||
| 211 | * @param {*} code | ||
| 212 | * @author: renchao | ||
| 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 | } | 68 | } |
| 221 | } | 69 | } |
| 222 | return name; | ||
| 223 | }, | ||
| 224 | // 新增一条补录信息 | ||
| 225 | /** | ||
| 226 | * @description: 新增一条补录信息 | ||
| 227 | * @param {*} row | ||
| 228 | * @param {*} del | ||
| 229 | * @author: renchao | ||
| 230 | */ | ||
| 231 | editDialog(row, del) { | ||
| 232 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 233 | confirmButtonText: "确定", | ||
| 234 | cancelButtonText: "取消", | ||
| 235 | type: "warning", | ||
| 236 | }) | ||
| 237 | .then(() => { | ||
| 238 | this.$parent.addRepairRecord(row, del); | ||
| 239 | this.$message({ | ||
| 240 | type: "success", | ||
| 241 | message: "补录成功!", | ||
| 242 | }); | ||
| 243 | }) | ||
| 244 | .catch(() => { | ||
| 245 | this.$message({ | ||
| 246 | type: "info", | ||
| 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; | ||
| 261 | z-index: 10; | 76 | z-index: 10; |
| 262 | position: absolute; | 77 | position: absolute; |
| 263 | left: 11px; | 78 | left: 11px; |
| 264 | top: 5px; | 79 | top: 5px; |
| 265 | } | 80 | } |
| 266 | } | 81 | } |
| 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 | }, | 21 | }, |
| 114 | data() { | 22 | data () { |
| 115 | return { | 23 | return { |
| 116 | printObj: { | 24 | shows: false, |
| 117 | id: "box", | ||
| 118 | //其他配置项, | ||
| 119 | }, | ||
| 120 | shows:false, | ||
| 121 | title: "地役权登记信息", | 25 | title: "地役权登记信息", |
| 122 | qsztList: datas.columns().qsztList, | ||
| 123 | checkList: datas.columns().checkList, | ||
| 124 | //传递参数 | 26 | //传递参数 |
| 125 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 126 | //列表数据 | 28 | //列表数据 |
| 127 | tableData: [], | 29 | tableData: [], |
| 128 | //空列值个数 | ||
| 129 | emptycolNum: datas.columns().emptycolNum, | ||
| 130 | //列名称对象 | 30 | //列名称对象 |
| 131 | columns: datas.columns().DYIQ, | 31 | columns: datas.columns().DYIQ, |
| 132 | render: false, | 32 | render: false, |
| 133 | }; | 33 | }; |
| 134 | }, | 34 | }, |
| 135 | created() { | 35 | created () { |
| 136 | this.loadData(); | 36 | this.loadData(); |
| 137 | }, | 37 | }, |
| 138 | methods: { /** | 38 | methods: { |
| 139 | * @description: openPrint | 39 | loadData () { |
| 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 | }, | ||
| 167 | /** | ||
| 168 | * @description: loadData | ||
| 169 | * @author: miaofang | ||
| 170 | */ | ||
| 171 | loadData() { | ||
| 172 | if (this.$parent.addRepairRecord) { | 40 | if (this.$parent.addRepairRecord) { |
| 173 | this.columns.unshift({ prop: "cz", label: "操作" }); | 41 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| 174 | } | 42 | } |
| ... | @@ -179,7 +47,7 @@ export default { | ... | @@ -179,7 +47,7 @@ export default { |
| 179 | }).then((res) => { | 47 | }).then((res) => { |
| 180 | if (res.code === 200) { | 48 | if (res.code === 200) { |
| 181 | this.tableData = res.result; | 49 | this.tableData = res.result; |
| 182 | this.shows=this.tableData.length>0 | 50 | this.shows = this.tableData.length > 0 |
| 183 | this.tableData.forEach((item) => { | 51 | this.tableData.forEach((item) => { |
| 184 | item.sjlx = getSjlx(item.sjlx); | 52 | item.sjlx = getSjlx(item.sjlx); |
| 185 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | 53 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); |
| ... | @@ -191,70 +59,15 @@ export default { | ... | @@ -191,70 +59,15 @@ export default { |
| 191 | this.emptycolNum = 0; | 59 | this.emptycolNum = 0; |
| 192 | } | 60 | } |
| 193 | } | 61 | } |
| 194 | }); | 62 | }) |
| 195 | }, | ||
| 196 | /** | ||
| 197 | * @description: checkChange | ||
| 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 | }, | ||
| 208 | /** | ||
| 209 | * @description: getQsztName | ||
| 210 | * @param {*} code | ||
| 211 | * @author: miaofang | ||
| 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 | } | 63 | } |
| 220 | } | 64 | } |
| 221 | return name; | 65 | }; |
| 222 | }, | ||
| 223 | // 新增一条补录信息 | ||
| 224 | /** | ||
| 225 | * @description: 新增一条补录信息 | ||
| 226 | * @param {*} row | ||
| 227 | * @param {*} del | ||
| 228 | * @author: miaofang | ||
| 229 | */ | ||
| 230 | editDialog(row, del) { | ||
| 231 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 232 | confirmButtonText: "确定", | ||
| 233 | cancelButtonText: "取消", | ||
| 234 | type: "warning", | ||
| 235 | }) | ||
| 236 | .then(() => { | ||
| 237 | this.$parent.addRepairRecord(row, del); | ||
| 238 | |||
| 239 | this.$message({ | ||
| 240 | type: "success", | ||
| 241 | message: "补录成功!", | ||
| 242 | }); | ||
| 243 | }) | ||
| 244 | .catch(() => { | ||
| 245 | this.$message({ | ||
| 246 | type: "info", | ||
| 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; |
| ... | @@ -263,5 +76,5 @@ export default { | ... | @@ -263,5 +76,5 @@ export default { |
| 263 | left: 11px; | 76 | left: 11px; |
| 264 | top: 5px; | 77 | top: 5px; |
| 265 | } | 78 | } |
| 266 | } | 79 | } |
| 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); | ||
| 217 | let newindex = this.sfqdata.findIndex((item) => { | 199 | 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,22 +55,22 @@ export function loadTreeData(bdcdyh) { | ... | @@ -53,22 +55,22 @@ 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 | } |
| ... | @@ -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 | } | ... | ... |
| 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 14:48:07 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> |
| 8 | <div v-show="false"> | 8 | <div v-show="false"> |
| 9 | <printTemplate | 9 | <printTemplate |
| 10 | id="boxfdcq" | 10 | id="boxfdcq" |
| 11 | :tableData="tableData" :render="render"/> | 11 | :tableData="tableData" :render="render" /> |
| 12 | </div> | 12 | </div> |
| 13 | <div class="tableBox"> | 13 | <div class="tableBox"> |
| 14 | <div class="title"> | 14 | <div class="title"> |
| 15 | {{ title }} | 15 | {{ title }} |
| 16 | <el-button class="print" v-show="shows" @click="openPrint()" | 16 | <el-button class="print" v-show="shows" @click="openPrint()">打印</el-button> |
| 17 | >打印</el-button | ||
| 18 | > | ||
| 19 | <div class="checkbox"> | 17 | <div class="checkbox"> |
| 20 | <el-checkbox-group v-model="checkList" @change="checkChange"> | 18 | <el-checkbox-group v-model="checkList" @change="checkChange"> |
| 21 | <el-checkbox | 19 | <el-checkbox |
| 22 | v-for="item in qsztList" | 20 | v-for="item in qsztList" |
| 23 | :key="item.value" | 21 | :key="item.value" |
| 24 | :label="item.value" | 22 | :label="item.value">{{ item.label }}</el-checkbox> |
| 25 | >{{ item.label }}</el-checkbox | ||
| 26 | > | ||
| 27 | </el-checkbox-group> | 23 | </el-checkbox-group> |
| 28 | </div> | 24 | </div> |
| 29 | </div> | 25 | </div> |
| 30 | <div class="xxTableBox rollTable"> | 26 | <div class="xxTableBox rollTable"> |
| 31 | <!-- 固定前三个 --> | ||
| 32 | <table class="xxTable"> | 27 | <table class="xxTable"> |
| 33 | <tr | 28 | <tr |
| 34 | v-for="(item, colindex) in columns" | 29 | v-for="(item, colindex) in columns" |
| 35 | :class="judge(item.label) ? 'cols' : ''" | 30 | :class="judge(item.label) ? 'cols' : ''" |
| 36 | :key="colindex" | 31 | :key="colindex"> |
| 37 | > | ||
| 38 | <td> | 32 | <td> |
| 39 | {{ item.label }} | 33 | {{ item.label }} |
| 40 | </td> | 34 | </td> |
| ... | @@ -50,24 +44,18 @@ | ... | @@ -50,24 +44,18 @@ |
| 50 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | 44 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', |
| 51 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | 45 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', |
| 52 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | 46 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', |
| 53 | ]" | 47 | ]"> |
| 54 | > | ||
| 55 | <div | 48 | <div |
| 56 | class="setbut" | 49 | class="setbut" |
| 57 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'" | 50 | v-if="item.prop == 'cz' && row.sjlx != '系统数据'"> |
| 58 | > | ||
| 59 | <el-button | 51 | <el-button |
| 60 | type="text" | 52 | type="text" |
| 61 | icon="el-icon-edit-outline" | 53 | icon="el-icon-edit-outline" |
| 62 | @click="editDialog(row)" | 54 | @click="editDialog(row)">编辑</el-button> |
| 63 | >编辑</el-button | ||
| 64 | > | ||
| 65 | <el-button | 55 | <el-button |
| 66 | type="text" | 56 | type="text" |
| 67 | icon="el-icon-edit-outline" | 57 | icon="el-icon-edit-outline" |
| 68 | @click="editDialog(row, 'D')" | 58 | @click="editDialog(row, 'D')">删除</el-button> |
| 69 | >删除</el-button | ||
| 70 | > | ||
| 71 | </div> | 59 | </div> |
| 72 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | 60 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> |
| 73 | 有效 | 61 | 有效 |
| ... | @@ -84,14 +72,15 @@ | ... | @@ -84,14 +72,15 @@ |
| 84 | <span v-if="item.prop == 'qszt'"> | 72 | <span v-if="item.prop == 'qszt'"> |
| 85 | {{ getQsztName(row[item.prop]) }} | 73 | {{ getQsztName(row[item.prop]) }} |
| 86 | </span> | 74 | </span> |
| 87 | 75 | <el-link v-if="item.prop == 'ywh'" | |
| 76 | @click="handleSelectYwh(tableData, row[item.prop])" | ||
| 77 | type="primary">{{ row[item.prop] }}</el-link> | ||
| 88 | <el-tooltip | 78 | <el-tooltip |
| 89 | v-if="['djyy', 'fj'].includes(item.prop)" | 79 | v-if="['djyy', 'fj'].includes(item.prop)" |
| 90 | effect="dark" | 80 | effect="dark" |
| 91 | :content="row[item.prop]" | 81 | :content="row[item.prop]" |
| 92 | placement="top" | 82 | placement="top" |
| 93 | popper-class="tooltip-width" | 83 | popper-class="tooltip-width"> |
| 94 | > | ||
| 95 | <span class="ellipsis-line"> | 84 | <span class="ellipsis-line"> |
| 96 | {{ row[item.prop] }} | 85 | {{ row[item.prop] }} |
| 97 | </span> | 86 | </span> |
| ... | @@ -99,19 +88,18 @@ | ... | @@ -99,19 +88,18 @@ |
| 99 | 88 | ||
| 100 | <span | 89 | <span |
| 101 | v-if=" | 90 | v-if=" |
| 91 | item.prop !== 'ywh' && | ||
| 102 | item.prop !== 'qszt' && | 92 | item.prop !== 'qszt' && |
| 103 | item.prop !== 'djyy' && | 93 | item.prop !== 'djyy' && |
| 104 | item.prop !== 'fj' && | 94 | item.prop !== 'fj' && |
| 105 | !judge(item.label) | 95 | !judge(item.label) |
| 106 | " | 96 | "> |
| 107 | > | ||
| 108 | {{ row[item.prop] }} | 97 | {{ row[item.prop] }} |
| 109 | </span> | 98 | </span> |
| 110 | <div class="many" v-if="judge(item.label)"> | 99 | <div class="many" v-if="judge(item.label)"> |
| 111 | <div | 100 | <div |
| 112 | v-for="(label, index) in row.djQlxxFdcqxmDoList" | 101 | v-for="(label, index) in row.djQlxxFdcqxmDoList" |
| 113 | :key="index" | 102 | :key="index"> |
| 114 | > | ||
| 115 | {{ label[item.prop] }} | 103 | {{ label[item.prop] }} |
| 116 | </div> | 104 | </div> |
| 117 | </div> | 105 | </div> |
| ... | @@ -125,16 +113,18 @@ | ... | @@ -125,16 +113,18 @@ |
| 125 | </template> | 113 | </template> |
| 126 | 114 | ||
| 127 | <script> | 115 | <script> |
| 128 | import printJS from "print-js"; | 116 | import Router from '@/router' |
| 129 | import { datas } from "./qlxxFormData.js"; | 117 | import printJS from "print-js"; |
| 130 | import { getSjlx } from "@/utils/dictionary.js"; | 118 | import { datas } from "./qlxxFormData.js"; |
| 131 | import { getFdcq1List } from "@/api/djbDetail.js"; | 119 | import { getSjlx } from "@/utils/dictionary.js"; |
| 132 | import printTemplate from "./components/printTemplate.vue"; | 120 | import { getFdcq1List } from "@/api/djbDetail.js"; |
| 133 | export default { | 121 | import printTemplate from "./components/printTemplate.vue"; |
| 122 | import { getXtParamsByYwh, getBlParamsByYwh } from '@/api/djyw' | ||
| 123 | export default { | ||
| 134 | components: { | 124 | components: { |
| 135 | printTemplate, | 125 | printTemplate, |
| 136 | }, | 126 | }, |
| 137 | data() { | 127 | data () { |
| 138 | return { | 128 | return { |
| 139 | printObj: { | 129 | printObj: { |
| 140 | id: "box", | 130 | id: "box", |
| ... | @@ -157,7 +147,7 @@ export default { | ... | @@ -157,7 +147,7 @@ export default { |
| 157 | render: false, | 147 | render: false, |
| 158 | }; | 148 | }; |
| 159 | }, | 149 | }, |
| 160 | created() { | 150 | created () { |
| 161 | this.loadData(); | 151 | this.loadData(); |
| 162 | }, | 152 | }, |
| 163 | methods: { | 153 | methods: { |
| ... | @@ -165,7 +155,7 @@ export default { | ... | @@ -165,7 +155,7 @@ export default { |
| 165 | * @description: openPrint | 155 | * @description: openPrint |
| 166 | * @author: miaofang | 156 | * @author: miaofang |
| 167 | */ | 157 | */ |
| 168 | openPrint() { | 158 | openPrint () { |
| 169 | this.render = true; | 159 | this.render = true; |
| 170 | setTimeout(() => { | 160 | setTimeout(() => { |
| 171 | this.prinsss(); | 161 | this.prinsss(); |
| ... | @@ -175,7 +165,7 @@ export default { | ... | @@ -175,7 +165,7 @@ export default { |
| 175 | * @description: prinsss | 165 | * @description: prinsss |
| 176 | * @author: miaofang | 166 | * @author: miaofang |
| 177 | */ | 167 | */ |
| 178 | prinsss() { | 168 | prinsss () { |
| 179 | printJS({ | 169 | printJS({ |
| 180 | printable: "boxfdcq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | 170 | printable: "boxfdcq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 |
| 181 | type: "html", | 171 | type: "html", |
| ... | @@ -188,13 +178,13 @@ export default { | ... | @@ -188,13 +178,13 @@ export default { |
| 188 | // 继承原来的所有样式 | 178 | // 继承原来的所有样式 |
| 189 | targetStyles: ["*"], | 179 | targetStyles: ["*"], |
| 190 | }); | 180 | }); |
| 191 | this.render=false | 181 | this.render = false |
| 192 | }, | 182 | }, |
| 193 | /** | 183 | /** |
| 194 | * @description: loadData | 184 | * @description: loadData |
| 195 | * @author: miaofang | 185 | * @author: miaofang |
| 196 | */ | 186 | */ |
| 197 | loadData() { | 187 | loadData () { |
| 198 | if (this.$parent.addRepairRecord) { | 188 | if (this.$parent.addRepairRecord) { |
| 199 | this.columns.unshift({ prop: "cz", label: "操作" }); | 189 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| 200 | } | 190 | } |
| ... | @@ -222,7 +212,7 @@ export default { | ... | @@ -222,7 +212,7 @@ export default { |
| 222 | * @description: checkChange | 212 | * @description: checkChange |
| 223 | * @author: miaofang | 213 | * @author: miaofang |
| 224 | */ | 214 | */ |
| 225 | checkChange() { | 215 | checkChange () { |
| 226 | if (this.checkList.length === 0) { | 216 | if (this.checkList.length === 0) { |
| 227 | this.tableData = []; | 217 | this.tableData = []; |
| 228 | this.emptycolNum = datas.columns().emptycolNum; | 218 | this.emptycolNum = datas.columns().emptycolNum; |
| ... | @@ -235,7 +225,7 @@ export default { | ... | @@ -235,7 +225,7 @@ export default { |
| 235 | * @param {*} code | 225 | * @param {*} code |
| 236 | * @author: miaofang | 226 | * @author: miaofang |
| 237 | */ | 227 | */ |
| 238 | getQsztName(code) { | 228 | getQsztName (code) { |
| 239 | let name = ""; | 229 | let name = ""; |
| 240 | for (let item of this.qsztList) { | 230 | for (let item of this.qsztList) { |
| 241 | if (item.value == code) { | 231 | if (item.value == code) { |
| ... | @@ -250,7 +240,7 @@ export default { | ... | @@ -250,7 +240,7 @@ export default { |
| 250 | * @param {*} lable | 240 | * @param {*} lable |
| 251 | * @author: miaofang | 241 | * @author: miaofang |
| 252 | */ | 242 | */ |
| 253 | judge(label) { | 243 | judge (label) { |
| 254 | if ( | 244 | if ( |
| 255 | "项目名称幢号总层数规划用途用途名称批准用途实际用途房屋结构房屋结构名称建筑面积竣工时间总套数".indexOf( | 245 | "项目名称幢号总层数规划用途用途名称批准用途实际用途房屋结构房屋结构名称建筑面积竣工时间总套数".indexOf( |
| 256 | label | 246 | label |
| ... | @@ -261,14 +251,13 @@ export default { | ... | @@ -261,14 +251,13 @@ export default { |
| 261 | return false; | 251 | return false; |
| 262 | } | 252 | } |
| 263 | }, | 253 | }, |
| 264 | // 新增一条补录信息 | ||
| 265 | /** | 254 | /** |
| 266 | * @description: 新增一条补录信息 | 255 | * @description: 新增一条补录信息 |
| 267 | * @param {*} row | 256 | * @param {*} row |
| 268 | * @param {*} del | 257 | * @param {*} del |
| 269 | * @author: miaofang | 258 | * @author: miaofang |
| 270 | */ | 259 | */ |
| 271 | editDialog(row, del) { | 260 | editDialog (row, del) { |
| 272 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 261 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { |
| 273 | confirmButtonText: "确定", | 262 | confirmButtonText: "确定", |
| 274 | cancelButtonText: "取消", | 263 | cancelButtonText: "取消", |
| ... | @@ -289,13 +278,37 @@ export default { | ... | @@ -289,13 +278,37 @@ export default { |
| 289 | }); | 278 | }); |
| 290 | }); | 279 | }); |
| 291 | }, | 280 | }, |
| 292 | }, | 281 | // 选择业务号 |
| 293 | }; | 282 | handleSelectYwh (data, ywh) { |
| 283 | let sjlx = '', | ||
| 284 | bsmQlxx = '' | ||
| 285 | data.forEach(item => { | ||
| 286 | if (item.ywh == ywh) { | ||
| 287 | sjlx = item.sjlx | ||
| 288 | bsmQlxx = item.bsmQlxx | ||
| 289 | } | ||
| 290 | }) | ||
| 291 | if (sjlx == '系统数据') { | ||
| 292 | getXtParamsByYwh(ywh).then(res => { | ||
| 293 | let data = res.result | ||
| 294 | const { href } = Router.resolve('/workFrameView?bsmSlsq=' + data.bsmSlsq + '&bestepid=' + data.bestepid + '&bsmBusiness=' + data.bsmBusiness + '&type=jdcx') | ||
| 295 | window.open(href, `urlname${data.bsmSlsq}`) | ||
| 296 | }) | ||
| 297 | } else { | ||
| 298 | getBlParamsByYwh(ywh, bsmQlxx).then(res => { | ||
| 299 | let data = res.result | ||
| 300 | const { href } = Router.resolve('/workFrameView?bsmSlsq=' + data.bsmSlsq + '&bestepid=' + data.bestepid + '&bsmBusiness=' + data.bsmBusiness + '&type=jdcx') | ||
| 301 | window.open(href, `urlname${data.bsmSlsq}`) | ||
| 302 | }) | ||
| 303 | } | ||
| 304 | } | ||
| 305 | } | ||
| 306 | }; | ||
| 294 | </script> | 307 | </script> |
| 295 | 308 | ||
| 296 | <style lang="scss" scoped> | 309 | <style lang="scss" scoped> |
| 297 | @import "./qlxxCommon.scss"; | 310 | @import "./qlxxCommon.scss"; |
| 298 | .cols { | 311 | .cols { |
| 299 | td { | 312 | td { |
| 300 | .many { | 313 | .many { |
| 301 | width: 100%; | 314 | width: 100%; |
| ... | @@ -313,8 +326,8 @@ export default { | ... | @@ -313,8 +326,8 @@ export default { |
| 313 | } | 326 | } |
| 314 | } | 327 | } |
| 315 | } | 328 | } |
| 316 | } | 329 | } |
| 317 | .title { | 330 | .title { |
| 318 | position: relative; | 331 | position: relative; |
| 319 | .print { | 332 | .print { |
| 320 | // background-color: #0079fe; | 333 | // background-color: #0079fe; |
| ... | @@ -323,5 +336,5 @@ export default { | ... | @@ -323,5 +336,5 @@ export default { |
| 323 | left: 11px; | 336 | left: 11px; |
| 324 | top: 5px; | 337 | top: 5px; |
| 325 | } | 338 | } |
| 326 | } | 339 | } |
| 327 | </style> | 340 | </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: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 | }, | 20 | }, |
| 118 | data() { | ||
| 119 | return { | ||
| 120 | 21 | ||
| 22 | data () { | ||
| 23 | return { | ||
| 121 | shows: false, | 24 | shows: false, |
| 122 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 25 | title: "房地产权登记信息(独幢、层、套、间房屋)", |
| 123 | qsztList: datas.columns().qsztList, | ||
| 124 | checkList: datas.columns().checkList, | ||
| 125 | //传递参数 | 26 | //传递参数 |
| 126 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 127 | //列表数据 | 28 | //列表数据 |
| 128 | tableData: [], | 29 | tableData: [], |
| 129 | //空列值个数 | ||
| 130 | emptycolNum: datas.columns().emptycolNum, | ||
| 131 | //列名称对象 | 30 | //列名称对象 |
| 132 | columns: datas.columns().FDCQ2, | 31 | columns: datas.columns().FDCQ2, |
| 133 | render: false, | 32 | render: false, |
| 134 | }; | 33 | }; |
| 135 | }, | 34 | }, |
| 136 | created() { | 35 | created () { |
| 137 | this.loadData(); | 36 | this.loadData(); |
| 138 | }, | 37 | }, |
| 139 | methods: { | 38 | methods: { |
| 140 | /** | 39 | /** |
| 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 | }, | ||
| 169 | /** | ||
| 170 | * @description: loadData | 40 | * @description: loadData |
| 171 | * @author: miaofang | 41 | * @author: miaofang |
| 172 | */ | 42 | */ |
| 173 | loadData() { | 43 | loadData () { |
| 174 | if (this.$parent.addRepairRecord) { | 44 | if (this.$parent.addRepairRecord) { |
| 175 | this.columns.unshift({ prop: "cz", label: "操作" }); | 45 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| 176 | } | 46 | } |
| ... | @@ -192,65 +62,15 @@ export default { | ... | @@ -192,65 +62,15 @@ export default { |
| 192 | this.emptycolNum = 0; | 62 | this.emptycolNum = 0; |
| 193 | } | 63 | } |
| 194 | } | 64 | } |
| 195 | }); | 65 | }) |
| 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 | }, | ||
| 209 | /** | ||
| 210 | * @description: getQsztName | ||
| 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 | } | 66 | } |
| 221 | } | 67 | } |
| 222 | return name; | 68 | }; |
| 223 | }, | ||
| 224 | // 新增一条补录信息 | ||
| 225 | /** | ||
| 226 | * @description: 新增一条补录信息 | ||
| 227 | * @param {*} row | ||
| 228 | * @param {*} del | ||
| 229 | * @author: miaofang | ||
| 230 | */ | ||
| 231 | editDialog(row, del) { | ||
| 232 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 233 | confirmButtonText: "确定", | ||
| 234 | cancelButtonText: "取消", | ||
| 235 | type: "warning", | ||
| 236 | }) | ||
| 237 | .then(() => { | ||
| 238 | this.$parent.addRepairRecord(row, del); | ||
| 239 | }) | ||
| 240 | .catch(() => { | ||
| 241 | this.$message({ | ||
| 242 | type: "info", | ||
| 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; |
| ... | @@ -259,5 +79,5 @@ export default { | ... | @@ -259,5 +79,5 @@ export default { |
| 259 | left: 11px; | 79 | left: 11px; |
| 260 | top: 5px; | 80 | top: 5px; |
| 261 | } | 81 | } |
| 262 | } | 82 | } |
| 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 | }, | 21 | }, |
| 118 | data() { | 22 | data () { |
| 119 | return { | 23 | return { |
| 120 | printObj: { | 24 | printObj: { |
| 121 | id: "box", | 25 | id: "box", |
| ... | @@ -123,57 +27,20 @@ export default { | ... | @@ -123,57 +27,20 @@ export default { |
| 123 | }, | 27 | }, |
| 124 | shows: false, | 28 | shows: false, |
| 125 | title: "建设用地使用权、宅基地使用权登记信息", | 29 | title: "建设用地使用权、宅基地使用权登记信息", |
| 126 | qsztList: datas.columns().qsztList, | ||
| 127 | checkList: datas.columns().checkList, | ||
| 128 | //传递参数 | 30 | //传递参数 |
| 129 | propsParam: this.$attrs, | 31 | propsParam: this.$attrs, |
| 130 | //列表数据 | 32 | //列表数据 |
| 131 | tableData: [], | 33 | tableData: [], |
| 132 | //空列值个数 | ||
| 133 | emptycolNum: datas.columns().emptycolNum, | ||
| 134 | //列名称对象 | 34 | //列名称对象 |
| 135 | columns: datas.columns().JSYDSYQ, | 35 | columns: datas.columns().JSYDSYQ, |
| 136 | render: false, | 36 | render: false, |
| 137 | }; | 37 | }; |
| 138 | }, | 38 | }, |
| 139 | created() { | 39 | created () { |
| 140 | this.loadData(); | 40 | this.loadData(); |
| 141 | }, | 41 | }, |
| 142 | methods: { | 42 | methods: { |
| 143 | /** | 43 | loadData () { |
| 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 | }, | ||
| 172 | /** | ||
| 173 | * @description: loadData | ||
| 174 | * @author: miaofang | ||
| 175 | */ | ||
| 176 | loadData() { | ||
| 177 | getJsydsyqList({ | 44 | getJsydsyqList({ |
| 178 | bdcdyid: this.propsParam.bdcdyid, | 45 | bdcdyid: this.propsParam.bdcdyid, |
| 179 | qllx: this.propsParam.qllx, | 46 | qllx: this.propsParam.qllx, |
| ... | @@ -192,70 +59,15 @@ export default { | ... | @@ -192,70 +59,15 @@ export default { |
| 192 | this.emptycolNum = 0; | 59 | this.emptycolNum = 0; |
| 193 | } | 60 | } |
| 194 | } | 61 | } |
| 195 | }); | 62 | }) |
| 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 | } | 63 | } |
| 208 | }, | ||
| 209 | /** | ||
| 210 | * @description: getQsztName | ||
| 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 | } | 64 | } |
| 221 | } | 65 | } |
| 222 | return name; | ||
| 223 | }, | ||
| 224 | // 新增一条补录信息 | ||
| 225 | /** | ||
| 226 | * @description: 新增一条补录信息 | ||
| 227 | * @param {*} row | ||
| 228 | * @param {*} del | ||
| 229 | * @author: miaofang | ||
| 230 | */ | ||
| 231 | editDialog(row, del) { | ||
| 232 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 233 | confirmButtonText: "确定", | ||
| 234 | cancelButtonText: "取消", | ||
| 235 | type: "warning", | ||
| 236 | }) | ||
| 237 | .then(() => { | ||
| 238 | this.$parent.addRepairRecord(row, del); | ||
| 239 | |||
| 240 | this.$message({ | ||
| 241 | type: "success", | ||
| 242 | message: "补录成功!", | ||
| 243 | }); | ||
| 244 | }) | ||
| 245 | .catch(() => { | ||
| 246 | this.$message({ | ||
| 247 | type: "info", | ||
| 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; |
| ... | @@ -264,5 +76,5 @@ export default { | ... | @@ -264,5 +76,5 @@ export default { |
| 264 | left: 11px; | 76 | left: 11px; |
| 265 | top: 5px; | 77 | top: 5px; |
| 266 | } | 78 | } |
| 267 | } | 79 | } |
| 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 | }, | 21 | }, |
| 116 | data() { | 22 | data () { |
| 117 | return { | 23 | return { |
| 118 | printObj: { | 24 | printObj: { |
| 119 | id: "box", | 25 | id: "box", |
| ... | @@ -121,57 +27,20 @@ export default { | ... | @@ -121,57 +27,20 @@ export default { |
| 121 | }, | 27 | }, |
| 122 | shows: false, | 28 | shows: false, |
| 123 | title: "林权登记信息", | 29 | title: "林权登记信息", |
| 124 | qsztList: datas.columns().qsztList, | ||
| 125 | checkList: datas.columns().checkList, | ||
| 126 | //传递参数 | 30 | //传递参数 |
| 127 | propsParam: this.$attrs, | 31 | propsParam: this.$attrs, |
| 128 | //列表数据 | 32 | //列表数据 |
| 129 | tableData: [], | 33 | tableData: [], |
| 130 | //空列值个数 | ||
| 131 | emptycolNum: datas.columns().emptycolNum, | ||
| 132 | //列名称对象 | 34 | //列名称对象 |
| 133 | columns: datas.columns().LDSYQ, | 35 | columns: datas.columns().LDSYQ, |
| 134 | render: false, | 36 | render: false, |
| 135 | }; | 37 | }; |
| 136 | }, | 38 | }, |
| 137 | created() { | 39 | created () { |
| 138 | this.loadData(); | 40 | this.loadData(); |
| 139 | }, | 41 | }, |
| 140 | methods: { | 42 | methods: { |
| 141 | /** | 43 | loadData () { |
| 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 | }, | ||
| 170 | /** | ||
| 171 | * @description: loadData | ||
| 172 | * @author: miaofang | ||
| 173 | */ | ||
| 174 | loadData() { | ||
| 175 | if (this.$parent.addRepairRecord) { | 44 | if (this.$parent.addRepairRecord) { |
| 176 | this.columns.unshift({ | 45 | this.columns.unshift({ |
| 177 | prop: "cz", | 46 | prop: "cz", |
| ... | @@ -200,69 +69,14 @@ export default { | ... | @@ -200,69 +69,14 @@ export default { |
| 200 | } | 69 | } |
| 201 | } | 70 | } |
| 202 | }); | 71 | }); |
| 203 | }, | ||
| 204 | /** | ||
| 205 | * @description: checkChange | ||
| 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 | } | 72 | } |
| 215 | }, | ||
| 216 | /** | ||
| 217 | * @description: getQsztName | ||
| 218 | * @param {*} code | ||
| 219 | * @author: miaofang | ||
| 220 | */ | ||
| 221 | getQsztName(code) { | ||
| 222 | let name = ""; | ||
| 223 | for (let item of this.qsztList) { | ||
| 224 | if (item.value == code) { | ||
| 225 | name = item.label; | ||
| 226 | break; | ||
| 227 | } | 73 | } |
| 228 | } | 74 | } |
| 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 | }); | ||
| 257 | }); | ||
| 258 | }, | ||
| 259 | }, | ||
| 260 | }; | ||
| 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; |
| ... | @@ -271,5 +85,5 @@ export default { | ... | @@ -271,5 +85,5 @@ export default { |
| 271 | left: 11px; | 85 | left: 11px; |
| 272 | top: 5px; | 86 | top: 5px; |
| 273 | } | 87 | } |
| 274 | } | 88 | } |
| 275 | </style> | 89 | </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:35 |
| 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="boxnydsyq" | ||
| 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"> | ||
| 33 | <!-- 固定前三个 --> | ||
| 34 | <table class="xxTable"> | ||
| 35 | <tr v-for="(item, colindex) in columns.slice(0, 3)" :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="row.qlzt == '1'">有效</div> | ||
| 71 | <div class="icon" v-if="row.qlzt == '2'">正在补录</div> | ||
| 72 | <div class="icon" v-if="row.qlzt == '3'">正在申请</div> | ||
| 73 | <div class="icon" v-if="row.qlzt == '4'">正在注销</div> | ||
| 74 | |||
| 75 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 76 | <span v-if="item.prop == 'qszt'"> | ||
| 77 | {{ getQsztName(row[item.prop]) }} | ||
| 78 | </span> | ||
| 79 | <span v-else>{{ row[item.prop] }}</span> | ||
| 80 | </p> | ||
| 81 | |||
| 82 | <el-tooltip | ||
| 83 | v-else | ||
| 84 | effect="dark" | ||
| 85 | :content="row[item.prop]" | ||
| 86 | placement="top" | ||
| 87 | popper-class="tooltip-width" | ||
| 88 | > | ||
| 89 | <span class="ellipsis-line"> | ||
| 90 | {{ row[item.prop] }} | ||
| 91 | </span> | ||
| 92 | </el-tooltip> | ||
| 93 | </td> | ||
| 94 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 95 | </tr> | ||
| 96 | </table> | ||
| 97 | |||
| 98 | <table class="xxTable rollTable"> | ||
| 99 | <tr v-for="(item, colindex) in columns.slice(3)" :key="colindex"> | ||
| 100 | <td> | ||
| 101 | {{ item.label }} | ||
| 102 | </td> | ||
| 103 | <td | ||
| 104 | v-for="(row, index) in tableData" | ||
| 105 | :key="index" | ||
| 106 | :class="[ | ||
| 107 | row.qszt == '2' ? 'lishi' : '', | ||
| 108 | row.qszt == '0' ? 'linshi' : '', | ||
| 109 | row.qlzt == '4' ? 'linshi' : '', | ||
| 110 | |||
| 111 | item.prop == 'qszt' && row.qlzt == '3' ? 'linshiIcon' : '', | ||
| 112 | item.prop == 'qszt' && row.qlzt == '2' ? 'linshiIcon' : '', | ||
| 113 | item.prop == 'qszt' && row.qlzt == '1' ? 'xianshiIcon' : '', | ||
| 114 | item.prop == 'qszt' && row.qlzt == '4' ? 'zhuxiaoIcon' : '', | ||
| 115 | ]" | ||
| 116 | > | ||
| 117 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '1'"> | ||
| 118 | 有效 | ||
| 119 | </div> | ||
| 120 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '2'"> | ||
| 121 | 正在补录 | ||
| 122 | </div> | ||
| 123 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '3'"> | ||
| 124 | 正在申请 | ||
| 125 | </div> | ||
| 126 | <div class="icon" v-if="item.prop == 'qszt' && row.qlzt == '4'"> | ||
| 127 | 正在注销 | ||
| 128 | </div> | ||
| 129 | |||
| 130 | <p v-if="!['djyy', 'fj'].includes(item.prop)"> | ||
| 131 | <span v-if="item.prop == 'qszt'"> | ||
| 132 | {{ getQsztName(row[item.prop]) }} | ||
| 133 | </span> | ||
| 134 | <span v-else>{{ row[item.prop] }}</span> | ||
| 135 | </p> | ||
| 136 | |||
| 137 | <el-tooltip | ||
| 138 | v-else | ||
| 139 | effect="dark" | ||
| 140 | :content="row[item.prop]" | ||
| 141 | placement="top" | ||
| 142 | popper-class="tooltip-width" | ||
| 143 | > | ||
| 144 | <span class="ellipsis-line"> | ||
| 145 | {{ row[item.prop] }} | ||
| 146 | </span> | ||
| 147 | </el-tooltip> | ||
| 148 | </td> | ||
| 149 | <td v-for="count in emptycolNum" :key="~count"></td> | ||
| 150 | </tr> | ||
| 151 | </table> | ||
| 152 | </div> | ||
| 153 | </div> | ||
| 154 | </div> | 10 | </div> |
| 155 | </template> | 11 | </template> |
| 156 | 12 | ||
| 157 | <script> | 13 | <script> |
| 158 | import { datas } from "./qlxxFormData.js"; | 14 | import { datas } from "./qlxxFormData.js"; |
| 159 | import { getSjlx } from "@/utils/dictionary.js"; | 15 | import { getSjlx } from "@/utils/dictionary.js"; |
| 160 | import { getNydsyqList } from "@/api/djbDetail.js"; | 16 | import { getNydsyqList } from "@/api/djbDetail.js"; |
| 161 | export default { | 17 | import djbDetail from "./components/djbDetail.vue" |
| 18 | export default { | ||
| 162 | components: { | 19 | components: { |
| 163 | printTemplate, | 20 | djbDetail, |
| 164 | }, | 21 | }, |
| 165 | data() { | 22 | data () { |
| 166 | return { | 23 | return { |
| 167 | printObj: { | 24 | printObj: { |
| 168 | id: "box", | 25 | id: "box", |
| ... | @@ -170,20 +27,16 @@ export default { | ... | @@ -170,20 +27,16 @@ export default { |
| 170 | }, | 27 | }, |
| 171 | shows: false, | 28 | shows: false, |
| 172 | title: "农用地使用权登记信息", | 29 | title: "农用地使用权登记信息", |
| 173 | qsztList: datas.columns().qsztList, | ||
| 174 | checkList: datas.columns().checkList, | ||
| 175 | //传递参数 | 30 | //传递参数 |
| 176 | propsParam: this.$attrs, | 31 | propsParam: this.$attrs, |
| 177 | //列表数据 | 32 | //列表数据 |
| 178 | tableData: [], | 33 | tableData: [], |
| 179 | //空列值个数 | ||
| 180 | emptycolNum: datas.columns().emptycolNum, | ||
| 181 | //列名称对象 | 34 | //列名称对象 |
| 182 | columns: datas.columns().NYDSYQ, | 35 | columns: datas.columns().NYDSYQ, |
| 183 | render: false, | 36 | render: false, |
| 184 | }; | 37 | }; |
| 185 | }, | 38 | }, |
| 186 | created() { | 39 | created () { |
| 187 | var qllx = this.$route.query.sqywbm.substr(0, 3); | 40 | var qllx = this.$route.query.sqywbm.substr(0, 3); |
| 188 | if (qllx == "A09") { | 41 | if (qllx == "A09") { |
| 189 | this.title = "土地经营权登记信息"; | 42 | this.title = "土地经营权登记信息"; |
| ... | @@ -193,40 +46,7 @@ export default { | ... | @@ -193,40 +46,7 @@ export default { |
| 193 | this.loadData(); | 46 | this.loadData(); |
| 194 | }, | 47 | }, |
| 195 | methods: { | 48 | methods: { |
| 196 | /** | 49 | loadData () { |
| 197 | * @description: openPrint | ||
| 198 | * @author: miaofang | ||
| 199 | */ | ||
| 200 | openPrint() { | ||
| 201 | this.render = true; | ||
| 202 | setTimeout(() => { | ||
| 203 | this.prinsss(); | ||
| 204 | }, 100); | ||
| 205 | }, | ||
| 206 | /** | ||
| 207 | * @description: prinsss | ||
| 208 | * @author: miaofang | ||
| 209 | */ | ||
| 210 | prinsss() { | ||
| 211 | printJS({ | ||
| 212 | printable: "boxnydsyq", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 213 | type: "html", | ||
| 214 | maxWidth: 800, // 最大宽度 | ||
| 215 | font_size: "", // 不设置则使用默认字体大小 | ||
| 216 | style: `@font-face { | ||
| 217 | font-family: "STZHONGS"; | ||
| 218 | src: url(${window.ttf}) format("truetype"); | ||
| 219 | }`, | ||
| 220 | // 继承原来的所有样式 | ||
| 221 | targetStyles: ["*"], | ||
| 222 | }); | ||
| 223 | this.render=false | ||
| 224 | }, | ||
| 225 | /** | ||
| 226 | * @description: loadData | ||
| 227 | * @author: miaofang | ||
| 228 | */ | ||
| 229 | loadData() { | ||
| 230 | if (this.$parent.addRepairRecord) { | 50 | if (this.$parent.addRepairRecord) { |
| 231 | this.columns.unshift({ | 51 | this.columns.unshift({ |
| 232 | prop: "cz", | 52 | prop: "cz", |
| ... | @@ -252,68 +72,14 @@ export default { | ... | @@ -252,68 +72,14 @@ export default { |
| 252 | } | 72 | } |
| 253 | } | 73 | } |
| 254 | }); | 74 | }); |
| 255 | }, | ||
| 256 | /** | ||
| 257 | * @description: checkChange | ||
| 258 | * @author: miaofang | ||
| 259 | */ | ||
| 260 | checkChange() { | ||
| 261 | if (this.checkList.length === 0) { | ||
| 262 | this.tableData = []; | ||
| 263 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 264 | } else { | ||
| 265 | this.loadData(); | ||
| 266 | } | ||
| 267 | }, | ||
| 268 | /** | ||
| 269 | * @description: getQsztName | ||
| 270 | * @author: miaofang | ||
| 271 | */ | ||
| 272 | getQsztName(code) { | ||
| 273 | let name = ""; | ||
| 274 | for (let item of this.qsztList) { | ||
| 275 | if (item.value == code) { | ||
| 276 | name = item.label; | ||
| 277 | break; | ||
| 278 | } | 75 | } |
| 279 | } | 76 | } |
| 280 | return name; | 77 | }; |
| 281 | }, | ||
| 282 | // 新增一条补录信息 | ||
| 283 | /** | ||
| 284 | * @description: 新增一条补录信息 | ||
| 285 | * @param {*} row | ||
| 286 | * @param {*} del | ||
| 287 | * @author: miaofang | ||
| 288 | */ | ||
| 289 | editDialog(row, del) { | ||
| 290 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | ||
| 291 | confirmButtonText: "确定", | ||
| 292 | cancelButtonText: "取消", | ||
| 293 | type: "warning", | ||
| 294 | }) | ||
| 295 | .then(() => { | ||
| 296 | this.$parent.addRepairRecord(row, del); | ||
| 297 | |||
| 298 | this.$message({ | ||
| 299 | type: "success", | ||
| 300 | message: "补录成功!", | ||
| 301 | }); | ||
| 302 | }) | ||
| 303 | .catch(() => { | ||
| 304 | this.$message({ | ||
| 305 | type: "info", | ||
| 306 | message: "取消编辑", | ||
| 307 | }); | ||
| 308 | }); | ||
| 309 | }, | ||
| 310 | }, | ||
| 311 | }; | ||
| 312 | </script> | 78 | </script> |
| 313 | 79 | ||
| 314 | <style lang="scss" scoped> | 80 | <style lang="scss" scoped> |
| 315 | @import "./qlxxCommon.scss"; | 81 | @import "./qlxxCommon.scss"; |
| 316 | .title { | 82 | .title { |
| 317 | position: relative; | 83 | position: relative; |
| 318 | .print { | 84 | .print { |
| 319 | // background-color: #0079fe; | 85 | // background-color: #0079fe; |
| ... | @@ -322,5 +88,5 @@ export default { | ... | @@ -322,5 +88,5 @@ export default { |
| 322 | left: 11px; | 88 | left: 11px; |
| 323 | top: 5px; | 89 | top: 5px; |
| 324 | } | 90 | } |
| 325 | } | 91 | } |
| 326 | </style> | 92 | </style> | ... | ... |
| 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 | }, | 21 | }, |
| 130 | data() { | 22 | data () { |
| 131 | return { | 23 | return { |
| 132 | printObj: { | ||
| 133 | id: "box", | ||
| 134 | //其他配置项, | ||
| 135 | }, | ||
| 136 | shows: false, | 24 | shows: false, |
| 137 | title: "林权登记信息", | 25 | title: "林权登记信息", |
| 138 | qsztList: datas.columns().qsztList, | ||
| 139 | checkList: datas.columns().checkList, | ||
| 140 | //传递参数 | 26 | //传递参数 |
| 141 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 142 | //列表数据 | 28 | //列表数据 |
| 143 | tableData: [], | 29 | tableData: [], |
| 144 | //空列值个数 | ||
| 145 | emptycolNum: datas.columns().emptycolNum, | ||
| 146 | //列名称对象 | 30 | //列名称对象 |
| 147 | columns: datas.columns().LDSYQ, | 31 | columns: datas.columns().LDSYQ, |
| 148 | render: false, | 32 | render: false, |
| 149 | }; | 33 | }; |
| 150 | }, | 34 | }, |
| 151 | created() { | 35 | created () { |
| 152 | this.loadData(); | 36 | this.loadData(); |
| 153 | }, | 37 | }, |
| 154 | methods: { | 38 | methods: { |
| 155 | /** | 39 | loadData () { |
| 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) { | 40 | if (this.$parent.addRepairRecord) { |
| 190 | this.columns.unshift({ | 41 | this.columns.unshift({ |
| 191 | prop: "cz", | 42 | prop: "cz", |
| ... | @@ -211,69 +62,14 @@ export default { | ... | @@ -211,69 +62,14 @@ export default { |
| 211 | } | 62 | } |
| 212 | } | 63 | } |
| 213 | }); | 64 | }); |
| 214 | }, | ||
| 215 | /** | ||
| 216 | * @description: checkChange | ||
| 217 | * @author: miaofang | ||
| 218 | */ | ||
| 219 | checkChange() { | ||
| 220 | if (this.checkList.length === 0) { | ||
| 221 | this.tableData = []; | ||
| 222 | this.emptycolNum = datas.columns().emptycolNum; | ||
| 223 | } else { | ||
| 224 | this.loadData(); | ||
| 225 | } | ||
| 226 | }, | ||
| 227 | /** | ||
| 228 | * @description: getQsztName | ||
| 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 | } | 65 | } |
| 240 | return name; | ||
| 241 | }, | 66 | }, |
| 242 | // 新增一条补录信息 | 67 | }; |
| 243 | /** | ||
| 244 | * @description: 新增一条补录信息 | ||
| 245 | * @param {*} row | ||
| 246 | * @param {*} del | ||
| 247 | * @author: miaofang | ||
| 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 | }); | ||
| 268 | }); | ||
| 269 | }, | ||
| 270 | }, | ||
| 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; |
| ... | @@ -282,5 +78,5 @@ export default { | ... | @@ -282,5 +78,5 @@ export default { |
| 282 | left: 11px; | 78 | left: 11px; |
| 283 | top: 5px; | 79 | top: 5px; |
| 284 | } | 80 | } |
| 285 | } | 81 | } |
| 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,63 +69,9 @@ export default { | ... | @@ -158,63 +69,9 @@ export default { |
| 158 | this.emptycolNum = 0; | 69 | this.emptycolNum = 0; |
| 159 | } | 70 | } |
| 160 | } | 71 | } |
| 161 | }); | 72 | }) |
| 162 | }, | ||
| 163 | /** | ||
| 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 | } | 73 | } |
| 187 | } | 74 | } |
| 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 | ||
| ... | @@ -229,5 +86,5 @@ export default { | ... | @@ -229,5 +86,5 @@ export default { |
| 229 | left: 11px; | 86 | left: 11px; |
| 230 | top: 5px; | 87 | top: 5px; |
| 231 | } | 88 | } |
| 232 | } | 89 | } |
| 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 | }, | 21 | }, |
| 109 | data() { | 22 | data () { |
| 110 | return { | 23 | return { |
| 111 | // printObj: { | 24 | shows: false, |
| 112 | // id: "box", | ||
| 113 | // //其他配置项, | ||
| 114 | // }, | ||
| 115 | shows:false, | ||
| 116 | title: "预告登记信息", | 25 | title: "预告登记信息", |
| 117 | qsztList: datas.columns().qsztList, | ||
| 118 | checkList: datas.columns().checkList, | ||
| 119 | //传递参数 | 26 | //传递参数 |
| 120 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 121 | //列表数据 | 28 | //列表数据 |
| 122 | tableData: [], | 29 | tableData: [], |
| 123 | //空列值个数 | ||
| 124 | emptycolNum: datas.columns().emptycolNum, | ||
| 125 | //列名称对象 | 30 | //列名称对象 |
| 126 | columns: datas.columns().YGDJ, | 31 | columns: datas.columns().YGDJ, |
| 127 | render:false | 32 | render: false |
| 128 | }; | 33 | }; |
| 129 | }, | 34 | }, |
| 130 | created() { | 35 | created () { |
| 131 | this.loadData(); | 36 | this.loadData(); |
| 132 | }, | 37 | }, |
| 133 | methods: { | 38 | methods: { |
| 134 | openPrint(){ | 39 | loadData () { |
| 135 | this.render=true | ||
| 136 | setTimeout(() => { | ||
| 137 | this.prinsss() | ||
| 138 | }, 100) | ||
| 139 | }, | ||
| 140 | prinsss(){ | ||
| 141 | printJS({ | ||
| 142 | printable: "boxygdj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 143 | type: "html", | ||
| 144 | maxWidth: 800, // 最大宽度 | ||
| 145 | font_size: "", // 不设置则使用默认字体大小 | ||
| 146 | style: `@font-face { | ||
| 147 | font-family: "STZHONGS"; | ||
| 148 | src: url(${window.ttf}) format("truetype"); | ||
| 149 | }`, | ||
| 150 | // 继承原来的所有样式 | ||
| 151 | targetStyles: ["*"] | ||
| 152 | }); | ||
| 153 | this.render=false | ||
| 154 | }, | ||
| 155 | /** | ||
| 156 | * @description: loadData | ||
| 157 | * @author: miaofang | ||
| 158 | */ | ||
| 159 | loadData() { | ||
| 160 | // 判断是否在登记簿补录调的子页面 | 40 | // 判断是否在登记簿补录调的子页面 |
| 161 | if (this.$parent.addRepairRecord) { | 41 | if (this.$parent.addRepairRecord) { |
| 162 | this.columns.unshift({ | 42 | this.columns.unshift({ |
| ... | @@ -171,7 +51,7 @@ export default { | ... | @@ -171,7 +51,7 @@ export default { |
| 171 | }).then((res) => { | 51 | }).then((res) => { |
| 172 | if (res.code === 200) { | 52 | if (res.code === 200) { |
| 173 | this.tableData = res.result; | 53 | this.tableData = res.result; |
| 174 | this.shows=this.tableData.length>0 | 54 | this.shows = this.tableData.length > 0 |
| 175 | this.tableData.forEach((item) => { | 55 | this.tableData.forEach((item) => { |
| 176 | item.sjlx = getSjlx(item.sjlx); | 56 | item.sjlx = getSjlx(item.sjlx); |
| 177 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); | 57 | item.dybdclx = getDictLeabel(item.dybdclx, "A27"); |
| ... | @@ -183,70 +63,15 @@ export default { | ... | @@ -183,70 +63,15 @@ export default { |
| 183 | this.emptycolNum = 0; | 63 | this.emptycolNum = 0; |
| 184 | } | 64 | } |
| 185 | } | 65 | } |
| 186 | }); | 66 | }) |
| 187 | }, | ||
| 188 | /** | ||
| 189 | * @description: checkChange | ||
| 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 | } | 67 | } |
| 199 | }, | ||
| 200 | /** | ||
| 201 | * @description: getQsztName | ||
| 202 | * @param {*} code | ||
| 203 | * @author: miaofang | ||
| 204 | */ | ||
| 205 | getQsztName(code) { | ||
| 206 | let name = ""; | ||
| 207 | for (let item of this.qsztList) { | ||
| 208 | if (item.value == code) { | ||
| 209 | name = item.label; | ||
| 210 | break; | ||
| 211 | } | 68 | } |
| 212 | } | 69 | } |
| 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 | }); | ||
| 235 | }) | ||
| 236 | .catch(() => { | ||
| 237 | this.$message({ | ||
| 238 | type: "info", | ||
| 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; |
| ... | @@ -255,5 +80,5 @@ export default { | ... | @@ -255,5 +80,5 @@ export default { |
| 255 | left: 11px; | 80 | left: 11px; |
| 256 | top: 5px; | 81 | top: 5px; |
| 257 | } | 82 | } |
| 258 | } | 83 | } |
| 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 | }, | 21 | }, |
| 115 | data() { | 22 | data () { |
| 116 | return { | 23 | return { |
| 117 | printObj: { | ||
| 118 | id: "box", | ||
| 119 | //其他配置项, | ||
| 120 | }, | ||
| 121 | shows: false, | 24 | shows: false, |
| 122 | title: "异议登记信息", | 25 | title: "异议登记信息", |
| 123 | qsztList: datas.columns().qsztList, | ||
| 124 | checkList: datas.columns().checkList, | ||
| 125 | //传递参数 | 26 | //传递参数 |
| 126 | propsParam: this.$attrs, | 27 | propsParam: this.$attrs, |
| 127 | //列表数据 | 28 | //列表数据 |
| 128 | tableData: [], | 29 | tableData: [], |
| 129 | //空列值个数 | ||
| 130 | emptycolNum: datas.columns().emptycolNum, | ||
| 131 | //列名称对象 | 30 | //列名称对象 |
| 132 | columns: datas.columns().YYDJ, | 31 | columns: datas.columns().YYDJ, |
| 133 | render: false, | 32 | render: false, |
| 134 | }; | 33 | }; |
| 135 | }, | 34 | }, |
| 136 | created() { | 35 | created () { |
| 137 | this.loadData(); | 36 | this.loadData(); |
| 138 | }, | 37 | }, |
| 139 | methods: { | 38 | methods: { |
| 140 | openPrint() { | 39 | loadData () { |
| 141 | this.render = true; | ||
| 142 | setTimeout(() => { | ||
| 143 | this.prinsss(); | ||
| 144 | }, 100); | ||
| 145 | }, | ||
| 146 | prinsss() { | ||
| 147 | printJS({ | ||
| 148 | printable: "boxyydj", // // 文档来源:pdf或图像的url,html元素的id或json数据的对象 | ||
| 149 | type: "html", | ||
| 150 | maxWidth: 800, // 最大宽度 | ||
| 151 | font_size: "", // 不设置则使用默认字体大小 | ||
| 152 | style: `@font-face { | ||
| 153 | font-family: "STZHONGS"; | ||
| 154 | src: url(${window.ttf}) format("truetype"); | ||
| 155 | }`, | ||
| 156 | // 继承原来的所有样式 | ||
| 157 | targetStyles: ["*"], | ||
| 158 | }); | ||
| 159 | this.render=false | ||
| 160 | }, | ||
| 161 | /** | ||
| 162 | * @description: loadData | ||
| 163 | * @author: miaofang | ||
| 164 | */ | ||
| 165 | loadData() { | ||
| 166 | if (this.$parent.addRepairRecord) { | 40 | if (this.$parent.addRepairRecord) { |
| 167 | this.columns.unshift({ | 41 | this.columns.unshift({ |
| 168 | prop: "cz", | 42 | prop: "cz", |
| ... | @@ -188,77 +62,21 @@ export default { | ... | @@ -188,77 +62,21 @@ export default { |
| 188 | this.emptycolNum = 0; | 62 | this.emptycolNum = 0; |
| 189 | } | 63 | } |
| 190 | } | 64 | } |
| 191 | }); | 65 | }) |
| 192 | }, | ||
| 193 | /** | ||
| 194 | * @description: checkChange | ||
| 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 | } | 66 | } |
| 204 | }, | ||
| 205 | /** | ||
| 206 | * @description: getQsztName | ||
| 207 | * @param {*} code | ||
| 208 | * @author: miaofang | ||
| 209 | */ | ||
| 210 | getQsztName(code) { | ||
| 211 | let name = ""; | ||
| 212 | for (let item of this.qsztList) { | ||
| 213 | if (item.value == code) { | ||
| 214 | name = item.label; | ||
| 215 | break; | ||
| 216 | } | 67 | } |
| 217 | } | 68 | } |
| 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 | }); | ||
| 240 | }) | ||
| 241 | .catch(() => { | ||
| 242 | this.$message({ | ||
| 243 | type: "info", | ||
| 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; | ||
| 258 | z-index: 10; | 76 | z-index: 10; |
| 259 | position: absolute; | 77 | position: absolute; |
| 260 | left: 11px; | 78 | left: 11px; |
| 261 | top: 5px; | 79 | top: 5px; |
| 262 | } | 80 | } |
| 263 | } | 81 | } |
| 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) => { | ... | ... |
| ... | @@ -8,51 +8,64 @@ | ... | @@ -8,51 +8,64 @@ |
| 8 | <div class="fieldcheck"> | 8 | <div class="fieldcheck"> |
| 9 | <div class="left"> | 9 | <div class="left"> |
| 10 | <div class="header"> | 10 | <div class="header"> |
| 11 | <div class="headerconcent"> | ||
| 11 | <el-checkbox | 12 | <el-checkbox |
| 12 | class="check" | 13 | class="check" |
| 13 | :indeterminate="isIndeterminate" | 14 | :indeterminate="isIndeterminate" |
| 14 | v-model="checkAll" | 15 | v-model="checkAll" |
| 15 | @change="handleCheckAllChange">待选合集</el-checkbox> | 16 | @change="handleCheckAllChange" |
| 16 | <div class="num">/</div> | 17 | >待选合集</el-checkbox |
| 18 | > | ||
| 19 | <div class="num"> | ||
| 20 | 总数{{ cities.length }} 已选{{ datalist.length }} | ||
| 21 | </div> | ||
| 22 | </div> | ||
| 17 | </div> | 23 | </div> |
| 18 | <el-checkbox-group | 24 | <el-checkbox-group |
| 19 | class="concent" | 25 | class="concent" |
| 20 | v-model="checkedCities" | 26 | v-model="checkedCities" |
| 21 | @change="handleCheckedCitiesChange"> | 27 | @change="handleCheckedCitiesChange" |
| 28 | > | ||
| 22 | <el-checkbox | 29 | <el-checkbox |
| 23 | v-for="city in cities" | 30 | v-for="city in cities" |
| 24 | :label="city.name" | 31 | :label="city.name" |
| 25 | :key="city.name">{{ city.despriction }}({{ city.name }})</el-checkbox> | 32 | :key="city.name" |
| 33 | >{{ city.despriction }}({{ city.name }})</el-checkbox | ||
| 34 | > | ||
| 26 | </el-checkbox-group> | 35 | </el-checkbox-group> |
| 27 | </div> | 36 | </div> |
| 28 | <div class="right"> | 37 | <div class="right"> |
| 29 | <el-table | 38 | <el-table |
| 30 | class="tablelist" | 39 | class="tablelist" |
| 31 | :data="datalist" | 40 | :data="datalist" |
| 41 | border | ||
| 32 | ref="listTable" | 42 | ref="listTable" |
| 33 | :key="key" | 43 | :key="key" |
| 34 | row-key="name" | 44 | row-key="name" |
| 35 | :pagination="false" | 45 | :pagination="false" |
| 36 | :header-cell-style="{ 'text-align': 'center' }" | ||
| 37 | :heightNumSetting="true" | 46 | :heightNumSetting="true" |
| 38 | :minHeight="150" | 47 | :minHeight="150" |
| 39 | height="590" | 48 | height="650" |
| 40 | style="width: 100%"> | 49 | style="width: 100%" |
| 50 | > | ||
| 41 | <el-table-column label="字段" prop="name" min-width="100"> | 51 | <el-table-column label="字段" prop="name" min-width="100"> |
| 42 | </el-table-column> | 52 | </el-table-column> |
| 43 | 53 | ||
| 44 | <el-table-column | 54 | <el-table-column |
| 45 | label="字段名称" | 55 | label="字段名称" |
| 46 | prop="desprictionor" | 56 | prop="desprictionor" |
| 47 | min-width="100"> | 57 | min-width="100" |
| 58 | > | ||
| 48 | </el-table-column> | 59 | </el-table-column> |
| 49 | <el-table-column label="字段别名" min-width="100"> | 60 | <el-table-column label="字段别名" min-width="100"> |
| 50 | <template slot-scope="scope"> | 61 | <template slot-scope="scope"> |
| 51 | <el-input | 62 | <el-input |
| 52 | v-model="scope.row.despriction" | 63 | v-model="scope.row.despriction" |
| 53 | placeholder="请输入内容" | 64 | placeholder="请输入内容" |
| 54 | @input="sumTime(scope.$index, scope.row.tdsyqx)"> | 65 | @input="sumTime(scope.$index, scope.row.tdsyqx)" |
| 55 | ></el-input> | 66 | > |
| 67 | ></el-input | ||
| 68 | > | ||
| 56 | </template> | 69 | </template> |
| 57 | </el-table-column> | 70 | </el-table-column> |
| 58 | </el-table> | 71 | </el-table> |
| ... | @@ -66,16 +79,16 @@ | ... | @@ -66,16 +79,16 @@ |
| 66 | </template> | 79 | </template> |
| 67 | 80 | ||
| 68 | <script> | 81 | <script> |
| 69 | import Sortable from 'sortablejs' | 82 | import Sortable from "sortablejs"; |
| 70 | import { getFieldList, getFieldListByQlxx, save } from "@/api/SysDjbFieldDO"; | 83 | import { getFieldList, getFieldListByQlxx, save } from "@/api/SysDjbFieldDO"; |
| 71 | export default { | 84 | export default { |
| 72 | props: { | 85 | props: { |
| 73 | formData: { | 86 | formData: { |
| 74 | type: Object, | 87 | type: Object, |
| 75 | default: () => { }, | 88 | default: () => {}, |
| 76 | }, | 89 | }, |
| 77 | }, | 90 | }, |
| 78 | data () { | 91 | data() { |
| 79 | return { | 92 | return { |
| 80 | checkAll: false, | 93 | checkAll: false, |
| 81 | sortable: null, | 94 | sortable: null, |
| ... | @@ -87,48 +100,51 @@ | ... | @@ -87,48 +100,51 @@ |
| 87 | isIndeterminate: true, | 100 | isIndeterminate: true, |
| 88 | }; | 101 | }; |
| 89 | }, | 102 | }, |
| 90 | mounted () { | 103 | mounted() { |
| 91 | this.generateData() | 104 | this.generateData(); |
| 92 | }, | 105 | }, |
| 93 | beforeDestroy () { | 106 | beforeDestroy() { |
| 94 | if (this.sortable) { | 107 | if (this.sortable) { |
| 95 | this.sortable.destroy(); | 108 | this.sortable.destroy(); |
| 96 | } | 109 | } |
| 97 | }, | 110 | }, |
| 98 | watch: { | 111 | watch: { |
| 99 | key: { | 112 | key: { |
| 100 | handler (newName, oldName) { | 113 | handler(newName, oldName) { |
| 101 | this.initSort() | 114 | this.initSort(); |
| 102 | } | 115 | }, |
| 103 | } | 116 | }, |
| 104 | }, | 117 | }, |
| 105 | methods: { | 118 | methods: { |
| 106 | changeIndex (array, index1, index2) { | 119 | changeIndex(array, index1, index2) { |
| 107 | array[index1] = array.splice(index2, 1, array[index1])[0]; | 120 | array[index1] = array.splice(index2, 1, array[index1])[0]; |
| 108 | }, | 121 | }, |
| 109 | initSort () { | 122 | initSort() { |
| 110 | const el = this.$refs.listTable.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0] | 123 | const el = this.$refs.listTable.$el.querySelectorAll( |
| 124 | ".el-table__body-wrapper > table > tbody" | ||
| 125 | )[0]; | ||
| 111 | // const sortable = new Sortable(el, options); | 126 | // const sortable = new Sortable(el, options); |
| 112 | // 根据具体需求配置options配置项 | 127 | // 根据具体需求配置options配置项 |
| 113 | const sortable = new Sortable(el, { | 128 | const sortable = new Sortable(el, { |
| 114 | onEnd: (evt) => { // 监听拖动结束事件 | 129 | onEnd: (evt) => { |
| 115 | console.log(this) // this是当前vue上下文 | 130 | // 监听拖动结束事件 |
| 116 | console.log(evt.oldIndex) // 当前行的被拖拽前的顺序 | 131 | console.log(this); // this是当前vue上下文 |
| 117 | console.log(evt.newIndex) // 当前行的被拖拽后的顺序 | 132 | console.log(evt.oldIndex); // 当前行的被拖拽前的顺序 |
| 133 | console.log(evt.newIndex); // 当前行的被拖拽后的顺序 | ||
| 118 | // 这里就可以写我们需要传给后台的逻辑代码 | 134 | // 这里就可以写我们需要传给后台的逻辑代码 |
| 119 | // 我们有了 evt.oldIndex 和 evt.newIndex 这两个参数做索引,我们可以根据绑定在表格上面的 data 这个 Array 找到两个相应的记录。就可以针对数据进行操作啦。 | 135 | // 我们有了 evt.oldIndex 和 evt.newIndex 这两个参数做索引,我们可以根据绑定在表格上面的 data 这个 Array 找到两个相应的记录。就可以针对数据进行操作啦。 |
| 120 | // 下面将拖拽后的顺序进行修改 | 136 | // 下面将拖拽后的顺序进行修改 |
| 121 | const currRow = this.datalist.splice(evt.oldIndex, 1)[0] | 137 | const currRow = this.datalist.splice(evt.oldIndex, 1)[0]; |
| 122 | this.datalist.splice(evt.newIndex, 0, currRow) | 138 | this.datalist.splice(evt.newIndex, 0, currRow); |
| 123 | } | 139 | }, |
| 124 | }) | 140 | }); |
| 125 | }, | 141 | }, |
| 126 | /** | 142 | /** |
| 127 | * @description: 初始数据集 | 143 | * @description: 初始数据集 |
| 128 | * @author: renchao | 144 | * @author: renchao |
| 129 | */ | 145 | */ |
| 130 | generateData () { | 146 | generateData() { |
| 131 | let that = this | 147 | let that = this; |
| 132 | getFieldList({ qllx: this.formData.qllx }).then((res) => { | 148 | getFieldList({ qllx: this.formData.qllx }).then((res) => { |
| 133 | if (res.code === 200) { | 149 | if (res.code === 200) { |
| 134 | let listss = res.result; | 150 | let listss = res.result; |
| ... | @@ -150,38 +166,37 @@ | ... | @@ -150,38 +166,37 @@ |
| 150 | desprictionor: item.despriction, | 166 | desprictionor: item.despriction, |
| 151 | }); | 167 | }); |
| 152 | that.$nextTick(() => { | 168 | that.$nextTick(() => { |
| 153 | that.datalist = this.tablelist | 169 | that.datalist = this.tablelist; |
| 154 | that.checkedCities.push(item.name); | 170 | that.checkedCities.push(item.name); |
| 155 | }) | 171 | }); |
| 156 | }) | 172 | }); |
| 157 | that.initSort() | 173 | that.initSort(); |
| 158 | } | 174 | } |
| 159 | }); | 175 | }); |
| 160 | } | 176 | } |
| 161 | }); | 177 | }); |
| 162 | }, | 178 | }, |
| 163 | handleCheckAllChange (val) { | 179 | handleCheckAllChange(val) { |
| 164 | let checkedlist = [] | 180 | let checkedlist = []; |
| 165 | let orlist = [] | 181 | let orlist = []; |
| 166 | checkedlist = val ? this.cities : []; | 182 | checkedlist = val ? this.cities : []; |
| 167 | this.isIndeterminate = false; | 183 | this.isIndeterminate = false; |
| 168 | console.log("this.checkedCities", this.checkedCities); | 184 | console.log("this.checkedCities", this.checkedCities); |
| 169 | let lists = []; | 185 | let lists = []; |
| 170 | this.cities.forEach((item, index) => { | 186 | this.cities.forEach((item, index) => { |
| 171 | |||
| 172 | checkedlist.forEach((el) => { | 187 | checkedlist.forEach((el) => { |
| 173 | orlist.push(el.name) | 188 | orlist.push(el.name); |
| 174 | if (item.name == el.name) { | 189 | if (item.name == el.name) { |
| 175 | lists.push(this.cities[index]); | 190 | lists.push(this.cities[index]); |
| 176 | } | 191 | } |
| 177 | }); | 192 | }); |
| 178 | }); | 193 | }); |
| 179 | this.checkedCities = orlist | 194 | this.checkedCities = orlist; |
| 180 | this.datalist = lists; | 195 | this.datalist = lists; |
| 181 | // 其他排序逻辑 | 196 | // 其他排序逻辑 |
| 182 | this.initSort() | 197 | this.initSort(); |
| 183 | }, | 198 | }, |
| 184 | handleCheckedCitiesChange (value) { | 199 | handleCheckedCitiesChange(value) { |
| 185 | console.log("value", value, this.checkedCities); | 200 | console.log("value", value, this.checkedCities); |
| 186 | let checkedCount = value.length; | 201 | let checkedCount = value.length; |
| 187 | this.checkAll = checkedCount === this.cities.length; | 202 | this.checkAll = checkedCount === this.cities.length; |
| ... | @@ -191,16 +206,15 @@ | ... | @@ -191,16 +206,15 @@ |
| 191 | this.cities.forEach((item, index) => { | 206 | this.cities.forEach((item, index) => { |
| 192 | this.checkedCities.forEach((el) => { | 207 | this.checkedCities.forEach((el) => { |
| 193 | if (item.name == el) { | 208 | if (item.name == el) { |
| 194 | console.log("1"); | ||
| 195 | lists.push(this.cities[index]); | 209 | lists.push(this.cities[index]); |
| 196 | } | 210 | } |
| 197 | }); | 211 | }); |
| 198 | }); | 212 | }); |
| 199 | this.datalist = lists; | 213 | this.datalist = lists; |
| 200 | // 其他排序逻辑 | 214 | // 其他排序逻辑 |
| 201 | this.initSort() | 215 | this.initSort(); |
| 202 | }, | 216 | }, |
| 203 | submitForm () { | 217 | submitForm() { |
| 204 | save(this.formData.bsmMb, this.datalist).then((res) => { | 218 | save(this.formData.bsmMb, this.datalist).then((res) => { |
| 205 | if (res.code == 200) { | 219 | if (res.code == 200) { |
| 206 | this.$popupCacel(); | 220 | this.$popupCacel(); |
| ... | @@ -217,19 +231,19 @@ | ... | @@ -217,19 +231,19 @@ |
| 217 | }); | 231 | }); |
| 218 | }, | 232 | }, |
| 219 | }, | 233 | }, |
| 220 | }; | 234 | }; |
| 221 | </script> | 235 | </script> |
| 222 | <style scoped lang="scss"> | 236 | <style scoped lang="scss"> |
| 223 | @import "~@/styles/mixin.scss"; | 237 | @import "~@/styles/mixin.scss"; |
| 224 | @import "~@/styles/dialogBoxheader.scss"; | 238 | @import "~@/styles/dialogBoxheader.scss"; |
| 225 | .fieldcheck { | 239 | .fieldcheck { |
| 226 | width: 100%; | 240 | width: 100%; |
| 227 | height: 650px; | 241 | height: 650px; |
| 228 | display: flex; | 242 | display: flex; |
| 229 | justify-content: space-between; | 243 | justify-content: space-between; |
| 230 | .left, | 244 | .left, |
| 231 | .right { | 245 | .right { |
| 232 | width: 47%; | 246 | width: 49%; |
| 233 | height: 650px; | 247 | height: 650px; |
| 234 | border: 1px solid rgb(230, 230, 230); | 248 | border: 1px solid rgb(230, 230, 230); |
| 235 | } | 249 | } |
| ... | @@ -237,16 +251,15 @@ | ... | @@ -237,16 +251,15 @@ |
| 237 | .header { | 251 | .header { |
| 238 | width: 100%; | 252 | width: 100%; |
| 239 | height: 50px; | 253 | height: 50px; |
| 240 | line-height: 50px; | ||
| 241 | background-color: rgba(243, 242, 242, 0.897); | 254 | background-color: rgba(243, 242, 242, 0.897); |
| 242 | display: flex; | 255 | .headerconcent { |
| 243 | justify-content: space-around; | 256 | width: 90%; |
| 244 | align-items:center .check { | 257 | height: 50px; |
| 245 | height: 20px; | ||
| 246 | margin: auto; | 258 | margin: auto; |
| 247 | } | 259 | line-height: 50px; |
| 248 | .num { | 260 | display: flex; |
| 249 | height: 20px; | 261 | justify-content: space-between; |
| 262 | align-items: center; | ||
| 250 | } | 263 | } |
| 251 | } | 264 | } |
| 252 | .concent { | 265 | .concent { |
| ... | @@ -273,15 +286,12 @@ | ... | @@ -273,15 +286,12 @@ |
| 273 | line-height: 50px; | 286 | line-height: 50px; |
| 274 | background-color: rgba(243, 242, 242, 0.897); | 287 | background-color: rgba(243, 242, 242, 0.897); |
| 275 | } | 288 | } |
| 276 | .tablelist { | 289 | |
| 277 | margin-top: 10px; | ||
| 278 | height: 680px; | ||
| 279 | } | ||
| 280 | } | ||
| 281 | } | 290 | } |
| 282 | .btn { | 291 | } |
| 292 | .btn { | ||
| 283 | margin-top: 10px; | 293 | margin-top: 10px; |
| 284 | width: 100%; | 294 | width: 100%; |
| 285 | text-align: center; | 295 | text-align: center; |
| 286 | } | 296 | } |
| 287 | </style> | 297 | </style> | ... | ... |
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