| | |
| | | // 采购付款登记页面接口 |
| | | import request from '@/utils/request' |
| | | import request from "@/utils/request"; |
| | | |
| | | // 分页查询 |
| | | export function registrationList(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | return request({ |
| | | url: "/purchase/paymentRegistration/list", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | // 查询详情 |
| | | export function registrationInfo(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration/' + query, |
| | | method: 'get', |
| | | }) |
| | | return request({ |
| | | url: "/purchase/paymentRegistration/" + query, |
| | | method: "get", |
| | | }); |
| | | } |
| | | // 根据采购合同号查询详情 |
| | | export function byPurchaseId(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration/byPurchaseId/' + query, |
| | | method: 'get', |
| | | }) |
| | | return request({ |
| | | url: "/purchase/paymentRegistration/byPurchaseId/" + query, |
| | | method: "get", |
| | | }); |
| | | } |
| | | // 查询采购合同号 |
| | | export function getPurchaseNo() { |
| | | return request({ |
| | | url: '/purchase/ledger/getPurchaseNo', |
| | | method: 'get', |
| | | }) |
| | | return request({ |
| | | url: "/purchase/ledger/getPurchaseNo", |
| | | method: "get", |
| | | }); |
| | | } |
| | | // 新增 |
| | | export function paymentRegistrationAdd(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration', |
| | | method: 'post', |
| | | data: query |
| | | }) |
| | | return request({ |
| | | url: "/purchase/paymentRegistration", |
| | | method: "post", |
| | | data: query, |
| | | }); |
| | | } |
| | | // 修改 |
| | | export function paymentRegistrationEdit(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration', |
| | | method: 'put', |
| | | data: query |
| | | }) |
| | | return request({ |
| | | url: "/purchase/paymentRegistration", |
| | | method: "put", |
| | | data: query, |
| | | }); |
| | | } |
| | | // 删除 |
| | | export function paymentRegistrationDel(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration/del', |
| | | method: 'delete', |
| | | data: query |
| | | }) |
| | | return request({ |
| | | url: "/purchase/paymentRegistration/delete", |
| | | method: "delete", |
| | | data: query, |
| | | }); |
| | | } |
| | | // 获取发票号和发票金额 |
| | | export function getTicketNo(query){ |
| | | return request({ |
| | | url: "/purchase/registration/getTicketNo", |
| | | method: "get", |
| | | params: query |
| | | }) |
| | | } |
| | | export function getTicketNo(query) { |
| | | return request({ |
| | | url: "/purchase/registration/getTicketNo", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | // 分页查询 |
| | | export function paymentHistoryList(query) { |
| | | return request({ |
| | | url: "/purchase/paymentRegistration/paymentHistoryList", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // 分页查询 |
| | | export function paymentHistoryListPage(query) { |
| | | return request({ |
| | | url: "/purchase/paymentRegistration/paymentHistoryListPage", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |