style:材料明细
Showing
5 changed files
with
54 additions
and
43 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-10-19 16:28:06 | 4 | * @LastEditTime: 2023-10-24 16:12:54 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clxx"> | 7 | <div class="clxx"> |
| ... | @@ -98,14 +98,14 @@ | ... | @@ -98,14 +98,14 @@ |
| 98 | watch: { | 98 | watch: { |
| 99 | workFresh: { | 99 | workFresh: { |
| 100 | handler (newValue, oldValue) { | 100 | handler (newValue, oldValue) { |
| 101 | if (newValue) this.clmlInitList() | 101 | if (newValue) this.clmlInitList(1) |
| 102 | }, | 102 | }, |
| 103 | deep: true, | 103 | deep: true, |
| 104 | immediate: true | 104 | immediate: true |
| 105 | } | 105 | } |
| 106 | }, | 106 | }, |
| 107 | created () { | 107 | created () { |
| 108 | this.clmlInitList() | 108 | this.clmlInitList(1) |
| 109 | }, | 109 | }, |
| 110 | methods: { | 110 | methods: { |
| 111 | /** | 111 | /** |
| ... | @@ -166,6 +166,7 @@ | ... | @@ -166,6 +166,7 @@ |
| 166 | clmlInitList (type) { | 166 | clmlInitList (type) { |
| 167 | // 1:列表初始化 2:新增材料 | 167 | // 1:列表初始化 2:新增材料 |
| 168 | return new Promise((resolve) => { | 168 | return new Promise((resolve) => { |
| 169 | console.log(this.$parent, 'this.$parent'); | ||
| 169 | repairInitClml(this.$parent).then((res) => { | 170 | repairInitClml(this.$parent).then((res) => { |
| 170 | if (res.code == 200) { | 171 | if (res.code == 200) { |
| 171 | resolve(res.code); | 172 | resolve(res.code); |
| ... | @@ -173,7 +174,7 @@ | ... | @@ -173,7 +174,7 @@ |
| 173 | this.tableData = res.result; | 174 | this.tableData = res.result; |
| 174 | if (type == 1) { | 175 | if (type == 1) { |
| 175 | this.treeClick(this.tableData[0], 0); | 176 | this.treeClick(this.tableData[0], 0); |
| 176 | } else { | 177 | } else if (type == 2) { |
| 177 | //新增材料后刷新列表焦点置于新增的对象上 | 178 | //新增材料后刷新列表焦点置于新增的对象上 |
| 178 | this.treeClick( | 179 | this.treeClick( |
| 179 | this.tableData[this.tableData.length - 1], | 180 | this.tableData[this.tableData.length - 1], |
| ... | @@ -296,11 +297,14 @@ | ... | @@ -296,11 +297,14 @@ |
| 296 | this.titleYs = index + 1; | 297 | this.titleYs = index + 1; |
| 297 | }, | 298 | }, |
| 298 | //查看明细 | 299 | //查看明细 |
| 299 | viewDetail () { | 300 | async viewDetail () { |
| 300 | store.dispatch("user/reWorkFresh", false); | 301 | let res = await this.clmlInitList(); |
| 301 | ywPopupDialog("申请材料目录", "djbworkflow/components/clxx/dialog/clxxDetailDialog", { | 302 | if (res == 200) { |
| 302 | data: this.tableData, | 303 | store.dispatch("user/reWorkFresh", false); |
| 303 | }, "60%", true, false) | 304 | ywPopupDialog("申请材料目录", "djbworkflow/components/clxx/dialog/clxxDetailDialog", { |
| 305 | data: this.tableData, | ||
| 306 | }, "60%", true, false) | ||
| 307 | } | ||
| 304 | }, | 308 | }, |
| 305 | //设置tableData | 309 | //设置tableData |
| 306 | setTableData (tableData) { | 310 | setTableData (tableData) { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-10-10 14:40:07 | 4 | * @LastEditTime: 2023-10-24 16:08:44 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clxx"> | 7 | <div class="clxx"> |
| ... | @@ -167,7 +167,7 @@ | ... | @@ -167,7 +167,7 @@ |
| 167 | this.unitData = this.$parent.unitData; | 167 | this.unitData = this.$parent.unitData; |
| 168 | var formdata = new FormData(); | 168 | var formdata = new FormData(); |
| 169 | formdata.append("bsmSlsq", this.$parent.bsmSlsq); | 169 | formdata.append("bsmSlsq", this.$parent.bsmSlsq); |
| 170 | if (this.$route.query.sqywbm == "DJBBL") { | 170 | if (this.$route.query?.djywbm == "DJBBL") { |
| 171 | formdata.append("bsmSldy", this.$parent.bsmRepair); | 171 | formdata.append("bsmSldy", this.$parent.bsmRepair); |
| 172 | formdata.append("clfl", 3); | 172 | formdata.append("clfl", 3); |
| 173 | } else { | 173 | } else { |
| ... | @@ -182,7 +182,7 @@ | ... | @@ -182,7 +182,7 @@ |
| 182 | this.tableData = res.result; | 182 | this.tableData = res.result; |
| 183 | if (type == 1) { | 183 | if (type == 1) { |
| 184 | this.treeClick(this.tableData[0], 0); | 184 | this.treeClick(this.tableData[0], 0); |
| 185 | } else { | 185 | } else if (type == 2) { |
| 186 | //新增材料后刷新列表焦点置于新增的对象上 | 186 | //新增材料后刷新列表焦点置于新增的对象上 |
| 187 | this.treeClick( | 187 | this.treeClick( |
| 188 | this.tableData[this.tableData.length - 1], | 188 | this.tableData[this.tableData.length - 1], |
| ... | @@ -266,7 +266,7 @@ | ... | @@ -266,7 +266,7 @@ |
| 266 | if (data.sfggcl == "0") { | 266 | if (data.sfggcl == "0") { |
| 267 | obj["bsmSldy"] = this.$parent.currentSelectProps.bsmSldy; | 267 | obj["bsmSldy"] = this.$parent.currentSelectProps.bsmSldy; |
| 268 | } | 268 | } |
| 269 | if (this.$route.query.sqywbm == "DJBBL") { | 269 | if (this.$route.query?.djywbm == "DJBBL") { |
| 270 | obj.bsmSldy = this.$parent.bsmRepair | 270 | obj.bsmSldy = this.$parent.bsmRepair |
| 271 | } | 271 | } |
| 272 | saveClml(obj).then(async (res) => { | 272 | saveClml(obj).then(async (res) => { |
| ... | @@ -310,21 +310,24 @@ | ... | @@ -310,21 +310,24 @@ |
| 310 | this.titleYs = index + 1; | 310 | this.titleYs = index + 1; |
| 311 | }, | 311 | }, |
| 312 | //查看明细 | 312 | //查看明细 |
| 313 | viewDetail () { | 313 | async viewDetail () { |
| 314 | this.$store.dispatch("user/reWorkFresh", false); | 314 | let res = await this.clmlInitList(); |
| 315 | this.$popupDialog( | 315 | if (res == 200) { |
| 316 | "申请材料目录", | 316 | this.$store.dispatch("user/reWorkFresh", false); |
| 317 | "workflow/components/dialog/clxxDetailDialog", | 317 | this.$popupDialog( |
| 318 | { | 318 | "申请材料目录", |
| 319 | data: this.tableData, | 319 | "workflow/components/dialog/clxxDetailDialog", |
| 320 | bsmSldy: this.$parent.currentSelectProps.bsmSldy, | 320 | { |
| 321 | unitData: this.$parent.unitData, | 321 | data: this.tableData, |
| 322 | ableOperation: this.$parent.ableOperation, | 322 | bsmSldy: this.$parent.currentSelectProps.bsmSldy, |
| 323 | bsmRepair: this.$parent.bsmRepair | 323 | unitData: this.$parent.unitData, |
| 324 | }, | 324 | ableOperation: this.$parent.ableOperation, |
| 325 | "50%", | 325 | bsmRepair: this.$parent.bsmRepair |
| 326 | true | 326 | }, |
| 327 | ); | 327 | "60%", |
| 328 | true | ||
| 329 | ) | ||
| 330 | } | ||
| 328 | }, | 331 | }, |
| 329 | //设置tableData | 332 | //设置tableData |
| 330 | setTableData (tableData) { | 333 | setTableData (tableData) { |
| ... | @@ -407,7 +410,7 @@ | ... | @@ -407,7 +410,7 @@ |
| 407 | height: 100%; | 410 | height: 100%; |
| 408 | font-size: 14px; | 411 | font-size: 14px; |
| 409 | border-right: 1px dotted #d9d9d9; | 412 | border-right: 1px dotted #d9d9d9; |
| 410 | padding: 0 15px; | 413 | padding: 0 10px; |
| 411 | 414 | ||
| 412 | .item { | 415 | .item { |
| 413 | line-height: 30px; | 416 | line-height: 30px; |
| ... | @@ -452,6 +455,7 @@ | ... | @@ -452,6 +455,7 @@ |
| 452 | .checked { | 455 | .checked { |
| 453 | border: 1px solid $light-blue; | 456 | border: 1px solid $light-blue; |
| 454 | color: $light-blue; | 457 | color: $light-blue; |
| 458 | box-sizing: border-box; | ||
| 455 | } | 459 | } |
| 456 | } | 460 | } |
| 457 | } | 461 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-19 10:14:56 | 4 | * @LastEditTime: 2023-10-24 16:08:59 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
| ... | @@ -205,7 +205,7 @@ | ... | @@ -205,7 +205,7 @@ |
| 205 | this.unitData = this.$parent.unitData; | 205 | this.unitData = this.$parent.unitData; |
| 206 | var formdata = new FormData(); | 206 | var formdata = new FormData(); |
| 207 | formdata.append("bsmSlsq", Vue.prototype.$currentRoute.query.bsmSlsq); | 207 | formdata.append("bsmSlsq", Vue.prototype.$currentRoute.query.bsmSlsq); |
| 208 | if (Vue.prototype.$currentRoute.query.sqywbm == "DJBBL") { | 208 | if (Vue.prototype.$currentRoute.query?.djywbm == "DJBBL") { |
| 209 | formdata.append("bsmSldy", this.formData.bsmRepair); | 209 | formdata.append("bsmSldy", this.formData.bsmRepair); |
| 210 | formdata.append("clfl", 3); | 210 | formdata.append("clfl", 3); |
| 211 | } else { | 211 | } else { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-10-12 09:58:32 | 4 | * @LastEditTime: 2023-10-24 16:13:19 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clxx"> | 7 | <div class="clxx"> |
| ... | @@ -98,14 +98,14 @@ | ... | @@ -98,14 +98,14 @@ |
| 98 | watch: { | 98 | watch: { |
| 99 | workFresh: { | 99 | workFresh: { |
| 100 | handler (newValue, oldValue) { | 100 | handler (newValue, oldValue) { |
| 101 | this.clmlInitList() | 101 | this.clmlInitList(1) |
| 102 | }, | 102 | }, |
| 103 | deep: true, | 103 | deep: true, |
| 104 | immediate: true | 104 | immediate: true |
| 105 | } | 105 | } |
| 106 | }, | 106 | }, |
| 107 | created () { | 107 | created () { |
| 108 | this.clmlInitList() | 108 | this.clmlInitList(1) |
| 109 | }, | 109 | }, |
| 110 | methods: { | 110 | methods: { |
| 111 | /** | 111 | /** |
| ... | @@ -173,7 +173,7 @@ | ... | @@ -173,7 +173,7 @@ |
| 173 | this.tableData = res.result; | 173 | this.tableData = res.result; |
| 174 | if (type == 1) { | 174 | if (type == 1) { |
| 175 | this.treeClick(this.tableData[0], 0); | 175 | this.treeClick(this.tableData[0], 0); |
| 176 | } else { | 176 | } else if (type == 2) { |
| 177 | //新增材料后刷新列表焦点置于新增的对象上 | 177 | //新增材料后刷新列表焦点置于新增的对象上 |
| 178 | this.treeClick( | 178 | this.treeClick( |
| 179 | this.tableData[this.tableData.length - 1], | 179 | this.tableData[this.tableData.length - 1], |
| ... | @@ -287,12 +287,15 @@ | ... | @@ -287,12 +287,15 @@ |
| 287 | this.titleYs = index + 1; | 287 | this.titleYs = index + 1; |
| 288 | }, | 288 | }, |
| 289 | //查看明细 | 289 | //查看明细 |
| 290 | viewDetail () { | 290 | async viewDetail () { |
| 291 | store.dispatch("user/reWorkFresh", false); | 291 | let res = await this.clmlInitList(); |
| 292 | ywPopupDialog("申请材料目录", "xxba/components/clxx/dialog/clxxDetailDialog", { | 292 | if (res == 200) { |
| 293 | data: this.tableData, | 293 | store.dispatch("user/reWorkFresh", false); |
| 294 | bsmCompany: this.formData.bsmCompany | 294 | ywPopupDialog("申请材料目录", "xxba/components/clxx/dialog/clxxDetailDialog", { |
| 295 | }, "50%", true, false) | 295 | data: this.tableData, |
| 296 | bsmCompany: this.formData.bsmCompany | ||
| 297 | }, "60%", true, false) | ||
| 298 | } | ||
| 296 | }, | 299 | }, |
| 297 | //设置tableData | 300 | //设置tableData |
| 298 | setTableData (tableData) { | 301 | setTableData (tableData) { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-25 11:08:07 | 4 | * @LastEditTime: 2023-10-24 16:09:46 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| ... | @@ -278,7 +278,7 @@ | ... | @@ -278,7 +278,7 @@ |
| 278 | const { href } = this.$router.resolve( | 278 | const { href } = this.$router.resolve( |
| 279 | "/djbworkFrameview?bsmSlsq=" + item.bsmSlsq + | 279 | "/djbworkFrameview?bsmSlsq=" + item.bsmSlsq + |
| 280 | "&bestepid=" + item.bestepid + | 280 | "&bestepid=" + item.bestepid + |
| 281 | "&sqywbm=" + item.djywbm | 281 | "&djywbm=" + item.djywbm |
| 282 | ); | 282 | ); |
| 283 | window.open(href, `djbworkFrameview${item.bsmSlsq}`); | 283 | window.open(href, `djbworkFrameview${item.bsmSlsq}`); |
| 284 | } else { | 284 | } else { | ... | ... |
-
Please register or sign in to post a comment