diff --git a/src/views/projectFront/inOutboundManagement/materialOutbound.vue b/src/views/projectFront/inOutboundManagement/materialOutbound.vue
index 9c9e302e..145bf4c2 100644
--- a/src/views/projectFront/inOutboundManagement/materialOutbound.vue
+++ b/src/views/projectFront/inOutboundManagement/materialOutbound.vue
@@ -903,7 +903,9 @@ export default {
name: this.searchName,
specification: this.searchSpecification,
unit: this.searchUnit,
- unitPrice: this.searchUnitPricr
+ unitPrice: this.searchUnitPricr,
+ pageNo: 1,
+ pageSize: -1,
};
getGtMaterialWarehouseDetailPageApi(data).then((res) => {
if (res.code == 200) {
diff --git a/src/views/projectFront/purchasingManagement/purchasing.vue b/src/views/projectFront/purchasingManagement/purchasing.vue
index e15178de..c75f4080 100644
--- a/src/views/projectFront/purchasingManagement/purchasing.vue
+++ b/src/views/projectFront/purchasingManagement/purchasing.vue
@@ -51,7 +51,7 @@
label="项目计划用量"
>
- {{
+
+ {{scope.row.projectPlanUsage?scope.row.projectPlanUsage + scope.row.materialUnit : ''}}
- {{
+
+ {{scope.row.inventoryNumber?scope.row.inventoryNumber + scope.row.materialUnit : ''}}
- {{
+
+ {{scope.row.safetyStockNumber?scope.row.safetyStockNumber + scope.row.materialUnit : ''}}
- {{
+
+ {{scope.row.purchasedQuantity?scope.row.purchasedQuantity + scope.row.materialUnit : ''}}
@@ -182,8 +186,8 @@
@@ -254,11 +258,14 @@ import {
addMaterialPurchaseDemandApi,
deleteMaterialPurchaseDemandApi,
editMaterialPurchaseDemandApi,
- getMaterialPurchaseDemandPageApi
+ getMaterialPurchaseDemandPageApi,
+ getGtMaterialWarehouseDetailPageApi,//查询库存物料
} from '@/assets/js/api/materialManagement.js'
+
export default {
mounted() {
- this.getList()
+ this.getList();
+ this.inputGetLIst(3);
},
data() {
return {
@@ -316,6 +323,34 @@ export default {
}
},
methods: {
+ //获取所有物料
+ inputGetLIst(type) {
+ console.log('type----', type);
+ if (type == 1) {
+ this.valType = 'name'
+ } else if (type == 2) {
+ this.valType = 'specification'
+ } else if (type == 3) {
+ this.valType = 'unit'
+ } else {
+ this.valType = 'unitPrice'
+ }
+ let data = {
+ projectSn: this.$store.state.projectSn,
+ groupBy: this.valType,
+ name: this.searchName,
+ specification: this.searchSpecification,
+ unit: this.searchUnit,
+ unitPrice: this.searchUnitPricr,
+ pageNo: 1,
+ pageSize: -1,
+ };
+ getGtMaterialWarehouseDetailPageApi(data).then((res) => {
+ if (res.code == 200) {
+ this.resultList = res.result.records;
+ }
+ });
+ },
//查询仓库数据
getList() {
getMaterialPurchaseDemandPageApi({