import request from '@/utils/request'

export function projectSelect() {
  return request({
    url: '',
    method: 'post',
    data: {
      type: '1',
      name: 'PDM_项目名称_查询数据'
    }
  })
}

export function getTableData(num) {
  return request({
    url: '',
    method: 'post',
    data: {
      type: '1',
      name: '项目总结_查询数据',
      param: `项目流水号=${num}`
    }
  })
}

export function editTableData(num, projectValue, projectName, projectNum, producer, reviewer, projectManager, makeTime, startTime, planTime, accturalTime, timeAnalysis, planCost, accturalCost, costAnalysis, planResult, accturalResult, notResult, resultAnalysis, summary, projectManagerDate, reviewerDate) {
  return request({
    url: '',
    method: 'post',
    data: {
      type: '2',
      name: '项目总结_编辑数据',
      param: `项目总结流水号=${num}&项目流水号=${projectValue}&项目名称=${projectName}&项目编号=${projectNum}&制作人=${producer}&审核人=${reviewer}&项目经理=${projectManager}&制作日期=${makeTime}&开始时间=${startTime}&计划完成日期=${planTime}&实际完成日期=${accturalTime}&时间分析=${timeAnalysis}&计划费用=${planCost}&实际费用=${accturalCost}&成本分析=${costAnalysis}&计划交付结果=${planResult}&实际交付结果=${accturalResult}&未交付结果=${notResult}&交付结果分析=${resultAnalysis}&项目经验教训总结=${summary}&项目经理签字日期=${projectManagerDate}&审核人签字日期=${reviewerDate}`
    }
  })
}
