货品库存
This commit is contained in:
		
							parent
							
								
									3c9547f291
								
							
						
					
					
						commit
						6d1c1ea20e
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -178,9 +178,6 @@
 | 
			
		|||
                <el-button @click="cancel">取 消</el-button>
 | 
			
		||||
            </div>
 | 
			
		||||
        </el-dialog> 
 | 
			
		||||
        <el-dialog :visible.sync="dialogVisible">
 | 
			
		||||
            <img width="100%" :src="dialogImageUrl" alt="">
 | 
			
		||||
        </el-dialog>  
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue