|
@@ -555,13 +555,6 @@ export default {
|
|
|
checkNote: "",
|
|
|
};
|
|
|
},
|
|
|
- computed: {
|
|
|
- previewImages() {
|
|
|
- const fileList = [];
|
|
|
-
|
|
|
- return fileList;
|
|
|
- },
|
|
|
- },
|
|
|
created() {
|
|
|
console.log(this.$imageUrl, 8888);
|
|
|
this.checkBy = this.name;
|
|
@@ -628,22 +621,65 @@ export default {
|
|
|
},
|
|
|
//审批通过
|
|
|
async adoptFn() {
|
|
|
- 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: 1,
|
|
|
- };
|
|
|
- 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: 1,
|
|
|
+ };
|
|
|
+ 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: 1,
|
|
|
+ // };
|
|
|
+ // await getDepositManageExamine(data);
|
|
|
+ // this.$message.success("审批通过");
|
|
|
+ // this.goBack();
|
|
|
+ // this.$emit("updateList");
|
|
|
},
|
|
|
async getData(data) {
|
|
|
const res = await getDepositManageDetail(data);
|