Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
5 changed files
with
34 additions
and
370 deletions
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-28 09:34:54 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class="clmlmx-box"> | ||
| 8 | <div class="title">申请材料目录</div> | ||
| 9 | <lb-table :column="column" :key="key" :heightNumSetting="true" :pagination="false" :data="formData.data"> | ||
| 10 | </lb-table> | ||
| 11 | <div class="text-center"> | ||
| 12 | <el-button @click="$popupCacel">取消</el-button> | ||
| 13 | </div> | ||
| 14 | </div> | ||
| 15 | </template> | ||
| 16 | <script> | ||
| 17 | import store from '@/store/index.js' | ||
| 18 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; | ||
| 19 | export default { | ||
| 20 | props: { | ||
| 21 | formData: { | ||
| 22 | type: Object, | ||
| 23 | default: () => { | ||
| 24 | return {} | ||
| 25 | } | ||
| 26 | } | ||
| 27 | }, | ||
| 28 | data () { | ||
| 29 | return { | ||
| 30 | column: [ | ||
| 31 | { | ||
| 32 | width: "50", | ||
| 33 | label: '序号', | ||
| 34 | type: 'index' | ||
| 35 | }, | ||
| 36 | { | ||
| 37 | prop: "isrequired", | ||
| 38 | label: "是否必选", | ||
| 39 | width: "80", | ||
| 40 | render: (h, scope) => { | ||
| 41 | if (scope.row.sfxjcl === "1") { | ||
| 42 | return ( | ||
| 43 | <div> | ||
| 44 | <span>可选</span> | ||
| 45 | </div> | ||
| 46 | ); | ||
| 47 | } | ||
| 48 | else { | ||
| 49 | return ( | ||
| 50 | <div> | ||
| 51 | <span>必选</span> | ||
| 52 | </div> | ||
| 53 | ); | ||
| 54 | } | ||
| 55 | }, | ||
| 56 | }, | ||
| 57 | { | ||
| 58 | prop: "sjmc", | ||
| 59 | label: "材料名称", | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | prop: "sjlx", | ||
| 63 | label: "材料类型", | ||
| 64 | width: "80", | ||
| 65 | render: (h, scope) => { | ||
| 66 | return ( | ||
| 67 | <div> | ||
| 68 | <span>{this.dicStatus(scope.row.sjlx, "A40")}</span> | ||
| 69 | </div> | ||
| 70 | ); | ||
| 71 | }, | ||
| 72 | }, | ||
| 73 | { | ||
| 74 | prop: "sjsl", | ||
| 75 | label: "份数", | ||
| 76 | width: "50" | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | prop: "smzt", | ||
| 80 | label: "扫描状态", | ||
| 81 | width: "80", | ||
| 82 | render: (h, scope) => { | ||
| 83 | if (scope.row.children && scope.row.children.length > 0) { | ||
| 84 | return ( | ||
| 85 | <div> | ||
| 86 | <span>已扫描</span> | ||
| 87 | </div> | ||
| 88 | ); | ||
| 89 | } else { | ||
| 90 | return ( | ||
| 91 | <div> | ||
| 92 | <span>未扫描</span> | ||
| 93 | </div> | ||
| 94 | ); | ||
| 95 | } | ||
| 96 | }, | ||
| 97 | }, | ||
| 98 | { | ||
| 99 | label: "扫描页数", | ||
| 100 | width: "80", | ||
| 101 | render: (h, scope) => { | ||
| 102 | if (scope.row.children && scope.row.children.length > 0) { | ||
| 103 | return ( | ||
| 104 | <div> | ||
| 105 | <span>{scope.row.children.length}</span> | ||
| 106 | </div> | ||
| 107 | ); | ||
| 108 | } else { | ||
| 109 | return ( | ||
| 110 | <div> | ||
| 111 | <span>0</span> | ||
| 112 | </div> | ||
| 113 | ); | ||
| 114 | } | ||
| 115 | }, | ||
| 116 | }, | ||
| 117 | { | ||
| 118 | label: "操作", | ||
| 119 | width: "80", | ||
| 120 | render: (h, scope) => { | ||
| 121 | return ( | ||
| 122 | <div> | ||
| 123 | <el-button | ||
| 124 | type="text" | ||
| 125 | disabled={scope.$index == 0} | ||
| 126 | onClick={() => { | ||
| 127 | this.moveUpward(scope.$index, scope.row); | ||
| 128 | }} | ||
| 129 | > | ||
| 130 | 上移 | ||
| 131 | </el-button> | ||
| 132 | <el-button | ||
| 133 | type="text" | ||
| 134 | disabled={scope.$index + 1 == this.tableData.length} | ||
| 135 | onClick={() => { | ||
| 136 | this.moveDown(scope.$index, scope.row); | ||
| 137 | }} | ||
| 138 | > | ||
| 139 | 下移 | ||
| 140 | </el-button> | ||
| 141 | </div> | ||
| 142 | ); | ||
| 143 | }, | ||
| 144 | }, | ||
| 145 | ], | ||
| 146 | key: 0, | ||
| 147 | tableData: [] | ||
| 148 | } | ||
| 149 | }, | ||
| 150 | created () { | ||
| 151 | console.log(this.formData.data, 'formData'); | ||
| 152 | }, | ||
| 153 | methods: { | ||
| 154 | // 材料目录明细初始化 | ||
| 155 | /** | ||
| 156 | * @description: 材料目录明细初始化 | ||
| 157 | * @author: renchao | ||
| 158 | */ | ||
| 159 | clmlInitList () { | ||
| 160 | return new Promise(resolve => { | ||
| 161 | this.unitData = this.$parent.unitData; | ||
| 162 | var formdata = new FormData(); | ||
| 163 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); | ||
| 164 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | ||
| 165 | formdata.append("clfl", 2); | ||
| 166 | InitClml(formdata).then((res) => { | ||
| 167 | if (res.code == 200) { | ||
| 168 | resolve(res.code) | ||
| 169 | if (res.result && res.result.length > 0) { | ||
| 170 | this.data = res.result; | ||
| 171 | } else { | ||
| 172 | this.data = [] | ||
| 173 | } | ||
| 174 | } else { | ||
| 175 | this.$message.error(res.message) | ||
| 176 | } | ||
| 177 | }) | ||
| 178 | }) | ||
| 179 | }, | ||
| 180 | // 上移 | ||
| 181 | /** | ||
| 182 | * @description: 上移 | ||
| 183 | * @param {*} index | ||
| 184 | * @param {*} row | ||
| 185 | * @author: renchao | ||
| 186 | */ | ||
| 187 | moveUpward (index, row) { | ||
| 188 | let obj = { | ||
| 189 | xh: row.xh, | ||
| 190 | bsmSlsq: row.bsmSlsq, | ||
| 191 | moveDirection: "UP", | ||
| 192 | }; | ||
| 193 | // 接口待调 | ||
| 194 | /** | ||
| 195 | * @description: 接口待调 | ||
| 196 | * @param {*} obj | ||
| 197 | * @author: renchao | ||
| 198 | */ | ||
| 199 | moveClml(obj).then(async (res) => { | ||
| 200 | if (res.code == 200) { | ||
| 201 | let res = await this.clmlInitList() | ||
| 202 | if (res == 200) { | ||
| 203 | this.$message({ | ||
| 204 | message: '上移成功', | ||
| 205 | type: 'success' | ||
| 206 | }) | ||
| 207 | this.$parent.setTableData(this.data) | ||
| 208 | } | ||
| 209 | } else { | ||
| 210 | this.$message.error(res.message); | ||
| 211 | } | ||
| 212 | }) | ||
| 213 | }, | ||
| 214 | // 下移 | ||
| 215 | /** | ||
| 216 | * @description: 下移 | ||
| 217 | * @param {*} index | ||
| 218 | * @param {*} row | ||
| 219 | * @author: renchao | ||
| 220 | */ | ||
| 221 | moveDown (index, row) { | ||
| 222 | let obj = { | ||
| 223 | xh: row.xh, | ||
| 224 | bsmSlsq: row.bsmSlsq, | ||
| 225 | moveDirection: "DOWN", | ||
| 226 | } | ||
| 227 | // 接口待调 | ||
| 228 | /** | ||
| 229 | * @description: 接口待调 | ||
| 230 | * @param {*} obj | ||
| 231 | * @author: renchao | ||
| 232 | */ | ||
| 233 | moveClml(obj).then(async (res) => { | ||
| 234 | if (res.code == 200) { | ||
| 235 | let res = await this.clmlInitList() | ||
| 236 | if (res == 200) { | ||
| 237 | this.$message({ | ||
| 238 | message: '下移成功', | ||
| 239 | type: 'success' | ||
| 240 | }) | ||
| 241 | } | ||
| 242 | } else { | ||
| 243 | this.$message.error(res.message); | ||
| 244 | } | ||
| 245 | }) | ||
| 246 | }, | ||
| 247 | // 材料目录删除 | ||
| 248 | /** | ||
| 249 | * @description: 材料目录删除 | ||
| 250 | * @param {*} index | ||
| 251 | * @param {*} row | ||
| 252 | * @author: renchao | ||
| 253 | */ | ||
| 254 | handleDelete (index, row) { | ||
| 255 | let that = this | ||
| 256 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { | ||
| 257 | confirmButtonText: '确定', | ||
| 258 | cancelButtonText: '取消', | ||
| 259 | type: 'warning' | ||
| 260 | }).then(() => { | ||
| 261 | deleteSjClml({ sjBsm: row.bsmSj }).then(async (res) => { | ||
| 262 | if (res.code == 200) { | ||
| 263 | let res = await that.clmlInitList() | ||
| 264 | if (res == 200) { | ||
| 265 | that.$message({ | ||
| 266 | message: "删除成功", | ||
| 267 | type: "success", | ||
| 268 | }) | ||
| 269 | // this.$parent.setTableData(this.data) | ||
| 270 | } | ||
| 271 | } | ||
| 272 | }) | ||
| 273 | }).catch(() => { | ||
| 274 | this.$message({ | ||
| 275 | type: 'info', | ||
| 276 | message: '已取消删除' | ||
| 277 | }) | ||
| 278 | }) | ||
| 279 | }, | ||
| 280 | // 字典 | ||
| 281 | /** | ||
| 282 | * @description: 字典 | ||
| 283 | * @param {*} val | ||
| 284 | * @param {*} code | ||
| 285 | * @author: renchao | ||
| 286 | */ | ||
| 287 | dicStatus (val, code) { | ||
| 288 | let data = store.getters.dictData[code], | ||
| 289 | name = "暂无"; | ||
| 290 | if (data) { | ||
| 291 | data.map((item) => { | ||
| 292 | if (item.dcode == val) { | ||
| 293 | name = item.dname; | ||
| 294 | } | ||
| 295 | }); | ||
| 296 | return name; | ||
| 297 | } | ||
| 298 | } | ||
| 299 | } | ||
| 300 | } | ||
| 301 | </script> | ||
| 302 | <style scoped lang='scss'> | ||
| 303 | @import "~@/styles/mixin.scss"; | ||
| 304 | .clmlmx-box { | ||
| 305 | margin: 0 auto; | ||
| 306 | |||
| 307 | .title { | ||
| 308 | text-align: center; | ||
| 309 | height: 60px; | ||
| 310 | line-height: 60px; | ||
| 311 | border: 1px solid #dfe6ec; | ||
| 312 | font-size: 20px; | ||
| 313 | background: #81d3f81a; | ||
| 314 | margin-bottom: -1px; | ||
| 315 | } | ||
| 316 | } | ||
| 317 | </style> | 
| ... | @@ -220,14 +220,15 @@ class data extends filter { | ... | @@ -220,14 +220,15 @@ class data extends filter { | 
| 220 | label: "房地产交易价格(万元)", | 220 | label: "房地产交易价格(万元)", | 
| 221 | }, | 221 | }, | 
| 222 | { | 222 | { | 
| 223 | prop: "zh", | ||
| 224 | label: "幢号", | ||
| 225 | }, | ||
| 226 | { | ||
| 227 | prop: "xmmc", | 223 | prop: "xmmc", | 
| 228 | label: "项目名称", | 224 | label: "项目名称", | 
| 229 | }, | 225 | }, | 
| 230 | { | 226 | { | 
| 227 | prop: "zh", | ||
| 228 | label: "幢号", | ||
| 229 | }, | ||
| 230 | |||
| 231 | { | ||
| 231 | prop: "zcs", | 232 | prop: "zcs", | 
| 232 | label: "总层数", | 233 | label: "总层数", | 
| 233 | }, | 234 | }, | ... | ... | 
This diff is collapsed.
Click to expand it.
| ... | @@ -62,66 +62,38 @@ | ... | @@ -62,66 +62,38 @@ | 
| 62 | </el-form-item> | 62 | </el-form-item> | 
| 63 | </el-col> | 63 | </el-col> | 
| 64 | </el-row> | 64 | </el-row> | 
| 65 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> | 65 | <el-row :gutter="10" v-if="ruleForm.fdcq1"> | 
| 66 | <el-col :span="8"> | 66 | <el-col :span="8"> | 
| 67 | <el-form-item label="土地使用期限:"> | 67 | <el-form-item label="独用土地面积:"> | 
| 68 | <el-input disabled v-model="ruleForm.fdcq2.tdsyqx"></el-input> | 68 | <el-input disabled v-model="ruleForm.fdcq1.dytdmj"></el-input> | 
| 69 | </el-form-item> | 69 | </el-form-item> | 
| 70 | </el-col> | 70 | </el-col> | 
| 71 | <el-col :span="8"> | 71 | <el-col :span="8"> | 
| 72 | <el-form-item label="规划用途名称:"> | 72 | <el-form-item label="分摊土地面积:"> | 
| 73 | <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input> | 73 | <el-input disabled v-model="ruleForm.fdcq1.fttdmj"></el-input> | 
| 74 | </el-form-item> | 74 | </el-form-item> | 
| 75 | </el-col> | 75 | </el-col> | 
| 76 | <el-col :span="8"> | 76 | <el-col :span="8"> | 
| 77 | <el-form-item label="房屋性质:"> | 77 | <el-form-item label="房地产交易价格:"> | 
| 78 | <el-input disabled v-model="ruleForm.fdcq2.fwxzmc"></el-input> | 78 | <el-input disabled v-model="ruleForm.fdcq1.fdcjyjg"></el-input> | 
| 79 | </el-form-item> | ||
| 80 | </el-col> | ||
| 81 | </el-row> | ||
| 82 | <el-row :gutter="10" v-if="ruleForm.qlxx"> | ||
| 83 | <el-col :span="8"> | ||
| 84 | <el-form-item label="房屋结构:"> | ||
| 85 | <el-input disabled v-model="ruleForm.fdcq2.fwjgmc"></el-input> | ||
| 86 | </el-form-item> | ||
| 87 | </el-col> | ||
| 88 | <el-col :span="8"> | ||
| 89 | <el-form-item label="所在层:"> | ||
| 90 | <el-input disabled v-model="ruleForm.fdcq2.szc"></el-input> | ||
| 91 | </el-form-item> | ||
| 92 | </el-col> | ||
| 93 | <el-col :span="8"> | ||
| 94 | <el-form-item label="总层数:"> | ||
| 95 | <el-input disabled v-model="ruleForm.fdcq2.zcs"></el-input> | ||
| 96 | </el-form-item> | ||
| 97 | </el-col> | ||
| 98 | </el-row> | ||
| 99 | <el-row :gutter="10" v-if="ruleForm.fdcq2"> | ||
| 100 | <el-col :span="8"> | ||
| 101 | <el-form-item label="竣工时间:"> | ||
| 102 | <el-input disabled v-model="ruleForm.fdcq2.jgsj"></el-input> | ||
| 103 | </el-form-item> | ||
| 104 | </el-col> | ||
| 105 | <el-col :span="8"> | ||
| 106 | <el-form-item label="建筑面积:"> | ||
| 107 | <el-input disabled v-model="ruleForm.qlxx.mj"></el-input> | ||
| 108 | </el-form-item> | ||
| 109 | </el-col> | ||
| 110 | <el-col :span="8"> | ||
| 111 | <el-form-item label="专有建筑面积:"> | ||
| 112 | <el-input disabled v-model="ruleForm.fdcq2.zyjzmj"></el-input> | ||
| 113 | </el-form-item> | 79 | </el-form-item> | 
| 114 | </el-col> | 80 | </el-col> | 
| 115 | </el-row> | 81 | </el-row> | 
| 116 | <el-row :gutter="10"> | 82 | <el-row :gutter="10"> | 
| 117 | 83 | <el-col :span="24"> | |
| 118 | <el-col :span="8"> | 84 | <el-form-item label="附记:"> | 
| 119 | <el-form-item label="分摊建筑面积:"> | 85 | <el-input disabled v-model="ruleForm.fdcq1.fj"></el-input> | 
| 120 | <el-input disabled v-model="ruleForm.fdcq2.ftjzmj"></el-input> | ||
| 121 | </el-form-item> | 86 | </el-form-item> | 
| 122 | </el-col> | 87 | </el-col> | 
| 123 | </el-row> | 88 | </el-row> | 
| 124 | <div class="slxx_title title-block"> | 89 | <div class="slxx_title title-block"> | 
| 90 | 房屋多幢明细 | ||
| 91 | <div class="triangle"></div> | ||
| 92 | <fdcqxmTable | ||
| 93 | :ableOperation="ableOperation" | ||
| 94 | :tableData="ruleForm.fdcqxm" | ||
| 95 | @upDateTdytxxList="upDateTdytxxList" /> | ||
| 96 | <div class="slxx_title title-block"> | ||
| 125 | 土地用途 | 97 | 土地用途 | 
| 126 | <div class="triangle"></div> | 98 | <div class="triangle"></div> | 
| 127 | </div> | 99 | </div> | 
| ... | @@ -175,7 +147,7 @@ | ... | @@ -175,7 +147,7 @@ | 
| 175 | <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation" | 147 | <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation" | 
| 176 | :gyfs="ruleForm.slsq.gyfs" /> | 148 | :gyfs="ruleForm.slsq.gyfs" /> | 
| 177 | 149 | ||
| 178 | <div v-if="ruleForm.ywrList && ruleForm.slsq.djlx == '200'"> | 150 | <div v-if="ruleForm.ywrList && ruleForm.qlxx.djlx == '200'"> | 
| 179 | <div class="slxx_title title-block"> | 151 | <div class="slxx_title title-block"> | 
| 180 | 义务人信息 | 152 | 义务人信息 | 
| 181 | <div class="triangle"></div> | 153 | <div class="triangle"></div> | 
| ... | @@ -191,12 +163,13 @@ | ... | @@ -191,12 +163,13 @@ | 
| 191 | <el-col> | 163 | <el-col> | 
| 192 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy"> | 164 | <el-form-item v-if="ruleForm.sldy" label="登记原因:" prop="djyy"> | 
| 193 | <el-input class="textArea" type="textarea" :disabled="!ableOperation" | 165 | <el-input class="textArea" type="textarea" :disabled="!ableOperation" | 
| 194 | v-model="ruleForm.fdcq2.djyy"> | 166 | v-model="ruleForm.fdcq1.djyy"> | 
| 195 | </el-input> | 167 | </el-input> | 
| 196 | </el-form-item> | 168 | </el-form-item> | 
| 197 | </el-col> | 169 | </el-col> | 
| 198 | </el-row> | 170 | </el-row> | 
| 199 | </div> | 171 | </div> | 
| 172 | </div> | ||
| 200 | <el-row class="btn" v-if="ableOperation"> | 173 | <el-row class="btn" v-if="ableOperation"> | 
| 201 | <el-form-item> | 174 | <el-form-item> | 
| 202 | <el-button type="primary" @click="onSubmit">保存</el-button> | 175 | <el-button type="primary" @click="onSubmit">保存</el-button> | 
| ... | @@ -208,6 +181,7 @@ | ... | @@ -208,6 +181,7 @@ | 
| 208 | <script> | 181 | <script> | 
| 209 | import ywmix from "@/views/ywbl/mixin/index" | 182 | import ywmix from "@/views/ywbl/mixin/index" | 
| 210 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 183 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 
| 184 | import fdcqxmTable from "@/views/workflow/components/fdcqxmTable"; | ||
| 211 | import tdytTable from "@/views/workflow/components/tdytTable"; | 185 | import tdytTable from "@/views/workflow/components/tdytTable"; | 
| 212 | import { Init, saveData } from "@/api/workflow/fwsyq1Flow.js"; | 186 | import { Init, saveData } from "@/api/workflow/fwsyq1Flow.js"; | 
| 213 | import { mapGetters } from "vuex"; | 187 | import { mapGetters } from "vuex"; | 
| ... | @@ -231,7 +205,7 @@ | ... | @@ -231,7 +205,7 @@ | 
| 231 | } | 205 | } | 
| 232 | }); | 206 | }); | 
| 233 | }, | 207 | }, | 
| 234 | components: { qlrCommonTable, tdytTable }, | 208 | components: { qlrCommonTable, tdytTable ,fdcqxmTable}, | 
| 235 | computed: { | 209 | computed: { | 
| 236 | ...mapGetters(["dictData", "flag"]), | 210 | ...mapGetters(["dictData", "flag"]), | 
| 237 | }, | 211 | }, | 
| ... | @@ -253,7 +227,7 @@ | ... | @@ -253,7 +227,7 @@ | 
| 253 | slsq: { | 227 | slsq: { | 
| 254 | 228 | ||
| 255 | }, | 229 | }, | 
| 256 | fdcq2: { | 230 | fdcq1: { | 
| 257 | zyjzmj: '', | 231 | zyjzmj: '', | 
| 258 | ftjzmj: '' | 232 | ftjzmj: '' | 
| 259 | }, | 233 | }, | ... | ... | 
- 
Please register or sign in to post a comment