style:发起申请
Showing
4 changed files
with
53 additions
and
6 deletions
... | @@ -31,7 +31,6 @@ export function getNextNode (bsmSqyw) { | ... | @@ -31,7 +31,6 @@ export function getNextNode (bsmSqyw) { |
31 | /* | 31 | /* |
32 | 业务办理-选择单元-根据条件进行列表查询 | 32 | 业务办理-选择单元-根据条件进行列表查询 |
33 | */ | 33 | */ |
34 | // | ||
35 | export function getselectBdcdy (data) { | 34 | export function getselectBdcdy (data) { |
36 | return request({ | 35 | return request({ |
37 | url: '/ywbl/ywsq/selectBdcdy', | 36 | url: '/ywbl/ywsq/selectBdcdy', |
... | @@ -40,3 +39,13 @@ export function getselectBdcdy (data) { | ... | @@ -40,3 +39,13 @@ export function getselectBdcdy (data) { |
40 | }) | 39 | }) |
41 | } | 40 | } |
42 | 41 | ||
42 | /* | ||
43 | 业务办理-发起业务申请流程 | ||
44 | */ | ||
45 | export function startBusinessFlow (data) { | ||
46 | return request({ | ||
47 | url: '/business/workFlow/startBusinessFlow', | ||
48 | method: 'post', | ||
49 | data | ||
50 | }) | ||
51 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -45,7 +45,7 @@ | ... | @@ -45,7 +45,7 @@ |
45 | <div class="from-clues-content"> | 45 | <div class="from-clues-content"> |
46 | <lb-table :page-size="pageData.pageSize" heightNumSetting :current-page.sync="pageData.currentPage" | 46 | <lb-table :page-size="pageData.pageSize" heightNumSetting :current-page.sync="pageData.currentPage" |
47 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 47 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
48 | :column="tableData.columns" :data="tableData.data"> | 48 | @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> |
49 | </lb-table> | 49 | </lb-table> |
50 | </div> | 50 | </div> |
51 | </div> | 51 | </div> |
... | @@ -54,13 +54,14 @@ | ... | @@ -54,13 +54,14 @@ |
54 | 54 | ||
55 | </template> | 55 | </template> |
56 | <script> | 56 | <script> |
57 | import { datas } from "../ywsqdata.js"; | 57 | import { datas, sendThis } from "./ywsqdata.js"; |
58 | import table from "@/utils/mixin/table"; | 58 | import table from "@/utils/mixin/table"; |
59 | import { getselectBdcdy } from "@/api/ywbl.js" | 59 | import { getselectBdcdy, startBusinessFlow } from "@/api/ywbl.js" |
60 | export default { | 60 | export default { |
61 | mixins: [table], | 61 | mixins: [table], |
62 | props: { | 62 | props: { |
63 | value: { type: Boolean, default: false }, | 63 | value: { type: Boolean, default: false }, |
64 | bsmSqyw: { type: String, default: '' }, | ||
64 | }, | 65 | }, |
65 | data () { | 66 | data () { |
66 | return { | 67 | return { |
... | @@ -77,11 +78,22 @@ export default { | ... | @@ -77,11 +78,22 @@ export default { |
77 | total: 0, | 78 | total: 0, |
78 | columns: datas.columns(), | 79 | columns: datas.columns(), |
79 | data: [] | 80 | data: [] |
81 | }, | ||
82 | bdcdyid: '', | ||
83 | bdcdyh: '' | ||
80 | } | 84 | } |
85 | }, | ||
86 | watch: { | ||
87 | value (val) { | ||
88 | if (val) this.fetchData() | ||
81 | } | 89 | } |
82 | }, | 90 | }, |
91 | mounted () { | ||
92 | sendThis(this); | ||
93 | }, | ||
83 | methods: { | 94 | methods: { |
84 | fetchData () { | 95 | fetchData () { |
96 | if (this.value) { | ||
85 | getselectBdcdy({ ...this.queryForm, ...this.pageData }).then(res => { | 97 | getselectBdcdy({ ...this.queryForm, ...this.pageData }).then(res => { |
86 | if (res.code === 200) { | 98 | if (res.code === 200) { |
87 | let { total, records } = res.result | 99 | let { total, records } = res.result |
... | @@ -89,14 +101,29 @@ export default { | ... | @@ -89,14 +101,29 @@ export default { |
89 | this.tableData.data = records | 101 | this.tableData.data = records |
90 | } | 102 | } |
91 | }) | 103 | }) |
104 | } | ||
92 | }, | 105 | }, |
93 | submitForm () { | 106 | submitForm () { |
107 | if (this.bdcdyid == '') { | ||
108 | this.$message.error('请至少选择一条数据'); | ||
109 | return | ||
110 | } | ||
111 | startBusinessFlow({ | ||
112 | bsmSqyw: this.bsmSqyw, | ||
113 | bdcdyid: this.bdcdyid, | ||
114 | bdcdyh: this.bdcdyh | ||
115 | }).then(res => { | ||
94 | this.$emit('input', false) | 116 | this.$emit('input', false) |
95 | const { href } = this.$router.resolve('/fqsq') | 117 | const { href } = this.$router.resolve('/fqsq') |
96 | window.open(href, '_blank'); | 118 | window.open(href, '_blank'); |
119 | }) | ||
97 | }, | 120 | }, |
98 | closeDialog () { | 121 | closeDialog () { |
99 | this.$emit('input', false) | 122 | this.$emit('input', false) |
123 | }, | ||
124 | handleSelectionChange (val) { | ||
125 | this.bdcdyid = val.map(item => item.dyhbsm ? item.dyhbsm : '').join(',') | ||
126 | this.bdcdyh = val.map(item => item.bdcdyh ? item.bdcdyh : '').join(',') | ||
100 | } | 127 | } |
101 | } | 128 | } |
102 | } | 129 | } | ... | ... |
... | @@ -17,7 +17,14 @@ class data extends filter { | ... | @@ -17,7 +17,14 @@ class data extends filter { |
17 | { | 17 | { |
18 | label: '序号', | 18 | label: '序号', |
19 | type: 'index', | 19 | type: 'index', |
20 | width: '50' | 20 | width: '50', |
21 | render: (h, scope) => { | ||
22 | return ( | ||
23 | <div> | ||
24 | {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1} | ||
25 | </div> | ||
26 | ) | ||
27 | } | ||
21 | }, | 28 | }, |
22 | { | 29 | { |
23 | prop: "status", | 30 | prop: "status", |
... | @@ -63,4 +70,5 @@ class data extends filter { | ... | @@ -63,4 +70,5 @@ class data extends filter { |
63 | let datas = new data() | 70 | let datas = new data() |
64 | export { | 71 | export { |
65 | datas, | 72 | datas, |
73 | sendThis | ||
66 | } | 74 | } | ... | ... |
... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
63 | <el-button type="primary" :disabled="btnDisabled" @click="btnClick()">选择不动产信息</el-button> | 63 | <el-button type="primary" :disabled="btnDisabled" @click="btnClick()">选择不动产信息</el-button> |
64 | </div> | 64 | </div> |
65 | </div> | 65 | </div> |
66 | <choiceDialog v-model="isDialog" /> | 66 | <choiceDialog v-model="isDialog" :bsmSqyw="bsmSqyw" /> |
67 | </div> | 67 | </div> |
68 | </template> | 68 | </template> |
69 | <script> | 69 | <script> |
... | @@ -87,6 +87,7 @@ export default { | ... | @@ -87,6 +87,7 @@ export default { |
87 | } | 87 | } |
88 | ], | 88 | ], |
89 | djqxList: [], | 89 | djqxList: [], |
90 | bsmSqyw: '', | ||
90 | isDialog: false, | 91 | isDialog: false, |
91 | btnDisabled: true | 92 | btnDisabled: true |
92 | } | 93 | } |
... | @@ -125,6 +126,7 @@ export default { | ... | @@ -125,6 +126,7 @@ export default { |
125 | item.cselect = !item.cselect | 126 | item.cselect = !item.cselect |
126 | if (item.sffqlc == '1') { | 127 | if (item.sffqlc == '1') { |
127 | this.btnDisabled = false | 128 | this.btnDisabled = false |
129 | this.bsmSqyw = item.bsmSqyw | ||
128 | } | 130 | } |
129 | }, | 131 | }, |
130 | handleList (list, obj) { | 132 | handleList (list, obj) { |
... | @@ -165,6 +167,7 @@ export default { | ... | @@ -165,6 +167,7 @@ export default { |
165 | this.$set(item, 'select', true) | 167 | this.$set(item, 'select', true) |
166 | if (item.sffqlc == '1') { | 168 | if (item.sffqlc == '1') { |
167 | this.btnDisabled = false | 169 | this.btnDisabled = false |
170 | this.bsmSqyw = item.bsmSqyw | ||
168 | } else { | 171 | } else { |
169 | this.getNextNode(item.bsmSqyw) | 172 | this.getNextNode(item.bsmSqyw) |
170 | } | 173 | } | ... | ... |
-
Please register or sign in to post a comment