Qukatie 6 mesiacov pred
rodič
commit
7eaea2fba7

+ 8 - 11
src/views/tirePartsMall/basicData/sharedSales/detailsPage.vue

@@ -301,7 +301,6 @@ import {
 } from "@/api/tirePartsMall/basicData/customerInformation";
 import { getToken } from "@/util/auth";
 import { isProcurement } from "@/api/basicData/configuration";
-import { getList as inventoryList } from "@/api/tirePartsMall/inventory";
 export default {
     name: "detailsPage",
 
@@ -310,6 +309,7 @@ export default {
             sharedCompany: null,
             distributeVisible: false,
             numberDecimal: 0,
+            inventoryList: [],
             inventoryOption: {
                 header: false,
                 menu: false,
@@ -317,15 +317,11 @@ export default {
                 column: [
                     {
                         label: '商品名称',
-                        prop: 'cname',
-                        overHidden: true,
-                    }, {
-                        label: '仓库',
-                        prop: 'storageName',
+                        prop: 'goodsName',
                         overHidden: true,
                     }, {
                         label: '库存数量',
-                        prop: 'balanceQuantity',
+                        prop: 'inventory',
                         overHidden: true,
                     }
                 ]
@@ -1209,8 +1205,8 @@ export default {
         goodsNumblurfun(row) {
             if (Number(row.goodsNum) > Number(row.inventory)) {
                 this.$set(row, 'goodsNum', null)
-                return  this.$message.warning("不能大于库存数量");
-             
+                return this.$message.warning("不能大于库存数量");
+
             }
         },
         inventoryShow(row) {
@@ -1221,7 +1217,8 @@ export default {
                 spinner: 'el-icon-loading',
                 background: 'rgba(255,255,255,0.7)'
             });
-            listAllByGoodsId({ goodsId: row.id }).then(res => {
+            listAllByGoodsId({ goodsId: row.goodsId }).then(res => {
+                console.log(res.data.data)
                 this.inventoryList = res.data.data
             }).finally(() => {
                 loading.close();
@@ -1232,7 +1229,7 @@ export default {
                 return this.$message.error("请选择共享公司");
             }
             for (let item of this.selectionMultilist) {
-                if (item.outGoodsTotalShipNum==0) {
+                if (item.outGoodsTotalShipNum == 0) {
                     return this.$message.error("请输入派件数量");
                 }
             }