Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
16 changed files
with
279 additions
and
231 deletions
| 1 | /* | 1 | /* |
| 2 | * @Description: 材料信息 | 2 | * @Description: 材料信息 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-08 13:41:46 | 4 | * @LastEditTime: 2023-09-13 11:09:48 |
| 5 | */ | 5 | */ |
| 6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
| 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
| ... | @@ -49,9 +49,9 @@ export function saveClml (data) { | ... | @@ -49,9 +49,9 @@ export function saveClml (data) { |
| 49 | * @param {*} data | 49 | * @param {*} data |
| 50 | * @author: renchao | 50 | * @author: renchao |
| 51 | */ | 51 | */ |
| 52 | export function updateClml (data) { | 52 | export function updateClml (data, bsmSldy) { |
| 53 | return request({ | 53 | return request({ |
| 54 | url: SERVER.SERVERAPI + '/rest/ywbl/clxx/updateClml', | 54 | url: SERVER.SERVERAPI + '/rest/ywbl/clxx/updateClml/' + bsmSldy, |
| 55 | method: 'post', | 55 | method: 'post', |
| 56 | data | 56 | data |
| 57 | }) | 57 | }) | ... | ... |
| ... | @@ -278,7 +278,7 @@ | ... | @@ -278,7 +278,7 @@ |
| 278 | } | 278 | } |
| 279 | uploadBatch(formData).then((res) => { | 279 | uploadBatch(formData).then((res) => { |
| 280 | if (res.code == 200) { | 280 | if (res.code == 200) { |
| 281 | this.$emit('updateList', res.result) | 281 | this.$emit('updateList', { children: res.result, bsmSj: this.previewImg.bsmSj }) |
| 282 | this.$message({ | 282 | this.$message({ |
| 283 | message: '上传成功!', | 283 | message: '上传成功!', |
| 284 | type: 'success' | 284 | type: 'success' | ... | ... |
| ... | @@ -225,39 +225,41 @@ export default { | ... | @@ -225,39 +225,41 @@ export default { |
| 225 | * @author: renchao | 225 | * @author: renchao |
| 226 | */ | 226 | */ |
| 227 | submitForm () { | 227 | submitForm () { |
| 228 | debugger | ||
| 229 | if (this.bsmList.length == 0) { | 228 | if (this.bsmList.length == 0) { |
| 230 | this.$message.error("请至少选择一条数据"); | 229 | this.$message.error("请至少选择一条数据"); |
| 231 | return; | 230 | return; |
| 232 | } | 231 | } |
| 233 | this.loading = true | 232 | this.loading = true |
| 234 | startBusinessFlow({ | 233 | this.bsmList.forEach(item=>{ |
| 235 | bsmSqyw: this.sqywInfo.bsmSqyw, | 234 | item['bdcdyid'] = item.dyhbsm |
| 236 | bdcdysz: this.bsmList, | 235 | }) |
| 237 | }).then((res) => { | 236 | startBusinessFlow({ |
| 238 | this.loading = false | 237 | bsmSqyw: this.sqywInfo.bsmSqyw, |
| 239 | if (res.code == 200) { | 238 | bdcdysz: this.bsmList, |
| 240 | this.$message({ | 239 | }).then((res) => { |
| 241 | showClose: true, | 240 | this.loading = false |
| 242 | message: '发起申请成功', | 241 | if (res.code == 200) { |
| 243 | type: 'success' | 242 | this.$message({ |
| 244 | }) | 243 | showClose: true, |
| 245 | if (!this.isJump) { | 244 | message: '发起申请成功', |
| 246 | this.jump(res.result, this.sqywInfo.djywbm) | 245 | type: 'success' |
| 247 | } else { | 246 | }) |
| 248 | store.dispatch('user/refreshPage', true); | 247 | if (!this.isJump) { |
| 249 | } | 248 | this.jump(res.result, this.sqywInfo.djywbm) |
| 250 | this.$popupCacel() | ||
| 251 | } else { | 249 | } else { |
| 252 | if (res.result && res.result.length > 0) { | 250 | store.dispatch('user/refreshPage', true); |
| 253 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
| 254 | } else { | ||
| 255 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
| 256 | } | ||
| 257 | } | 251 | } |
| 258 | }).catch(() => { | 252 | this.$popupCacel() |
| 259 | this.loading = false | 253 | } else { |
| 260 | }) | 254 | if (res.result && res.result.length > 0) { |
| 255 | this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{result: res.result} }) | ||
| 256 | } else { | ||
| 257 | this.$popup("申请错误明细", "components/ywdialog", { width:'36%', formData:{message: res.message} }) | ||
| 258 | } | ||
| 259 | } | ||
| 260 | }).catch(() => { | ||
| 261 | this.loading = false | ||
| 262 | }) | ||
| 261 | }, | 263 | }, |
| 262 | }, | 264 | }, |
| 263 | computed:{ | 265 | computed:{ | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-08 14:18:42 | 4 | * @LastEditTime: 2023-09-13 11:26:39 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clxx"> | 7 | <div class="clxx"> |
| ... | @@ -173,7 +173,6 @@ | ... | @@ -173,7 +173,6 @@ |
| 173 | formdata.append("bsmSldy", this.$parent.bsmRepair); | 173 | formdata.append("bsmSldy", this.$parent.bsmRepair); |
| 174 | formdata.append("clfl", 3); | 174 | formdata.append("clfl", 3); |
| 175 | } else { | 175 | } else { |
| 176 | //formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); | ||
| 177 | formdata.append("bsmSldy", this.$parent.currentSelectProps.bsmSldy); | 176 | formdata.append("bsmSldy", this.$parent.currentSelectProps.bsmSldy); |
| 178 | formdata.append("clfl", 2); | 177 | formdata.append("clfl", 2); |
| 179 | } | 178 | } |
| ... | @@ -235,7 +234,7 @@ | ... | @@ -235,7 +234,7 @@ |
| 235 | this.previewImg.imgList = []; | 234 | this.previewImg.imgList = []; |
| 236 | this.tableData.forEach((item, index) => { | 235 | this.tableData.forEach((item, index) => { |
| 237 | if (this.treeCheckId == item.bsmSj) { | 236 | if (this.treeCheckId == item.bsmSj) { |
| 238 | item.children = []; | 237 | item.ys = 0; |
| 239 | that.treeCheckIndex = index; | 238 | that.treeCheckIndex = index; |
| 240 | } | 239 | } |
| 241 | }); | 240 | }); |
| ... | @@ -309,24 +308,6 @@ | ... | @@ -309,24 +308,6 @@ |
| 309 | this.showImg = item; | 308 | this.showImg = item; |
| 310 | this.titleYs = index + 1; | 309 | this.titleYs = index + 1; |
| 311 | }, | 310 | }, |
| 312 | /** | ||
| 313 | * @description: 字典 | ||
| 314 | * @param {*} val | ||
| 315 | * @param {*} code | ||
| 316 | * @author: renchao | ||
| 317 | */ | ||
| 318 | dicStatus (val, code) { | ||
| 319 | let data = this.$store.getters.dictData[code], | ||
| 320 | name = "暂无"; | ||
| 321 | if (data) { | ||
| 322 | data.map((item) => { | ||
| 323 | if (item.dcode == val) { | ||
| 324 | name = item.dname; | ||
| 325 | } | ||
| 326 | }); | ||
| 327 | return name; | ||
| 328 | } | ||
| 329 | }, | ||
| 330 | //查看明细 | 311 | //查看明细 |
| 331 | viewDetail () { | 312 | viewDetail () { |
| 332 | this.$store.dispatch("user/reWorkFresh", false); | 313 | this.$store.dispatch("user/reWorkFresh", false); |
| ... | @@ -335,6 +316,7 @@ | ... | @@ -335,6 +316,7 @@ |
| 335 | "workflow/components/dialog/clxxDetailDialog", | 316 | "workflow/components/dialog/clxxDetailDialog", |
| 336 | { | 317 | { |
| 337 | data: this.tableData, | 318 | data: this.tableData, |
| 319 | bsmSldy: this.$parent.currentSelectProps.bsmSldy, | ||
| 338 | unitData: this.$parent.unitData, | 320 | unitData: this.$parent.unitData, |
| 339 | ableOperation: this.$parent.ableOperation, | 321 | ableOperation: this.$parent.ableOperation, |
| 340 | bsmRepair: this.$parent.bsmRepair | 322 | bsmRepair: this.$parent.bsmRepair | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-13 10:33:50 | 4 | * @LastEditTime: 2023-09-13 13:48:47 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
| 8 | <div style="text-align:right"> | ||
| 9 | <el-button type="primary" icon="el-icon-top">上移</el-button> | ||
| 10 | <el-button type="primary" icon="el-icon-bottom">下移</el-button> | ||
| 11 | </div> | ||
| 12 | <lb-table :column="column" :key="key" row-key="bsmSj" ref="listTable" :heightNumSetting="true" :calcHeight="600" | 8 | <lb-table :column="column" :key="key" row-key="bsmSj" ref="listTable" :heightNumSetting="true" :calcHeight="600" |
| 13 | :pagination="false" :data="tableData"> | 9 | :pagination="false" :data="tableData"> |
| 14 | </lb-table> | 10 | </lb-table> |
| ... | @@ -38,10 +34,6 @@ | ... | @@ -38,10 +34,6 @@ |
| 38 | sortable: null, | 34 | sortable: null, |
| 39 | column: [ | 35 | column: [ |
| 40 | { | 36 | { |
| 41 | label: "选择", | ||
| 42 | type: 'selection' | ||
| 43 | }, | ||
| 44 | { | ||
| 45 | prop: "isrequired", | 37 | prop: "isrequired", |
| 46 | label: "是否必选", | 38 | label: "是否必选", |
| 47 | width: "80", | 39 | width: "80", |
| ... | @@ -66,7 +58,7 @@ | ... | @@ -66,7 +58,7 @@ |
| 66 | label: "材料名称", | 58 | label: "材料名称", |
| 67 | render: (h, scope) => { | 59 | render: (h, scope) => { |
| 68 | return ( | 60 | return ( |
| 69 | (this.formData.ableOperation && scope.row.isrequired != '1') ? | 61 | (this.formData.ableOperation && scope.row.sfxjcl == '1') ? |
| 70 | <el-input value={scope.row.sjmc} onInput={(val) => { scope.row.sjmc = val }}></el-input> : <span>{scope.row.sjmc}</span> | 62 | <el-input value={scope.row.sjmc} onInput={(val) => { scope.row.sjmc = val }}></el-input> : <span>{scope.row.sjmc}</span> |
| 71 | ) | 63 | ) |
| 72 | } | 64 | } |
| ... | @@ -132,23 +124,35 @@ | ... | @@ -132,23 +124,35 @@ |
| 132 | }, | 124 | }, |
| 133 | }, | 125 | }, |
| 134 | { | 126 | { |
| 127 | label: "是否新建材料", | ||
| 128 | width: "80", | ||
| 129 | render: (h, scope) => { | ||
| 130 | if (scope.row.sfxjcl && scope.row.sfxjcl == '1') { | ||
| 131 | return ( | ||
| 132 | <span>是</span> | ||
| 133 | ); | ||
| 134 | } else { | ||
| 135 | return ( | ||
| 136 | <span>否</span> | ||
| 137 | ); | ||
| 138 | } | ||
| 139 | }, | ||
| 140 | }, | ||
| 141 | { | ||
| 135 | label: "操作", | 142 | label: "操作", |
| 136 | width: "100", | 143 | width: "100", |
| 137 | render: (h, scope) => { | 144 | render: (h, scope) => { |
| 138 | return ( | 145 | return ( |
| 139 | <div> | 146 | <el-button |
| 140 | <el-button | 147 | type="text" |
| 141 | type="text" | 148 | icon="el-icon-delete" |
| 142 | icon="el-icon-delete" | 149 | disabled={!(scope.row.ys == 0 && scope.row.sfxjcl == '1') || !this.formData.ableOperation} |
| 143 | disabled={scope.row.ys == 0 || !this.formData.ableOperation} | 150 | onClick={() => { |
| 144 | onClick={() => { | 151 | this.handleDelete(scope.$index, scope.row); |
| 145 | this.handleDelete(scope.$index, scope.row); | 152 | }} |
| 146 | }} | 153 | > |
| 147 | > | 154 | 删除 |
| 148 | 删除 | 155 | </el-button> |
| 149 | </el-button> | ||
| 150 | |||
| 151 | </div > | ||
| 152 | ) | 156 | ) |
| 153 | } | 157 | } |
| 154 | } | 158 | } |
| ... | @@ -177,7 +181,8 @@ | ... | @@ -177,7 +181,8 @@ |
| 177 | methods: { | 181 | methods: { |
| 178 | handleSubmit () { | 182 | handleSubmit () { |
| 179 | this.loading = true | 183 | this.loading = true |
| 180 | updateClml(this.tableData).then(res => { | 184 | store.dispatch('user/reWorkFresh', false) |
| 185 | updateClml(this.tableData, this.formData.bsmSldy).then(res => { | ||
| 181 | this.loading = false | 186 | this.loading = false |
| 182 | if (res.code == 200) { | 187 | if (res.code == 200) { |
| 183 | this.$message({ | 188 | this.$message({ |
| ... | @@ -227,16 +232,13 @@ | ... | @@ -227,16 +232,13 @@ |
| 227 | * @param {*} row | 232 | * @param {*} row |
| 228 | */ | 233 | */ |
| 229 | handleDelete (index, row) { | 234 | handleDelete (index, row) { |
| 230 | if (row.children.length > 0) { | ||
| 231 | this.$message.error('页数存在不可删除'); | ||
| 232 | return | ||
| 233 | } | ||
| 234 | let that = this | 235 | let that = this |
| 235 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { | 236 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { |
| 236 | confirmButtonText: '确定', | 237 | confirmButtonText: '确定', |
| 237 | cancelButtonText: '取消', | 238 | cancelButtonText: '取消', |
| 238 | type: 'warning' | 239 | type: 'warning' |
| 239 | }).then(() => { | 240 | }).then(() => { |
| 241 | this.tableData.splice(index, 1); | ||
| 240 | }).catch(() => { | 242 | }).catch(() => { |
| 241 | this.$message({ | 243 | this.$message({ |
| 242 | type: 'info', | 244 | type: 'info', | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: workFrame左侧菜单列表-普通 | 2 | * @Description: workFrame左侧菜单列表-普通 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-12 13:29:54 | 4 | * @LastEditTime: 2023-09-13 14:21:14 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 7 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
| ... | @@ -104,7 +104,7 @@ | ... | @@ -104,7 +104,7 @@ |
| 104 | that.currentSelectProps = res.result[0]; | 104 | that.currentSelectProps = res.result[0]; |
| 105 | that.$emit('getCurrentSelectProps', this.currentSelectProps); | 105 | that.$emit('getCurrentSelectProps', this.currentSelectProps); |
| 106 | that.judgeBatchShow(); | 106 | that.judgeBatchShow(); |
| 107 | if (sessionStorage.getItem('keyPath')) { | 107 | if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) { |
| 108 | that.unitClick(sessionStorage.getItem('keyPath') - 0) | 108 | that.unitClick(sessionStorage.getItem('keyPath') - 0) |
| 109 | } else { | 109 | } else { |
| 110 | that.unitClick(0) | 110 | that.unitClick(0) |
| ... | @@ -123,7 +123,7 @@ | ... | @@ -123,7 +123,7 @@ |
| 123 | this.currentSelectProps = res.result[0]; | 123 | this.currentSelectProps = res.result[0]; |
| 124 | this.$emit('getCurrentSelectProps', this.currentSelectProps); | 124 | this.$emit('getCurrentSelectProps', this.currentSelectProps); |
| 125 | this.judgeBatchShow(); | 125 | this.judgeBatchShow(); |
| 126 | if (sessionStorage.getItem('keyPath')) { | 126 | if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) { |
| 127 | that.unitClick(sessionStorage.getItem('keyPath') - 0) | 127 | that.unitClick(sessionStorage.getItem('keyPath') - 0) |
| 128 | } else { | 128 | } else { |
| 129 | that.unitClick(0) | 129 | that.unitClick(0) |
| ... | @@ -208,6 +208,7 @@ | ... | @@ -208,6 +208,7 @@ |
| 208 | this.currentSelectProps.batchOperation = true; | 208 | this.currentSelectProps.batchOperation = true; |
| 209 | this.activeIndex = "-1"; | 209 | this.activeIndex = "-1"; |
| 210 | this.$parent.stepForm(0); | 210 | this.$parent.stepForm(0); |
| 211 | sessionStorage.setItem('keyPath', this.activeIndex); | ||
| 211 | }, | 212 | }, |
| 212 | /** | 213 | /** |
| 213 | * @description: 批量操作 | 214 | * @description: 批量操作 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-12 16:39:53 | 4 | * @LastEditTime: 2023-09-13 13:57:48 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="container"> | 7 | <div class="container"> |
| ... | @@ -258,6 +258,9 @@ | ... | @@ -258,6 +258,9 @@ |
| 258 | } else { | 258 | } else { |
| 259 | this.tabName = res.result[0].value; | 259 | this.tabName = res.result[0].value; |
| 260 | } | 260 | } |
| 261 | if (sessionStorage.getItem('activeName') == this.tabName) { | ||
| 262 | this.fresh++; | ||
| 263 | } | ||
| 261 | this.ableOperation = this.tabList[0].ableOperation; | 264 | this.ableOperation = this.tabList[0].ableOperation; |
| 262 | //批量操作无分屏按钮 | 265 | //批量操作无分屏按钮 |
| 263 | if (index != null) { | 266 | if (index != null) { |
| ... | @@ -298,7 +301,6 @@ | ... | @@ -298,7 +301,6 @@ |
| 298 | true | 301 | true |
| 299 | ); | 302 | ); |
| 300 | }, | 303 | }, |
| 301 | //选项卡切换事件 | ||
| 302 | /** | 304 | /** |
| 303 | * @description: 右侧表单选项卡事件 | 305 | * @description: 右侧表单选项卡事件 |
| 304 | * @param {*} handleClick | 306 | * @param {*} handleClick |
| ... | @@ -311,8 +313,8 @@ | ... | @@ -311,8 +313,8 @@ |
| 311 | if (p) { | 313 | if (p) { |
| 312 | this.ableOperation = this.tabList[a.index].ableOperation; | 314 | this.ableOperation = this.tabList[a.index].ableOperation; |
| 313 | } | 315 | } |
| 314 | }, | 316 | } |
| 315 | }, | 317 | } |
| 316 | }; | 318 | }; |
| 317 | </script> | 319 | </script> |
| 318 | <style scoped lang="scss"> | 320 | <style scoped lang="scss"> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-13 09:18:13 | 4 | * @LastEditTime: 2023-09-13 13:46:03 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
| 8 | <lb-table :column="column" :key="key" :heightNumSetting="true" :calcHeight="500" :pagination="false" :data="tableData"> | 8 | <lb-table :column="column" :key="key" row-key="bsmMaterial" ref="listTable" :heightNumSetting="true" :calcHeight="500" :pagination="false" |
| 9 | :data="tableData"> | ||
| 9 | </lb-table> | 10 | </lb-table> |
| 10 | <div class="text-center"> | 11 | <div class="text-center"> |
| 11 | <el-button @click="handleCancel">取消</el-button> | 12 | <el-button @click="handleCancel">取消</el-button> |
| ... | @@ -30,23 +31,27 @@ | ... | @@ -30,23 +31,27 @@ |
| 30 | data () { | 31 | data () { |
| 31 | return { | 32 | return { |
| 32 | loading: false, | 33 | loading: false, |
| 34 | sortable: null, | ||
| 33 | column: [ | 35 | column: [ |
| 34 | { | 36 | { |
| 35 | width: '50', | 37 | prop: "isrequired", |
| 36 | renderHeader: (h, scope) => { | 38 | label: "是否必选", |
| 37 | return <div> { | 39 | width: "80", |
| 38 | <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i> | ||
| 39 | } | ||
| 40 | </div> | ||
| 41 | }, | ||
| 42 | render: (h, scope) => { | 40 | render: (h, scope) => { |
| 43 | return ( | 41 | if (scope.row.isrequired === "1") { |
| 44 | <div> | 42 | return ( |
| 45 | { | 43 | <div> |
| 46 | <i class="el-icon-minus pointer" onClick={() => { this.handleDelete(scope.$index, scope.row) }}></i> | 44 | <span>必选</span> |
| 47 | } | 45 | </div> |
| 48 | </div> | 46 | ); |
| 49 | ) | 47 | } |
| 48 | else { | ||
| 49 | return ( | ||
| 50 | <div> | ||
| 51 | <span>可选</span> | ||
| 52 | </div> | ||
| 53 | ) | ||
| 54 | } | ||
| 50 | } | 55 | } |
| 51 | }, | 56 | }, |
| 52 | { | 57 | { |
| ... | @@ -85,6 +90,15 @@ | ... | @@ -85,6 +90,15 @@ |
| 85 | } | 90 | } |
| 86 | }, | 91 | }, |
| 87 | { | 92 | { |
| 93 | label: "扫描时间", | ||
| 94 | width: "140", | ||
| 95 | render: (h, scope) => { | ||
| 96 | return ( | ||
| 97 | <span>{scope.row.sjsj}</span> | ||
| 98 | ) | ||
| 99 | } | ||
| 100 | }, | ||
| 101 | { | ||
| 88 | label: "页数", | 102 | label: "页数", |
| 89 | width: "80", | 103 | width: "80", |
| 90 | render: (h, scope) => { | 104 | render: (h, scope) => { |
| ... | @@ -104,30 +118,35 @@ | ... | @@ -104,30 +118,35 @@ |
| 104 | }, | 118 | }, |
| 105 | }, | 119 | }, |
| 106 | { | 120 | { |
| 121 | label: "是否新建材料", | ||
| 122 | width: "80", | ||
| 123 | render: (h, scope) => { | ||
| 124 | if (scope.row.sfxjcl && scope.row.sfxjcl == '1') { | ||
| 125 | return ( | ||
| 126 | <span>是</span> | ||
| 127 | ); | ||
| 128 | } else { | ||
| 129 | return ( | ||
| 130 | <span>否</span> | ||
| 131 | ); | ||
| 132 | } | ||
| 133 | }, | ||
| 134 | }, | ||
| 135 | { | ||
| 107 | label: "操作", | 136 | label: "操作", |
| 108 | width: "100", | 137 | width: "100", |
| 109 | render: (h, scope) => { | 138 | render: (h, scope) => { |
| 110 | return ( | 139 | return ( |
| 111 | <div> | 140 | <el-button |
| 112 | <el-button | 141 | type="text" |
| 113 | type="text" | 142 | icon="el-icon-delete" |
| 114 | disabled={scope.$index == 0} | 143 | disabled={!(scope.row.count == 0 && scope.row.sfxjcl == '1') || !this.formData.ableOperation} |
| 115 | onClick={() => { | 144 | onClick={() => { |
| 116 | this.moveUpward(scope.$index, scope.row); | 145 | this.handleDelete(scope.$index, scope.row); |
| 117 | }} | 146 | }} |
| 118 | > | 147 | > |
| 119 | 上移 | 148 | 删除 |
| 120 | </el-button> | 149 | </el-button> |
| 121 | <el-button | ||
| 122 | type="text" | ||
| 123 | disabled={scope.$index + 1 == this.tableData.length} | ||
| 124 | onClick={() => { | ||
| 125 | this.moveDown(scope.$index, scope.row); | ||
| 126 | }} | ||
| 127 | > | ||
| 128 | 下移 | ||
| 129 | </el-button> | ||
| 130 | </div > | ||
| 131 | ) | 150 | ) |
| 132 | } | 151 | } |
| 133 | } | 152 | } |
| ... | @@ -136,6 +155,14 @@ | ... | @@ -136,6 +155,14 @@ |
| 136 | tableData: [] | 155 | tableData: [] |
| 137 | } | 156 | } |
| 138 | }, | 157 | }, |
| 158 | mounted () { | ||
| 159 | this.initSort() | ||
| 160 | }, | ||
| 161 | beforeDestroy () { | ||
| 162 | if (this.sortable) { | ||
| 163 | this.sortable.destroy(); | ||
| 164 | } | ||
| 165 | }, | ||
| 139 | watch: { | 166 | watch: { |
| 140 | 'formData.data': { | 167 | 'formData.data': { |
| 141 | handler: function (val, oldVal) { | 168 | handler: function (val, oldVal) { |
| ... | @@ -160,6 +187,7 @@ | ... | @@ -160,6 +187,7 @@ |
| 160 | }, | 187 | }, |
| 161 | handleSubmit () { | 188 | handleSubmit () { |
| 162 | this.loading = true | 189 | this.loading = true |
| 190 | store.dispatch('user/reWorkFresh', false) | ||
| 163 | updateClml(this.tableData).then(res => { | 191 | updateClml(this.tableData).then(res => { |
| 164 | this.loading = false | 192 | this.loading = false |
| 165 | if (res.code == 200) { | 193 | if (res.code == 200) { |
| ... | @@ -198,60 +226,6 @@ | ... | @@ -198,60 +226,6 @@ |
| 198 | }) | 226 | }) |
| 199 | }, | 227 | }, |
| 200 | /** | 228 | /** |
| 201 | * @description: 上移 | ||
| 202 | * @param {*} index | ||
| 203 | * @param {*} row | ||
| 204 | * @author: renchao | ||
| 205 | */ | ||
| 206 | moveUpward (index, row) { | ||
| 207 | let obj = { | ||
| 208 | xh: row.xh, | ||
| 209 | bsmSlsq: row.bsmSlsq, | ||
| 210 | moveDirection: "UP", | ||
| 211 | }; | ||
| 212 | // 接口待调 | ||
| 213 | moveClml(obj).then(async (res) => { | ||
| 214 | if (res.code == 200) { | ||
| 215 | let res = await this.clmlInitList() | ||
| 216 | if (res == 200) { | ||
| 217 | this.$message({ | ||
| 218 | message: '上移成功', | ||
| 219 | type: 'success' | ||
| 220 | }) | ||
| 221 | } | ||
| 222 | } else { | ||
| 223 | this.$message.error(res.message); | ||
| 224 | } | ||
| 225 | }) | ||
| 226 | }, | ||
| 227 | /** | ||
| 228 | * @description: 下移 | ||
| 229 | * @param {*} index | ||
| 230 | * @param {*} row | ||
| 231 | * @author: renchao | ||
| 232 | */ | ||
| 233 | moveDown (index, row) { | ||
| 234 | let obj = { | ||
| 235 | xh: row.xh, | ||
| 236 | bsmSlsq: row.bsmSlsq, | ||
| 237 | moveDirection: "DOWN", | ||
| 238 | } | ||
| 239 | // 接口待调 | ||
| 240 | moveClml(obj).then(async (res) => { | ||
| 241 | if (res.code == 200) { | ||
| 242 | let res = await this.clmlInitList() | ||
| 243 | if (res == 200) { | ||
| 244 | this.$message({ | ||
| 245 | message: '下移成功', | ||
| 246 | type: 'success' | ||
| 247 | }) | ||
| 248 | } | ||
| 249 | } else { | ||
| 250 | this.$message.error(res.message); | ||
| 251 | } | ||
| 252 | }) | ||
| 253 | }, | ||
| 254 | /** | ||
| 255 | * @description: 材料目录删除 | 229 | * @description: 材料目录删除 |
| 256 | * @param {*} index | 230 | * @param {*} index |
| 257 | * @param {*} row | 231 | * @param {*} row |
| ... | @@ -281,6 +255,19 @@ | ... | @@ -281,6 +255,19 @@ |
| 281 | message: '已取消删除' | 255 | message: '已取消删除' |
| 282 | }) | 256 | }) |
| 283 | }) | 257 | }) |
| 258 | }, | ||
| 259 | initSort () { | ||
| 260 | const el = this.$refs.listTable.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0] | ||
| 261 | this.sortable = Sortable.create(el, { | ||
| 262 | ghostClass: 'sortable-ghost', | ||
| 263 | setData: function (dataTransfer) { | ||
| 264 | dataTransfer.setData('Text', '') | ||
| 265 | }, | ||
| 266 | onEnd: evt => { | ||
| 267 | const targetRow = this.tableData.splice(evt.oldIndex, 1)[0]; | ||
| 268 | this.tableData.splice(evt.newIndex, 0, targetRow); | ||
| 269 | } | ||
| 270 | }) | ||
| 284 | } | 271 | } |
| 285 | } | 272 | } |
| 286 | } | 273 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-12 09:56:07 | 4 | * @LastEditTime: 2023-09-13 14:16:46 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -410,9 +410,19 @@ | ... | @@ -410,9 +410,19 @@ |
| 410 | * @author: renchao | 410 | * @author: renchao |
| 411 | */ | 411 | */ |
| 412 | upDateQlrxxList (val) { | 412 | upDateQlrxxList (val) { |
| 413 | this.ruleForm.qlrList = _.cloneDeep(val); | 413 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
| 414 | this.czrOptions = this.ruleForm.qlrList; | 414 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 415 | this.key++; | 415 | this.czrOptions = this.ruleForm.qlrList; |
| 416 | } | ||
| 417 | this.num = 0 | ||
| 418 | this.ruleForm.qlrList.forEach(item => { | ||
| 419 | if (item.zjh == this.czr) { | ||
| 420 | this.num++ | ||
| 421 | } | ||
| 422 | }) | ||
| 423 | if (this.num == 0) { | ||
| 424 | this.czr = '' | ||
| 425 | } | ||
| 416 | }, | 426 | }, |
| 417 | // 更新权利人信息 | 427 | // 更新权利人信息 |
| 418 | /** | 428 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-17 14:14:53 | 4 | * @LastEditTime: 2023-09-13 14:17:15 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="slxx"> | 7 | <div class="slxx"> |
| ... | @@ -336,11 +336,20 @@ | ... | @@ -336,11 +336,20 @@ |
| 336 | * @author: renchao | 336 | * @author: renchao |
| 337 | */ | 337 | */ |
| 338 | upDateQlrxxList (val) { | 338 | upDateQlrxxList (val) { |
| 339 | this.ruleForm.qlrList = _.cloneDeep(val); | 339 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
| 340 | this.czrOptions = this.ruleForm.qlrList; | 340 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 341 | this.czrOptions = this.ruleForm.qlrList; | ||
| 342 | } | ||
| 343 | this.num = 0 | ||
| 344 | this.ruleForm.qlrList.forEach(item => { | ||
| 345 | if (item.zjh == this.czr) { | ||
| 346 | this.num++ | ||
| 347 | } | ||
| 348 | }) | ||
| 349 | if (this.num == 0) { | ||
| 350 | this.czr = '' | ||
| 351 | } | ||
| 341 | }, | 352 | }, |
| 342 | |||
| 343 | |||
| 344 | // 是否持证人变化 | 353 | // 是否持证人变化 |
| 345 | /** | 354 | /** |
| 346 | * @description: 是否持证人变化 | 355 | * @description: 是否持证人变化 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-17 13:38:12 | 4 | * @LastEditTime: 2023-09-13 14:05:26 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -10,6 +10,7 @@ | ... | @@ -10,6 +10,7 @@ |
| 10 | :model="ruleForm" | 10 | :model="ruleForm" |
| 11 | :rules="rules" | 11 | :rules="rules" |
| 12 | ref="ruleForm" | 12 | ref="ruleForm" |
| 13 | v-Loading="loading" | ||
| 13 | :label-position="flag ? 'top' : ''" | 14 | :label-position="flag ? 'top' : ''" |
| 14 | :inline="flag" | 15 | :inline="flag" |
| 15 | label-width="120px"> | 16 | label-width="120px"> |
| ... | @@ -243,11 +244,13 @@ | ... | @@ -243,11 +244,13 @@ |
| 243 | export default { | 244 | export default { |
| 244 | mixins: [ywmix], | 245 | mixins: [ywmix], |
| 245 | mounted () { | 246 | mounted () { |
| 247 | this.loading = true | ||
| 246 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 248 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 247 | this.propsParam = this.$attrs; | 249 | this.propsParam = this.$attrs; |
| 248 | var formdata = new FormData(); | 250 | var formdata = new FormData(); |
| 249 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 251 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 250 | Init(formdata).then((res) => { | 252 | Init(formdata).then((res) => { |
| 253 | this.loading = false | ||
| 251 | if (res.code === 200 && res.result) { | 254 | if (res.code === 200 && res.result) { |
| 252 | this.ruleForm = { | 255 | this.ruleForm = { |
| 253 | ...res.result, | 256 | ...res.result, |
| ... | @@ -262,7 +265,9 @@ | ... | @@ -262,7 +265,9 @@ |
| 262 | }); | 265 | }); |
| 263 | this.czrOptions = this.ruleForm.qlrList; | 266 | this.czrOptions = this.ruleForm.qlrList; |
| 264 | } | 267 | } |
| 265 | }); | 268 | }).catch(() => { |
| 269 | this.loading = false | ||
| 270 | }) | ||
| 266 | }, | 271 | }, |
| 267 | components: { qlrCommonTable, tdytTable }, | 272 | components: { qlrCommonTable, tdytTable }, |
| 268 | computed: { | 273 | computed: { |
| ... | @@ -270,6 +275,7 @@ | ... | @@ -270,6 +275,7 @@ |
| 270 | }, | 275 | }, |
| 271 | data () { | 276 | data () { |
| 272 | return { | 277 | return { |
| 278 | loading: false, | ||
| 273 | //表单是否可操作 | 279 | //表单是否可操作 |
| 274 | viewEdit: false, | 280 | viewEdit: false, |
| 275 | disabled: true, | 281 | disabled: true, |
| ... | @@ -314,7 +320,6 @@ | ... | @@ -314,7 +320,6 @@ |
| 314 | }; | 320 | }; |
| 315 | }, | 321 | }, |
| 316 | methods: { | 322 | methods: { |
| 317 | // 更新土地用途信息 | ||
| 318 | /** | 323 | /** |
| 319 | * @description: 更新土地用途信息 | 324 | * @description: 更新土地用途信息 |
| 320 | * @param {*} val | 325 | * @param {*} val | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-11 16:28:26 | 4 | * @LastEditTime: 2023-09-13 14:06:17 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | :model="ruleForm" | 10 | :model="ruleForm" |
| 11 | :rules="rules" | 11 | :rules="rules" |
| 12 | :class="{ readonly: editDisabled }" | 12 | :class="{ readonly: editDisabled }" |
| 13 | class="loadingtext" | 13 | v-Loading="loading" |
| 14 | ref="ruleForm" | 14 | ref="ruleForm" |
| 15 | :label-position="flag ? 'top' : ''" | 15 | :label-position="flag ? 'top' : ''" |
| 16 | :inline="flag" | 16 | :inline="flag" |
| ... | @@ -252,14 +252,14 @@ | ... | @@ -252,14 +252,14 @@ |
| 252 | this.propsParam = this.$attrs; | 252 | this.propsParam = this.$attrs; |
| 253 | var formdata = new FormData(); | 253 | var formdata = new FormData(); |
| 254 | let that = this; | 254 | let that = this; |
| 255 | this.$startLoading(); | 255 | this.loading = true |
| 256 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 256 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 257 | formdata.append("djlx", this.propsParam.djlx); | 257 | formdata.append("djlx", this.propsParam.djlx); |
| 258 | formdata.append("isEdit", this.viewEdit); | 258 | formdata.append("isEdit", this.viewEdit); |
| 259 | Init(formdata).then((res) => { | 259 | Init(formdata).then((res) => { |
| 260 | this.loading = false | ||
| 260 | this.$nextTick(() => { | 261 | this.$nextTick(() => { |
| 261 | that.ruleForm = res.result; | 262 | that.ruleForm = res.result; |
| 262 | that.$endLoading(); | ||
| 263 | that.isShow = true; | 263 | that.isShow = true; |
| 264 | this.czrOptions = this.ruleForm.qlrList; | 264 | this.czrOptions = this.ruleForm.qlrList; |
| 265 | this.ruleForm.qlrList.forEach((item) => { | 265 | this.ruleForm.qlrList.forEach((item) => { |
| ... | @@ -267,9 +267,11 @@ | ... | @@ -267,9 +267,11 @@ |
| 267 | this.czr = item.zjh | 267 | this.czr = item.zjh |
| 268 | console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr); | 268 | console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr); |
| 269 | } | 269 | } |
| 270 | }); | 270 | }) |
| 271 | }); | 271 | }) |
| 272 | }); | 272 | }).catch(() => { |
| 273 | this.loading = false | ||
| 274 | }) | ||
| 273 | }, | 275 | }, |
| 274 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, | 276 | components: { qlrCommonTable, tdytTable, ywrCommonTable }, |
| 275 | computed: { | 277 | computed: { |
| ... | @@ -285,6 +287,7 @@ | ... | @@ -285,6 +287,7 @@ |
| 285 | }, | 287 | }, |
| 286 | data () { | 288 | data () { |
| 287 | return { | 289 | return { |
| 290 | loading: false, | ||
| 288 | mjdw: "1", | 291 | mjdw: "1", |
| 289 | //表单是否可操作 | 292 | //表单是否可操作 |
| 290 | viewEdit: true, | 293 | viewEdit: true, | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <!-- | 2 | <!-- |
| 3 | * @Description: | 3 | * @Description: |
| 4 | * @Autor: renchao | 4 | * @Autor: renchao |
| 5 | * @LastEditTime: 2023-08-22 16:25:54 | 5 | * @LastEditTime: 2023-09-13 14:17:49 |
| 6 | --> | 6 | --> |
| 7 | <template> | 7 | <template> |
| 8 | <!-- 受理信息 --> | 8 | <!-- 受理信息 --> |
| ... | @@ -286,9 +286,19 @@ | ... | @@ -286,9 +286,19 @@ |
| 286 | * @author: renchao | 286 | * @author: renchao |
| 287 | */ | 287 | */ |
| 288 | upDateQlrxxList (val) { | 288 | upDateQlrxxList (val) { |
| 289 | this.ruleForm.qlrList = _.cloneDeep(val); | 289 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
| 290 | this.czrOptions = this.ruleForm.qlrList; | 290 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 291 | this.key++; | 291 | this.czrOptions = this.ruleForm.qlrList; |
| 292 | } | ||
| 293 | this.num = 0 | ||
| 294 | this.ruleForm.qlrList.forEach(item => { | ||
| 295 | if (item.zjh == this.czr) { | ||
| 296 | this.num++ | ||
| 297 | } | ||
| 298 | }) | ||
| 299 | if (this.num == 0) { | ||
| 300 | this.czr = '' | ||
| 301 | } | ||
| 292 | }, | 302 | }, |
| 293 | // 是否持证人变化 | 303 | // 是否持证人变化 |
| 294 | /** | 304 | /** | ... | ... |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | <el-form | 4 | <el-form |
| 5 | :model="ruleForm" | 5 | :model="ruleForm" |
| 6 | :rules="rules" | 6 | :rules="rules" |
| 7 | class="loadingtext" | 7 | v-Loading="loading" |
| 8 | ref="ruleForm" | 8 | ref="ruleForm" |
| 9 | :label-position="flag ? 'top' : ''" | 9 | :label-position="flag ? 'top' : ''" |
| 10 | :inline="flag" | 10 | :inline="flag" |
| ... | @@ -324,21 +324,23 @@ | ... | @@ -324,21 +324,23 @@ |
| 324 | mounted () { | 324 | mounted () { |
| 325 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 325 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 326 | this.propsParam = this.$attrs; | 326 | this.propsParam = this.$attrs; |
| 327 | this.$startLoading(); | 327 | this.loading = true |
| 328 | var formdata = new FormData(); | 328 | var formdata = new FormData(); |
| 329 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 329 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 330 | formdata.append("djlx", this.propsParam.djlx); | 330 | formdata.append("djlx", this.propsParam.djlx); |
| 331 | formdata.append("isEdit", this.viewEdit); | 331 | formdata.append("isEdit", this.viewEdit); |
| 332 | Init(formdata).then((res) => { | 332 | Init(formdata).then((res) => { |
| 333 | this.loading = false | ||
| 333 | this.ruleForm = res.result; | 334 | this.ruleForm = res.result; |
| 334 | this.czrOptions = this.ruleForm.qlrList; | 335 | this.czrOptions = this.ruleForm.qlrList; |
| 335 | this.ruleForm.qlrList.forEach((item) => { | 336 | this.ruleForm.qlrList.forEach((item) => { |
| 336 | if (item.sfczr == 1) { | 337 | if (item.sfczr == 1) { |
| 337 | this.czr = item.zjh | 338 | this.czr = item.zjh |
| 338 | } | 339 | } |
| 339 | }); | 340 | }) |
| 340 | this.$endLoading(); | 341 | }).catch(() => { |
| 341 | }); | 342 | this.loading = false |
| 343 | }) | ||
| 342 | }, | 344 | }, |
| 343 | components: { qlrCommonTable, JtcyTable }, | 345 | components: { qlrCommonTable, JtcyTable }, |
| 344 | computed: { | 346 | computed: { |
| ... | @@ -346,6 +348,7 @@ | ... | @@ -346,6 +348,7 @@ |
| 346 | }, | 348 | }, |
| 347 | data () { | 349 | data () { |
| 348 | return { | 350 | return { |
| 351 | loading: false, | ||
| 349 | disabled: true, | 352 | disabled: true, |
| 350 | //持证人选项 | 353 | //持证人选项 |
| 351 | czrOptions: [], | 354 | czrOptions: [], |
| ... | @@ -446,10 +449,20 @@ | ... | @@ -446,10 +449,20 @@ |
| 446 | * @author: renchao | 449 | * @author: renchao |
| 447 | */ | 450 | */ |
| 448 | upDateQlrxxList (val) { | 451 | upDateQlrxxList (val) { |
| 449 | this.ruleForm.qlrList = _.cloneDeep(val); | 452 | if (!_.isEqual(val, this.ruleForm.qlrList)) { |
| 450 | this.czrOptions = this.ruleForm.qlrList; | 453 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 454 | this.czrOptions = this.ruleForm.qlrList; | ||
| 455 | } | ||
| 456 | this.num = 0 | ||
| 457 | this.ruleForm.qlrList.forEach(item => { | ||
| 458 | if (item.zjh == this.czr) { | ||
| 459 | this.num++ | ||
| 460 | } | ||
| 461 | }) | ||
| 462 | if (this.num == 0) { | ||
| 463 | this.czr = '' | ||
| 464 | } | ||
| 451 | }, | 465 | }, |
| 452 | // 是否持证人变化 | ||
| 453 | /** | 466 | /** |
| 454 | * @description: 是否持证人变化 | 467 | * @description: 是否持证人变化 |
| 455 | * @param {*} val | 468 | * @param {*} val | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <!-- 受理信息 --> | 2 | <!-- 受理信息 --> |
| 3 | <div class="slxx"> | 3 | <div class="slxx"> |
| 4 | <el-form | 4 | <el-form |
| 5 | class="loadingtext" | 5 | v-Loading="loading" |
| 6 | :label-position="flag ? 'top' : ''" | 6 | :label-position="flag ? 'top' : ''" |
| 7 | :inline="flag" | 7 | :inline="flag" |
| 8 | label-width="140px"> | 8 | label-width="140px"> |
| ... | @@ -211,8 +211,8 @@ | ... | @@ -211,8 +211,8 @@ |
| 211 | v-model="ruleForm.sldyList[0].sqfbcz" | 211 | v-model="ruleForm.sldyList[0].sqfbcz" |
| 212 | :disabled="!viewEdit" | 212 | :disabled="!viewEdit" |
| 213 | @input="updaterow()"> | 213 | @input="updaterow()"> |
| 214 | <el-radio label="1">是</el-radio> | 214 | <el-radio :label="1">是</el-radio> |
| 215 | <el-radio label="0">否</el-radio> | 215 | <el-radio :label="0">否</el-radio> |
| 216 | </el-radio-group> | 216 | </el-radio-group> |
| 217 | </el-form-item> | 217 | </el-form-item> |
| 218 | </el-col> | 218 | </el-col> |
| ... | @@ -229,9 +229,9 @@ | ... | @@ -229,9 +229,9 @@ |
| 229 | :disabled="!viewEdit"> | 229 | :disabled="!viewEdit"> |
| 230 | <el-option | 230 | <el-option |
| 231 | v-for="item in czrOptions" | 231 | v-for="item in czrOptions" |
| 232 | :key="item.value" | 232 | :key="item.zjh" |
| 233 | :label="item.label" | 233 | :label="item.sqrmc" |
| 234 | :value="item.value"> | 234 | :value="item.zjh"> |
| 235 | </el-option> | 235 | </el-option> |
| 236 | </el-select> | 236 | </el-select> |
| 237 | </el-form-item> | 237 | </el-form-item> |
| ... | @@ -303,12 +303,12 @@ | ... | @@ -303,12 +303,12 @@ |
| 303 | this.propsParam = this.$attrs; | 303 | this.propsParam = this.$attrs; |
| 304 | var formdata = new FormData(); | 304 | var formdata = new FormData(); |
| 305 | 305 | ||
| 306 | this.$startLoading(); | 306 | this.loading = true |
| 307 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 307 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
| 308 | formdata.append("djlx", this.propsParam.djlx); | 308 | formdata.append("djlx", this.propsParam.djlx); |
| 309 | formdata.append("isEdit", this.viewEdit); | 309 | formdata.append("isEdit", this.viewEdit); |
| 310 | bacthInit(formdata).then((res) => { | 310 | bacthInit(formdata).then((res) => { |
| 311 | this.$endLoading(); | 311 | this.loading = false |
| 312 | if (res.code === 200 && res.result) { | 312 | if (res.code === 200 && res.result) { |
| 313 | this.ruleForm = res.result; | 313 | this.ruleForm = res.result; |
| 314 | this.czrOptions = this.ruleForm.qlrList; | 314 | this.czrOptions = this.ruleForm.qlrList; |
| ... | @@ -316,11 +316,13 @@ | ... | @@ -316,11 +316,13 @@ |
| 316 | if (item.sfczr == 1) { | 316 | if (item.sfczr == 1) { |
| 317 | this.czr = item.zjh | 317 | this.czr = item.zjh |
| 318 | } | 318 | } |
| 319 | }); | 319 | }) |
| 320 | } else { | 320 | } else { |
| 321 | this.$message.error(res.message); | 321 | this.$message.error(res.message) |
| 322 | } | 322 | } |
| 323 | }); | 323 | }).catch(() => { |
| 324 | this.loading = false | ||
| 325 | }) | ||
| 324 | }, | 326 | }, |
| 325 | components: { qlrCommonTable, qjhTable }, | 327 | components: { qlrCommonTable, qjhTable }, |
| 326 | computed: { | 328 | computed: { |
| ... | @@ -328,6 +330,7 @@ | ... | @@ -328,6 +330,7 @@ |
| 328 | }, | 330 | }, |
| 329 | data () { | 331 | data () { |
| 330 | return { | 332 | return { |
| 333 | loading: false, | ||
| 331 | //表单是否可操作 | 334 | //表单是否可操作 |
| 332 | viewEdit: true, | 335 | viewEdit: true, |
| 333 | disabled: true, | 336 | disabled: true, |
| ... | @@ -379,8 +382,8 @@ | ... | @@ -379,8 +382,8 @@ |
| 379 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { | 382 | if (this.ruleForm.sldyList[0].sqfbcz == "1") { |
| 380 | //是 | 383 | //是 |
| 381 | this.ruleForm.qlrList.forEach((item, index) => { | 384 | this.ruleForm.qlrList.forEach((item, index) => { |
| 382 | item.sfczr = "1"; | 385 | item.sfczr = "1" |
| 383 | }); | 386 | }) |
| 384 | } else { | 387 | } else { |
| 385 | if (!that.czr) { | 388 | if (!that.czr) { |
| 386 | that.$message({ | 389 | that.$message({ |
| ... | @@ -416,7 +419,6 @@ | ... | @@ -416,7 +419,6 @@ |
| 416 | } | 419 | } |
| 417 | }); | 420 | }); |
| 418 | }, | 421 | }, |
| 419 | // 是否持证人变化 | ||
| 420 | /** | 422 | /** |
| 421 | * @description: 是否持证人变化 | 423 | * @description: 是否持证人变化 |
| 422 | * @param {*} val | 424 | * @param {*} val |
| ... | @@ -435,6 +437,15 @@ | ... | @@ -435,6 +437,15 @@ |
| 435 | this.ruleForm.qlrList = _.cloneDeep(val); | 437 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 436 | this.czrOptions = this.ruleForm.qlrList; | 438 | this.czrOptions = this.ruleForm.qlrList; |
| 437 | } | 439 | } |
| 440 | this.num = 0 | ||
| 441 | this.ruleForm.qlrList.forEach(item => { | ||
| 442 | if (item.zjh == this.czr) { | ||
| 443 | this.num++ | ||
| 444 | } | ||
| 445 | }) | ||
| 446 | if (this.num == 0) { | ||
| 447 | this.czr = '' | ||
| 448 | } | ||
| 438 | }, | 449 | }, |
| 439 | /** | 450 | /** |
| 440 | * @description: 更新义务人信息 | 451 | * @description: 更新义务人信息 |
| ... | @@ -445,9 +456,9 @@ | ... | @@ -445,9 +456,9 @@ |
| 445 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | 456 | if (!_.isEqual(val, this.ruleForm.ywrList)) { |
| 446 | this.ruleForm.ywrList = _.cloneDeep(val); | 457 | this.ruleForm.ywrList = _.cloneDeep(val); |
| 447 | } | 458 | } |
| 448 | }, | 459 | } |
| 449 | }, | 460 | } |
| 450 | }; | 461 | } |
| 451 | </script> | 462 | </script> |
| 452 | <style scoped lang="scss"> | 463 | <style scoped lang="scss"> |
| 453 | @import "~@/styles/public.scss"; | 464 | @import "~@/styles/public.scss"; | ... | ... |
| ... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
| 4 | <el-form | 4 | <el-form |
| 5 | :model="ruleForm" | 5 | :model="ruleForm" |
| 6 | :rules="rules" | 6 | :rules="rules" |
| 7 | class="loadingtext" | 7 | v-Loading="loading" |
| 8 | ref="ruleForm" | 8 | ref="ruleForm" |
| 9 | :label-position="flag ? 'top' : ''" | 9 | :label-position="flag ? 'top' : ''" |
| 10 | :inline="flag" | 10 | :inline="flag" |
| ... | @@ -331,11 +331,12 @@ | ... | @@ -331,11 +331,12 @@ |
| 331 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 331 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 332 | this.propsParam = this.$attrs; | 332 | this.propsParam = this.$attrs; |
| 333 | var formdata = new FormData(); | 333 | var formdata = new FormData(); |
| 334 | this.$startLoading(); | 334 | this.loading = true |
| 335 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 335 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 336 | formdata.append("djlx", this.propsParam.djlx); | 336 | formdata.append("djlx", this.propsParam.djlx); |
| 337 | formdata.append("isEdit", this.viewEdit); | 337 | formdata.append("isEdit", this.viewEdit); |
| 338 | Init(formdata).then((res) => { | 338 | Init(formdata).then((res) => { |
| 339 | this.loading = false | ||
| 339 | if (res.code === 200 && res.result) { | 340 | if (res.code === 200 && res.result) { |
| 340 | this.ruleForm = res.result; | 341 | this.ruleForm = res.result; |
| 341 | this.czrOptions = this.ruleForm.qlrList; | 342 | this.czrOptions = this.ruleForm.qlrList; |
| ... | @@ -343,10 +344,11 @@ | ... | @@ -343,10 +344,11 @@ |
| 343 | if (item.sfczr == 1) { | 344 | if (item.sfczr == 1) { |
| 344 | this.czr = item.zjh | 345 | this.czr = item.zjh |
| 345 | } | 346 | } |
| 346 | }); | 347 | }) |
| 347 | this.$endLoading(); | ||
| 348 | } | 348 | } |
| 349 | }); | 349 | }).catch(() => { |
| 350 | this.loading = false | ||
| 351 | }) | ||
| 350 | }, | 352 | }, |
| 351 | components: { qlrCommonTable }, | 353 | components: { qlrCommonTable }, |
| 352 | computed: { | 354 | computed: { |
| ... | @@ -354,6 +356,7 @@ | ... | @@ -354,6 +356,7 @@ |
| 354 | }, | 356 | }, |
| 355 | data () { | 357 | data () { |
| 356 | return { | 358 | return { |
| 359 | loading: false, | ||
| 357 | //表单是否可操作 | 360 | //表单是否可操作 |
| 358 | viewEdit: true, | 361 | viewEdit: true, |
| 359 | disabled: true, | 362 | disabled: true, |
| ... | @@ -453,7 +456,6 @@ | ... | @@ -453,7 +456,6 @@ |
| 453 | } | 456 | } |
| 454 | }); | 457 | }); |
| 455 | }, | 458 | }, |
| 456 | |||
| 457 | /** | 459 | /** |
| 458 | * @description: 更新权利人信息 | 460 | * @description: 更新权利人信息 |
| 459 | * @param {*} val | 461 | * @param {*} val |
| ... | @@ -464,6 +466,15 @@ | ... | @@ -464,6 +466,15 @@ |
| 464 | this.ruleForm.qlrList = _.cloneDeep(val); | 466 | this.ruleForm.qlrList = _.cloneDeep(val); |
| 465 | this.czrOptions = this.ruleForm.qlrList; | 467 | this.czrOptions = this.ruleForm.qlrList; |
| 466 | } | 468 | } |
| 469 | this.num = 0 | ||
| 470 | this.ruleForm.qlrList.forEach(item => { | ||
| 471 | if (item.zjh == this.czr) { | ||
| 472 | this.num++ | ||
| 473 | } | ||
| 474 | }) | ||
| 475 | if (this.num == 0) { | ||
| 476 | this.czr = '' | ||
| 477 | } | ||
| 467 | }, | 478 | }, |
| 468 | // 是否持证人变化 | 479 | // 是否持证人变化 |
| 469 | /** | 480 | /** | ... | ... |
-
Please register or sign in to post a comment