d722d892 by 田浩浩
2 parents 633d798c abf73539
......@@ -141,4 +141,23 @@ export function deleteCollectBiz (bsmSqyw) {
url: '/ywbl/BusinessApply/deleteCollectBiz?bsmSqyw=' + bsmSqyw,
method: 'post'
})
}
// 国有建设用地使用权/房屋使用权 -选择不动产单元
export function choiceBdcdy (data) {
return request({
url: 'business/workFlow/choiceBdcdy',
method: 'post',
data,
showLoading: true
})
}
// 申请列表删除
export function deleteBdcdy (data) {
return request({
url: 'business/workFlow/deleteBdcdy',
method: 'post',
data,
showLoading: true
})
}
\ No newline at end of file
......
......@@ -26,7 +26,7 @@ export default {
name: 'index',
data () {
return {
btnShow: true,
btnShow: false,
title: '提示',
cancelText: '取消',
confirmText: '确认',
......@@ -56,20 +56,19 @@ export default {
mounted () {
// 计算滚动条高度
setTimeout(() => {
if(this.btnShow){ //判断按钮的显影来决定是否需要计算高度
if(this.height == 'auto'){
this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px'
}else{
this.contentHeight =(parseInt(this.height)-parseInt('100px'))+'px';
if (this.btnShow) { //判断按钮的显影来决定是否需要计算高度
if (this.height == 'auto') {
this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px'
}else{
this.contentHeight = this.height
}
} else {
if(this.height=='auto'){
this.contentHeight = this.$refs.contentRef.offsetHeight
}else{
this.contentHeight = this.height
}
}
}else{
if(this.height == 'auto'){
this.contentHeight = this.$refs.contentRef.offsetHeight + 'px'
}else{
this.contentHeight =this.height
}
}
}, 500)
},
methods: {
......@@ -132,7 +131,7 @@ export default {
.ls-title {
padding: 16px;
color: #ffffff;
background: linear-gradient(3deg,#409EFF, transparent)
background: linear-gradient(-2deg, #409EFF, transparent; background: linear-gradient(3deg, #409EFF, transparent));
}
.ls-title .svg-icon {
......@@ -146,13 +145,13 @@ export default {
}
.ls-mask-footer {
height: 50px;
display: flex;
justify-content: center;
width: 100%;
box-shadow: 0px 0px 2px 0px;
border-radius: 0 0 10px 10px;
position: absolute;
height: 50px;
display: flex;
justify-content: center;
width: 100%;
box-shadow: 0px 0px 2px 0px;
border-radius: 0 0 10px 10px;
position: absolute;
bottom: 0;
background: #ffffff;
}
......@@ -160,9 +159,9 @@ export default {
/deep/.closeStyle {
position: absolute;
top: 17px;
right: 12px;
font-size: 20px;
top: 13px;
right: 26px;
font-size: 24px;
cursor: pointer;
color: #409EFF;
}
......
......@@ -202,7 +202,7 @@ export default {
height: 48px;
line-height: 48px;
width: 100%;
background: #fff;
background: #EDF1F7;
border-bottom: 1px solid #E4EBF4;
box-shadow: 0 1px 3px 0 rgba(147, 173, 209, 0.12);
......@@ -216,6 +216,8 @@ export default {
top: 8px;
height: 33px;
z-index: 1;
background: #EDF1F7!important;
}
.pane-mask-left {
......@@ -237,14 +239,12 @@ export default {
cursor: pointer;
height: 31px;
line-height: 29px;
border: 1px solid #e4ebf4;
color: #686666;
background: #fff;
padding: 0 10px 0 10px;
background: #D8DFE6;
padding: 0 20px 0 20px;
font-size: 16px;
margin-top: 5px;
border-radius: 4px;
border-radius: 8px 8px 0 0;
&:first-of-type {
margin-left: 15px;
}
......@@ -254,8 +254,8 @@ export default {
}
&.active {
border-color: #0f93f6;
color: #4a4a4a;
color: #0f93f6;
background: #ffffff;
// &::before {
// content: '';
// background: #0F93F6;
......@@ -267,6 +267,7 @@ export default {
// margin-right: 2px;
// }
}
}
}
......
......@@ -16,6 +16,7 @@ const service = axios.create({
//admin:bearer AT-16-oqkOHiUSsDdFA-eAZ49k2rJQDTzQpClO
//renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI
//tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6
//zhangh:bearer AT-7-Tx8dlZH0LNRc33UjD1CX1xwa-1D7kQmQ
},
timeout: 15000
})
......
<!--
功能:申请单元列表批量删除
作者:calliope
-->
<template>
<div class='batchDel'>
<lb-table :column="columns" :data="formData.dataList" :heightNum="500" :pagination="false" @selection-change="handleSelectionChange">
</lb-table>
</div>
</template>
<script>
import { deleteBdcdy } from "@/api/ywbl.js"
export default {
components: {},
props: {
formData: {
type: Object,
default: {}
}
},
data () {
return {
columns: [
{
type: 'selection',
label: '全选'
},
{
label: '序号',
type: 'index',
width: '50',
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "zl",
label: "坐落",
},
],
dataList: [],
selectBdcdy: [],
}
},
methods:{
childFn(){
deleteBdcdy({
bsmSlsq: this.formData.bsmSlsq,
bsmSldyList: this.selectBdcdy
}).then(res => {
if(res.code == 200){
this.$message.success("删除成功");
}else{
this.$message.error(res.message)
}
})
},
handleSelectionChange (e) {
this.selectBdcdy = [];
e.forEach((item, index) => {
this.selectBdcdy.push(item.bsmSldy)
})
}
}
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
......@@ -6,9 +6,15 @@
border: 1px solid #ebeef5;
z-index: 100;
@include flex;
/deep/.el-tabs__header {
margin-bottom: 0 !important;
}
/deep/.el-menu-item {
display: flex;
align-items: center;
}
}
.leftmenu {
......@@ -24,6 +30,12 @@
text-align: center;
}
.batchDel {
float: right;
position: relative;
top: 3px;
}
.title-detail {
display: flex;
flex-wrap: wrap;
......@@ -48,6 +60,8 @@
font-size: 14px;
line-height: 20px;
cursor: pointer;
display: flex;
flex-direction: column;
}
li:hover {
......@@ -115,8 +129,8 @@
}
.map-drawer {
width: 20px;
height: 79px;
width: 16px;
height: 70px;
position: absolute;
top: 30%;
z-index: 99;
......
......@@ -22,11 +22,16 @@
<!-- 左侧菜单栏 -->
<div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
<div v-if="this.isShowdrawer">
<div class="title">申请单元列表({{ unitData.length }})</div>
<div class="title">申请单元列表({{ unitData.length }})
<el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length>1">批量删除</el-button>
</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>
<div>
<p>{{ item.bdcdyh }}</p>
<p class="title-detail">{{ item.zl }}</p>
</div>
<i class="el-icon-delete" v-if="unitData.length>1" @click.stop="handleDel(item)"></i>
</el-menu-item>
</el-menu>
</div>
......@@ -56,7 +61,7 @@
</div>
</div>
</div>
<fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" />
<fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" />
</div>
</template>
......@@ -72,6 +77,7 @@ import {
getNextLinkInfo,
completeTask,
} from "@/api/fqsq.js"
import { deleteBdcdy } from "@/api/ywbl.js"
import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
import { getForm } from "./flowform.js"
import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue"
......@@ -124,6 +130,52 @@ export default {
this.flowInitParam();
},
methods: {
// 更新列表
updateDialog () {
this.loadBdcdylist();
},
// 删除左侧列表
handleDel (item) {
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
deleteBdcdy({
bsmSlsq: this.bsmSlsq,
bsmSldyList: item.bsmSldy.split(',')
}).then(res => {
if(res.code == 200){
this.$message.success("删除成功");
this.updateDialog();
}else{
this.$message.error(res.message)
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
handleBatchDel () {
let that = this;
this.$popup({
title: '批量删除',
width: '50%',
btnShow: true,
editItem: 'workflow/components/batchDel',
formData: {
bsmSlsq: this.bsmSlsq,
dataList: this.unitData
},
cancel: function () { }, //取消事件的回调
confirm: function () {
that.updateDialog();
}, //确认事件的回调
})
},
//加载流程初始参数
flowInitParam () {
var formdata = new FormData();
......@@ -164,6 +216,7 @@ export default {
this.imgSrc = URL.createObjectURL(res)
this.$popup({
title: '流程图',
btnShow: true,
editItem: 'workflow/components/flowChart',
formData: this.imgSrc
})
......
......@@ -171,7 +171,7 @@ export default {
})
},
ywhClick (item) {
const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1');
const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1' + '&sqywbm=' + item.djywbm);
window.open(href, '_blank');
}
}
......
......@@ -45,7 +45,7 @@ import Cookies from 'js-cookie'
import { datas, sendThis } from "../javascript/fwsyq.js";
import table from "@/utils/mixin/table";
import jump from "@/views/ywbl/ywsq/components/mixin/jump";
import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js";
import { selectFwsyq, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
......@@ -96,27 +96,41 @@ export default {
this.$message.error("请至少选择一条数据");
return;
}
startBusinessFlow({
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) => {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
if (!this.isJump) {
startBusinessFlow({
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) => {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
this.jump(res.result, this.djywbm)
} else {
this.$message.error(res.message);
}
})
} else {
choiceBdcdy({
bsmSlsq: this.$route.query.bsmSlsq,
bdcdysz: this.bdcdysz
}).then(res => {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
this.$emit('updateDialog', true)
} else {
this.$message.error(res.message);
}
} else {
this.$message.error(res.message);
}
})
})
}
},
handleSelectionChange (val) {
this.bdcdysz = val
......
......@@ -42,7 +42,7 @@ export default {
},
updateDialog () {
this.$emit("input", false)
this.key++
this.$emit("updateDialog", true)
}
}
}
......