diff --git a/src/api/model/inm.js b/src/api/model/inm.js
index c4f8c30c..9c1aefaf 100644
--- a/src/api/model/inm.js
+++ b/src/api/model/inm.js
@@ -103,6 +103,14 @@ export default {
);
}
},
+ revert: {
+ name: "撤销",
+ req: async function(id){
+ return await http.post(
+ `${config.API_URL}/inm/mio/${id}/revert/`,
+ );
+ }
+ }
},
// 出入库明细
mioitem: {
diff --git a/src/views/inm/good.vue b/src/views/inm/good.vue
index 276fc757..d1bf1964 100644
--- a/src/views/inm/good.vue
+++ b/src/views/inm/good.vue
@@ -44,6 +44,8 @@
+
+
diff --git a/src/views/inm/halfgood.vue b/src/views/inm/halfgood.vue
index 9fc61147..df5833b9 100644
--- a/src/views/inm/halfgood.vue
+++ b/src/views/inm/halfgood.vue
@@ -44,6 +44,8 @@
+
+
diff --git a/src/views/inm/halfgood_mio.vue b/src/views/inm/halfgood_mio.vue
index c8b6c06d..13a9497b 100644
--- a/src/views/inm/halfgood_mio.vue
+++ b/src/views/inm/halfgood_mio.vue
@@ -53,6 +53,9 @@
v-if="scope.row.state == 10">
删除
+
+ 撤销
+
@@ -141,6 +144,19 @@ export default {
});
}).catch(() => { });
},
+ revert(row) {
+ this.$confirm(`确定撤销该操作吗?`, "提示", {
+ type: "warning",
+ }).then(() => {
+ this.$API.inm.mio.revert.req(row.id).then((res) => {
+ this.$message.success("撤销成功");
+ this.$refs.table.refresh();
+ return res;
+ }).catch((err) => {
+ return err;
+ });
+ }).catch(() => { });
+ },
table_submit(row) {
this.$API.inm.mio.submit.req(row.id).then(res => {
this.$message.success("提交成功");
diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue
index e76c79a1..2d0239da 100644
--- a/src/views/inm/helpso.vue
+++ b/src/views/inm/helpso.vue
@@ -30,6 +30,8 @@
+
+
diff --git a/src/views/inm/mainso.vue b/src/views/inm/mainso.vue
index d0e5f9ab..c9da71d1 100644
--- a/src/views/inm/mainso.vue
+++ b/src/views/inm/mainso.vue
@@ -30,6 +30,8 @@
+
+