import request from '@/utils/request' // 查询往来账款列表 export function listBill(query) { return request({ url: '/sc-service-du/ownBill/billList', method: 'get', params: query }) } // 获取往来账款明细 export function getBill(zbiId) { return request({ url: '/sc-service-du/ownBill/'+ zbiId, method: 'get', }) } // 获取往来账款发票 export function getInvoice(zbiId) { return request({ url: '/sc-service-du/ownBill/getInvoice/'+ zbiId, method: 'get', }) } // 初始化往来账款信息 export function addBill(data) { return request({ url: '/sc-service-du/ownBill/add', method: 'post', data: data }) } // 发票识别 export function getInvoiceText(data) { return request({ url: '/sc-service-du/ownBill/getInvoiceText', method: 'post', data: data }) } // 发票验真 export function invoiceVerification(data) { return request({ url: '/sc-service-du/ownBill/invoiceVerification', method: 'post', data: data }) } // 删除发票 export function delInvoice(ziiIds) { return request({ url: '/sc-service-du/ownBill/' + ziiIds, method: 'delete' }) } // 上传账款附件 export function uploadBillFile(data) { return request({ url: '/sc-service-du/ownBill/uploadBillFile', method: 'post', data: data }) } // 获取往来账款附件 export function getFile(type, zbiId) { return request({ url: '/sc-service-du/ownBill/getFile/'+ type + '/' + zbiId, method: 'get', }) } // 删除发票 export function delFile(ids) { return request({ url: '/sc-service-du/ownBill/delFile/' + ids, method: 'delete' }) } // 提交往来账款信息 export function commitBill(zbiId) { return request({ url: '/sc-service-du/ownBill/commitBill/' + zbiId, method: 'post' }) } // 删除往来账款 export function deleteBill(zbiIds) { return request({ url: '/sc-service-du/ownBill/deleteBill/' + zbiIds, method: 'delete' }) }