Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
4 changed files
with
70 additions
and
28 deletions
| ... | @@ -31,13 +31,13 @@ | ... | @@ -31,13 +31,13 @@ |
| 31 | </div> | 31 | </div> |
| 32 | </template> | 32 | </template> |
| 33 | <script> | 33 | <script> |
| 34 | import { getLpb } from "@/api/lpcx.js"; | ||
| 34 | import chCpn from "./ch.vue"; | 35 | import chCpn from "./ch.vue"; |
| 35 | import zdyCpn from "./zdys.vue"; | 36 | import zdyCpn from "./zdys.vue"; |
| 36 | import ljzsCpn from "./ljzs.vue"; | 37 | import ljzsCpn from "./ljzs.vue"; |
| 37 | import { getLpb } from "@/api/lpcx.js"; | ||
| 38 | import { startBusinessFlow, choiceBdcdy, againAddSldy } from "@/api/workFlow.js"; | 38 | import { startBusinessFlow, choiceBdcdy, againAddSldy } from "@/api/workFlow.js"; |
| 39 | import jump from "../../ywbl/ywsq/components/mixin/jump"; | 39 | import jump from "../../ywbl/ywsq/components/mixin/jump"; |
| 40 | import store from "@/store/index.js"; | 40 | import store from '@/store/index.js' |
| 41 | import { ywPopupCacel } from "@/utils/popup.js"; | 41 | import { ywPopupCacel } from "@/utils/popup.js"; |
| 42 | export default { | 42 | export default { |
| 43 | mixins: [jump], | 43 | mixins: [jump], |
| ... | @@ -81,6 +81,37 @@ | ... | @@ -81,6 +81,37 @@ |
| 81 | type: Object, | 81 | type: Object, |
| 82 | default: () => { } | 82 | default: () => { } |
| 83 | }, | 83 | }, |
| 84 | name: "", | ||
| 85 | components: { chCpn, zdyCpn, ljzsCpn }, | ||
| 86 | props: { | ||
| 87 | zrzbsm: { | ||
| 88 | type: String, | ||
| 89 | default: "", | ||
| 90 | }, | ||
| 91 | lpbParent: { | ||
| 92 | type: String, | ||
| 93 | default: "isLpb", | ||
| 94 | }, | ||
| 95 | isHb: { | ||
| 96 | type: Boolean, | ||
| 97 | default: true, | ||
| 98 | }, | ||
| 99 | onlyShow: { | ||
| 100 | type: Boolean, | ||
| 101 | default: true, | ||
| 102 | }, | ||
| 103 | showSave: { | ||
| 104 | type: Boolean, | ||
| 105 | default: false, | ||
| 106 | }, | ||
| 107 | scyclx: { | ||
| 108 | type: Number, | ||
| 109 | default: 0, | ||
| 110 | }, | ||
| 111 | sqywInfo: { | ||
| 112 | type: Object, | ||
| 113 | default: () => { } | ||
| 114 | }, | ||
| 84 | isJump: { type: Boolean, default: false }, | 115 | isJump: { type: Boolean, default: false }, |
| 85 | }, | 116 | }, |
| 86 | data () { | 117 | data () { |
| ... | @@ -113,19 +144,6 @@ | ... | @@ -113,19 +144,6 @@ |
| 113 | this.scyclx ? this.getLpb(this.zrzbsm, this.scyclx) : this.getLpb(this.zrzbsm); | 144 | this.scyclx ? this.getLpb(this.zrzbsm, this.scyclx) : this.getLpb(this.zrzbsm); |
| 114 | window.lpbContent = this; | 145 | window.lpbContent = this; |
| 115 | }, | 146 | }, |
| 116 | methods: { | ||
| 117 | /** | ||
| 118 | * @description: 获取当前楼盘表选中户信息 | ||
| 119 | * @param {Array} bsmList | ||
| 120 | * @author: renchao | ||
| 121 | */ | ||
| 122 | getBsmList (bsmList, compFlag) { | ||
| 123 | // 根据本次传入的组件标识删除之前对应组件标识存入hbsmList的数据 | ||
| 124 | this.bsmList = this.bsmList.filter((i) => i.flag != compFlag) | ||
| 125 | // 合并本次数据 | ||
| 126 | this.bsmList = this.bsmList.concat([...new Map(bsmList.map(item => [item.bdcdyh, item])).values()]); | ||
| 127 | // }) | ||
| 128 | }, | ||
| 129 | /** | 147 | /** |
| 130 | * @description: 保存当前楼盘表 | 148 | * @description: 保存当前楼盘表 |
| 131 | * @author: renchao | 149 | * @author: renchao |
| ... | @@ -136,7 +154,6 @@ | ... | @@ -136,7 +154,6 @@ |
| 136 | return; | 154 | return; |
| 137 | } | 155 | } |
| 138 | this.loading = true; | 156 | this.loading = true; |
| 139 | store.dispatch('user/reMenuRefresh', false) | ||
| 140 | againAddSldy({ | 157 | againAddSldy({ |
| 141 | bsmSqyw: this.sqywInfo.bsmSqyw, | 158 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 142 | bsmSlsq: this.sqywInfo.bsmSlsq, | 159 | bsmSlsq: this.sqywInfo.bsmSlsq, |
| ... | @@ -150,18 +167,24 @@ | ... | @@ -150,18 +167,24 @@ |
| 150 | message: '添加成功', | 167 | message: '添加成功', |
| 151 | type: 'success' | 168 | type: 'success' |
| 152 | }) | 169 | }) |
| 153 | store.dispatch('user/reMenuRefresh', true) | ||
| 154 | if (!this.isJump) { | 170 | if (!this.isJump) { |
| 155 | this.jump(res.result, this.sqywInfo.djywbm) | 171 | this.jump(res.result, this.sqywInfo.djywbm) |
| 172 | } else { | ||
| 173 | store.dispatch('user/refreshPage', true); | ||
| 156 | } | 174 | } |
| 175 | //this.close(); | ||
| 157 | this.$popupCacel(); | 176 | this.$popupCacel(); |
| 158 | } else { | 177 | } else { |
| 159 | if (res.result && res.result.length > 0) { | 178 | if (res.result && res.result.length > 0) { |
| 160 | this.$popup("申请错误明细", "components/ywdialog", { width: '36%', formData: { result: res.result } }) | 179 | this.$popup("申请错误明细", "components/ywdialog", { width: '36%', formData: { result: res.result } }) |
| 161 | } else { | 180 | } else { |
| 181 | if (res.result && res.result.length > 0) { | ||
| 182 | this.$popup("申请错误明细", "components/ywdialog", { width: '36%', formData: { result: res.result } }) | ||
| 183 | } else { | ||
| 162 | this.$popup("申请错误明细", "components/ywdialog", { width: '36%', formData: { message: res.message } }) | 184 | this.$popup("申请错误明细", "components/ywdialog", { width: '36%', formData: { message: res.message } }) |
| 163 | } | 185 | } |
| 164 | } | 186 | } |
| 187 | } | ||
| 165 | }).catch(() => { | 188 | }).catch(() => { |
| 166 | this.loading = false | 189 | this.loading = false |
| 167 | }) | 190 | }) |
| ... | @@ -206,6 +229,12 @@ | ... | @@ -206,6 +229,12 @@ |
| 206 | * @author: renchao | 229 | * @author: renchao |
| 207 | */ | 230 | */ |
| 208 | getLpb (zrzbsm, scyclx, actual) { | 231 | getLpb (zrzbsm, scyclx, actual) { |
| 232 | if (!zrzbsm) { | ||
| 233 | this.$message({ | ||
| 234 | message: "暂无楼盘表", | ||
| 235 | type: "warning", | ||
| 236 | }); | ||
| 237 | } else { | ||
| 209 | getLpb(zrzbsm, scyclx).then((res) => { | 238 | getLpb(zrzbsm, scyclx).then((res) => { |
| 210 | if (res.code == 200) { | 239 | if (res.code == 200) { |
| 211 | if (scyclx) { | 240 | if (scyclx) { |
| ... | @@ -214,8 +243,10 @@ | ... | @@ -214,8 +243,10 @@ |
| 214 | this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb; | 243 | this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb; |
| 215 | } | 244 | } |
| 216 | } else { | 245 | } else { |
| 217 | res.result.lpb.ljzs = res.result.lpb.ljzs.sort(this.compare("place")); | 246 | this.$message({ |
| 218 | this.lpbData = res.result.lpb == null ? this.lpbData : res.result.lpb; | 247 | message: res.message, |
| 248 | type: "warning", | ||
| 249 | }); | ||
| 219 | } | 250 | } |
| 220 | } else { | 251 | } else { |
| 221 | this.$message({ | 252 | this.$message({ |
| ... | @@ -224,6 +255,8 @@ | ... | @@ -224,6 +255,8 @@ |
| 224 | }); | 255 | }); |
| 225 | } | 256 | } |
| 226 | }); | 257 | }); |
| 258 | } | ||
| 259 | |||
| 227 | }, | 260 | }, |
| 228 | //户右键点击事件 | 261 | //户右键点击事件 |
| 229 | /** | 262 | /** | ... | ... |
| ... | @@ -30,17 +30,17 @@ | ... | @@ -30,17 +30,17 @@ |
| 30 | <el-row> | 30 | <el-row> |
| 31 | <el-col :span="3"> | 31 | <el-col :span="3"> |
| 32 | <el-form-item label="身份证读卡器"> | 32 | <el-form-item label="身份证读卡器"> |
| 33 | <el-button type="text" icon="el-icon-tickets" @click="readClick">读取</el-button> | 33 | <el-button type="text" icon="el-icon-tickets" :disabled="show" @click="readClick">读取</el-button> |
| 34 | </el-form-item> | 34 | </el-form-item> |
| 35 | </el-col> | 35 | </el-col> |
| 36 | <el-col :span="5"> | 36 | <el-col :span="5"> |
| 37 | <el-form-item label="领证人" prop="lzrxm" label-width="70px"> | 37 | <el-form-item label="领证人" prop="lzrxm" label-width="70px"> |
| 38 | <el-input v-model="ruleForm.lzrxm"></el-input> | 38 | <el-input :disabled="show" v-model="ruleForm.lzrxm"></el-input> |
| 39 | </el-form-item> | 39 | </el-form-item> |
| 40 | </el-col> | 40 | </el-col> |
| 41 | <el-col :span="5"> | 41 | <el-col :span="5"> |
| 42 | <el-form-item label="证件类型" prop="lzrzjlb" label-width="80px"> | 42 | <el-form-item label="证件类型" prop="lzrzjlb" label-width="80px"> |
| 43 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | 43 | <el-select :disabled="show" v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> |
| 44 | <el-option v-for="item in lzrzjlbData" :key="item.dcode" :label="item.dname" :value="item.dcode"> | 44 | <el-option v-for="item in lzrzjlbData" :key="item.dcode" :label="item.dname" :value="item.dcode"> |
| 45 | </el-option> | 45 | </el-option> |
| 46 | </el-select> | 46 | </el-select> |
| ... | @@ -48,12 +48,12 @@ | ... | @@ -48,12 +48,12 @@ |
| 48 | </el-col> | 48 | </el-col> |
| 49 | <el-col :span="5"> | 49 | <el-col :span="5"> |
| 50 | <el-form-item label="证件号" prop="lzrzjh" label-width="70px"> | 50 | <el-form-item label="证件号" prop="lzrzjh" label-width="70px"> |
| 51 | <el-input v-model="ruleForm.lzrzjh"></el-input> | 51 | <el-input :disabled="show" v-model="ruleForm.lzrzjh"></el-input> |
| 52 | </el-form-item> | 52 | </el-form-item> |
| 53 | </el-col> | 53 | </el-col> |
| 54 | <el-col :span="5"> | 54 | <el-col :span="5"> |
| 55 | <el-form-item label="领证人电话" prop="lzrdh"> | 55 | <el-form-item label="领证人电话" prop="lzrdh"> |
| 56 | <el-input v-model="ruleForm.lzrdh"></el-input> | 56 | <el-input :disabled="show" v-model="ruleForm.lzrdh"></el-input> |
| 57 | </el-form-item> | 57 | </el-form-item> |
| 58 | </el-col> | 58 | </el-col> |
| 59 | </el-row> | 59 | </el-row> |
| ... | @@ -133,7 +133,8 @@ | ... | @@ -133,7 +133,8 @@ |
| 133 | total: 0, | 133 | total: 0, |
| 134 | columns: datas.columns().lzgrid, | 134 | columns: datas.columns().lzgrid, |
| 135 | data: [] | 135 | data: [] |
| 136 | } | 136 | }, |
| 137 | show:true | ||
| 137 | } | 138 | } |
| 138 | }, | 139 | }, |
| 139 | mounted () { | 140 | mounted () { |
| ... | @@ -202,6 +203,7 @@ | ... | @@ -202,6 +203,7 @@ |
| 202 | getUnclaimedBdcqz({ bsmSlsq: Vue.prototype.$currentRoute.query.bsmSlsq }).then(res => { | 203 | getUnclaimedBdcqz({ bsmSlsq: Vue.prototype.$currentRoute.query.bsmSlsq }).then(res => { |
| 203 | if (res.code === 200) { | 204 | if (res.code === 200) { |
| 204 | this.tableData.data = res.result.list; | 205 | this.tableData.data = res.result.list; |
| 206 | this.show=!res.result.list.length>0; | ||
| 205 | this.$nextTick(() => { | 207 | this.$nextTick(() => { |
| 206 | this.tableData.data.forEach(item => { | 208 | this.tableData.data.forEach(item => { |
| 207 | that.$refs.table.toggleRowSelection(item) | 209 | that.$refs.table.toggleRowSelection(item) | ... | ... |
| ... | @@ -380,9 +380,9 @@ | ... | @@ -380,9 +380,9 @@ |
| 380 | </el-col> | 380 | </el-col> |
| 381 | </el-row> | 381 | </el-row> |
| 382 | <qlrCommonTable | 382 | <qlrCommonTable |
| 383 | @upDateQlrxxList="upDateQlrxxList" | ||
| 384 | :disabled="!viewEdit" | ||
| 385 | :tableData="ruleForm.qlrList" | 383 | :tableData="ruleForm.qlrList" |
| 384 | @upDateQlrxxList="upDateQlrxxList" | ||
| 385 | :disabled="viewEdit" | ||
| 386 | :gyfs="ruleForm.sldy.gyfs" /> | 386 | :gyfs="ruleForm.sldy.gyfs" /> |
| 387 | <div class="slxx_title title-block"> | 387 | <div class="slxx_title title-block"> |
| 388 | 登记原因 | 388 | 登记原因 | ... | ... |
| ... | @@ -98,6 +98,7 @@ | ... | @@ -98,6 +98,7 @@ |
| 98 | import table from "@/utils/mixin/table"; | 98 | import table from "@/utils/mixin/table"; |
| 99 | import { datas, sendThis } from "./djbcxdata"; | 99 | import { datas, sendThis } from "./djbcxdata"; |
| 100 | import { getDjbBysearch } from "@/api/search.js"; | 100 | import { getDjbBysearch } from "@/api/search.js"; |
| 101 | import { getZrzListByBsmSlsq } from "@/api/workflow/zjgcdyFlow.js"; | ||
| 101 | 102 | ||
| 102 | export default { | 103 | export default { |
| 103 | name: "djbcx", | 104 | name: "djbcx", |
| ... | @@ -137,7 +138,8 @@ | ... | @@ -137,7 +138,8 @@ |
| 137 | }, | 138 | }, |
| 138 | qllxs: [], | 139 | qllxs: [], |
| 139 | isDialog: false, | 140 | isDialog: false, |
| 140 | djbxxData: {} | 141 | djbxxData: {}, |
| 142 | zrzbsm:"" | ||
| 141 | } | 143 | } |
| 142 | }, | 144 | }, |
| 143 | computed: { | 145 | computed: { |
| ... | @@ -188,6 +190,11 @@ | ... | @@ -188,6 +190,11 @@ |
| 188 | * @author: renchao | 190 | * @author: renchao |
| 189 | */ | 191 | */ |
| 190 | handleLpbClick (item) { | 192 | handleLpbClick (item) { |
| 193 | let params = {zdbsm:item.bsmZd}; | ||
| 194 | getZrzListByBsmSlsq(params).then((res) => { | ||
| 195 | if (res.code === 200) { | ||
| 196 | } | ||
| 197 | }); | ||
| 191 | console.log("zrzbsm",item,item.zrzbsm); | 198 | console.log("zrzbsm",item,item.zrzbsm); |
| 192 | this.$popupDialog('楼盘表', 'lpb/index', { | 199 | this.$popupDialog('楼盘表', 'lpb/index', { |
| 193 | bsm: item.zrzbsm, | 200 | bsm: item.zrzbsm, | ... | ... |
-
Please register or sign in to post a comment