12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import request from '@/utils/request'
- // 创建单据编码规则
- export function createDocNumRule(data) {
- return request({
- url: '/system/doc-num-rule/create',
- method: 'post',
- data: data
- })
- }
- // 更新单据编码规则
- export function updateDocNumRule(data) {
- return request({
- url: '/system/doc-num-rule/update',
- method: 'put',
- data: data
- })
- }
- // 删除单据编码规则
- export function deleteDocNumRule(id) {
- return request({
- url: '/system/doc-num-rule/delete?id=' + id,
- method: 'delete'
- })
- }
- // 获得单据编码规则
- export function getDocNumRule(id) {
- return request({
- url: '/system/doc-num-rule/get?id=' + id,
- method: 'get'
- })
- }
- export function getNewDocCode(code) {
- return request({
- url: '/system/doc-num-rule/getNewDocCode?code=' + code,
- method: 'get'
- })
- }
- // 获得单据编码规则分页
- export function getDocNumRulePage(query) {
- return request({
- url: '/system/doc-num-rule/page',
- method: 'get',
- params: query
- })
- }
- // 导出单据编码规则 Excel
- export function exportDocNumRuleExcel(query) {
- return request({
- url: '/system/doc-num-rule/export-excel',
- method: 'get',
- params: query,
- responseType: 'blob'
- })
- }
- // 获得所有单据编码规则列表
- export function getAllDocNumRule() {
- return request({
- url: '/system/doc-num-rule/getAll',
- method: 'get',
- })
- }
- export function syncDocNumRule() {
- return request({
- url: '/system/doc-num-rule/syncDocNumRule',
- method: 'post',
- })
- }
|