|
|
|
@ -146,7 +146,7 @@ |
|
|
|
|
<!-- https://avuejs.com/form/form-rules.html#%E5%A4%96%E7%BD%AE%E9%AA%8C%E8%AF%81--> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import {getList, getDetail, add, update, remove} from "@/api/leger/toolinventoryrecord"; |
|
|
|
|
import {getList, getDetail, add, update, remove, reject, auditing} from "@/api/leger/toolinventoryrecord"; |
|
|
|
|
import { |
|
|
|
|
inspection_add, |
|
|
|
|
inspection_update, |
|
|
|
@ -951,8 +951,7 @@ export default { |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
this.tab1_form.checkStatus = "2" |
|
|
|
|
this.submitRejectOrauditing(); |
|
|
|
|
this.submitRejectOrauditing('2'); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
reject() { |
|
|
|
@ -961,26 +960,45 @@ export default { |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
this.tab1_form.checkStatus = "3" |
|
|
|
|
this.submitRejectOrauditing(); |
|
|
|
|
this.submitRejectOrauditing('3'); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
submitRejectOrauditing() { |
|
|
|
|
update(this.tab1_form).then(() => { |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
|
query: {}, |
|
|
|
|
}); |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "操作成功!" |
|
|
|
|
submitRejectOrauditing(status) { |
|
|
|
|
if (status === '2') { |
|
|
|
|
auditing(this.tab1_form.id).then(() => { |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
|
query: {}, |
|
|
|
|
}); |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "操作成功!" |
|
|
|
|
}); |
|
|
|
|
}).catch((error) => { |
|
|
|
|
console.log(error); |
|
|
|
|
this.$message({ |
|
|
|
|
type: "error", |
|
|
|
|
message: "操作失败!" |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}).catch((error) => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "error", |
|
|
|
|
message: "操作失败!" |
|
|
|
|
} else if (status === '3') { |
|
|
|
|
reject(this.tab1_form.id).then(() => { |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
|
query: {}, |
|
|
|
|
}); |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "操作成功!" |
|
|
|
|
}); |
|
|
|
|
}).catch((error) => { |
|
|
|
|
console.log(error); |
|
|
|
|
this.$message({ |
|
|
|
|
type: "error", |
|
|
|
|
message: "操作失败!" |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
del() { |
|
|
|
|
this.$confirm("是否将选择数据删除?", { |
|
|
|
|