Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
18 changed files
with
419 additions
and
141 deletions
... | @@ -26,7 +26,7 @@ export default { | ... | @@ -26,7 +26,7 @@ export default { |
26 | name: 'index', | 26 | name: 'index', |
27 | data () { | 27 | data () { |
28 | return { | 28 | return { |
29 | btnShow:false, | 29 | btnShow: true, |
30 | title: '提示', | 30 | title: '提示', |
31 | cancelText: '取消', | 31 | cancelText: '取消', |
32 | confirmText: '确认', | 32 | confirmText: '确认', |
... | @@ -38,7 +38,7 @@ export default { | ... | @@ -38,7 +38,7 @@ export default { |
38 | titleStyle: 'center', | 38 | titleStyle: 'center', |
39 | width: "75%", | 39 | width: "75%", |
40 | height: "auto", | 40 | height: "auto", |
41 | formData: "",//父组件传递的参数 负责传给子组件 | 41 | formData: undefined,//父组件传递的参数 负责传给子组件 |
42 | contentHeight: "", | 42 | contentHeight: "", |
43 | iconClass: "", | 43 | iconClass: "", |
44 | key: 0 | 44 | key: 0 | ... | ... |
... | @@ -33,6 +33,14 @@ export const constantRoutes = [ | ... | @@ -33,6 +33,14 @@ export const constantRoutes = [ |
33 | name: 'workFrame', | 33 | name: 'workFrame', |
34 | hidden: true, | 34 | hidden: true, |
35 | meta: { title: '发起申请' } | 35 | meta: { title: '发起申请' } |
36 | }, | ||
37 | // 业务流程只读框架 | ||
38 | { | ||
39 | path: '/workFrameView', | ||
40 | component: () => import('@/views/workflow/workFrameView.vue'), | ||
41 | name: 'workFrameView', | ||
42 | hidden: true, | ||
43 | meta: { title: '发起申请' } | ||
36 | } | 44 | } |
37 | ] | 45 | ] |
38 | 46 | ... | ... |
... | @@ -12,9 +12,5 @@ const getters = { | ... | @@ -12,9 +12,5 @@ const getters = { |
12 | addDict: state => state.dict.addDict, | 12 | addDict: state => state.dict.addDict, |
13 | dictData: state => state.dict.dictData, | 13 | dictData: state => state.dict.dictData, |
14 | djbxx: state => state.djbxx.djbxx, | 14 | djbxx: state => state.djbxx.djbxx, |
15 | // 业务办理 | ||
16 | bsmSqyw: state => state.ywbl.bsmSqyw, | ||
17 | djqxObj: state => state.ywbl.djqxObj, | ||
18 | djywbm: state => state.ywbl.djywbm | ||
19 | } | 15 | } |
20 | export default getters | 16 | export default getters | ... | ... |
... | @@ -8,12 +8,12 @@ export default { | ... | @@ -8,12 +8,12 @@ export default { |
8 | } | 8 | } |
9 | } | 9 | } |
10 | }, | 10 | }, |
11 | computed: { | ||
12 | ...mapGetters(['dictData']), | ||
13 | }, | ||
11 | created () { | 14 | created () { |
12 | this.fetchData() | 15 | this.fetchData() |
13 | }, | 16 | }, |
14 | computed: { | ||
15 | ...mapGetters(['dictData']) | ||
16 | }, | ||
17 | methods: { | 17 | methods: { |
18 | handleSizeChange (val) { | 18 | handleSizeChange (val) { |
19 | this.pageData.currentPage = 1 | 19 | this.pageData.currentPage = 1 | ... | ... |
... | @@ -6,6 +6,9 @@ | ... | @@ -6,6 +6,9 @@ |
6 | border: 1px solid #ebeef5; | 6 | border: 1px solid #ebeef5; |
7 | z-index: 100; | 7 | z-index: 100; |
8 | @include flex; | 8 | @include flex; |
9 | /deep/.el-tabs__header { | ||
10 | margin-bottom: 0 !important; | ||
11 | } | ||
9 | } | 12 | } |
10 | 13 | ||
11 | .leftmenu { | 14 | .leftmenu { |
... | @@ -62,9 +65,7 @@ | ... | @@ -62,9 +65,7 @@ |
62 | padding-left: 5px !important; | 65 | padding-left: 5px !important; |
63 | } | 66 | } |
64 | 67 | ||
65 | /deep/.el-tabs__header { | 68 | |
66 | margin-bottom: 0 !important; | ||
67 | } | ||
68 | 69 | ||
69 | /deep/.el-menu-item.is-active { | 70 | /deep/.el-menu-item.is-active { |
70 | background-color: #e7f4fe; | 71 | background-color: #e7f4fe; | ... | ... |
... | @@ -56,6 +56,7 @@ | ... | @@ -56,6 +56,7 @@ |
56 | </div> | 56 | </div> |
57 | </div> | 57 | </div> |
58 | </div> | 58 | </div> |
59 | <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" /> | ||
59 | </div> | 60 | </div> |
60 | </template> | 61 | </template> |
61 | 62 | ||
... | @@ -63,7 +64,6 @@ | ... | @@ -63,7 +64,6 @@ |
63 | @import "~@/styles/mixin.scss"; | 64 | @import "~@/styles/mixin.scss"; |
64 | @import "./workFrame.scss"; | 65 | @import "./workFrame.scss"; |
65 | </style> | 66 | </style> |
66 | |||
67 | <script> | 67 | <script> |
68 | import { | 68 | import { |
69 | leftMenu, | 69 | leftMenu, |
... | @@ -74,10 +74,15 @@ import { | ... | @@ -74,10 +74,15 @@ import { |
74 | } from "@/api/fqsq.js" | 74 | } from "@/api/fqsq.js" |
75 | import { getWorkFlowImage } from "@/api/jsydsyqFlow.js" | 75 | import { getWorkFlowImage } from "@/api/jsydsyqFlow.js" |
76 | import { getForm } from "./flowform.js" | 76 | import { getForm } from "./flowform.js" |
77 | import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue" | ||
77 | import { queueDjywmc } from '@/views/ywbl/ywsq/slectBdcdata.js'; | 78 | import { queueDjywmc } from '@/views/ywbl/ywsq/slectBdcdata.js'; |
78 | export default { | 79 | export default { |
80 | components: { | ||
81 | fqsqDialog | ||
82 | }, | ||
79 | data () { | 83 | data () { |
80 | return { | 84 | return { |
85 | isDialog: false, | ||
81 | // 流程图 | 86 | // 流程图 |
82 | imgSrc: '', | 87 | imgSrc: '', |
83 | // 折叠 | 88 | // 折叠 |
... | @@ -151,11 +156,8 @@ export default { | ... | @@ -151,11 +156,8 @@ export default { |
151 | let that = this; | 156 | let that = this; |
152 | switch (item.value) { | 157 | switch (item.value) { |
153 | case "B0": | 158 | case "B0": |
154 | let type = queueDjywmc(this.$route.query.sqywbm) | 159 | // let type = queueDjywmc(this.$route.query.sqywbm) |
155 | this.$popup({ | 160 | this.isDialog = true |
156 | title: '查询权利信息', | ||
157 | editItem: 'ywbl/ywsq/components/houseOwnership', | ||
158 | }) | ||
159 | break; | 161 | break; |
160 | case "B1": | 162 | case "B1": |
161 | getWorkFlowImage(this.bsmSlsq).then(res => { | 163 | getWorkFlowImage(this.bsmSlsq).then(res => { | ... | ... |
src/views/workflow/workFrameView.vue
0 → 100644
1 | <template> | ||
2 | <div class="container"> | ||
3 | <!-- 顶部内容框 --> | ||
4 | <div class="topButton"> | ||
5 | <!-- 左侧业务功能按钮 --> | ||
6 | <ul> | ||
7 | <li @click="operation(index, item)" v-for="(item, index) in leftButtonList" :key="index"> | ||
8 | <svg-icon :icon-class="item.icon" /> | ||
9 | <span class="iconName">{{ item.name }}</span> | ||
10 | </li> | ||
11 | </ul> | ||
12 | <!-- 右侧流程按钮 --> | ||
13 | <ul> | ||
14 | <li @click="operation(index, item)" v-for="(item, index) in rightButtonList" :key="index"> | ||
15 | <svg-icon class="icon" :icon-class="item.icon" /> | ||
16 | <span class="iconName">{{ item.name }}</span> | ||
17 | </li> | ||
18 | </ul> | ||
19 | </div> | ||
20 | <!-- 内容框架 --> | ||
21 | <div class="containerFrame"> | ||
22 | <!-- 左侧菜单栏 --> | ||
23 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | ||
24 | <div v-if="this.isShowdrawer"> | ||
25 | <div class="title">申请单元列表({{ unitData.length }})</div> | ||
26 | <el-menu :default-active="activeIndex" @select="unitClick"> | ||
27 | <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> | ||
28 | <p>{{ item.bdcdyh }}</p> | ||
29 | <p class="title-detail">{{ item.zl }}</p> | ||
30 | </el-menu-item> | ||
31 | </el-menu> | ||
32 | </div> | ||
33 | <div class="map-drawer-click map-drawer" v-if="!isShowdrawer" @click=" | ||
34 | () => { | ||
35 | this.isShowdrawer = !this.isShowdrawer; | ||
36 | } | ||
37 | "></div> | ||
38 | <div class="map-drawer-expand map-drawer" v-else @click=" | ||
39 | () => { | ||
40 | this.isShowdrawer = !this.isShowdrawer; | ||
41 | } | ||
42 | "></div> | ||
43 | </div> | ||
44 | <div class="leftCon"> | ||
45 | <!-- 分屏左侧预览 --> | ||
46 | <div v-if="splitScreen" class="splitScreen-con"> | ||
47 | <component :is="clxxForm" v-bind="currentSelectProps" :key="fresh" /> | ||
48 | </div> | ||
49 | <!-- 表单内容区域 --> | ||
50 | <div class="rightContainer"> | ||
51 | <el-tabs v-model="tabName" @tab-click="tabClick"> | ||
52 | <el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index"> | ||
53 | </el-tab-pane> | ||
54 | </el-tabs> | ||
55 | <component :key="fresh" :is="componentTag" v-bind="currentSelectProps" /> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | ||
59 | </div> | ||
60 | </template> | ||
61 | |||
62 | <style scoped lang='scss'> | ||
63 | @import "~@/styles/mixin.scss"; | ||
64 | @import "./workFrame.scss"; | ||
65 | </style> | ||
66 | |||
67 | <script> | ||
68 | import { | ||
69 | leftMenu, | ||
70 | stepExpandInfo, | ||
71 | record, | ||
72 | getNextLinkInfo, | ||
73 | completeTask, | ||
74 | } from "@/api/fqsq.js" | ||
75 | import { getWorkFlowImage } from "@/api/jsydsyqFlow.js" | ||
76 | import { getForm } from "./flowform.js" | ||
77 | export default { | ||
78 | data () { | ||
79 | return { | ||
80 | // 流程图 | ||
81 | imgSrc: '', | ||
82 | // 折叠 | ||
83 | isShowdrawer: true, | ||
84 | // 默认选中 | ||
85 | activeIndex: '0', | ||
86 | //受理申请标识码 | ||
87 | bsmSlsq: this.$route.query.bsmSlsq, | ||
88 | //当前流程所在环节 | ||
89 | bestepid: this.$route.query.bestepid, | ||
90 | //顶部左侧按钮集合 | ||
91 | leftButtonList: [], | ||
92 | //顶部右侧按钮集合 | ||
93 | rightButtonList: [], | ||
94 | //左侧菜单数据集合 | ||
95 | unitData: [], | ||
96 | //设置那个表单选中 | ||
97 | tabName: "", | ||
98 | //表单集合 | ||
99 | tabList: [], | ||
100 | //选择加载哪一个组件 | ||
101 | componentTag: "", | ||
102 | //设置表单组件是否刷选值 | ||
103 | fresh: 10, | ||
104 | //设置表单传递数据 | ||
105 | currentSelectProps: {}, | ||
106 | //是否开启材料分屏 | ||
107 | splitScreen: false, | ||
108 | //材料分屏表单 | ||
109 | clxxForm: "", | ||
110 | //材料信息选择卡索引 | ||
111 | clxxIndex: "", | ||
112 | //材料信息选项卡对象 | ||
113 | clxxTab: {}, | ||
114 | } | ||
115 | }, | ||
116 | mounted () { | ||
117 | this.loadBdcdylist(); | ||
118 | this.flowInitParam(); | ||
119 | }, | ||
120 | methods: { | ||
121 | //加载流程初始参数 | ||
122 | flowInitParam () { | ||
123 | var formdata = new FormData(); | ||
124 | formdata.append("bsmSlsq", this.bsmSlsq); | ||
125 | formdata.append("bestepid", this.bestepid); | ||
126 | formdata.append("type", "READ_ONLY"); | ||
127 | stepExpandInfo(formdata).then((res) => { | ||
128 | if (res.code === 200) { | ||
129 | this.leftButtonList = res.result.button; | ||
130 | this.rightButtonList = res.result.operation; | ||
131 | this.tabList = res.result.form; | ||
132 | //默认选择第一个选项卡内容 | ||
133 | this.tabName = res.result.form[0].value; | ||
134 | let that = this; | ||
135 | this.tabList.forEach(function (item, index) { | ||
136 | if (item.value == "clxx") { | ||
137 | that.clxxIndex = index; | ||
138 | that.clxxForm = getForm(item.value); | ||
139 | that.clxxTab = item; | ||
140 | } | ||
141 | }); | ||
142 | //默认加载第一个选项卡的组件内容 | ||
143 | this.getFromRouter(res.result.form[0].value); | ||
144 | } | ||
145 | }) | ||
146 | }, | ||
147 | //流程环节操作按钮 | ||
148 | operation (index, item) { | ||
149 | //按钮 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 | ||
150 | //操作按钮 登簿:record 转件:transfer 退回:back 退出:signout | ||
151 | let that = this; | ||
152 | switch (item.value) { | ||
153 | case "B1": | ||
154 | getWorkFlowImage(this.bsmSlsq).then(res => { | ||
155 | this.imgSrc = URL.createObjectURL(res) | ||
156 | this.$popup({ | ||
157 | title: '流程图', | ||
158 | editItem: 'workflow/components/flowChart', | ||
159 | formData: this.imgSrc | ||
160 | }) | ||
161 | }) | ||
162 | break; | ||
163 | case "B5": | ||
164 | this.zsylFlag = true; | ||
165 | break; | ||
166 | case "B2": //材料分屏按钮 | ||
167 | this.splitScreen = this.splitScreen ? false : true; | ||
168 | this.$store.dispatch('app/settScreen', this.splitScreen) | ||
169 | if (this.splitScreen) { | ||
170 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 | ||
171 | if (this.tabName == this.clxxTab.value) { | ||
172 | this.tabName = this.tabList[this.clxxIndex - 1].value; | ||
173 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); | ||
174 | } | ||
175 | this.tabList.splice(this.clxxIndex, 1); | ||
176 | } else { | ||
177 | this.tabList.splice(this.clxxIndex, 1, this.clxxTab); | ||
178 | } | ||
179 | break; | ||
180 | case "signout": | ||
181 | window.close(); | ||
182 | break; | ||
183 | } | ||
184 | }, | ||
185 | //读取申请单元信息 | ||
186 | loadBdcdylist () { | ||
187 | var formdata = new FormData(); | ||
188 | formdata.append("bsmSlsq", this.bsmSlsq); | ||
189 | formdata.append("bestepid", this.bestepid); | ||
190 | leftMenu(formdata).then((res) => { | ||
191 | if (res.code === 200) { | ||
192 | this.unitData = res.result; | ||
193 | this.currentSelectProps = res.result[0]; | ||
194 | } | ||
195 | }) | ||
196 | }, | ||
197 | //申请单元点击事件 | ||
198 | unitClick (index) { | ||
199 | if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) { | ||
200 | this.currentSelectProps = this.unitData[index]; | ||
201 | this.fresh += 1; | ||
202 | } | ||
203 | }, | ||
204 | //表单选项卡事件 | ||
205 | tabClick (tab, event) { | ||
206 | this.getFromRouter(tab.name); | ||
207 | }, | ||
208 | //切换选项卡内容组件 | ||
209 | getFromRouter (tabname) { | ||
210 | this.componentTag = getForm(tabname); | ||
211 | }, | ||
212 | } | ||
213 | } | ||
214 | </script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -131,7 +131,7 @@ export default { | ... | @@ -131,7 +131,7 @@ export default { |
131 | this.fetchData() | 131 | this.fetchData() |
132 | }, | 132 | }, |
133 | ywhClick (item) { | 133 | ywhClick (item) { |
134 | const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); | 134 | const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); |
135 | window.open(href, '_blank'); | 135 | window.open(href, '_blank'); |
136 | } | 136 | } |
137 | } | 137 | } | ... | ... |
... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
32 | </el-col> | 32 | </el-col> |
33 | <el-col :span="2" class="btnCol"> | 33 | <el-col :span="2" class="btnCol"> |
34 | <el-form-item> | 34 | <el-form-item> |
35 | <el-button type="primary" @click="queryClick()">查询</el-button> | 35 | <el-button type="primary" @click="fetchData">查询</el-button> |
36 | </el-form-item> | 36 | </el-form-item> |
37 | </el-col> | 37 | </el-col> |
38 | </el-row> | 38 | </el-row> |
... | @@ -53,6 +53,7 @@ | ... | @@ -53,6 +53,7 @@ |
53 | </template> | 53 | </template> |
54 | <script> | 54 | <script> |
55 | //查封登记 | 55 | //查封登记 |
56 | import Cookies from 'js-cookie' | ||
56 | import { datas, sendThis } from "../javascript/bdcql.js"; | 57 | import { datas, sendThis } from "../javascript/bdcql.js"; |
57 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
58 | import table from "@/utils/mixin/table"; | 59 | import table from "@/utils/mixin/table"; |
... | @@ -60,6 +61,10 @@ import jump from "../components/mixin/jump"; | ... | @@ -60,6 +61,10 @@ import jump from "../components/mixin/jump"; |
60 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; | 61 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; |
61 | export default { | 62 | export default { |
62 | mixins: [table, jump], | 63 | mixins: [table, jump], |
64 | props: { | ||
65 | isJump: { type: Boolean, default: false }, | ||
66 | djywbm: { type: String, default: '' } | ||
67 | }, | ||
63 | data () { | 68 | data () { |
64 | return { | 69 | return { |
65 | queryForm: defaultParameters.defaultParameters(), | 70 | queryForm: defaultParameters.defaultParameters(), |
... | @@ -76,9 +81,6 @@ export default { | ... | @@ -76,9 +81,6 @@ export default { |
76 | mounted () { | 81 | mounted () { |
77 | sendThis(this) | 82 | sendThis(this) |
78 | }, | 83 | }, |
79 | computed: { | ||
80 | ...mapGetters([ 'bsmSqyw', 'djywbm']) | ||
81 | }, | ||
82 | methods: { | 84 | methods: { |
83 | closeDialog () { | 85 | closeDialog () { |
84 | this.$emit("closeDialog") | 86 | this.$emit("closeDialog") |
... | @@ -87,6 +89,7 @@ export default { | ... | @@ -87,6 +89,7 @@ export default { |
87 | this.queryForm.sqywbm = this.djywbm; | 89 | this.queryForm.sqywbm = this.djywbm; |
88 | selectQlxx({ ...this.queryForm, ...this.pageData }) | 90 | selectQlxx({ ...this.queryForm, ...this.pageData }) |
89 | .then((res) => { | 91 | .then((res) => { |
92 | console.log(res); | ||
90 | if (res.code === 200) { | 93 | if (res.code === 200) { |
91 | let { total, records } = res.result; | 94 | let { total, records } = res.result; |
92 | this.tableData.total = total; | 95 | this.tableData.total = total; |
... | @@ -101,12 +104,23 @@ export default { | ... | @@ -101,12 +104,23 @@ export default { |
101 | } | 104 | } |
102 | this.saveloding = true; | 105 | this.saveloding = true; |
103 | startBusinessFlow({ | 106 | startBusinessFlow({ |
104 | bsmSqyw: this.bsmSqyw, | 107 | bsmSqyw: Cookies.get("bsmSqyw"), |
105 | bdcdysz: this.bdcdysz, | 108 | bdcdysz: this.bdcdysz, |
109 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', | ||
110 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', | ||
106 | }).then((res) => { | 111 | }).then((res) => { |
107 | this.saveloding = false; | 112 | this.saveloding = false; |
108 | if (res.code == 200) { | 113 | if (res.code == 200) { |
109 | this.jump(res.result) | 114 | this.$message({ |
115 | showClose: true, | ||
116 | message: '发起申请成功', | ||
117 | type: 'success' | ||
118 | }) | ||
119 | if (!this.isJump) { | ||
120 | this.jump(res.result, this.djywbm) | ||
121 | } else { | ||
122 | this.$emit('updateDialog', true) | ||
123 | } | ||
110 | } else { | 124 | } else { |
111 | this.$message.error(res.message); | 125 | this.$message.error(res.message); |
112 | } | 126 | } | ... | ... |
... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
33 | </el-col> | 33 | </el-col> |
34 | <el-col :span="2" class="btnCol"> | 34 | <el-col :span="2" class="btnCol"> |
35 | <el-form-item> | 35 | <el-form-item> |
36 | <el-button type="primary" @click="queryClick()">查询</el-button> | 36 | <el-button type="primary" @click="fetchData()">查询</el-button> |
37 | </el-form-item> | 37 | </el-form-item> |
38 | </el-col> | 38 | </el-col> |
39 | </el-row> | 39 | </el-row> |
... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
53 | </div> | 53 | </div> |
54 | </template> | 54 | </template> |
55 | <script> | 55 | <script> |
56 | import { mapGetters } from 'vuex' | 56 | import Cookies from 'js-cookie' |
57 | import { datas, sendThis } from "../javascript/bdcqlMain.js"; | 57 | import { datas, sendThis } from "../javascript/bdcqlMain.js"; |
58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
59 | import table from "@/utils/mixin/table"; | 59 | import table from "@/utils/mixin/table"; |
... | @@ -61,6 +61,10 @@ import jump from "../components/mixin/jump"; | ... | @@ -61,6 +61,10 @@ import jump from "../components/mixin/jump"; |
61 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; | 61 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; |
62 | export default { | 62 | export default { |
63 | mixins: [table, jump], | 63 | mixins: [table, jump], |
64 | props: { | ||
65 | isJump: { type: Boolean, default: false }, | ||
66 | djywbm: { type: String, default: '' } | ||
67 | }, | ||
64 | data () { | 68 | data () { |
65 | return { | 69 | return { |
66 | queryForm: defaultParameters.defaultParameters(), | 70 | queryForm: defaultParameters.defaultParameters(), |
... | @@ -77,9 +81,6 @@ export default { | ... | @@ -77,9 +81,6 @@ export default { |
77 | mounted () { | 81 | mounted () { |
78 | sendThis(this) | 82 | sendThis(this) |
79 | }, | 83 | }, |
80 | computed: { | ||
81 | ...mapGetters(['bsmSqyw', 'djywbm']), | ||
82 | }, | ||
83 | methods: { | 84 | methods: { |
84 | closeDialog () { | 85 | closeDialog () { |
85 | this.$emit("closeDialog") | 86 | this.$emit("closeDialog") |
... | @@ -102,8 +103,10 @@ export default { | ... | @@ -102,8 +103,10 @@ export default { |
102 | } | 103 | } |
103 | this.saveloding = true; | 104 | this.saveloding = true; |
104 | startBusinessFlow({ | 105 | startBusinessFlow({ |
105 | bsmSqyw: this.bsmSqyw, | 106 | bsmSqyw: Cookies.get("bsmSqyw"), |
106 | bdcdysz: this.bdcdysz, | 107 | bdcdysz: this.bdcdysz, |
108 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', | ||
109 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', | ||
107 | }).then((res) => { | 110 | }).then((res) => { |
108 | this.saveloding = false; | 111 | this.saveloding = false; |
109 | if (res.code == 200) { | 112 | if (res.code == 200) { | ... | ... |
... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
32 | </el-col> | 32 | </el-col> |
33 | <el-col :span="2" class="btnCol"> | 33 | <el-col :span="2" class="btnCol"> |
34 | <el-form-item> | 34 | <el-form-item> |
35 | <el-button type="primary" @click="queryClick()">查询</el-button> | 35 | <el-button type="primary" @click="fetchData()">查询</el-button> |
36 | </el-form-item> | 36 | </el-form-item> |
37 | </el-col> | 37 | </el-col> |
38 | </el-row> | 38 | </el-row> |
... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
53 | </template> | 53 | </template> |
54 | <script> | 54 | <script> |
55 | //查封登记 | 55 | //查封登记 |
56 | import { mapGetters } from 'vuex' | 56 | import Cookies from 'js-cookie' |
57 | import { datas, sendThis } from "../javascript/cfdj.js"; | 57 | import { datas, sendThis } from "../javascript/cfdj.js"; |
58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 58 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
59 | import table from "@/utils/mixin/table"; | 59 | import table from "@/utils/mixin/table"; |
... | @@ -61,7 +61,8 @@ import jump from "../components/mixin/jump"; | ... | @@ -61,7 +61,8 @@ import jump from "../components/mixin/jump"; |
61 | import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js"; | 61 | import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js"; |
62 | export default { | 62 | export default { |
63 | props: { | 63 | props: { |
64 | djywbm: { type: String, default: "" } | 64 | isJump: { type: Boolean, default: false }, |
65 | djywbm: { type: String, default: '' } | ||
65 | }, | 66 | }, |
66 | mixins: [table, jump], | 67 | mixins: [table, jump], |
67 | data () { | 68 | data () { |
... | @@ -80,9 +81,6 @@ export default { | ... | @@ -80,9 +81,6 @@ export default { |
80 | mounted () { | 81 | mounted () { |
81 | sendThis(this); | 82 | sendThis(this); |
82 | }, | 83 | }, |
83 | computed: { | ||
84 | ...mapGetters(['bsmSqyw', 'djywbm']), | ||
85 | }, | ||
86 | methods: { | 84 | methods: { |
87 | closeDialog () { | 85 | closeDialog () { |
88 | this.$emit("closeDialog") | 86 | this.$emit("closeDialog") |
... | @@ -105,12 +103,23 @@ export default { | ... | @@ -105,12 +103,23 @@ export default { |
105 | } | 103 | } |
106 | this.saveloding = true; | 104 | this.saveloding = true; |
107 | startBusinessFlow({ | 105 | startBusinessFlow({ |
108 | bsmSqyw: this.bsmSqyw, | 106 | bsmSqyw: Cookies.get("bsmSqyw"), |
109 | bdcdysz: this.bdcdysz, | 107 | bdcdysz: this.bdcdysz, |
108 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', | ||
109 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', | ||
110 | }).then((res) => { | 110 | }).then((res) => { |
111 | this.saveloding = false; | 111 | this.saveloding = false; |
112 | if (res.code == 200) { | 112 | if (res.code == 200) { |
113 | this.jump(res.result) | 113 | this.$message({ |
114 | showClose: true, | ||
115 | message: '发起申请成功', | ||
116 | type: 'success' | ||
117 | }) | ||
118 | if (!this.isJump) { | ||
119 | this.jump(res.result, this.djywbm) | ||
120 | } else { | ||
121 | this.$emit('updateDialog', true) | ||
122 | } | ||
114 | } else { | 123 | } else { |
115 | this.$message.error(res.message); | 124 | this.$message.error(res.message); |
116 | } | 125 | } | ... | ... |
... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
55 | </template> | 55 | </template> |
56 | <script> | 56 | <script> |
57 | //抵押权首次登记 | 57 | //抵押权首次登记 |
58 | import { mapGetters } from 'vuex' | 58 | import Cookies from 'js-cookie' |
59 | import { datas, sendThis } from "../javascript/diyaq.js"; | 59 | import { datas, sendThis } from "../javascript/diyaq.js"; |
60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
61 | import table from "@/utils/mixin/table"; | 61 | import table from "@/utils/mixin/table"; |
... | @@ -63,6 +63,10 @@ import jump from "../components/mixin/jump"; | ... | @@ -63,6 +63,10 @@ import jump from "../components/mixin/jump"; |
63 | import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js"; | 63 | import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js"; |
64 | export default { | 64 | export default { |
65 | mixins: [table, jump], | 65 | mixins: [table, jump], |
66 | props: { | ||
67 | isJump: { type: Boolean, default: false }, | ||
68 | djywbm: { type: String, default: '' } | ||
69 | }, | ||
66 | data () { | 70 | data () { |
67 | return { | 71 | return { |
68 | queryForm: defaultParameters.defaultParameters(), | 72 | queryForm: defaultParameters.defaultParameters(), |
... | @@ -79,24 +83,19 @@ export default { | ... | @@ -79,24 +83,19 @@ export default { |
79 | mounted () { | 83 | mounted () { |
80 | sendThis(this); | 84 | sendThis(this); |
81 | }, | 85 | }, |
82 | computed: { | ||
83 | ...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']), | ||
84 | }, | ||
85 | methods: { | 86 | methods: { |
86 | closeDialog () { | 87 | closeDialog () { |
87 | this.$emit("closeDialog"); | 88 | this.$emit("closeDialog"); |
88 | }, | 89 | }, |
89 | fetchData () { | 90 | fetchData () { |
90 | if (this.bsmSqyw) { | 91 | this.queryForm.sqywbm = this.djywbm; |
91 | this.queryForm.sqywbm = this.djywbm; | 92 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { |
92 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | 93 | if (res.code === 200) { |
93 | if (res.code === 200) { | 94 | let { total, records } = res.result; |
94 | let { total, records } = res.result; | 95 | this.tableData.total = total; |
95 | this.tableData.total = total; | 96 | this.tableData.data = records; |
96 | this.tableData.data = records; | 97 | } |
97 | } | 98 | }); |
98 | }); | ||
99 | } | ||
100 | }, | 99 | }, |
101 | submitForm () { | 100 | submitForm () { |
102 | if (this.bdcdysz.length == 0) { | 101 | if (this.bdcdysz.length == 0) { |
... | @@ -105,14 +104,23 @@ export default { | ... | @@ -105,14 +104,23 @@ export default { |
105 | } | 104 | } |
106 | this.saveloding = true; | 105 | this.saveloding = true; |
107 | startBusinessFlow({ | 106 | startBusinessFlow({ |
108 | bsmSqyw: this.bsmSqyw, | 107 | bsmSqyw: Cookies.get("bsmSqyw"), |
109 | bdcdysz: this.bdcdysz, | 108 | bdcdysz: this.bdcdysz, |
110 | djqxbm: this.djqxObj.djqxbm, | 109 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', |
111 | djqxmc: this.djqxObj.djqxmc, | 110 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', |
112 | }).then((res) => { | 111 | }).then((res) => { |
113 | this.saveloding = false; | 112 | this.saveloding = false; |
114 | if (res.code == 200) { | 113 | if (res.code == 200) { |
115 | this.jump(res.result) | 114 | this.$message({ |
115 | showClose: true, | ||
116 | message: '发起申请成功', | ||
117 | type: 'success' | ||
118 | }) | ||
119 | if (!this.isJump) { | ||
120 | this.jump(res.result, this.djywbm) | ||
121 | } else { | ||
122 | this.$emit('updateDialog', true) | ||
123 | } | ||
116 | } else { | 124 | } else { |
117 | this.$message.error(res.message); | 125 | this.$message.error(res.message); |
118 | } | 126 | } | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="from-clues"> | 2 | <div class="from-clues"> |
3 | <!-- 表单部分 --> | ||
4 | <div class="from-clues-header"> | 3 | <div class="from-clues-header"> |
5 | <el-tabs v-model="activeName" @tab-click="handleTabClick"> | 4 | <el-tabs v-model="activeName" @tab-click="handleTabClick"> |
6 | <el-tab-pane label="自然幢" name="zrz"></el-tab-pane> | 5 | <el-tab-pane label="自然幢" name="zrz"></el-tab-pane> |
7 | <el-tab-pane label="户" name="h"></el-tab-pane> | 6 | <el-tab-pane label="户" name="h"></el-tab-pane> |
8 | </el-tabs> | 7 | </el-tabs> |
9 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> | 8 | <el-form :model="queryForm" ref="queryForm" label-width="110px"> |
10 | <el-row> | 9 | <el-row> |
11 | <el-col :span="6"> | 10 | <el-col :span="6"> |
12 | <el-form-item label="不动产单元号"> | 11 | <el-form-item label="不动产单元号"> |
... | @@ -16,19 +15,18 @@ | ... | @@ -16,19 +15,18 @@ |
16 | </el-col> | 15 | </el-col> |
17 | <el-col :span="6"> | 16 | <el-col :span="6"> |
18 | <el-form-item label="坐落"> | 17 | <el-form-item label="坐落"> |
19 | <el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable class="width300px"> | 18 | <el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable> |
20 | </el-input> | 19 | </el-input> |
21 | </el-form-item> | 20 | </el-form-item> |
22 | </el-col> | 21 | </el-col> |
23 | <el-col :span="4" class="btnCol"> | 22 | <el-col :span="12" class="btnCol"> |
24 | <el-form-item> | 23 | <el-form-item> |
25 | <el-button type="primary" @click="queryClick()">查询</el-button> | 24 | <el-button type="primary" @click="fetchData()">查询</el-button> |
26 | </el-form-item> | 25 | </el-form-item> |
27 | </el-col> | 26 | </el-col> |
28 | </el-row> | 27 | </el-row> |
29 | </el-form> | 28 | </el-form> |
30 | </div> | 29 | </div> |
31 | <!-- 表格 --> | ||
32 | <div class="from-clues-content"> | 30 | <div class="from-clues-content"> |
33 | <lb-table border :page-size="pageData.pageSize" :heightNum="400" :current-page.sync="pageData.currentPage" | 31 | <lb-table border :page-size="pageData.pageSize" :heightNum="400" :current-page.sync="pageData.currentPage" |
34 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 32 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
... | @@ -43,13 +41,17 @@ | ... | @@ -43,13 +41,17 @@ |
43 | </template> | 41 | </template> |
44 | <script> | 42 | <script> |
45 | //国有建设用地使用权/房屋使用权 | 43 | //国有建设用地使用权/房屋使用权 |
46 | import { mapGetters } from 'vuex' | 44 | import Cookies from 'js-cookie' |
47 | import { datas, sendThis } from "../javascript/fwsyq.js"; | 45 | import { datas, sendThis } from "../javascript/fwsyq.js"; |
48 | import table from "@/utils/mixin/table"; | 46 | import table from "@/utils/mixin/table"; |
49 | import jump from "../components/mixin/jump"; | 47 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; |
50 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; | 48 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; |
51 | export default { | 49 | export default { |
52 | mixins: [table, jump], | 50 | mixins: [table, jump], |
51 | props: { | ||
52 | isJump: { type: Boolean, default: false }, | ||
53 | djywbm: { type: String, default: '' } | ||
54 | }, | ||
53 | data () { | 55 | data () { |
54 | return { | 56 | return { |
55 | activeName: 'zrz', | 57 | activeName: 'zrz', |
... | @@ -71,14 +73,11 @@ export default { | ... | @@ -71,14 +73,11 @@ export default { |
71 | mounted () { | 73 | mounted () { |
72 | sendThis(this) | 74 | sendThis(this) |
73 | }, | 75 | }, |
74 | computed: { | ||
75 | ...mapGetters(['dictData', 'bsmSqyw', 'djqxObj', 'djywbm']), | ||
76 | }, | ||
77 | methods: { | 76 | methods: { |
78 | closeDialog () { | 77 | closeDialog () { |
79 | this.$emit("closeDialog"); | 78 | this.$emit("closeDialog"); |
80 | }, | 79 | }, |
81 | queryClick () { | 80 | fetchData () { |
82 | this.queryForm.sqywbm = this.djywbm; | 81 | this.queryForm.sqywbm = this.djywbm; |
83 | selectFwsyq({ ...this.queryForm, ...this.pageData, fwfl: this.activeName }).then((res) => { | 82 | selectFwsyq({ ...this.queryForm, ...this.pageData, fwfl: this.activeName }).then((res) => { |
84 | if (res.code === 200) { | 83 | if (res.code === 200) { |
... | @@ -90,7 +89,7 @@ export default { | ... | @@ -90,7 +89,7 @@ export default { |
90 | }, | 89 | }, |
91 | handleTabClick () { | 90 | handleTabClick () { |
92 | this.pageData.currentPage = 1 | 91 | this.pageData.currentPage = 1 |
93 | this.queryClick() | 92 | this.fetchData() |
94 | }, | 93 | }, |
95 | submitForm () { | 94 | submitForm () { |
96 | if (this.bdcdysz.length == 0) { | 95 | if (this.bdcdysz.length == 0) { |
... | @@ -98,13 +97,22 @@ export default { | ... | @@ -98,13 +97,22 @@ export default { |
98 | return; | 97 | return; |
99 | } | 98 | } |
100 | startBusinessFlow({ | 99 | startBusinessFlow({ |
101 | bsmSqyw: this.bsmSqyw, | 100 | bsmSqyw: Cookies.get("bsmSqyw"), |
102 | bdcdysz: this.bdcdysz, | 101 | bdcdysz: this.bdcdysz, |
103 | djqxbm: this.djqxObj.djqxbm, | 102 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', |
104 | djqxmc: this.djqxObj.djqxmc, | 103 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', |
105 | }).then((res) => { | 104 | }).then((res) => { |
106 | if (res.code == 200) { | 105 | if (res.code == 200) { |
107 | this.jump(res.result, this.djywbm) | 106 | this.$message({ |
107 | showClose: true, | ||
108 | message: '发起申请成功', | ||
109 | type: 'success' | ||
110 | }) | ||
111 | if (!this.isJump) { | ||
112 | this.jump(res.result, this.djywbm) | ||
113 | } else { | ||
114 | this.$emit('updateDialog', true) | ||
115 | } | ||
108 | } else { | 116 | } else { |
109 | this.$message.error(res.message); | 117 | this.$message.error(res.message); |
110 | } | 118 | } | ... | ... |
... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
18 | </el-col> | 18 | </el-col> |
19 | <el-col :span="4" class="btnCol"> | 19 | <el-col :span="4" class="btnCol"> |
20 | <el-form-item> | 20 | <el-form-item> |
21 | <el-button type="primary" @click="queryClick()">查询</el-button> | 21 | <el-button type="primary" @click="fetchData">查询</el-button> |
22 | </el-form-item> | 22 | </el-form-item> |
23 | </el-col> | 23 | </el-col> |
24 | </el-row> | 24 | </el-row> |
... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
39 | </template> | 39 | </template> |
40 | <script> | 40 | <script> |
41 | //首次登记 | 41 | //首次登记 |
42 | import { mapGetters } from 'vuex' | 42 | import Cookies from 'js-cookie' |
43 | import { datas, sendThis } from "../javascript/jsydsyq100.js"; | 43 | import { datas, sendThis } from "../javascript/jsydsyq100.js"; |
44 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 44 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
45 | import table from "@/utils/mixin/table"; | 45 | import table from "@/utils/mixin/table"; |
... | @@ -47,6 +47,10 @@ import jump from "../components/mixin/jump"; | ... | @@ -47,6 +47,10 @@ import jump from "../components/mixin/jump"; |
47 | import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js"; | 47 | import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js"; |
48 | export default { | 48 | export default { |
49 | mixins: [table, jump], | 49 | mixins: [table, jump], |
50 | props: { | ||
51 | isJump: { type: Boolean, default: false }, | ||
52 | djywbm: { type: String, default: '' } | ||
53 | }, | ||
50 | data () { | 54 | data () { |
51 | return { | 55 | return { |
52 | queryForm: defaultParameters.defaultParameters(), | 56 | queryForm: defaultParameters.defaultParameters(), |
... | @@ -61,33 +65,23 @@ export default { | ... | @@ -61,33 +65,23 @@ export default { |
61 | saveloding: false, | 65 | saveloding: false, |
62 | }; | 66 | }; |
63 | }, | 67 | }, |
64 | watch: { | ||
65 | bsmSqyw (val) { | ||
66 | this.fetchData(); | ||
67 | }, | ||
68 | }, | ||
69 | mounted () { | 68 | mounted () { |
70 | sendThis(this); | 69 | sendThis(this); |
71 | }, | 70 | }, |
72 | computed: { | ||
73 | ...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']), | ||
74 | }, | ||
75 | methods: { | 71 | methods: { |
76 | closeDialog () { | 72 | closeDialog () { |
77 | this.$emit("closeDialog"); | 73 | this.$emit("closeDialog"); |
78 | }, | 74 | }, |
79 | fetchData () { | 75 | fetchData () { |
80 | if (this.bsmSqyw) { | 76 | this.queryForm.sqywbm = this.djywbm; |
81 | this.queryForm.sqywbm = this.djywbm; | ||
82 | 77 | ||
83 | selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => { | 78 | selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => { |
84 | if (res.code === 200) { | 79 | if (res.code === 200) { |
85 | let { total, records } = res.result; | 80 | let { total, records } = res.result; |
86 | this.tableData.total = total; | 81 | this.tableData.total = total; |
87 | this.tableData.data = records; | 82 | this.tableData.data = records; |
88 | } | 83 | } |
89 | }); | 84 | }); |
90 | } | ||
91 | }, | 85 | }, |
92 | submitForm () { | 86 | submitForm () { |
93 | if (this.bdcdysz.length == 0) { | 87 | if (this.bdcdysz.length == 0) { |
... | @@ -96,14 +90,23 @@ export default { | ... | @@ -96,14 +90,23 @@ export default { |
96 | } | 90 | } |
97 | this.saveloding = true; | 91 | this.saveloding = true; |
98 | startBusinessFlow({ | 92 | startBusinessFlow({ |
99 | bsmSqyw: this.bsmSqyw, | 93 | bsmSqyw: Cookies.get("bsmSqyw"), |
100 | bdcdysz: this.bdcdysz, | 94 | bdcdysz: this.bdcdysz, |
101 | djqxbm: this.djqxObj.djqxbm, | 95 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', |
102 | djqxmc: this.djqxObj.djqxmc, | 96 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', |
103 | }).then((res) => { | 97 | }).then((res) => { |
104 | this.saveloding = false; | 98 | this.saveloding = false; |
105 | if (res.code == 200) { | 99 | if (res.code == 200) { |
106 | this.jump(res.result) | 100 | this.$message({ |
101 | showClose: true, | ||
102 | message: '发起申请成功', | ||
103 | type: 'success' | ||
104 | }) | ||
105 | if (!this.isJump) { | ||
106 | this.jump(res.result, this.djywbm) | ||
107 | } else { | ||
108 | this.$emit('updateDialog', true) | ||
109 | } | ||
107 | } else { | 110 | } else { |
108 | this.$message.error(res.message); | 111 | this.$message.error(res.message); |
109 | } | 112 | } | ... | ... |
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | </el-col> | 34 | </el-col> |
35 | <el-col :span="2" class="btnCol"> | 35 | <el-col :span="2" class="btnCol"> |
36 | <el-form-item> | 36 | <el-form-item> |
37 | <el-button type="primary" @click="queryClick()">查询</el-button> | 37 | <el-button type="primary" @click="fetchData">查询</el-button> |
38 | </el-form-item> | 38 | </el-form-item> |
39 | </el-col> | 39 | </el-col> |
40 | </el-row> | 40 | </el-row> |
... | @@ -55,7 +55,7 @@ | ... | @@ -55,7 +55,7 @@ |
55 | </template> | 55 | </template> |
56 | <script> | 56 | <script> |
57 | //首次登记 | 57 | //首次登记 |
58 | import { mapGetters } from 'vuex' | 58 | import Cookies from 'js-cookie' |
59 | import { datas, sendThis } from "../javascript/jsydsyq200.js"; | 59 | import { datas, sendThis } from "../javascript/jsydsyq200.js"; |
60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 60 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
61 | import table from "@/utils/mixin/table"; | 61 | import table from "@/utils/mixin/table"; |
... | @@ -63,6 +63,10 @@ import jump from "../components/mixin/jump"; | ... | @@ -63,6 +63,10 @@ import jump from "../components/mixin/jump"; |
63 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; | 63 | import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js"; |
64 | export default { | 64 | export default { |
65 | mixins: [table, jump], | 65 | mixins: [table, jump], |
66 | props: { | ||
67 | isJump: { type: Boolean, default: false }, | ||
68 | djywbm: { type: String, default: '' } | ||
69 | }, | ||
66 | data () { | 70 | data () { |
67 | return { | 71 | return { |
68 | queryForm: defaultParameters.defaultParameters(), | 72 | queryForm: defaultParameters.defaultParameters(), |
... | @@ -76,33 +80,23 @@ export default { | ... | @@ -76,33 +80,23 @@ export default { |
76 | saveloding: false, | 80 | saveloding: false, |
77 | }; | 81 | }; |
78 | }, | 82 | }, |
79 | watch: { | ||
80 | bsmSqyw (val) { | ||
81 | this.fetchData(); | ||
82 | }, | ||
83 | }, | ||
84 | mounted () { | 83 | mounted () { |
85 | sendThis(this); | 84 | sendThis(this); |
86 | }, | 85 | }, |
87 | computed: { | ||
88 | ...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']), | ||
89 | }, | ||
90 | methods: { | 86 | methods: { |
91 | closeDialog () { | 87 | closeDialog () { |
92 | this.$emit("closeDialog"); | 88 | this.$emit("closeDialog"); |
93 | }, | 89 | }, |
94 | fetchData () { | 90 | fetchData () { |
95 | if (this.bsmSqyw) { | 91 | this.queryForm.sqywbm = this.djywbm; |
96 | this.queryForm.sqywbm = this.djywbm; | ||
97 | 92 | ||
98 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 93 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
99 | if (res.code === 200) { | 94 | if (res.code === 200) { |
100 | let { total, records } = res.result; | 95 | let { total, records } = res.result; |
101 | this.tableData.total = total; | 96 | this.tableData.total = total; |
102 | this.tableData.data = records; | 97 | this.tableData.data = records; |
103 | } | 98 | } |
104 | }); | 99 | }); |
105 | } | ||
106 | }, | 100 | }, |
107 | submitForm () { | 101 | submitForm () { |
108 | if (this.bdcdysz.length == 0) { | 102 | if (this.bdcdysz.length == 0) { |
... | @@ -111,14 +105,23 @@ export default { | ... | @@ -111,14 +105,23 @@ export default { |
111 | } | 105 | } |
112 | this.saveloding = true; | 106 | this.saveloding = true; |
113 | startBusinessFlow({ | 107 | startBusinessFlow({ |
114 | bsmSqyw: this.bsmSqyw, | 108 | bsmSqyw: Cookies.get("bsmSqyw"), |
115 | bdcdysz: this.bdcdysz, | 109 | bdcdysz: this.bdcdysz, |
116 | djqxbm: this.djqxObj.djqxbm, | 110 | djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', |
117 | djqxmc: this.djqxObj.djqxmc, | 111 | djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', |
118 | }).then((res) => { | 112 | }).then((res) => { |
119 | this.saveloding = false; | 113 | this.saveloding = false; |
120 | if (res.code == 200) { | 114 | if (res.code == 200) { |
121 | this.jump(res.result) | 115 | this.$message({ |
116 | showClose: true, | ||
117 | message: '发起申请成功', | ||
118 | type: 'success' | ||
119 | }) | ||
120 | if (!this.isJump) { | ||
121 | this.jump(res.result, this.djywbm) | ||
122 | } else { | ||
123 | this.$emit('updateDialog', true) | ||
124 | } | ||
122 | } else { | 125 | } else { |
123 | this.$message.error(res.message); | 126 | this.$message.error(res.message); |
124 | } | 127 | } | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue"> | 2 | <dialogBox title="查询权利信息" width="85%" :isButton="false" :isMain="true" @closeDialog="closeDialog" v-model="myValue"> |
3 | <component :is="editItem" @closeDialog="closeDialog" :key="key" /> | 3 | <component :is="editItem" @closeDialog="closeDialog" :isJump="isJump" @updateDialog="updateDialog" :djywbm="djywbm" |
4 | :key="key" /> | ||
4 | </dialogBox> | 5 | </dialogBox> |
5 | </template> | 6 | </template> |
6 | <script> | 7 | <script> |
7 | import { mapGetters } from 'vuex' | ||
8 | import { queueDjywmc } from './slectBdcdata.js' | 8 | import { queueDjywmc } from './slectBdcdata.js' |
9 | export default { | 9 | export default { |
10 | props: { | 10 | props: { |
11 | value: { type: Boolean, default: true } | 11 | isJump: { type: Boolean, default: false }, |
12 | value: { type: Boolean, default: true }, | ||
13 | djywbm: { type: String, default: '' } | ||
12 | }, | 14 | }, |
13 | data () { | 15 | data () { |
14 | return { | 16 | return { |
15 | key: 0, | 17 | key: 0, |
16 | editItem: '', | 18 | editItem: '', |
17 | myValue: this.value | 19 | myValue: this.value, |
18 | } | 20 | } |
19 | }, | 21 | }, |
20 | computed: { | ||
21 | ...mapGetters(['djywbm']) | ||
22 | }, | ||
23 | watch: { | 22 | watch: { |
24 | value (val) { | 23 | value (val) { |
25 | this.myValue = val | 24 | this.myValue = val |
26 | this.key++ | 25 | this.key++ |
26 | if (this.$route.query.sqywbm) { | ||
27 | let dd = queueDjywmc(this.$route.query.sqywbm) | ||
28 | this.editItem = this.loadView(dd) | ||
29 | } | ||
27 | }, | 30 | }, |
28 | djywbm (val) { | 31 | 'djywbm' (val) { |
29 | let dd = queueDjywmc(val) | 32 | let dd = queueDjywmc(val) |
30 | this.editItem = this.loadView(dd) | 33 | this.editItem = this.loadView(dd) |
31 | } | 34 | } |
... | @@ -36,6 +39,10 @@ export default { | ... | @@ -36,6 +39,10 @@ export default { |
36 | }, | 39 | }, |
37 | closeDialog () { | 40 | closeDialog () { |
38 | this.$emit("input", false) | 41 | this.$emit("input", false) |
42 | }, | ||
43 | updateDialog () { | ||
44 | this.$emit("input", false) | ||
45 | this.key++ | ||
39 | } | 46 | } |
40 | } | 47 | } |
41 | } | 48 | } | ... | ... |
... | @@ -65,12 +65,13 @@ | ... | @@ -65,12 +65,13 @@ |
65 | <el-button type="primary" :disabled="btnDisabled" @click="bthSelectClick">选择不动产</el-button> | 65 | <el-button type="primary" :disabled="btnDisabled" @click="bthSelectClick">选择不动产</el-button> |
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | <fqsqDialog v-model="isDialog" /> | 68 | <fqsqDialog v-model="isDialog" :djywbm="djywbm" /> |
69 | </div> | 69 | </div> |
70 | </template> | 70 | </template> |
71 | <script> | 71 | <script> |
72 | import { getCollectBiz, getleftMenu, getNextNode, addCollectBiz, deleteCollectBiz } from "@/api/ywbl" | 72 | import Cookies from 'js-cookie' |
73 | import fqsqDialog from "./slectBdc.vue" | 73 | import fqsqDialog from "./slectBdc.vue" |
74 | import { getCollectBiz, getleftMenu, getNextNode, addCollectBiz, deleteCollectBiz } from "@/api/ywbl" | ||
74 | export default { | 75 | export default { |
75 | data () { | 76 | data () { |
76 | return { | 77 | return { |
... | @@ -85,6 +86,7 @@ export default { | ... | @@ -85,6 +86,7 @@ export default { |
85 | djqxList: [], | 86 | djqxList: [], |
86 | isDialog: false, | 87 | isDialog: false, |
87 | btnDisabled: true, | 88 | btnDisabled: true, |
89 | djywbm: '' | ||
88 | } | 90 | } |
89 | }, | 91 | }, |
90 | components: { | 92 | components: { |
... | @@ -119,14 +121,14 @@ export default { | ... | @@ -119,14 +121,14 @@ export default { |
119 | this.$set(item, 'cselect', false) | 121 | this.$set(item, 'cselect', false) |
120 | }) | 122 | }) |
121 | item.cselect = true | 123 | item.cselect = true |
122 | this.$store.dispatch('ywbl/setDjqxObj', { | 124 | Cookies.set("djqxObj", JSON.stringify({ |
123 | 'djqxbm': item.nodecode, | 125 | 'djqxbm': item.nodecode, |
124 | 'djqxmc': item.nodename, | 126 | 'djqxmc': item.nodename |
125 | }) | 127 | })) |
126 | if (item.sffqlc == '1') { | 128 | if (item.sffqlc == '1') { |
127 | this.btnDisabled = false | 129 | this.btnDisabled = false |
128 | this.$store.dispatch('ywbl/setBsmSqyw', item.parentid) | 130 | Cookies.set("bsmSqyw", item.parentid) |
129 | this.$store.dispatch('ywbl/setDjywbm', item.djywbm) | 131 | this.djywbm = item.djywbm |
130 | } | 132 | } |
131 | }, | 133 | }, |
132 | handleList (list, obj) { | 134 | handleList (list, obj) { |
... | @@ -196,8 +198,8 @@ export default { | ... | @@ -196,8 +198,8 @@ export default { |
196 | this.$set(item, 'cselect', true) | 198 | this.$set(item, 'cselect', true) |
197 | if (item.sffqlc == '1') { | 199 | if (item.sffqlc == '1') { |
198 | this.btnDisabled = false | 200 | this.btnDisabled = false |
199 | this.$store.dispatch('ywbl/setBsmSqyw', item.bsmSqyw) | 201 | Cookies.set("bsmSqyw", item.bsmSqyw) |
200 | this.$store.dispatch('ywbl/setDjywbm', item.djywbm) | 202 | this.djywbm = item.djywbm |
201 | } else { | 203 | } else { |
202 | this.getNextNode(item.bsmSqyw, false) | 204 | this.getNextNode(item.bsmSqyw, false) |
203 | } | 205 | } | ... | ... |
... | @@ -116,7 +116,7 @@ export default { | ... | @@ -116,7 +116,7 @@ export default { |
116 | console.log(name, sort); | 116 | console.log(name, sort); |
117 | }, | 117 | }, |
118 | openDialog (item) { | 118 | openDialog (item) { |
119 | const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3') | 119 | const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3') |
120 | window.open(href, '_blank'); | 120 | window.open(href, '_blank'); |
121 | } | 121 | } |
122 | } | 122 | } | ... | ... |
-
Please register or sign in to post a comment