Quellcode durchsuchen

增加撤销按钮

liyuan vor 1 Tag
Ursprung
Commit
5350b4a2d6

+ 7 - 0
src/api/storehouse/plan.js

@@ -67,3 +67,10 @@ export const revokePlanIn = (id) => {
         method: 'POST'
     })
 }
+
+export const revokePlanOut = (id) => {
+    return request({
+        url: '/api/blade-sales-part//tire/center/warehouse/plan/revokePlanIn?id=' + id,
+        method: 'POST'
+    })
+}

+ 16 - 0
src/views/storehouse/outStockManage/outStockPlan/detailsPage.vue

@@ -1137,6 +1137,22 @@ export default {
     });
   },
   methods: {
+      revokePlan(){
+          this.$confirm('确定要撤销该出库单吗?', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning'
+          }).then(() => {
+              revokePlanOut(this.form.id).then(res => {
+                  this.$message({
+                      type: 'success',
+                      message: '撤销成功!'
+                  });
+                  this.getDetail(res.data.data, true)
+              })
+          })
+      },
+
     uploadExceed(limit, files, fileList, column) {
       this.$message.error("超出上传限制文件数量");
     },