huang_an 2 lat temu
rodzic
commit
e578ed3031

+ 1 - 1
src/api/warehouseManagement/outin.js

@@ -40,7 +40,7 @@ export default {
   },
   //出库实时库存
   pageeLedger: async (params) => {
-    const res = await request.get(`/wms/inout/pageeLedger`, {
+    const res = await request.get(`/wms/outin/getOutStock`, {
       params
     });
     if (res.data.code == 0) {

+ 8 - 8
src/views/warehouseManagement/components/AssetsDialog.vue

@@ -8,7 +8,7 @@
               type="text"
               size="small"
               placeholder="搜索物品编码"
-              v-model="searchForm.assetCode"
+              v-model="searchForm.code"
             ></el-input>
           </el-form-item>
         </el-col>
@@ -18,7 +18,7 @@
               type="text"
               size="small"
               placeholder="搜索物品名称"
-              v-model="searchForm.assetName"
+              v-model="searchForm.name"
             ></el-input>
           </el-form-item>
         </el-col>
@@ -54,11 +54,11 @@
           @selection-change="handleSelectionChange"
         >
           <el-table-column
-            prop="assetCode"
+            prop="code"
             label="物品编码"
             min-width="150"
           ></el-table-column>
-          <el-table-column prop="assetName" label="物品名称"></el-table-column>
+          <el-table-column prop="name" label="物品名称"></el-table-column>
           <el-table-column
             :prop="item.prop"
             :label="item.label"
@@ -141,8 +141,8 @@
           size: 10
         },
         searchForm: {
-          assetCode: '',
-          assetName: ''
+          code: '',
+          name: ''
         },
         selectionList: [],
         materialType: ''
@@ -180,8 +180,8 @@
         this.getList();
       },
       reset() {
-        this.searchForm.assetCode = '';
-        this.searchForm.assetName = '';
+        this.searchForm.code = '';
+        this.searchForm.name = '';
         this.doSearch();
       },
       doSearch() {

+ 25 - 26
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -777,35 +777,34 @@
 
             this.saveLoading = true;
 
-            console.log('明细', this.warehousingMaterialList);
-            const categoryLevelId = this.$refs.assetsDialogRef.materialType;
-            let newObj = {
-              inOutAddPO: {
-                ...this.formData,
-                ...this.formData.extInfo,
-                bizStatus: 2
-              },
-              warehouseLedgerInfos: this.handelArr(
-                this.warehousingMaterialList,
-                categoryLevelId
-              )
-            };
-            delete newObj.inOutAddPO.extInfo;
-            console.log('wqwq===');
-            console.log('2222', newObj);
-
-            const res = await outin.addInOut(newObj);
-            if (res.code == 0) {
-              this.$message.success('保存成功!');
-            }
+            // console.log('明细', this.warehousingMaterialList);
+            // const categoryLevelId = this.$refs.assetsDialogRef.materialType;
+            // let newObj = {
+            //   inOutAddPO: {
+            //     ...this.formData,
+            //     ...this.formData.extInfo,
+            //     bizStatus: 2
+            //   },
+            //   warehouseLedgerInfos: this.handelArr(
+            //     this.warehousingMaterialList,
+            //     categoryLevelId
+            //   )
+            // };
+            // delete newObj.inOutAddPO.extInfo;
+            console.log('2222', obj);
+
+            // const res = await outin.addInOut(newObj);
+            // if (res.code == 0) {
+            //   this.$message.success('保存成功!');
+            // }
 
             this.saveLoading = false;
-            this.$router.push('/warehouseManagement/outgoingManagement');
+            // this.$router.push('/warehouseManagement/outgoingManagement');
 
-            if (res?.success) {
-              this.$message.success('保存成功!');
-              this.$router.go(-1);
-            }
+            // if (res?.success) {
+            //   this.$message.success('保存成功!');
+            //   this.$router.go(-1);
+            // }
           }
         });
       },