diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..7ab7205 --- /dev/null +++ b/.env.development @@ -0,0 +1,16 @@ +# 开发环境 + +# 页面 title 前缀 +VUE_APP_TITLE='链友融财务数字一体化信息系统' +VUE_APP_ENVIRONMENT_TITLE='开发服' + +# 页面根路径 +BASE_URL='/' + +# 网络请求公用地址 +VUE_APP_API= '/' + +# 请求环境 + +# 方楠 +VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..a17420f --- /dev/null +++ b/.env.production @@ -0,0 +1,16 @@ +# 开发环境 + +# 页面 title 前缀 +VUE_APP_TITLE='链友融财务数字一体化信息系统' +VUE_APP_ENVIRONMENT_TITLE='正式服' + +# 页面根路径 +BASE_URL='/' + +# 网络请求公用地址 +VUE_APP_API= '/' + +# 请求环境 + +# 方楠 +VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' \ No newline at end of file diff --git a/.env.sim b/.env.sim index 5a9b024..2ae3119 100644 --- a/.env.sim +++ b/.env.sim @@ -5,7 +5,10 @@ ENV = 'development' VUE_APP_TITLE = 链友融财务数字一体化信息系统 # 链友融财务数字一体化信息系统/开发环境 -VUE_APP_BASE_API = 'http://60.204.223.58:8080' +# 测试 +#VUE_APP_BASE_API = 'http://60.204.223.58:8080' +# 方楠 +VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.test b/.env.test index 5a9b024..6c3d3c0 100644 --- a/.env.test +++ b/.env.test @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_TITLE = 链友融财务数字一体化信息系统 # 链友融财务数字一体化信息系统/开发环境 -VUE_APP_BASE_API = 'http://60.204.223.58:8080' +VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.gitignore b/.gitignore index 194d5db..e6afcaf 100644 --- a/.gitignore +++ b/.gitignore @@ -7,8 +7,8 @@ package-lock.json # local env files .env.local .env.*.local -.env.production -.env.development +# .env.production +# .env.development # Log files npm-debug.log* diff --git a/src/api/bs/invoice.js b/src/api/bs/invoice.js index 4c8b729..d3b4c6d 100644 --- a/src/api/bs/invoice.js +++ b/src/api/bs/invoice.js @@ -69,3 +69,357 @@ export function invoiceCheckApi(data) { data: data }) } + + +export function createInvoice01(data) { + return request({ + url: '/bs/invoice01/create', + method: 'post', + data: data + }) +} + +// 更新我的发票 +export function updateInvoice01(data) { + return request({ + url: '/bs/invoice01/update', + method: 'put', + data: data + }) +} + +// 删除我的发票 +export function deleteInvoice01(id) { + return request({ + url: '/bs/invoice01/delete?id=' + id, + method: 'delete' + }) +} + +// 获得我的发票 +export function getInvoice01(id) { + return request({ + url: '/bs/invoice01/myget?id=' + id, + method: 'get' + }) +} + +// 获得我的发票分页 +export function getInvoicePage01(query) { + return request({ + url: '/bs/invoice01/mypage', + method: 'get', + params: query + }) +} + +// 导出我的发票 Excel +export function exportInvoiceExcel01(query) { + return request({ + url: '/bs/invoice01/myexport-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + +// 发票识别 +export function invoiceScanApi01(data) { + return request({ + url: '/bs/invoice01/identify', + method: 'post', + data: data + }) +} +// 发票验真 +export function invoiceCheckApi01(data) { + return request({ + url: '/bs/invoice01/isreal ', + method: 'post', + data: data + }) +} + +//02 +// 创建我的发票 +export function createInvoice02(data) { + return request({ + url: '/bs/invoice02/create', + method: 'post', + data: data + }) +} + +// 更新我的发票 +export function updateInvoice02(data) { + return request({ + url: '/bs/invoice02/update', + method: 'put', + data: data + }) +} + +// 删除我的发票 +export function deleteInvoice02(id) { + return request({ + url: '/bs/invoice02/delete?id=' + id, + method: 'delete' + }) +} + +// 获得我的发票 +export function getInvoice02(id) { + return request({ + url: '/bs/invoice02/myget?id=' + id, + method: 'get' + }) +} + +// 获得我的发票分页 +export function getInvoicePage02(query) { + return request({ + url: '/bs/invoice02/mypage', + method: 'get', + params: query + }) +} + +// 导出我的发票 Excel +export function exportInvoiceExcel02(query) { + return request({ + url: '/bs/invoice02/myexport-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + +// 发票识别 +export function invoiceScanApi02(data) { + return request({ + url: '/bs/invoice02/identify', + method: 'post', + data: data + }) +} +// 发票验真 +export function invoiceCheckApi02(data) { + return request({ + url: '/bs/invoice02/isreal ', + method: 'post', + data: data + }) +} + +//03 +// 创建我的发票 +export function createInvoice03(data) { + return request({ + url: '/bs/invoice03/create', + method: 'post', + data: data + }) +} + +// 更新我的发票 +export function updateInvoice03(data) { + return request({ + url: '/bs/invoice03/update', + method: 'put', + data: data + }) +} + +// 删除我的发票 +export function deleteInvoice03(id) { + return request({ + url: '/bs/invoice03/delete?id=' + id, + method: 'delete' + }) +} + +// 获得我的发票 +export function getInvoice03(id) { + return request({ + url: '/bs/invoice03/myget?id=' + id, + method: 'get' + }) +} + +// 获得我的发票分页 +export function getInvoicePage03(query) { + return request({ + url: '/bs/invoice03/mypage', + method: 'get', + params: query + }) +} + +// 导出我的发票 Excel +export function exportInvoiceExcel03(query) { + return request({ + url: '/bs/invoice03/myexport-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + +// 发票识别 +export function invoiceScanApi03(data) { + return request({ + url: '/bs/invoice03/identify', + method: 'post', + data: data + }) +} +// 发票验真 +export function invoiceCheckApi03(data) { + return request({ + url: '/bs/invoice03/isreal ', + method: 'post', + data: data + }) +} + +//04 +// 创建我的发票 +export function createInvoice04(data) { + return request({ + url: '/bs/invoice04/create', + method: 'post', + data: data + }) +} + +// 更新我的发票 +export function updateInvoice04(data) { + return request({ + url: '/bs/invoice04/update', + method: 'put', + data: data + }) +} + +// 删除我的发票 +export function deleteInvoice04(id) { + return request({ + url: '/bs/invoice04/delete?id=' + id, + method: 'delete' + }) +} + +// 获得我的发票 +export function getInvoice04(id) { + return request({ + url: '/bs/invoice04/myget?id=' + id, + method: 'get' + }) +} + +// 获得我的发票分页 +export function getInvoicePage04(query) { + return request({ + url: '/bs/invoice04/mypage', + method: 'get', + params: query + }) +} + +// 导出我的发票 Excel +export function exportInvoiceExcel04(query) { + return request({ + url: '/bs/invoice04/myexport-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + +// 发票识别 +export function invoiceScanApi04(data) { + return request({ + url: '/bs/invoice04/identify', + method: 'post', + data: data + }) +} +// 发票验真 +export function invoiceCheckApi04(data) { + return request({ + url: '/bs/invoice04/isreal ', + method: 'post', + data: data + }) +} + +//05 +// 创建我的发票 +export function createInvoice05(data) { + return request({ + url: '/bs/invoice05/create', + method: 'post', + data: data + }) +} + +// 更新我的发票 +export function updateInvoice05(data) { + return request({ + url: '/bs/invoice05/update', + method: 'put', + data: data + }) +} + +// 删除我的发票 +export function deleteInvoice05(id) { + return request({ + url: '/bs/invoice05/delete?id=' + id, + method: 'delete' + }) +} + +// 获得我的发票 +export function getInvoice05(id) { + return request({ + url: '/bs/invoice05/myget?id=' + id, + method: 'get' + }) +} + +// 获得我的发票分页 +export function getInvoicePage05(query) { + return request({ + url: '/bs/invoice05/mypage', + method: 'get', + params: query + }) +} + +// 导出我的发票 Excel +export function exportInvoiceExcel05(query) { + return request({ + url: '/bs/invoice05/myexport-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} + +// 发票识别 +export function invoiceScanApi05(data) { + return request({ + url: '/bs/invoice05/identify', + method: 'post', + data: data + }) +} +// 发票验真 +export function invoiceCheckApi05(data) { + return request({ + url: '/bs/invoice05isreal ', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/api/login.js b/src/api/login.js index 4094926..d74a60a 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,4 +1,5 @@ import request from '@/plugin/axios' +import { getRefreshToken } from '@/utils/auth' // 登录 export function loginIn(data) { return request({ @@ -45,4 +46,13 @@ export function reqCheck(data) { }) } +// 刷新访问令牌 +export function refreshToken() { + return request({ + url: '/system/auth/refresh-token?refreshToken=' + getRefreshToken(), + method: 'post' + }) +} + + diff --git a/src/assets/style/common/form.scss b/src/assets/style/common/form.scss index a8ab637..e2a9425 100644 --- a/src/assets/style/common/form.scss +++ b/src/assets/style/common/form.scss @@ -73,7 +73,7 @@ color: #05a9ff; margin-left: 0.5rem; display: flex; - align-items: end; + align-items: flex-end; font-size: 0.8rem; ::v-deep .van-icon { diff --git a/src/assets/style/common/list.scss b/src/assets/style/common/list.scss index a75b927..d3c78da 100644 --- a/src/assets/style/common/list.scss +++ b/src/assets/style/common/list.scss @@ -58,6 +58,30 @@ } } + .box-cr-row { + // max-width: 50%; + //width: 10rem; + text-align: left; + + .cr-tt { + font-size: 1rem; + } + + .mt5 { + margin-top: 0.3rem; + } + + .tags { + border-radius: 0.2rem; + width: 4rem; + text-align: center; + } + + .ct-md { + // color: #ccc; + } + } + .box-rt { display: flex; @@ -67,6 +91,19 @@ // flex-direction: column; } + + } + + .box-rt-sb { + display: flex; + justify-content: space-between; + padding-left: 4rem; + padding-right: 4rem; + .icon-box { + margin-left: 0.3rem; + } + + // flex-direction: column; } } diff --git a/src/components/ConnectInvoice/index.vue b/src/components/ConnectInvoice/index.vue index 0d3e854..2f7072f 100644 --- a/src/components/ConnectInvoice/index.vue +++ b/src/components/ConnectInvoice/index.vue @@ -5,21 +5,56 @@