| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- 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'
- })
- }
|