feat(wms): 添加按实际库区查询库存和钢卷分布的功能
添加getStockByActual和getMaterialCoilDistributionByActualWarehouse API 修改库存和钢卷分布页面以支持按实际库区查询 移除合并页面中未使用的添加钢卷按钮
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listStock, delStock, addStock, updateStock } from "@/api/wms/stock";
|
||||
import { listStock, delStock, addStock, updateStock, getStockByActual } from "@/api/wms/stock";
|
||||
import { addStockIoWithDetail } from "@/api/wms/stockIo";
|
||||
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
||||
import ProductSelect from "@/components/KLPService/ProductSelect";
|
||||
@@ -247,11 +247,19 @@ export default {
|
||||
/** 查询库存列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listStock(this.queryParams).then(response => {
|
||||
this.stockList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
if (this.warehouseType === 'real') {
|
||||
getStockByActual(this.queryParams).then(response => {
|
||||
this.stockList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
} else {
|
||||
listStock(this.queryParams).then(response => {
|
||||
this.stockList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
// 树节点点击
|
||||
handleTreeSelect(node) {
|
||||
|
||||
Reference in New Issue
Block a user