25daaac4 by 任超

style:业务申请

1 parent 147f9092
......@@ -29,15 +29,29 @@ export function getNextNode (bsmSqyw) {
}
/*
业务办理-选择单元-根据条件进行列表查询
业务办理-选择单元-根据条件进行列表查询-国有建设用地使用权
*/
export function selectScBdcdy (data) {
return request({
url: '/ywbl/ywsq/selectScBdcdy',
method: 'post',
data
data,
showLoading: true
})
}
/*
业务办理-选择单元-根据条件进行列表查询-房屋所有权
*/
export function selectFwsyq (data) {
return request({
url: 'ywbl/ywsq/selectFwsyq',
method: 'post',
data,
showLoading: true
})
}
// 待办箱列表查询接口
export function searchTaskToDo (data) {
return request({
......@@ -62,7 +76,8 @@ export function startBusinessFlow (data) {
return request({
url: '/business/workFlow/startBusinessFlow',
method: 'post',
data
data,
showLoading: true
})
}
/*
......@@ -83,7 +98,8 @@ export function selectQlxx (data) {
return request({
url: '/ywbl/ywsq/selectQlxx',
method: 'post',
data
data,
showLoading: true
})
}
/*
......@@ -93,7 +109,8 @@ export function selectDiyaq (data) {
return request({
url: '/ywbl/ywsq/selectDiyaq',
method: 'post',
data
data,
showLoading: true
})
}
/*
......@@ -103,7 +120,8 @@ export function selectCfdj (data) {
return request({
url: '/ywbl/ywsq/selectCfdj',
method: 'post',
data
data,
showLoading: true
})
}
/*
......
......@@ -11,6 +11,10 @@ const getters = {
addRoutes: state => state.permission.addRoutes,
addDict: state => state.dict.addDict,
dictData: state => state.dict.dictData,
djbxx: state => state.djbxx.djbxx
djbxx: state => state.djbxx.djbxx,
// 业务办理
bsmSqyw: state => state.ywbl.bsmSqyw,
djqxObj: state => state.ywbl.djqxObj,
djywbm: state => state.ywbl.djywbm
}
export default getters
......
const state = {
bsmSqyw: '',
djqxObj: {
djqxbm: "",
djqxmc: ""
},
djywbm: ''
}
const mutations = {
SET_BSMSQYW: (state, data) => {
state.bsmSqyw = data
},
SET_DJQXOBJ: (state, data) => {
state.djqxObj = data
},
SET_DJYWBM: (state, data) => {
state.djywbm = data
},
}
const actions = {
setBsmSqyw ({ commit }, data) {
commit('SET_BSMSQYW', data)
},
setDjqxObj ({ commit }, data) {
commit('SET_DJQXOBJ', data)
},
setDjywbm ({ commit }, data) {
commit('SET_DJYWBM', data)
}
}
export default {
namespaced: true,
state,
mutations,
actions
}
......@@ -59,7 +59,6 @@ import table from "@/utils/mixin/table";
import { datas, sendThis } from "./dydjbdata";
export default {
name: "dydjb",
components: {},
mixins: [table],
mounted () {
sendThis(this);
......
......@@ -74,6 +74,7 @@ import {
} from "@/api/fqsq.js"
import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
import { getForm } from "./flowform.js"
import { queueDjywmc } from '@/views/ywbl/ywsq/slectBdcdata.js';
export default {
data () {
return {
......@@ -149,6 +150,16 @@ export default {
//操作按钮 登簿:record 转件:transfer 退回:back 退出:signout
let that = this;
switch (item.value) {
case "B0":
let type = queueDjywmc(this.$route.query.sqywbm)
this.$popup({
title: '提示', // 弹窗标题
editItem: 'ywbl/ywsq/components/' + type,
formData: this.formData, //父组件传给子组件的参数
cancel: function () { }, //取消事件的回调
confirm: function () { }, //确认事件的回调
})
break;
case "B1":
getWorkFlowImage(this.bsmSlsq).then(res => {
this.imgSrc = URL.createObjectURL(res)
......
......@@ -59,10 +59,6 @@ import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
data () {
return {
......@@ -77,30 +73,26 @@ export default {
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
sendThis(this)
},
computed: {
...mapGetters([ 'bsmSqyw', 'djywbm'])
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm=this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
}
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
},
submitForm () {
if (this.bdcdysz.length == 0) {
......
......@@ -53,16 +53,13 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { datas, sendThis } from "../javascript/bdcqlMain.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
data () {
return {
......@@ -77,30 +74,26 @@ export default {
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
sendThis(this)
},
computed: {
...mapGetters(['bsmSqyw', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm=this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
}
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
},
submitForm () {
if (this.bdcdysz.length == 0) {
......
......@@ -53,6 +53,7 @@
</template>
<script>
//查封登记
import { mapGetters } from 'vuex'
import { datas, sendThis } from "../javascript/cfdj.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -60,7 +61,6 @@ import jump from "../components/mixin/jump";
import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
......@@ -77,30 +77,26 @@ export default {
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm=this.djywbm;
selectCfdj({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
}
this.queryForm.sqywbm = this.djywbm;
selectCfdj({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
},
submitForm () {
if (this.bdcdysz.length == 0) {
......
......@@ -55,17 +55,13 @@
</template>
<script>
//抵押权首次登记
import { mapGetters } from 'vuex'
import { datas, sendThis } from "../javascript/diyaq.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: "" },
djqxObj: { type: Object, default: "" },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
data () {
return {
......@@ -80,21 +76,19 @@ export default {
saveloding: false,
};
},
watch: {
bsmSqyw (val) {
this.fetchData();
},
},
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm=this.djywbm;
this.queryForm.sqywbm = this.djywbm;
selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
......@@ -127,7 +121,7 @@ export default {
handleSelectionChange (val) {
this.bdcdysz = val;
},
}
}
</script>
......
......@@ -2,7 +2,7 @@
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<el-tabs v-model="activeName">
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="自然幢" name="zrz"></el-tab-pane>
<el-tab-pane label="户" name="h"></el-tab-pane>
</el-tabs>
......@@ -36,7 +36,7 @@
</el-col>
<el-col :span="4" class="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="fetchData()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -51,7 +51,7 @@
</div>
<div class="submit_button">
<el-button @click="closeDialog">取消</el-button>
<el-button type="primary" plain @click="submitForm" :loading="saveloding">发起申请</el-button>
<el-button type="primary" plain @click="submitForm">发起申请</el-button>
</div>
</div>
</template>
......@@ -61,13 +61,8 @@ import { mapGetters } from 'vuex'
import { datas, sendThis } from "../javascript/houseOwnership.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: "" },
djqxObj: { type: Object, default: "" },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
data () {
return {
......@@ -84,63 +79,56 @@ export default {
columns: datas.columns(),
data: [],
},
bdcdysz: [],
saveloding: false,
bdcdysz: []
};
},
watch: {
bsmSqyw (val) {
this.fetchData();
},
},
mounted () {
sendThis(this);
sendThis(this)
},
computed: {
...mapGetters(['dictData']),
...mapGetters(['dictData', 'bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm = this.djywbm;
console.log(this.queryForm, this.bsmSqyw);
selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
});
}
this.queryForm.sqywbm = this.djywbm;
selectFwsyq({ ...this.queryForm, ...this.pageData, fwfl: this.activeName }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
},
handleTabClick () {
this.pageData.currentPage = 1
this.fetchData()
},
submitForm () {
if (this.bdcdysz.length == 0) {
this.$message.error("请至少选择一条数据");
return;
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj.djqxbm,
djqxmc: this.djqxObj.djqxmc,
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.jump(res.result, this.djywbm)
} else {
this.$message.error(res.message);
}
});
})
},
handleSelectionChange (val) {
this.bdcdysz = val;
this.bdcdysz = val
}
},
};
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
......
......@@ -39,17 +39,13 @@
</template>
<script>
//首次登记
import { mapGetters } from 'vuex'
import { datas, sendThis } from "../javascript/jsydsyq100.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: "" },
djqxObj: { type: Object, default: "" },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
data () {
return {
......@@ -73,6 +69,9 @@ export default {
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
......
......@@ -55,17 +55,13 @@
</template>
<script>
//首次登记
import { mapGetters } from 'vuex'
import { datas, sendThis } from "../javascript/jsydsyq200.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: "" },
djqxObj: { type: Object, default: "" },
djywbm: { type: String, default: "" }
},
mixins: [table, jump],
data () {
return {
......@@ -88,6 +84,9 @@ export default {
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
......
export default {
methods: {
jump (data) {
jump (data, type) {
this.$emit("closeDialog");
const { href } = this.$router.resolve(
"/workFrame?bsmSlsq=" +
data.bsmSlsq +
"&bestepid=" +
data.bestepid + '&bsmBusiness='
data.bestepid + '&bsmBusiness=' + '&sqywbm=' + type
);
window.open(href, "_blank");
},
......
......@@ -51,11 +51,11 @@ class data extends filter {
label: "宗地面积",
},
{
prop: "qlsdfsmc",
prop: "qlsdfs",
label: "权利设定方式",
},
{
prop: "showFwyt",
prop: "jzwjbyt",
label: "房屋用途",
},
{
......
<template>
<dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue">
<component :is="editItem" @closeDialog="closeDialog" :bsmSqyw="bsmSqyw" :djqxObj='djqxObj' :djywbm="djywbm" />
<component :is="editItem" @closeDialog="closeDialog" :key="key" />
</dialogBox>
</template>
<script>
import { queueDjywmc } from './slectBdcdata.js';
import { mapGetters } from 'vuex'
import { queueDjywmc } from './slectBdcdata.js'
export default {
props: {
value: { type: Boolean, default: true },
bsmSqyw: { type: String, default: '' },
djywbm: { type: String, default: '' },
djqxObj: { type: Object, default: '' }
value: { type: Boolean, default: true }
},
data () {
return {
key: 0,
editItem: '',
myValue: this.value,
};
myValue: this.value
}
},
computed: {
...mapGetters(['djywbm'])
},
watch: {
value (val) {
this.myValue = val
this.key++
},
djywbm (val) {
console.log(val);
let dd = queueDjywmc(val);
this.editItem = this.loadView(dd);
},
let dd = queueDjywmc(val)
this.editItem = this.loadView(dd)
}
},
methods: {
loadView (view) {
console.log(view);
return r => require.ensure([], () => r(require(`./components/${view}.vue`)))
},
closeDialog () {
this.$emit("input", false);
this.$emit("input", false)
}
}
};
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
......
......@@ -65,7 +65,7 @@
<el-button type="primary" :disabled="btnDisabled" @click="bthSelectClick">选择不动产</el-button>
</div>
</div>
<fqsqDialog v-model="isDialog" :bsmSqyw="bsmSqyw" :djywbm="djywbm" :djqxObj='djqxObj' />
<fqsqDialog v-model="isDialog" />
</div>
</template>
<script>
......@@ -83,14 +83,8 @@ export default {
djlxList: [],
ywList: [],
djqxList: [],
bsmSqyw: '',
isDialog: false,
btnDisabled: true,
djywbm: '',
djqxObj: {
djqxbm: "",
djqxmc: "",
}
}
},
components: {
......@@ -125,14 +119,14 @@ export default {
item.cselect = false
})
item.cselect = !item.cselect
this.djqxObj = {
this.$store.dispatch('ywbl/setDjqxObj', {
'djqxbm': item.nodecode,
'djqxmc': item.nodename,
}
})
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.parentid
this.djywbm = item.djywbm
this.$store.dispatch('ywbl/setBsmSqyw', item.parentid)
this.$store.dispatch('ywbl/setDjywbm', item.djywbm)
}
},
handleList (list, obj) {
......@@ -200,8 +194,8 @@ export default {
this.$set(item, 'cselect', true)
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
this.djywbm = item.djywbm
this.$store.dispatch('ywbl/setBsmSqyw', item.bsmSqyw)
this.$store.dispatch('ywbl/setDjywbm', item.djywbm)
} else {
this.getNextNode(item.bsmSqyw)
}
......