import { HcApi } from '../../../request/index' export default { //调差期 async periodAdjustment(contractId) { return HcApi({ url: '/api/blade-meter/contractMeterPeriod/allPeriod', method: 'get', params: { contractId }, }, false) }, //计量期,王文龙说不要了,4月26,,16点35 /*async periodMeasurement(contractId) { return HcApi({ url: '/api/blade-meter/meterPeriod/approvalPeriod', method: 'get', params: { contractId, type: 1, notApp: '1' }, }, false) },*/ //材料名称 async materialName(contractId, meterPeriodId) { return HcApi({ url: '/api/blade-meter/contractMaterial/get-all-material3', method: 'post', data: { contractId, meterPeriodId }, }, false) }, //分页 async page(form) { return HcApi({ url: '/api/blade-meter/contractMaterialAdjust/page', method: 'post', data: form, }, false) }, //材料调差详情 async detail(id) { return HcApi({ url: '/api/blade-meter/contractMaterialAdjust/detail', method: 'get', params: { id }, }, false) }, //新增时获取材料明细 async getMaterialDetail(form) { return HcApi({ url: '/api/blade-meter/contractMaterialAdjust/get-material-detail', method: 'post', data: form, }, false) }, //选择实时价格 async getMaterialCurrentPrice(form) { return HcApi({ url: '/api/blade-meter/materialValidity/get-material-current-price', method: 'get', params: form, }, false) }, //选择实时价格-确认 async getMaterialRangePrice(form) { return HcApi({ url: '/api/blade-meter/materialValidity/get-material-range-price', method: 'get', params: form, }, false) }, //新增 async add(form) { return HcApi({ url: '/api/blade-meter/contractMaterialAdjust/add', method: 'post', data: form, }, false) }, //修改 async update(form) { return HcApi({ url: '/api/blade-meter/contractMaterialAdjust/update', method: 'post', data: form, }, false) }, //删除 async delete(id) { return HcApi({ url: '/api/blade-meter/contractMaterialAdjust/delete', method: 'get', params: { id }, }, false) }, }