hmc 1 год назад
Родитель
Сommit
f98a7c3daf
1 измененных файлов с 13 добавлено и 9 удалено
  1. 13 9
      zkqy-ui/src/views/orderMange/components/dialogForm/OutStock.vue

+ 13 - 9
zkqy-ui/src/views/orderMange/components/dialogForm/OutStock.vue

@@ -94,16 +94,20 @@ export default {
   methods: {
     //删除回滚对应产品的库存
     handleDelete(index,row){
-      removeErrorOutboundRecord(row.id).then(res=>{
-        if (res.code == 200) {
-          this.$message.success("删除成功");
-          this.getOutStockDetail(this.orderRow);
-        } else {
-          this.$message.error("删除失败");
-          throw Error("删除失败");
+      this.$confirm("是否删除名称为 “"+row.productName+"” 出库明细数据", "提示", { type: "warning" }).then(
+        () => {
+          removeErrorOutboundRecord(row.id).then(res=>{
+            if (res.code == 200) {
+              this.$message.success("删除成功");
+              this.getOutStockDetail(this.orderRow);
+            } else {
+              this.$message.error("删除失败");
+              throw Error("删除失败");
+            }
+          })
         }
-      })
-       //出库
+      );
+      //出库
       console.log("删除出库产品、回滚库存",row)
     },
     exportOutInfo() {