Browse Source

申请理由不能为空

master
YF-yuan 3 years ago
parent
commit
af52c240b5
4 changed files with 88 additions and 62 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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: {

Loading…
Cancel
Save