import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 替换单查询
export function searchSubstitutedCard(data1, data2, data3, data4) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '库存管理_替换件_替换单查询',
      param: '替换单编号_check=' + data1 + '&替换单编号=' + data2 + '&替换件名称_check=' + data3 + '&替换件名称=' + data4
    }
  })
}
// 替换件到货
export function SubstitutedCome(data1, data2, data3) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '2',
      name: '库存管理_替换件_替换件到货',
      param: '替换单流水号=' + data1 + '&物料与货位对照流水号=' + data2 + '&替换数量=' + data3
    }
  })
}
