58e82bcb by renchao@pashanhoo.com

1

1 parent b5ae31b2
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-02 16:35:20
* @LastEditTime: 2024-02-06 16:56:48
-->
<template>
<div class="from-clues">
......@@ -81,7 +81,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>
......@@ -132,7 +132,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>
......@@ -295,6 +295,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) {
......@@ -302,88 +331,60 @@
return;
}
this.loading = true
if (this.sqywInfo.isworkFrame) {
store.dispatch('user/reMenuRefresh', false)
againAddSldy({
if (!that.isJump) {
startBusinessFlow({
bsmSqyw: that.sqywInfo.bsmSqyw,
//sjlx: 'zrz',
sjlx: that.activeName,
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()
}
store.dispatch('user/reMenuRefresh', true)
that.queryClick()
that.$message({
showClose: true,
message: '添加成功',
message: '发起申请成功',
type: 'success'
})
if (!that.isJump) {
that.jump(res.result, that.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
that.$popupCacel()
} else {
that.$message.error(res.message);
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 {
if (!that.isJump) {
startBusinessFlow({
bsmSqyw: that.sqywInfo.bsmSqyw,
//sjlx: 'zrz',
sjlx: that.activeName,
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: Vue.prototype.$currentRoute.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);
that.$popupCacel()
choiceBdcdy({
bsmSlsq: Vue.prototype.$currentRoute.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);
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(() => {
that.loading = false
})
}
}
}).catch(() => {
that.loading = false
})
}
},
/**
......
......@@ -119,7 +119,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>
......@@ -264,6 +264,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) {
......@@ -271,88 +300,60 @@
return;
}
this.loading = true
if (this.sqywInfo.isworkFrame) {
store.dispatch('user/reMenuRefresh', false)
againAddSldy({
if (!that.isJump) {
startBusinessFlow({
bsmSqyw: that.sqywInfo.bsmSqyw,
//sjlx: 'zrz',
sjlx: that.activeName,
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()
}
store.dispatch('user/reMenuRefresh', true)
that.queryClick()
that.$message({
showClose: true,
message: '添加成功',
message: '发起申请成功',
type: 'success'
})
if (!that.isJump) {
that.jump(res.result, that.sqywInfo.djywbm);
} else {
store.dispatch('user/refreshPage', true);
}
that.$popupCacel()
} else {
that.$message.error(res.message);
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 {
if (!that.isJump) {
startBusinessFlow({
bsmSqyw: that.sqywInfo.bsmSqyw,
//sjlx: 'zrz',
sjlx: that.activeName,
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: Vue.prototype.$currentRoute.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);
that.$popupCacel()
choiceBdcdy({
bsmSlsq: Vue.prototype.$currentRoute.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);
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(() => {
that.loading = false
})
}
}
}).catch(() => {
that.loading = false
})
}
},
/**
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-02 16:35:49
* @LastEditTime: 2024-02-06 16:58:53
-->
<template>
<div class="from-clues">
......@@ -52,7 +52,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>
......@@ -132,6 +132,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) {
......@@ -139,61 +168,33 @@
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: 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.djywbm)
} else {
that.$message.error(res.message);
store.dispatch('user/refreshPage', true);
}
}).catch(() => {
that.loading = false
})
} else {
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.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(() => {
that.loading = false
})
}
}
}).catch(() => {
that.loading = false
})
},
/**
* @description: handleSelectionChange
......