货品库存

This commit is contained in:
zzyuan 2025-07-08 16:26:58 +08:00
parent 3c9547f291
commit 6d1c1ea20e
3 changed files with 12 additions and 11 deletions

View File

@ -71,14 +71,18 @@ export function systemMaterialTreeApi(data) {
// -------------货品库存---------------
// 查询货品库存列表
export function getMaterialListApi(data) {
export function getStockMaterialListApi(data) {
return request({
url: '/smart-canteen/cook_material/list',
method: 'get',
url: '/smart-canteen/ims/inventory/list',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
params: data
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}

View File

@ -177,10 +177,7 @@
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
</el-dialog>
</div>
</template>

View File

@ -64,7 +64,7 @@
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
</template>
</el-table-column>
<el-table-column label="货品编码" align="center" prop="materialCode" :show-overflow-tooltip="true" />
<el-table-column label="货品编码" align="center" prop="materialNum" :show-overflow-tooltip="true" />
<el-table-column label="货品类别" align="center" prop="materialTypeName" :show-overflow-tooltip="true"/>
<el-table-column label="货品名称" align="center" prop="materialName" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" width="120"/>
@ -106,7 +106,7 @@
<script>
import { systemAreaTreeApi } from "@/api/base/stall";
// import { supplierQualificationWarningPageApi } from "@/api/foodManage/supplierManage";
import { drpWareHousePageApi,systemMaterialTreeApi,getMaterialListApi } from "@/api/foodManage/stockManage";
import { drpWareHousePageApi,systemMaterialTreeApi,getStockMaterialListApi } from "@/api/foodManage/stockManage";
export default {
name: "",
@ -220,7 +220,7 @@ export default {
"materialName": this.queryParams.materialName,
"barCode": this.queryParams.barCode,
}
getMaterialListApi(param).then(response => {
getStockMaterialListApi(param).then(response => {
this.tableListData = response.rows;
this.total = Number(response.total);
this.loading = false;