import request from '@/utils/request'
import state from '@/store'
import router from '@/router'

export function searchTable(PageCurrent, PageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: '采购管理_采购物料修改确认_查询数据',
      Pagination: PageCurrent + '&' + PageSize
    }
  })
}
export function edit(num, num1, num2, num3, num4, num5) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '2',
      name: '采购管理_采购物料修改确认_是否通过',
      param: '组件零件流水号=' + num + '&标准件和外购件流水号=' + num1 + '&物料变更记录流水号=' + num2 + '&确认通过状态=' + num3 + '&确认人=' + num4 + '&原物料流水号=' + num5
    }
  })
}

