302 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			302 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
import { http } from '@/utils/http'
 | 
						|
 | 
						|
// 获取工程ids
 | 
						|
export function getProjectInfoApi(data) {
 | 
						|
  return http({
 | 
						|
    url: '/material/select/getProjectInfo',
 | 
						|
    method: 'post',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 根据用户名查询用户信息
 | 
						|
export function getUserInfoByUserNameApi(data) {
 | 
						|
  return http({
 | 
						|
    url: '/material/app/iwsTeamUser/selectUserInfoByUserName',
 | 
						|
    method: 'get',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 根据身份证号查询用户信息
 | 
						|
export function getUserInfoByIdCardApi(data) {
 | 
						|
  return http({
 | 
						|
    url: '/material/app/iwsTeamUser/selectProjectTeamInfoByIdCard',
 | 
						|
    method: 'get',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 更新班组工程信息
 | 
						|
export function updateTeamProjectApi(data) {
 | 
						|
  return http({
 | 
						|
    url: '/material/app/iwsTeamUser/updateTeamProject',
 | 
						|
    method: 'post',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 预警统计
 | 
						|
export function getToolsLedgerDetailsListApi(data) {
 | 
						|
  return http({
 | 
						|
    url: '/material/material_maMachine/getToolsLedgerDetailsList',
 | 
						|
    method: 'get',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 班组-下拉
 | 
						|
export const getBmTeamList = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/bmTeam/list',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 领料出库-列表
 | 
						|
export const getPickingOutboundListAPI = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_lease_apply_info/list',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 删除
 | 
						|
export const deleteLeaseApplyApi = (id) => {
 | 
						|
  return http({
 | 
						|
    method: 'delete',
 | 
						|
    url: `/material/material_lease_apply_info/${id}`,
 | 
						|
    data: id,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 工程下拉选
 | 
						|
export const getProjectList = (data = {}) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/select/getProjectList',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 类型规格-树
 | 
						|
export const getTypeTreeList = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'post',
 | 
						|
    url: '/material/material_lease_apply_info/equipmentType',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 提交
 | 
						|
export const addLeaseTask = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/material_lease_apply_info',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
// 编辑
 | 
						|
export const editLeaseTask = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'put',
 | 
						|
    url: '/material/material_lease_apply_info',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
// 详情
 | 
						|
export const detailsLeaseTask = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'get',
 | 
						|
    url: `/material/material_lease_apply_info/${data}`,
 | 
						|
    // data:data,
 | 
						|
  })
 | 
						|
}
 | 
						|
// 退料详情
 | 
						|
export const detailsBackTask = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'get',
 | 
						|
    url: `/material/material_back_apply_info/${data}`,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获取协议id
 | 
						|
export const getAgreementInfoByIdApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/select/getAgreementInfoById',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
export const getAgreementInfoByIdBackApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/select/getAgreementInfoByIdBack',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 工机具出库详情-列表
 | 
						|
export const getOutNum = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_lease_apply_info/getOutNum',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 扫码获取编号
 | 
						|
export const getCodeScanAPI = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_lease_apply_info/getInfoByQrcode',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获取编码详情
 | 
						|
export const getMachineByIdApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_back_apply_info/getMachineById',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 获取编码-列表
 | 
						|
export const getCodeDeviceListAPI = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_lease_apply_info/getMachineById',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 退料-列表
 | 
						|
export const getBackListAPI = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_back_apply_info/list',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 删除
 | 
						|
export const deleteBackApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: `/material/material_back_apply_info/deleteById`,
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 退料申请
 | 
						|
export const backTask = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/material_back_apply_info',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 退料申请-编辑
 | 
						|
export const editBackTask = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/material_back_apply_info/edit',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 类型规格-树
 | 
						|
export const getUseTypeTree = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/material_back_apply_info/getUseTypeTree',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 退料修改
 | 
						|
export const editBack = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/material_back_apply_info//edit',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 编码检索获取设备详情
 | 
						|
export const getMachine = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_back_apply_info/getMachine',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 工器具台账-列表
 | 
						|
export const getToolsLedgerList = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_maMachine/getToolsLedgerList',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 台账-详情
 | 
						|
export const getToolsDetailsListApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_maMachine/getToolsDetailsList',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 班组库存
 | 
						|
export const getTeamUseNumList = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'GET',
 | 
						|
    url: '/material/material_maMachine/getTeamUseNumList',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 班组预警
 | 
						|
export function getTeamWarnDetailsListApi(data) {
 | 
						|
  return http({
 | 
						|
    url: '/material/material_maMachine/getTeamWarnDetailsList',
 | 
						|
    method: 'get',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 签名-领料
 | 
						|
export const toolsLeaseApplyInfoSign = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/material_lease_apply_info/updateLeaseApplyInfoSign',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 项目部授权-签名列表
 | 
						|
export const getAuthorListApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'get',
 | 
						|
    url: '/material/authorize/getAuthorList',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 | 
						|
 | 
						|
// 项目部授权-电子签名
 | 
						|
export const updateLeaseApplyInfoSignApi = (data) => {
 | 
						|
  return http({
 | 
						|
    method: 'POST',
 | 
						|
    url: '/material/authorize/updateLeaseApplyInfoSign',
 | 
						|
    data,
 | 
						|
  })
 | 
						|
}
 |