Ver código fonte

2023年6月3日10:41:23

纪新园 2 anos atrás
pai
commit
743b307d93

+ 39 - 0
src/views/businessManagement/inventoryAccount/index.vue

@@ -68,6 +68,14 @@
             @click.stop="LockingQuantity"
           >计算内贸锁定
           </el-button>
+          <el-button
+            v-if="userInfo"
+            type="info"
+            icon="el-icon-printer"
+            size="small"
+            @click.stop="exportInventory"
+          >导出库存账
+          </el-button>
         </template>
       </avue-crud>
       <el-dialog title="导入库存"
@@ -311,6 +319,37 @@ export default {
         this.loading = false;
       })
     },
+    //导出库存账
+    exportInventory() {
+      let params = { ...this.search }
+      console.log(params);
+      let queryParams = Object.assign({}, params);
+        if(params.storageId !== null && params.storageId !== undefined){
+          queryParams.storageId = params.storageId;
+        }else{
+          delete queryParams.storageId
+        }
+      console.log(queryParams);
+      this.$confirm('是否导出库存账?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        const routeData = this.$router.resolve({
+          path: '/api/blade-stock/stockgoods/export',      //跳转目标窗口的地址
+          query: {
+            'Blade-Auth': getToken(),
+            ...queryParams    //括号内是要传递给新窗口的参数
+          }
+        })
+        window.open(routeData.href.slice(1, routeData.href.length));
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消' //
+        });
+      })
+    },
   }
 }
 </script>

+ 14 - 7
src/views/businessManagement/salesOrder/configuration/customerContact.json

@@ -142,7 +142,7 @@
     },
     {
       "label": "库区",
-      "prop": "storageName",
+      "prop": "storageId",
       "index": 5,
       "width": 150,
       "cell": false,
@@ -155,11 +155,18 @@
     },
     {
       "label": "库存",
-      "prop": "surplusRouteQuantity",
-      "index": 6,
-      "width": 100,
+      "prop": "storageQuantity",
+      "index": 10,
+      "width":100,
       "cell": false,
-      "overHidden": true
+      "overHidden": true,
+      "rules": [
+        {
+          "required": false,
+          "message": "请输入库存",
+          "trigger": "blur"
+        }
+      ]
     },
     {
       "label": "订货数量",
@@ -233,7 +240,7 @@
         }
       ]
     },
-   
+
     {
       "label": "采购价格",
       "prop": "purchaseAmount",
@@ -349,4 +356,4 @@
       "overHidden": true
     }
   ]
-}
+}

Diferenças do arquivo suprimidas por serem muito extensas
+ 272 - 252
src/views/businessManagement/salesOrder/detailsPageEdit.vue


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff