|
@@ -602,22 +602,64 @@ export default {
|
|
|
},
|
|
|
//审批驳回
|
|
|
async rejectFn() {
|
|
|
- if (!this.detailList.installDate) {
|
|
|
- this.$message.error("请选择安装时间");
|
|
|
- return;
|
|
|
- }
|
|
|
- let data = {
|
|
|
- ...this.detailList,
|
|
|
- checkBy: this.checkBy,
|
|
|
- // checkDate: this.checkDate,
|
|
|
- isRefundDeposit: this.isRefundDeposit,
|
|
|
- checkNote: this.checkNote,
|
|
|
- examineResult: 0,
|
|
|
- };
|
|
|
- await getDepositManageExamine(data);
|
|
|
- this.$message.success("审批驳回");
|
|
|
- this.goBack();
|
|
|
- this.$emit("updateList");
|
|
|
+ this.$confirm("此操作将审批订单, 是否继续?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ // if (!this.detailList.installDate) {
|
|
|
+ // this.$message.error("请选择安装时间");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ let data = {
|
|
|
+ ...this.detailList,
|
|
|
+ checkBy: this.checkBy,
|
|
|
+ // checkDate: this.checkDate,
|
|
|
+ isRefundDeposit: this.isRefundDeposit,
|
|
|
+ checkNote: this.checkNote,
|
|
|
+ examineResult: 0,
|
|
|
+ };
|
|
|
+ getDepositManageExamine(data)
|
|
|
+ .then((res) => {
|
|
|
+ if (!res.data) {
|
|
|
+ this.goBack();
|
|
|
+ this.$emit("updateList");
|
|
|
+ } else {
|
|
|
+ this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
|
|
|
+ confirmButtonText: "跳转",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$successMsg("进入下一张待审批订单");
|
|
|
+ this.detailList = res.data;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.goBack();
|
|
|
+ this.$emit("updateList");
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .finally((res) => {});
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ // if (!this.detailList.installDate) {
|
|
|
+ // this.$message.error("请选择安装时间");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // let data = {
|
|
|
+ // ...this.detailList,
|
|
|
+ // checkBy: this.checkBy,
|
|
|
+ // // checkDate: this.checkDate,
|
|
|
+ // isRefundDeposit: this.isRefundDeposit,
|
|
|
+ // checkNote: this.checkNote,
|
|
|
+ // examineResult: 0,
|
|
|
+ // };
|
|
|
+ // await getDepositManageExamine(data);
|
|
|
+ // this.$message.success("审批驳回");
|
|
|
+ // this.goBack();
|
|
|
+ // this.$emit("updateList");
|
|
|
},
|
|
|
//审批通过
|
|
|
async adoptFn() {
|
|
@@ -627,10 +669,10 @@ export default {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
- if (!this.detailList.installDate) {
|
|
|
- this.$message.error("请选择安装时间");
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (!this.detailList.installDate) {
|
|
|
+ // this.$message.error("请选择安装时间");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
let data = {
|
|
|
...this.detailList,
|
|
|
checkBy: this.checkBy,
|
|
@@ -736,4 +778,4 @@ export default {
|
|
|
.selectStyle {
|
|
|
width: 100%;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|