浏览代码

申请理由不能为空

master
YF-yuan 3 年前
父节点
当前提交
af52c240b5
共有 4 个文件被更改,包括 88 次插入62 次删除
  1. +22
    -15
      src/views/chain/coordinationManage/applyCooperation.vue
  2. +22
    -15
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  3. +22
    -16
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  4. +22
    -16
      src/views/second/coordinationManage/applyCooperation/reward.vue

+ 22
- 15
src/views/chain/coordinationManage/applyCooperation.vue 查看文件

@@ -202,23 +202,30 @@ export default {
this.form.isApply = 2
},
save(){
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
});
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
});
}
},
},
filters: {

+ 22
- 15
src/views/second/coordinationManage/applyCooperation/basicTarget.vue 查看文件

@@ -227,23 +227,30 @@ export default {
this.form.leaderDept = row.leaderDept;
},
save() {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
});
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
});
}
},
},
filters: {

+ 22
- 16
src/views/second/coordinationManage/applyCooperation/constraint.vue 查看文件

@@ -221,24 +221,30 @@ export default {
},
save() {
console.log(this.form);
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
});
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
});
}
},
},
filters: {

+ 22
- 16
src/views/second/coordinationManage/applyCooperation/reward.vue 查看文件

@@ -228,24 +228,30 @@ export default {
},
save() {
console.log(this.form);
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
if(this.form.note) {
applyApi
.applyCooperate(Object.assign({}, this.form))
.then((res) => {
this.showEdit = false;
this.$message({
type: "success",
message: "提交申请成功",
});
this.getDataList();
})
.catch((e) => {
this.showEdit = false;
this.$message({
type: "error",
message: "提交申请失败",
});
});
} else {
this.$message({
type: "error",
message: "申请理由不能为空",
});
}
},
},
filters: {

正在加载...
取消
保存