1e88e991 by renchao@pashanhoo.com

受理申请

1 parent 7a4e9519
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-02 14:56:22
* @LastEditTime: 2024-02-06 14:43:33
-->
<template>
<div class="from-clues">
......@@ -76,7 +76,7 @@
</div>
<div class="submit_button">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button>
<el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button>
<el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button>
</div>
</div>
......@@ -155,6 +155,35 @@
* @description: submitForm
* @author: renchao
*/
handleAdd () {
let that = this
this.loading = true;
store.dispatch('user/reMenuRefresh', false)
againAddSldy({
bsmSqyw: that.sqywInfo.bsmSqyw,
bdcdysz: that.bdcdysz,
bsmSlsq: that.sqywInfo.bsmSlsq,
}).then(res => {
that.loading = false
if (res.code == 200) {
if (this.sqywInfo.sqywdylx != "1") {
that.bdcdysz = []
that.$refs.table.clearSelection()
}
store.dispatch('user/reMenuRefresh', true)
that.queryClick()
that.$message({
showClose: true,
message: '添加成功',
type: 'success'
})
} else {
that.$message.error(res.message);
}
}).catch(() => {
that.loading = false
})
},
submitForm () {
let that = this
if (this.bdcdysz.length == 0) {
......@@ -162,83 +191,55 @@
return;
}
this.loading = true
if (this.sqywInfo.isworkFrame) {
store.dispatch('user/reMenuRefresh', false)
againAddSldy({
if (!that.isJump) {
startBusinessFlow({
bsmSqyw: that.sqywInfo.bsmSqyw,
bdcdysz: that.bdcdysz,
bsmSlsq: that.sqywInfo.bsmSlsq,
}).then(res => {
}).then((res) => {
that.loading = false
if (res.code == 200) {
if (this.sqywInfo.sqywdylx != "1") {
that.bdcdysz = []
that.$refs.table.clearSelection()
that.$message({
showClose: true,
message: "发起申请成功",
type: "success",
});
if (!that.isJump) {
that.jump(res.result, that.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
that.$popupCacel()
} else {
if (res.result && res.result.length > 0) {
ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
} else {
ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
}
store.dispatch('user/reMenuRefresh', true)
that.queryClick()
}
}).catch(() => {
that.loading = false
})
} else {
choiceBdcdy({
bsmSlsq: that.$route.query.bsmSlsq,
bdcdysz: that.bdcdysz,
}).then((res) => {
that.loading = false
if (res.code == 200) {
that.$message({
showClose: true,
message: '添加成功',
type: 'success'
})
message: "发起申请成功",
type: "success",
});
store.dispatch("user/refreshPage", true);
} else {
that.$message.error(res.message);
}
that.$popupCacel();
}).catch(() => {
that.loading = false
})
} else {
if (!that.isJump) {
startBusinessFlow({
bsmSqyw: that.sqywInfo.bsmSqyw,
bdcdysz: that.bdcdysz,
}).then((res) => {
that.loading = false
if (res.code == 200) {
that.$message({
showClose: true,
message: "发起申请成功",
type: "success",
});
if (!that.isJump) {
that.jump(res.result, that.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
that.$popupCacel()
} else {
if (res.result && res.result.length > 0) {
ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
} else {
ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
}
}
}).catch(() => {
that.loading = false
})
} else {
choiceBdcdy({
bsmSlsq: that.$route.query.bsmSlsq,
bdcdysz: that.bdcdysz,
}).then((res) => {
that.loading = false
if (res.code == 200) {
that.$message({
showClose: true,
message: "发起申请成功",
type: "success",
});
store.dispatch("user/refreshPage", true);
} else {
that.$message.error(res.message);
}
that.$popupCacel();
}).catch(() => {
that.loading = false
})
}
}
},
/**
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-02 16:35:05
* @LastEditTime: 2024-02-06 14:43:44
-->
<template>
<!-- 抵押权利信息查询 -->
......@@ -67,7 +67,7 @@
</div>
<div class="submit_button">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button>
<el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button>
<el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-else>发起申请</el-button>
</div>
</div>
......@@ -147,6 +147,35 @@
* @description: submitFormClick
* @author: renchao
*/
handleAdd () {
let that = this
this.loading = true;
store.dispatch('user/reMenuRefresh', false)
againAddSldy({
bsmSqyw: that.sqywInfo.bsmSqyw,
bdcdysz: that.bdcdysz,
bsmSlsq: that.sqywInfo.bsmSlsq,
}).then(res => {
that.loading = false
if (res.code == 200) {
if (this.sqywInfo.sqywdylx != "1") {
that.bdcdysz = []
that.$refs.table.clearSelection()
}
store.dispatch('user/reMenuRefresh', true)
that.queryClick()
that.$message({
showClose: true,
message: '添加成功',
type: 'success'
})
} else {
that.$message.error(res.message);
}
}).catch(() => {
that.loading = false
})
},
submitFormClick () {
let that = this
if (this.bdcdysz.length == 0) {
......@@ -154,63 +183,35 @@
return;
}
this.loading = true;
if (this.sqywInfo.isworkFrame) {
store.dispatch('user/reMenuRefresh', false)
againAddSldy({
bsmSqyw: that.sqywInfo.bsmSqyw,
bdcdysz: that.bdcdysz,
bsmSlsq: that.sqywInfo.bsmSlsq,
}).then(res => {
that.loading = false
if (res.code == 200) {
if (this.sqywInfo.sqywdylx != "1") {
that.bdcdysz = []
that.$refs.table.clearSelection()
}
store.dispatch('user/reMenuRefresh', true)
that.queryClick()
that.$message({
showClose: true,
message: '添加成功',
type: 'success'
})
startBusinessFlow({
bsmSqyw: this.sqywInfo.bsmSqyw,
bdcdysz: this.bdcdysz,
// djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
// djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
}).then((res) => {
this.loading = false
if (res.code == 200) {
that.$message({
showClose: true,
message: "发起申请成功",
type: "success",
});
if (!that.isJump) {
that.jump(res.result, that.sqywInfo.djywbm);
} else {
that.$message.error(res.message);
store.dispatch('user/refreshPage', true);
}
}).catch(() => {
that.loading = false
})
} else {
startBusinessFlow({
bsmSqyw: this.sqywInfo.bsmSqyw,
bdcdysz: this.bdcdysz,
// djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
// djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
}).then((res) => {
this.loading = false
if (res.code == 200) {
that.$message({
showClose: true,
message: "发起申请成功",
type: "success",
});
if (!that.isJump) {
that.jump(res.result, that.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
that.$popupCacel()
that.$popupCacel()
} else {
if (res.result && res.result.length > 0) {
ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
} else {
if (res.result && res.result.length > 0) {
ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
} else {
ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
}
ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
}
}).catch(() => {
this.loading = false
})
}
}
}).catch(() => {
this.loading = false
})
},
/**
* @description: handleSelectionChange
......