guoyujia 2 周之前
父节点
当前提交
4e9dd47f48
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/views/business/inventoryCheck/notInboundCheckForm.vue

+ 8 - 4
src/views/business/inventoryCheck/notInboundCheckForm.vue

@@ -221,23 +221,27 @@ function handleInventory() {
       loading.value = true;
       saveNotInboundInfo({ takeStockPeriodId: detailInfo.value.id }).then(
         (res) => {
+          console.log("res", res)
           if (res.code == 200) {
+            console.log("chenggong")
             proxy.$modal.msgSuccess("操作成功");
             loading.value = false;
             reset();
             getList();
           } else {
+            console.log("cuowu")
+            loading.value = false;
             proxy.$modal.msgError("操作失败");
-          }
-          loading.value = false;
+          } 
         }
-      );
+      ).catch(res => {
+        loading.value = false;
+      });
     })
 }
 
 function getList() {
   loading.value = true;
-
   console.log("盘点明细", detailInfo.value);
   queryTaksParams.value.takeStockPeriodId = detailInfo.value.id;
   getNotInboundInfo(queryTaksParams.value).then((res) => {