import { HcApi } from '../../../request/index'
// 开工预付款计量单接口
export default {
    //分页
    async getPage(form) {
        return HcApi({
            url: '/api/blade-meter/startPayMeterForm/page',
            method: 'get',
            params: form,
        })
    },
      //详情
    async detail(form) {
        return HcApi({
            url: '/api/blade-meter/startPayMeterForm/detail',
            method: 'get',
            params: form,
        })
    },
    //新增
    async add(form) {
        return HcApi({
            url: '/api/blade-meter/startPayMeterForm/add',
            method: 'post',
            data: form,
        })
    },
    //修改
    async update(form) {
        return HcApi({
            url: '/api/blade-meter/startPayMeterForm/update',
            method: 'post',
            data: form,
        })
    },
    //删除
    async remove(form) {
        return HcApi({
            url: '/api/blade-meter/startPayMeterForm/remove',
            method: 'post',
            params: form,
        })
    },
    //获取开工预付款总额
    async getStartAmount(form) {
        return HcApi({
            url: '/api/blade-meter/startPayMeterForm/getStartAmount',
            method: 'get',
            params: form,
        })
    },

}
