595beed7 by liangyifan
2 parents 47f1bb90 f1a18221
......@@ -26,7 +26,7 @@ export default {
name: 'index',
data () {
return {
btnShow:false,
btnShow: true,
title: '提示',
cancelText: '取消',
confirmText: '确认',
......@@ -38,7 +38,7 @@ export default {
titleStyle: 'center',
width: "75%",
height: "auto",
formData: "",//父组件传递的参数 负责传给子组件
formData: undefined,//父组件传递的参数 负责传给子组件
contentHeight: "",
iconClass: "",
key: 0
......
......@@ -33,6 +33,14 @@ export const constantRoutes = [
name: 'workFrame',
hidden: true,
meta: { title: '发起申请' }
},
// 业务流程只读框架
{
path: '/workFrameView',
component: () => import('@/views/workflow/workFrameView.vue'),
name: 'workFrameView',
hidden: true,
meta: { title: '发起申请' }
}
]
......
......@@ -12,9 +12,5 @@ const getters = {
addDict: state => state.dict.addDict,
dictData: state => state.dict.dictData,
djbxx: state => state.djbxx.djbxx,
// 业务办理
bsmSqyw: state => state.ywbl.bsmSqyw,
djqxObj: state => state.ywbl.djqxObj,
djywbm: state => state.ywbl.djywbm
}
export default getters
......
......@@ -8,12 +8,12 @@ export default {
}
}
},
computed: {
...mapGetters(['dictData']),
},
created () {
this.fetchData()
},
computed: {
...mapGetters(['dictData'])
},
methods: {
handleSizeChange (val) {
this.pageData.currentPage = 1
......
......@@ -6,6 +6,9 @@
border: 1px solid #ebeef5;
z-index: 100;
@include flex;
/deep/.el-tabs__header {
margin-bottom: 0 !important;
}
}
.leftmenu {
......@@ -62,9 +65,7 @@
padding-left: 5px !important;
}
/deep/.el-tabs__header {
margin-bottom: 0 !important;
}
/deep/.el-menu-item.is-active {
background-color: #e7f4fe;
......
......@@ -56,6 +56,7 @@
</div>
</div>
</div>
<fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" />
</div>
</template>
......@@ -63,7 +64,6 @@
@import "~@/styles/mixin.scss";
@import "./workFrame.scss";
</style>
<script>
import {
leftMenu,
......@@ -74,10 +74,15 @@ import {
} from "@/api/fqsq.js"
import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
import { getForm } from "./flowform.js"
import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue"
import { queueDjywmc } from '@/views/ywbl/ywsq/slectBdcdata.js';
export default {
components: {
fqsqDialog
},
data () {
return {
isDialog: false,
// 流程图
imgSrc: '',
// 折叠
......@@ -151,11 +156,8 @@ export default {
let that = this;
switch (item.value) {
case "B0":
let type = queueDjywmc(this.$route.query.sqywbm)
this.$popup({
title: '查询权利信息',
editItem: 'ywbl/ywsq/components/houseOwnership',
})
// let type = queueDjywmc(this.$route.query.sqywbm)
this.isDialog = true
break;
case "B1":
getWorkFlowImage(this.bsmSlsq).then(res => {
......
<template>
<div class="container">
<!-- 顶部内容框 -->
<div class="topButton">
<!-- 左侧业务功能按钮 -->
<ul>
<li @click="operation(index, item)" v-for="(item, index) in leftButtonList" :key="index">
<svg-icon :icon-class="item.icon" />
<span class="iconName">{{ item.name }}</span>
</li>
</ul>
<!-- 右侧流程按钮 -->
<ul>
<li @click="operation(index, item)" v-for="(item, index) in rightButtonList" :key="index">
<svg-icon class="icon" :icon-class="item.icon" />
<span class="iconName">{{ item.name }}</span>
</li>
</ul>
</div>
<!-- 内容框架 -->
<div class="containerFrame">
<!-- 左侧菜单栏 -->
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
<div v-if="this.isShowdrawer">
<div class="title">申请单元列表({{ unitData.length }})</div>
<el-menu :default-active="activeIndex" @select="unitClick">
<el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index">
<p>{{ item.bdcdyh }}</p>
<p class="title-detail">{{ item.zl }}</p>
</el-menu-item>
</el-menu>
</div>
<div class="map-drawer-click map-drawer" v-if="!isShowdrawer" @click="
() => {
this.isShowdrawer = !this.isShowdrawer;
}
"></div>
<div class="map-drawer-expand map-drawer" v-else @click="
() => {
this.isShowdrawer = !this.isShowdrawer;
}
"></div>
</div>
<div class="leftCon">
<!-- 分屏左侧预览 -->
<div v-if="splitScreen" class="splitScreen-con">
<component :is="clxxForm" v-bind="currentSelectProps" :key="fresh" />
</div>
<!-- 表单内容区域 -->
<div class="rightContainer">
<el-tabs v-model="tabName" @tab-click="tabClick">
<el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index">
</el-tab-pane>
</el-tabs>
<component :key="fresh" :is="componentTag" v-bind="currentSelectProps" />
</div>
</div>
</div>
</div>
</template>
<style scoped lang='scss'>
@import "~@/styles/mixin.scss";
@import "./workFrame.scss";
</style>
<script>
import {
leftMenu,
stepExpandInfo,
record,
getNextLinkInfo,
completeTask,
} from "@/api/fqsq.js"
import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
import { getForm } from "./flowform.js"
export default {
data () {
return {
// 流程图
imgSrc: '',
// 折叠
isShowdrawer: true,
// 默认选中
activeIndex: '0',
//受理申请标识码
bsmSlsq: this.$route.query.bsmSlsq,
//当前流程所在环节
bestepid: this.$route.query.bestepid,
//顶部左侧按钮集合
leftButtonList: [],
//顶部右侧按钮集合
rightButtonList: [],
//左侧菜单数据集合
unitData: [],
//设置那个表单选中
tabName: "",
//表单集合
tabList: [],
//选择加载哪一个组件
componentTag: "",
//设置表单组件是否刷选值
fresh: 10,
//设置表单传递数据
currentSelectProps: {},
//是否开启材料分屏
splitScreen: false,
//材料分屏表单
clxxForm: "",
//材料信息选择卡索引
clxxIndex: "",
//材料信息选项卡对象
clxxTab: {},
}
},
mounted () {
this.loadBdcdylist();
this.flowInitParam();
},
methods: {
//加载流程初始参数
flowInitParam () {
var formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
formdata.append("bestepid", this.bestepid);
formdata.append("type", "READ_ONLY");
stepExpandInfo(formdata).then((res) => {
if (res.code === 200) {
this.leftButtonList = res.result.button;
this.rightButtonList = res.result.operation;
this.tabList = res.result.form;
//默认选择第一个选项卡内容
this.tabName = res.result.form[0].value;
let that = this;
this.tabList.forEach(function (item, index) {
if (item.value == "clxx") {
that.clxxIndex = index;
that.clxxForm = getForm(item.value);
that.clxxTab = item;
}
});
//默认加载第一个选项卡的组件内容
this.getFromRouter(res.result.form[0].value);
}
})
},
//流程环节操作按钮
operation (index, item) {
//按钮 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书
//操作按钮 登簿:record 转件:transfer 退回:back 退出:signout
let that = this;
switch (item.value) {
case "B1":
getWorkFlowImage(this.bsmSlsq).then(res => {
this.imgSrc = URL.createObjectURL(res)
this.$popup({
title: '流程图',
editItem: 'workflow/components/flowChart',
formData: this.imgSrc
})
})
break;
case "B5":
this.zsylFlag = true;
break;
case "B2": //材料分屏按钮
this.splitScreen = this.splitScreen ? false : true;
this.$store.dispatch('app/settScreen', this.splitScreen)
if (this.splitScreen) {
//如果当前选项卡为材料信息内容,递减到上一个选项卡内容
if (this.tabName == this.clxxTab.value) {
this.tabName = this.tabList[this.clxxIndex - 1].value;
this.getFromRouter(this.tabList[this.clxxIndex - 1].value);
}
this.tabList.splice(this.clxxIndex, 1);
} else {
this.tabList.splice(this.clxxIndex, 1, this.clxxTab);
}
break;
case "signout":
window.close();
break;
}
},
//读取申请单元信息
loadBdcdylist () {
var formdata = new FormData();
formdata.append("bsmSlsq", this.bsmSlsq);
formdata.append("bestepid", this.bestepid);
leftMenu(formdata).then((res) => {
if (res.code === 200) {
this.unitData = res.result;
this.currentSelectProps = res.result[0];
}
})
},
//申请单元点击事件
unitClick (index) {
if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) {
this.currentSelectProps = this.unitData[index];
this.fresh += 1;
}
},
//表单选项卡事件
tabClick (tab, event) {
this.getFromRouter(tab.name);
},
//切换选项卡内容组件
getFromRouter (tabname) {
this.componentTag = getForm(tabname);
},
}
}
</script>
\ No newline at end of file
......@@ -131,7 +131,7 @@ export default {
this.fetchData()
},
ywhClick (item) {
const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1');
const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1');
window.open(href, '_blank');
}
}
......
......@@ -32,7 +32,7 @@
</el-col>
<el-col :span="2" 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>
......@@ -53,6 +53,7 @@
</template>
<script>
//查封登记
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/bdcql.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -60,6 +61,10 @@ import jump from "../components/mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
queryForm: defaultParameters.defaultParameters(),
......@@ -76,9 +81,6 @@ export default {
mounted () {
sendThis(this)
},
computed: {
...mapGetters([ 'bsmSqyw', 'djywbm'])
},
methods: {
closeDialog () {
this.$emit("closeDialog")
......@@ -87,6 +89,7 @@ export default {
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
console.log(res);
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
......@@ -101,12 +104,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
......@@ -33,7 +33,7 @@
</el-col>
<el-col :span="2" 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>
......@@ -53,7 +53,7 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/bdcqlMain.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -61,6 +61,10 @@ import jump from "../components/mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
queryForm: defaultParameters.defaultParameters(),
......@@ -77,9 +81,6 @@ export default {
mounted () {
sendThis(this)
},
computed: {
...mapGetters(['bsmSqyw', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog")
......@@ -102,8 +103,10 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
......
......@@ -32,7 +32,7 @@
</el-col>
<el-col :span="2" 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>
......@@ -53,7 +53,7 @@
</template>
<script>
//查封登记
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/cfdj.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -61,7 +61,8 @@ import jump from "../components/mixin/jump";
import { selectCfdj, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
djywbm: { type: String, default: "" }
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
mixins: [table, jump],
data () {
......@@ -80,9 +81,6 @@ export default {
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog")
......@@ -105,12 +103,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
......@@ -55,7 +55,7 @@
</template>
<script>
//抵押权首次登记
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/diyaq.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -63,6 +63,10 @@ import jump from "../components/mixin/jump";
import { selectDiyaq, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
queryForm: defaultParameters.defaultParameters(),
......@@ -79,15 +83,11 @@ export default {
mounted () {
sendThis(this);
},
computed: {
...mapGetters(['bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
},
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm = this.djywbm;
selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
......@@ -96,7 +96,6 @@ export default {
this.tableData.data = records;
}
});
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
......@@ -105,14 +104,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj.djqxbm,
djqxmc: this.djqxObj.djqxmc,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
<template>
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<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>
<el-form :model="queryForm" ref="queryForm" label-width="100px">
<el-form :model="queryForm" ref="queryForm" label-width="110px">
<el-row>
<el-col :span="6">
<el-form-item label="不动产单元号">
......@@ -16,19 +15,18 @@
</el-col>
<el-col :span="6">
<el-form-item label="坐落">
<el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable class="width300px">
<el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnCol">
<el-col :span="12" 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>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table border :page-size="pageData.pageSize" :heightNum="400" :current-page.sync="pageData.currentPage"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
......@@ -43,13 +41,17 @@
</template>
<script>
//国有建设用地使用权/房屋使用权
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/fwsyq.js";
import table from "@/utils/mixin/table";
import jump from "../components/mixin/jump";
import jump from "@/views/ywbl/ywsq/components/mixin/jump";
import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
activeName: 'zrz',
......@@ -71,14 +73,11 @@ export default {
mounted () {
sendThis(this)
},
computed: {
...mapGetters(['dictData', 'bsmSqyw', 'djqxObj', 'djywbm']),
},
methods: {
closeDialog () {
this.$emit("closeDialog");
},
queryClick () {
fetchData () {
this.queryForm.sqywbm = this.djywbm;
selectFwsyq({ ...this.queryForm, ...this.pageData, fwfl: this.activeName }).then((res) => {
if (res.code === 200) {
......@@ -90,7 +89,7 @@ export default {
},
handleTabClick () {
this.pageData.currentPage = 1
this.queryClick()
this.fetchData()
},
submitForm () {
if (this.bdcdysz.length == 0) {
......@@ -98,14 +97,23 @@ export default {
return;
}
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj.djqxbm,
djqxmc: this.djqxObj.djqxmc,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
})
......
......@@ -18,7 +18,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>
......@@ -39,7 +39,7 @@
</template>
<script>
//首次登记
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/jsydsyq100.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -47,6 +47,10 @@ import jump from "../components/mixin/jump";
import { selectScBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
queryForm: defaultParameters.defaultParameters(),
......@@ -61,23 +65,14 @@ 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;
selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -87,7 +82,6 @@ export default {
this.tableData.data = records;
}
});
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
......@@ -96,14 +90,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj.djqxbm,
djqxmc: this.djqxObj.djqxmc,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
......@@ -34,7 +34,7 @@
</el-col>
<el-col :span="2" 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>
......@@ -55,7 +55,7 @@
</template>
<script>
//首次登记
import { mapGetters } from 'vuex'
import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/jsydsyq200.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -63,6 +63,10 @@ import jump from "../components/mixin/jump";
import { selectQlxx, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' }
},
data () {
return {
queryForm: defaultParameters.defaultParameters(),
......@@ -76,23 +80,14 @@ 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;
selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -102,7 +97,6 @@ export default {
this.tableData.data = records;
}
});
}
},
submitForm () {
if (this.bdcdysz.length == 0) {
......@@ -111,14 +105,23 @@ export default {
}
this.saveloding = true;
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bsmSqyw: Cookies.get("bsmSqyw"),
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj.djqxbm,
djqxmc: this.djqxObj.djqxmc,
djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
}).then((res) => {
this.saveloding = false;
if (res.code == 200) {
this.jump(res.result)
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
......
<template>
<dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue">
<component :is="editItem" @closeDialog="closeDialog" :key="key" />
<dialogBox title="查询权利信息" width="85%" :isButton="false" :isMain="true" @closeDialog="closeDialog" v-model="myValue">
<component :is="editItem" @closeDialog="closeDialog" :isJump="isJump" @updateDialog="updateDialog" :djywbm="djywbm"
:key="key" />
</dialogBox>
</template>
<script>
import { mapGetters } from 'vuex'
import { queueDjywmc } from './slectBdcdata.js'
export default {
props: {
value: { type: Boolean, default: true }
isJump: { type: Boolean, default: false },
value: { type: Boolean, default: true },
djywbm: { type: String, default: '' }
},
data () {
return {
key: 0,
editItem: '',
myValue: this.value
myValue: this.value,
}
},
computed: {
...mapGetters(['djywbm'])
},
watch: {
value (val) {
this.myValue = val
this.key++
if (this.$route.query.sqywbm) {
let dd = queueDjywmc(this.$route.query.sqywbm)
this.editItem = this.loadView(dd)
}
},
djywbm (val) {
'djywbm' (val) {
let dd = queueDjywmc(val)
this.editItem = this.loadView(dd)
}
......@@ -36,6 +39,10 @@ export default {
},
closeDialog () {
this.$emit("input", false)
},
updateDialog () {
this.$emit("input", false)
this.key++
}
}
}
......
......@@ -65,12 +65,13 @@
<el-button type="primary" :disabled="btnDisabled" @click="bthSelectClick">选择不动产</el-button>
</div>
</div>
<fqsqDialog v-model="isDialog" />
<fqsqDialog v-model="isDialog" :djywbm="djywbm" />
</div>
</template>
<script>
import { getCollectBiz, getleftMenu, getNextNode, addCollectBiz, deleteCollectBiz } from "@/api/ywbl"
import Cookies from 'js-cookie'
import fqsqDialog from "./slectBdc.vue"
import { getCollectBiz, getleftMenu, getNextNode, addCollectBiz, deleteCollectBiz } from "@/api/ywbl"
export default {
data () {
return {
......@@ -85,6 +86,7 @@ export default {
djqxList: [],
isDialog: false,
btnDisabled: true,
djywbm: ''
}
},
components: {
......@@ -119,14 +121,14 @@ export default {
this.$set(item, 'cselect', false)
})
item.cselect = true
this.$store.dispatch('ywbl/setDjqxObj', {
Cookies.set("djqxObj", JSON.stringify({
'djqxbm': item.nodecode,
'djqxmc': item.nodename,
})
'djqxmc': item.nodename
}))
if (item.sffqlc == '1') {
this.btnDisabled = false
this.$store.dispatch('ywbl/setBsmSqyw', item.parentid)
this.$store.dispatch('ywbl/setDjywbm', item.djywbm)
Cookies.set("bsmSqyw", item.parentid)
this.djywbm = item.djywbm
}
},
handleList (list, obj) {
......@@ -196,8 +198,8 @@ export default {
this.$set(item, 'cselect', true)
if (item.sffqlc == '1') {
this.btnDisabled = false
this.$store.dispatch('ywbl/setBsmSqyw', item.bsmSqyw)
this.$store.dispatch('ywbl/setDjywbm', item.djywbm)
Cookies.set("bsmSqyw", item.bsmSqyw)
this.djywbm = item.djywbm
} else {
this.getNextNode(item.bsmSqyw, false)
}
......
......@@ -116,7 +116,7 @@ export default {
console.log(name, sort);
},
openDialog (item) {
const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3')
const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3')
window.open(href, '_blank');
}
}
......