Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
9 changed files
with
342 additions
and
14 deletions
... | @@ -22,6 +22,7 @@ | ... | @@ -22,6 +22,7 @@ |
22 | "normalize.css": "7.0.0", | 22 | "normalize.css": "7.0.0", |
23 | "nprogress": "0.2.0", | 23 | "nprogress": "0.2.0", |
24 | "vue": "2.6.10", | 24 | "vue": "2.6.10", |
25 | "vue-json-editor": "^1.4.3", | ||
25 | "vue-quill-editor": "^3.0.6", | 26 | "vue-quill-editor": "^3.0.6", |
26 | "vue-router": "3.0.2", | 27 | "vue-router": "3.0.2", |
27 | "vue-seamless-scroll": "^1.1.23", | 28 | "vue-seamless-scroll": "^1.1.23", | ... | ... |
... | @@ -230,3 +230,16 @@ export function selectJsydQlxx (data) { | ... | @@ -230,3 +230,16 @@ export function selectJsydQlxx (data) { |
230 | data | 230 | data |
231 | }) | 231 | }) |
232 | } | 232 | } |
233 | |||
234 | /** | ||
235 | * 业务办理-选择权利信息-根据条件进行列表查询 | ||
236 | * @param data | ||
237 | * @returns {*} | ||
238 | */ | ||
239 | export function selectFwsyq (data) { | ||
240 | return request({ | ||
241 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectFwsyq', | ||
242 | method: 'post', | ||
243 | data | ||
244 | }) | ||
245 | } | ... | ... |
... | @@ -74,7 +74,7 @@ export default { | ... | @@ -74,7 +74,7 @@ export default { |
74 | interfaceMethods: ['webapi','webservice'], | 74 | interfaceMethods: ['webapi','webservice'], |
75 | interfaceTypes: [ | 75 | interfaceTypes: [ |
76 | {'label': '工作流服务平台','value':'1'}, | 76 | {'label': '工作流服务平台','value':'1'}, |
77 | {'label': '管理平台','value':'2'}, | 77 | {'label': '权限平台','value':'2'}, |
78 | {'label': '定时器服务','value':'3'}, | 78 | {'label': '定时器服务','value':'3'}, |
79 | {'label': '其他第三方平台','value':'4'}, | 79 | {'label': '其他第三方平台','value':'4'}, |
80 | ], | 80 | ], | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox title="调用接口" @submitForm="submitForm" saveButton="调用" width="50%" :isFullscreen="false" | 2 | <dialogBox title="调用接口" @submitForm="submitForm" saveButton="调用" width="50%" :isFullscreen="false" |
3 | @closeDialog="closeDialog" v-model="value"> | 3 | @closeDialog="closeDialog" v-model="value"> |
4 | <el-descriptions class="margin-top" :column="1" :size="16" border> | 4 | <el-descriptions class="margin-top" :column="1" size="16" border style="height:700px"> |
5 | <el-descriptions-item> | 5 | <el-descriptions-item> |
6 | <template slot="label" style="width:200px">接口代码</template>{{ruleForm.interfaceCode}} | 6 | <template slot="label" style="width:200px">接口代码</template>{{ruleForm.interfaceCode}} |
7 | </el-descriptions-item> | 7 | </el-descriptions-item> |
... | @@ -15,25 +15,39 @@ | ... | @@ -15,25 +15,39 @@ |
15 | <template slot="label">接口方式</template>{{ruleForm.interfaceMethod}} | 15 | <template slot="label">接口方式</template>{{ruleForm.interfaceMethod}} |
16 | </el-descriptions-item> | 16 | </el-descriptions-item> |
17 | <el-descriptions-item> | 17 | <el-descriptions-item> |
18 | <template slot="label">接口类型</template>{{ruleForm.interfaceType}} | 18 | <template slot="label">接口类型</template>{{getInterfaceType(ruleForm.interfaceType)}} |
19 | </el-descriptions-item> | 19 | </el-descriptions-item> |
20 | <el-descriptions-item> | 20 | <el-descriptions-item> |
21 | <template slot="label">接口参数</template><el-input v-model="interfaceParams" type="textarea" :rows="4"></el-input> | 21 | <template slot="label">接口参数</template> |
22 | <vue-json-editor | ||
23 | v-model="interfaceParams" | ||
24 | :showBtns="false" | ||
25 | :mode="'code'" | ||
26 | @json-change="onJsonChange" | ||
27 | @json-save="onJsonSave" | ||
28 | @has-error="onError"/> | ||
22 | </el-descriptions-item> | 29 | </el-descriptions-item> |
23 | <el-descriptions-item> | 30 | <el-descriptions-item> |
24 | <template slot="label">调用状态</template>{{returnMessage.statusCode}} | 31 | <template slot="label">调用状态</template> |
32 | <div style="color:green" v-if="returnMessage">{{returnMessage.statusCode}}</div> | ||
33 | <div style="color:red" v-else>ERROR</div> | ||
25 | </el-descriptions-item> | 34 | </el-descriptions-item> |
26 | <el-descriptions-item> | 35 | <el-descriptions-item> |
27 | <template slot="label">返回结果</template>{{returnMessage.body}} | 36 | <div slot="label" style="height:150px">返回结果 |
37 | </div> | ||
38 | <div v-if="returnMessage">{{returnMessage.body}}</div> | ||
39 | <div v-else>无效的接口CODE,请检查接口配置</div> | ||
28 | </el-descriptions-item> | 40 | </el-descriptions-item> |
29 | </el-descriptions> | 41 | </el-descriptions> |
30 | </dialogBox> | 42 | </dialogBox> |
31 | </template> | 43 | </template> |
32 | 44 | ||
33 | <script> | 45 | <script> |
46 | import vueJsonEditor from 'vue-json-editor' | ||
34 | import {interfaceRetrieve } from "@/api/jkfw.js" | 47 | import {interfaceRetrieve } from "@/api/jkfw.js" |
35 | export default { | 48 | export default { |
36 | components: { | 49 | components: { |
50 | vueJsonEditor | ||
37 | }, | 51 | }, |
38 | computed: { | 52 | computed: { |
39 | }, | 53 | }, |
... | @@ -46,25 +60,31 @@ export default { | ... | @@ -46,25 +60,31 @@ export default { |
46 | interfaceMethods: ['webapi','webservice'], | 60 | interfaceMethods: ['webapi','webservice'], |
47 | interfaceTypes: [ | 61 | interfaceTypes: [ |
48 | {'label': '工作流服务平台','value':'1'}, | 62 | {'label': '工作流服务平台','value':'1'}, |
49 | {'label': '管理平台','value':'2'}, | 63 | {'label': '权限平台','value':'2'}, |
50 | {'label': '定时器服务','value':'3'}, | 64 | {'label': '定时器服务','value':'3'}, |
51 | {'label': '其他第三方平台','value':'4'}, | 65 | {'label': '其他第三方平台','value':'4'}, |
52 | ], | 66 | ], |
53 | ruleForm: {}, | 67 | ruleForm: {}, |
54 | interfaceParams: '{\n\n}' , | 68 | interfaceParams: {} , |
55 | returnMessage: {}, | 69 | returnMessage: {}, |
70 | hasJsonFlag: true | ||
56 | } | 71 | } |
57 | }, | 72 | }, |
58 | methods: { | 73 | methods: { |
59 | //表单提交 | 74 | //表单提交 |
60 | submitForm () { | 75 | submitForm () { |
76 | console.log(this.interfaceParams); | ||
77 | console.log(this.hasJsonFlag); | ||
78 | if(!this.hasJsonFlag){ | ||
79 | return; | ||
80 | } | ||
61 | var formdata = new FormData(); | 81 | var formdata = new FormData(); |
62 | formdata.append("interfaceCode", this.ruleForm.interfaceCode); | 82 | formdata.append("interfaceCode", this.ruleForm.interfaceCode); |
63 | formdata.append("params", this.interfaceParams); | 83 | formdata.append("interfaceType", this.ruleForm.interfaceType); |
84 | formdata.append("params",JSON.stringify(this.interfaceParams)); | ||
64 | interfaceRetrieve(formdata).then(res => { | 85 | interfaceRetrieve(formdata).then(res => { |
65 | if(res.code == 200){ | 86 | if(res.code == 200){ |
66 | this.returnMessage = res.result | 87 | this.returnMessage = res.result |
67 | |||
68 | } | 88 | } |
69 | }) | 89 | }) |
70 | }, | 90 | }, |
... | @@ -75,12 +95,40 @@ export default { | ... | @@ -75,12 +95,40 @@ export default { |
75 | //关闭弹窗 | 95 | //关闭弹窗 |
76 | closeDialog () { | 96 | closeDialog () { |
77 | this.$emit("input", false); | 97 | this.$emit("input", false); |
78 | this.interfaceParams = '{\n\n}' | 98 | this.interfaceParams = {} |
79 | this.returnMessage = {} | 99 | this.returnMessage = {} |
100 | this.hasJsonFlag = true | ||
101 | }, | ||
102 | //获取接口类型 | ||
103 | getInterfaceType(code){ | ||
104 | let name = '' | ||
105 | for (let item of this.interfaceTypes) { | ||
106 | if (item.value == code) { | ||
107 | name = item.label; | ||
108 | break; | ||
80 | } | 109 | } |
81 | } | 110 | } |
111 | return name; | ||
112 | }, | ||
113 | onJsonChange(value){ | ||
114 | this.onJsonSave(); | ||
115 | }, | ||
116 | onJsonSave (value) { | ||
117 | this.interfaceParams = value | ||
118 | this.hasJsonFlag = true | ||
119 | }, | ||
120 | onError(value) { | ||
121 | this.hasJsonFlag = false | ||
122 | }, | ||
123 | } | ||
82 | } | 124 | } |
83 | </script> | 125 | </script> |
84 | <style scoped lang="scss"> | 126 | <style scoped lang="scss"> |
85 | @import "~@/styles/mixin.scss"; | 127 | @import "~@/styles/mixin.scss"; |
128 | /deep/ .is-bordered-label{ | ||
129 | width:100px | ||
130 | } | ||
131 | /deep/ .el-descriptions-item__content:nth-last-child(){ | ||
132 | height: 100px; | ||
133 | } | ||
86 | </style> | 134 | </style> | ... | ... |
... | @@ -49,7 +49,7 @@ class data extends filter { | ... | @@ -49,7 +49,7 @@ class data extends filter { |
49 | case '1': | 49 | case '1': |
50 | return <div>工作流服务平台</div> | 50 | return <div>工作流服务平台</div> |
51 | case '2': | 51 | case '2': |
52 | return <div>管理平台</div> | 52 | return <div>权限平台</div> |
53 | case '3': | 53 | case '3': |
54 | return <div>定时器服务</div> | 54 | return <div>定时器服务</div> |
55 | case '4': | 55 | case '4': | ... | ... |
... | @@ -186,7 +186,7 @@ | ... | @@ -186,7 +186,7 @@ |
186 | </template> | 186 | </template> |
187 | <script> | 187 | <script> |
188 | import InformationTable from "@/views/workflow/components/InformationTable"; | 188 | import InformationTable from "@/views/workflow/components/InformationTable"; |
189 | import {Init, saveGZBatchData} from "@/api/fwsyqFlow.js"; | 189 | import {Init, saveBatchData} from "@/api/fwsyqFlow.js"; |
190 | import { mapGetters } from "vuex"; | 190 | import { mapGetters } from "vuex"; |
191 | export default { | 191 | export default { |
192 | async created () { | 192 | async created () { |
... | @@ -271,7 +271,7 @@ export default { | ... | @@ -271,7 +271,7 @@ export default { |
271 | }, | 271 | }, |
272 | 272 | ||
273 | onSubmit () { | 273 | onSubmit () { |
274 | saveGZBatchData(this.ruleForm).then((res) => { | 274 | saveBatchData(this.ruleForm).then((res) => { |
275 | if (res.code === 200) { | 275 | if (res.code === 200) { |
276 | this.$message({ | 276 | this.$message({ |
277 | showClose: true, | 277 | showClose: true, | ... | ... |
1 | <template> | ||
2 | <!-- 主体权利信息查询 --> | ||
3 | <div class="from-clues"> | ||
4 | <!-- 表单部分 --> | ||
5 | <div class="from-clues-header"> | ||
6 | <el-form :model="queryForm" ref="queryForm" label-width="100px"> | ||
7 | <el-row> | ||
8 | <el-col :span="5"> | ||
9 | <el-form-item label="权利类型"> | ||
10 | <el-select | ||
11 | v-model="queryForm.qllx" | ||
12 | filterable | ||
13 | clearable | ||
14 | placeholder="请选择权利类型" | ||
15 | > | ||
16 | <el-option | ||
17 | v-for="item in qllxs" | ||
18 | :key="item.value" | ||
19 | :label="item.label" | ||
20 | :value="item.value" | ||
21 | > | ||
22 | </el-option> | ||
23 | </el-select> | ||
24 | </el-form-item> | ||
25 | </el-col> | ||
26 | <el-col :span="6"> | ||
27 | <el-form-item label="不动产单元号"> | ||
28 | <el-input | ||
29 | placeholder="请输入不动产单元号" | ||
30 | v-model="queryForm.bdcdyh" | ||
31 | clearable | ||
32 | class="width200px" | ||
33 | > | ||
34 | </el-input> | ||
35 | </el-form-item> | ||
36 | </el-col> | ||
37 | <el-col :span="6"> | ||
38 | <el-form-item label="不动产权证号"> | ||
39 | <el-input | ||
40 | placeholder="请输入不动产权证号" | ||
41 | v-model="queryForm.bdcqzh" | ||
42 | clearable | ||
43 | class="width200px" | ||
44 | > | ||
45 | </el-input> | ||
46 | </el-form-item> | ||
47 | </el-col> | ||
48 | <el-col :span="2" class="btnColRight"> | ||
49 | <el-form-item> | ||
50 | <el-button type="primary" @click="fetchData()">查询</el-button> | ||
51 | </el-form-item> | ||
52 | </el-col> | ||
53 | </el-row> | ||
54 | </el-form> | ||
55 | </div> | ||
56 | <!-- 表格 --> | ||
57 | <div class="from-clues-content"> | ||
58 | <lb-table | ||
59 | ref="table" | ||
60 | @row-click="handleRowClick" | ||
61 | :page-size="pageData.pageSize" | ||
62 | :heightNum="400" | ||
63 | :current-page.sync="pageData.currentPage" | ||
64 | :total="tableData.total" | ||
65 | @size-change="handleSizeChange" | ||
66 | @p-current-change="handleCurrentChange" | ||
67 | @selection-change="handleSelectionChange" | ||
68 | :column="tableData.columns" | ||
69 | :data="tableData.data" | ||
70 | > | ||
71 | </lb-table> | ||
72 | </div> | ||
73 | <div class="submit_button"> | ||
74 | <el-button @click="closeDialog">取消</el-button> | ||
75 | <el-button type="primary" plain @click="submitForm">发起申请</el-button> | ||
76 | </div> | ||
77 | </div> | ||
78 | </template> | ||
79 | <script> | ||
80 | import { datas, sendThis } from "../javascript/selectFwsyq.js"; | ||
81 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | ||
82 | import table from "@/utils/mixin/table"; | ||
83 | import jump from "./mixin/jump"; | ||
84 | import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; | ||
85 | export default { | ||
86 | mixins: [table, jump], | ||
87 | props: { | ||
88 | isJump: { type: Boolean, default: false }, | ||
89 | djywbm: { type: String, default: "" }, | ||
90 | djqxObj: { | ||
91 | type: Object, | ||
92 | default: {}, | ||
93 | }, | ||
94 | bsmSqyw: { type: String, default: "" }, | ||
95 | }, | ||
96 | data() { | ||
97 | return { | ||
98 | queryForm: defaultParameters.defaultParameters(), | ||
99 | qllxs: [], | ||
100 | tableData: { | ||
101 | total: 0, | ||
102 | columns: datas.columns(), | ||
103 | data: [], | ||
104 | }, | ||
105 | bdcdysz: [], | ||
106 | }; | ||
107 | }, | ||
108 | mounted() { | ||
109 | sendThis(this); | ||
110 | }, | ||
111 | methods: { | ||
112 | //点击行选中或取消复选框 | ||
113 | handleRowClick(row, column, event) { | ||
114 | //通过ref绑定后这里使用$refs.table来操作bom元素 | ||
115 | this.$refs.table.toggleRowSelection(row); | ||
116 | }, | ||
117 | closeDialog() { | ||
118 | this.$emit("closeDialog"); | ||
119 | }, | ||
120 | fetchData() { | ||
121 | if(this.djqxObj.nodetype==="djlx"){ | ||
122 | this.queryForm.bsmSqyw = this.djqxObj.bsmSqyw; | ||
123 | }else{ | ||
124 | this.queryForm.bsmSqyw = this.djqxObj.parentid; | ||
125 | } | ||
126 | console.log(this.queryForm); | ||
127 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | ||
128 | if (res.code === 200) { | ||
129 | let { total, records } = res.result; | ||
130 | this.tableData.total = total; | ||
131 | this.tableData.data = records; | ||
132 | } | ||
133 | }); | ||
134 | }, | ||
135 | submitForm() { | ||
136 | if (this.bdcdysz.length == 0) { | ||
137 | this.$message.error("请至少选择一条数据"); | ||
138 | return; | ||
139 | } | ||
140 | startBusinessFlow({ | ||
141 | bsmSqyw: this.bsmSqyw, | ||
142 | bdcdysz: this.bdcdysz, | ||
143 | djqxbm: this.djqxObj?.djqxbm, | ||
144 | djqxmc: this.djqxObj?.djqxmc, | ||
145 | }).then((res) => { | ||
146 | if (res.code == 200) { | ||
147 | this.$message({ | ||
148 | showClose: true, | ||
149 | message: '发起申请成功', | ||
150 | type: 'success' | ||
151 | }) | ||
152 | if (!this.isJump) { | ||
153 | this.jump(res.result, this.djywbm) | ||
154 | } else { | ||
155 | this.$emit('updateDialog', true) | ||
156 | } | ||
157 | } else { | ||
158 | this.$message.error(res.message); | ||
159 | } | ||
160 | }); | ||
161 | }, | ||
162 | handleSelectionChange(val) { | ||
163 | val.forEach((item, index) => { | ||
164 | item.bsmSsql = item.bsmQlxx; | ||
165 | item.ybdcqzsh = item.bdcqzh; | ||
166 | }); | ||
167 | this.bdcdysz = val; | ||
168 | }, | ||
169 | }, | ||
170 | }; | ||
171 | </script> | ||
172 | <style scoped lang="scss"> | ||
173 | @import "~@/styles/mixin.scss"; | ||
174 | @import "~@/styles/public.scss"; | ||
175 | </style> |
1 | import filter from '@/utils/filter.js' | ||
2 | let vm = null | ||
3 | |||
4 | const sendThis = (_this) => { | ||
5 | vm = _this | ||
6 | } | ||
7 | class data extends filter { | ||
8 | constructor() { | ||
9 | super() | ||
10 | } | ||
11 | columns () { | ||
12 | return [ | ||
13 | { | ||
14 | type: 'selection', | ||
15 | label: '全选' | ||
16 | }, | ||
17 | { | ||
18 | label: '序号', | ||
19 | type: 'index', | ||
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 | } | ||
28 | }, | ||
29 | { | ||
30 | prop: "status", | ||
31 | label: "状态", | ||
32 | }, | ||
33 | { | ||
34 | prop: "qllxmc", | ||
35 | label: "权利类型", | ||
36 | }, | ||
37 | { | ||
38 | prop: "bdcdyh", | ||
39 | label: "不动产单元号", | ||
40 | }, | ||
41 | { | ||
42 | prop: "bdcqzh", | ||
43 | label: "不动产权证号", | ||
44 | }, | ||
45 | { | ||
46 | prop: "fwxz", | ||
47 | label: "房屋性质", | ||
48 | }, | ||
49 | { | ||
50 | prop: "fwjgmc", | ||
51 | label: "房屋结构", | ||
52 | }, | ||
53 | { | ||
54 | prop: "qlrmc", | ||
55 | label: "权利人", | ||
56 | }, | ||
57 | { | ||
58 | prop: "zjh", | ||
59 | label: "证件号", | ||
60 | }, | ||
61 | { | ||
62 | prop: "mj", | ||
63 | label: "面积", | ||
64 | }, | ||
65 | { | ||
66 | prop: "showTdyt", | ||
67 | label: "用途", | ||
68 | }, | ||
69 | { | ||
70 | prop: "zdmj", | ||
71 | label: "宗地面积", | ||
72 | }, | ||
73 | { | ||
74 | prop: "zl", | ||
75 | label: "坐落", | ||
76 | } | ||
77 | ] | ||
78 | } | ||
79 | |||
80 | |||
81 | } | ||
82 | let datas = new data() | ||
83 | export { | ||
84 | datas, | ||
85 | sendThis | ||
86 | } |
... | @@ -22,6 +22,11 @@ export function queueDjywmc(djywbm) { | ... | @@ -22,6 +22,11 @@ export function queueDjywmc(djywbm) { |
22 | case "A08100": | 22 | case "A08100": |
23 | vm = "fwsyq"; | 23 | vm = "fwsyq"; |
24 | break; | 24 | break; |
25 | case "A04200": | ||
26 | case "A04300": | ||
27 | case "A04400": | ||
28 | vm="selectFwsyq"; | ||
29 | break; | ||
25 | case "A23100"://农用地使用权(首次登记) | 30 | case "A23100"://农用地使用权(首次登记) |
26 | case "A09100"://土地经营权(首次登记) | 31 | case "A09100"://土地经营权(首次登记) |
27 | vm = "nydsyq100"; | 32 | vm = "nydsyq100"; | ... | ... |
-
Please register or sign in to post a comment