diff --git a/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceFrontController.java b/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceFrontController.java index e6e1afd..aab88fb 100644 --- a/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceFrontController.java +++ b/jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceFrontController.java @@ -35,19 +35,19 @@ public class InvoiceFrontController { @ApiImplicitParam(name = "secret", value = "身份认证Key", dataType = "java.lang.String", example = "LTEO+oOgWMsuQAOUglqXuQ==", required = true), @ApiImplicitParam(name = "params", value = "请求体", dataType = "java.lang.String", required = true) }) - @PostMapping("/rpaLogin/{identity}/{secret}") - public Object rpaLogin(@RequestBody Map params,@PathVariable("identity") String identity, @PathVariable("secret") String secret) { + @PostMapping("/rpaLogin") + public Object rpaLogin(@RequestBody Map params) { JSONObject paramJson = new JSONObject(params); - log.debug("rpaLogin param{} identity:{} secret:{}", paramJson.toJSONString(), identity, secret); + log.debug("rpaLogin param{}", paramJson.toJSONString()); //参数校验 - if (StringUtils.isBlank(identity)){ + if (StringUtils.isBlank(paramJson.getString("identity"))){ return AjaxResult.error("公司ID不能为空"); } - if (StringUtils.isBlank(secret)){ + if (StringUtils.isBlank(paramJson.getString("secret"))){ return AjaxResult.error("公司Key不能为空"); } @@ -83,8 +83,8 @@ public class InvoiceFrontController { paramJson.put("ffm","sms_login"); } - Companyservice companyservice = iCompanyserviceService.selectCompanyserviceByIdentity(identity); - if (companyservice == null || !secret.equals(companyservice.getSecret())) { + Companyservice companyservice = iCompanyserviceService.selectCompanyserviceByIdentity(paramJson.getString("identity")); + if (companyservice == null || !paramJson.getString("secret").equals(companyservice.getSecret())) { return AjaxResult.error(ErrorCode.COMPANY_NOT_FOUND); } @@ -100,9 +100,13 @@ public class InvoiceFrontController { @ApiImplicitParam(name = "identity", value = "身份认证", dataType = "java.lang.String", example = "1130", required = true), @ApiImplicitParam(name = "secret", value = "身份认证Key", dataType = "java.lang.String", example = "LTEO+oOgWMsuQAOUglqXuQ==", required = true) }) - @PostMapping("/queryRpaTaxAccount/{identity}/{secret}") - public Object queryRpaTaxAccount(@PathVariable("identity") String identity, @PathVariable("secret") String secret ){ + @PostMapping("/queryRpaTaxAccount") + public Object queryRpaTaxAccount(@RequestBody Map params){ + JSONObject paramJson = new JSONObject(params); + + String identity = paramJson.getString("identity"); + String secret = paramJson.getString("secret"); log.debug("queryRpaTaxAccount param identity:{} secret:{}",identity,secret); //参数校验 if (StringUtils.isBlank(identity)){ @@ -130,12 +134,14 @@ public class InvoiceFrontController { @ApiImplicitParam(name = "secret", value = "身份认证Key", dataType = "java.lang.String", example = "LTEO+oOgWMsuQAOUglqXuQ==", required = true), @ApiImplicitParam(name = "yhm", value = "电子税局登陆账号", dataType = "java.lang.String", required = true) }) - @PostMapping("/getRpaQrCode/{identity}/{secret}") - public Object getRpaQrCode(@RequestBody Map params,@PathVariable("identity") String identity, @PathVariable("secret") String secret ) { + @PostMapping("/getRpaQrCode") + public Object getRpaQrCode(@RequestBody Map params) { JSONObject paramJson = new JSONObject(params); - log.debug("getRpaQrCode param params:{} identity:{} secret:{}", paramJson,identity,secret); + log.debug("getRpaQrCode param params:{}", paramJson); + String identity = paramJson.getString("identity"); + String secret = paramJson.getString("secret"); //参数校验 if (StringUtils.isBlank(identity)){ return AjaxResult.error("公司ID不能为空"); @@ -145,9 +151,9 @@ public class InvoiceFrontController { return AjaxResult.error("公司Key不能为空"); } - if (StringUtils.isBlank(paramJson.getString("yhm"))){ - return AjaxResult.error("电子税局登录名不能为空"); - } +// if (StringUtils.isBlank(paramJson.getString("yhm"))){ +// return AjaxResult.error("电子税局登录名不能为空"); +// } Companyservice companyservice = iCompanyserviceService.selectCompanyserviceByIdentity(identity); @@ -168,12 +174,14 @@ public class InvoiceFrontController { @ApiImplicitParam(name = "secret", value = "身份认证Key", dataType = "java.lang.String", example = "LTEO+oOgWMsuQAOUglqXuQ==", required = true), @ApiImplicitParam(name = "params", value = "请求体", dataType = "java.lang.String", required = true) }) - @PostMapping("/getRpaAuthStatus/{identity}/{secret}") - public Object getRpaAuthStatus(@RequestBody Map params, @PathVariable("identity") String identity, @PathVariable("secret") String secret ) { + @PostMapping("/getRpaAuthStatus") + public Object getRpaAuthStatus(@RequestBody Map params) { JSONObject paramJson = new JSONObject(params); - log.debug("getRpaAuthStatus param{} identity:{} secret:{}", paramJson.toJSONString(), identity, secret); + log.debug("getRpaAuthStatus param{}", paramJson.toJSONString()); + String identity = paramJson.getString("identity"); + String secret = paramJson.getString("secret"); //参数校验 if (StringUtils.isBlank(identity)){ diff --git a/jianshui-invoice-all/src/main/java/com/jianshui/invoiceall/service/impl/InvoiceAllImpl.java b/jianshui-invoice-all/src/main/java/com/jianshui/invoiceall/service/impl/InvoiceAllImpl.java index 11f68dd..39ee588 100644 --- a/jianshui-invoice-all/src/main/java/com/jianshui/invoiceall/service/impl/InvoiceAllImpl.java +++ b/jianshui-invoice-all/src/main/java/com/jianshui/invoiceall/service/impl/InvoiceAllImpl.java @@ -171,7 +171,7 @@ public class InvoiceAllImpl implements IInvoiceAll { } catch (Exception e) { e.printStackTrace(); - log.error("【金四服务类】【金财数科】【用户登记】API请求异常,外部报文返回code非0000。错误信息:{}", e.getMessage()); + log.error("【金四服务类】【金财数科】【用户登记】API请求异常,外部报文返回code非0000。错误信息:{}", e); return AjaxResult.error(ErrorCode.INCOME_ERROR); } diff --git a/jianshui-ui/dist.zip b/jianshui-ui/dist.zip new file mode 100644 index 0000000..91f967d Binary files /dev/null and b/jianshui-ui/dist.zip differ diff --git a/jianshui-ui/package.json b/jianshui-ui/package.json index 49b814d..3c6271d 100644 --- a/jianshui-ui/package.json +++ b/jianshui-ui/package.json @@ -8,6 +8,7 @@ "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", + "build": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" }, @@ -49,6 +50,7 @@ "js-cookie": "3.0.1", "jsencrypt": "3.2.1", "nprogress": "0.2.0", + "qrcodejs2": "0.0.2", "quill": "1.3.7", "screenfull": "5.0.2", "sortablejs": "1.10.2", diff --git a/jianshui-ui/src/api/breaker/request.js b/jianshui-ui/src/api/breaker/request.js index 7df9a68..84c330a 100644 --- a/jianshui-ui/src/api/breaker/request.js +++ b/jianshui-ui/src/api/breaker/request.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -export function jianShuiLicense(data) { +export function jianShuiLicense (data) { return request({ url: '/breaker/jianShuiLicense', method: 'post', diff --git a/jianshui-ui/src/api/digital/registered.js b/jianshui-ui/src/api/digital/registered.js index 0462003..26da245 100644 --- a/jianshui-ui/src/api/digital/registered.js +++ b/jianshui-ui/src/api/digital/registered.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询金四-用户登记列表 -export function listInvoiceallyhdj(query) { +export function listInvoiceallyhdj (query) { return request({ url: '/invoiceall/invoiceallyhdj/list', method: 'get', @@ -10,7 +10,7 @@ export function listInvoiceallyhdj(query) { } // 查询金四-用户登记详细 -export function getInvoiceallyhdj(id) { +export function getInvoiceallyhdj (id) { return request({ url: '/invoiceall/invoiceallyhdj/' + id, method: 'get' @@ -18,23 +18,23 @@ export function getInvoiceallyhdj(id) { } //用户登记 -export function registeredMethod(registeredParams,identity) { +export function registeredMethod (registeredParams, identity) { return request({ - url: '/api/invoice_all/v1/registed?identity=' + identity+"&order="+registeredParams, + url: '/api/invoice_all/v1/registed?identity=' + identity + "&order=" + registeredParams, method: 'post', }) } //人脸识别 -export function qrcodeMethod(qrcodeParams,identity) { +export function qrcodeMethod (qrcodeParams, identity) { return request({ - url: '/api/invoice_all/v1/loginVerificated?identity=' + identity+"&order="+qrcodeParams, + url: '/api/invoice_all/v1/loginVerificated?identity=' + identity + "&order=" + qrcodeParams, method: 'post', }) } // 新增金四-用户登记 -export function addInvoiceallyhdj(data) { +export function addInvoiceallyhdj (data) { return request({ url: '/invoiceall/invoiceallyhdj', method: 'post', @@ -43,7 +43,7 @@ export function addInvoiceallyhdj(data) { } // 修改金四-用户登记 -export function updateInvoiceallyhdj(data) { +export function updateInvoiceallyhdj (data) { return request({ url: '/invoiceall/invoiceallyhdj', method: 'put', @@ -52,14 +52,14 @@ export function updateInvoiceallyhdj(data) { } // 删除金四-用户登记 -export function delInvoiceallyhdj(id) { +export function delInvoiceallyhdj (id) { return request({ url: '/invoiceall/invoiceallyhdj/' + id, method: 'delete' }) } -export function encrypt(data) { +export function encrypt (data) { return request({ url: '/sandbox/encrypt', method: 'post', @@ -67,14 +67,14 @@ export function encrypt(data) { }) } -export function obtainLoginStatus(data,identity) { +export function obtainLoginStatus (data, identity) { return request({ - url: '/invoice_all/obtainLoginStatus?identity=' + identity+"&order="+data, + url: '/invoice_all/obtainLoginStatus?identity=' + identity + "&order=" + data, method: 'post' }) } -export function getCompanyservice(companyid) { +export function getCompanyservice (companyid) { return request({ url: '/system/companyservice/' + companyid, method: 'get' diff --git a/jianshui-ui/src/api/digital/taxBureauLogin.js b/jianshui-ui/src/api/digital/taxBureauLogin.js new file mode 100644 index 0000000..1d6246b --- /dev/null +++ b/jianshui-ui/src/api/digital/taxBureauLogin.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' +import store from '@/store' +// 获取用户列表 +export function queryRpaTaxAccountApi(data) { + return request({ + url:'/api/invoice/front/v1/queryRpaTaxAccount', + method: 'post', + data:{ + identity:store.state.user.authStatus.id, + secret:store.state.user.authStatus.key + } + }) +} +//数电登录接口 +export function rpaLoginApi(parameter) { + return request({ + url: '/api/invoice/front/v1/rpaLogin', + method: 'post', + data: { + ...parameter, + identity:store.state.user.authStatus.id, + secret:store.state.user.authStatus.key + } + }) +} +//数电获取二维码接口 +export function getRpaQrCodeApi(parameter) { + return request({ + url: '/api/invoice/front/v1/getRpaQrCode', + method: 'post', + data: { + ...parameter, + identity:store.state.user.authStatus.id, + secret:store.state.user.authStatus.key + } + }) +} +//数电实名认证状态查询接口 +export function postRpaAuthStatusApi(parameter) { + return request({ + url: '/api/invoice/front/v1/getRpaAuthStatus', + method: 'post', + data: { + ...parameter, + identity:store.state.user.authStatus.id, + secret:store.state.user.authStatus.key + } + }) +} diff --git a/jianshui-ui/src/api/invoice/billinfo.js b/jianshui-ui/src/api/invoice/billinfo.js index a095912..6514168 100644 --- a/jianshui-ui/src/api/invoice/billinfo.js +++ b/jianshui-ui/src/api/invoice/billinfo.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询开票信息列表 -export function listBillinfo(query) { +export function listBillinfo (query) { return request({ url: '/invoice/billinfo/list', method: 'get', @@ -10,7 +10,7 @@ export function listBillinfo(query) { } // 查询开票信息详细 -export function getBillinfo(id) { +export function getBillinfo (id) { return request({ url: '/invoice/billinfo/' + id, method: 'get' @@ -18,7 +18,7 @@ export function getBillinfo(id) { } // 新增开票信息 -export function addBillinfo(data) { +export function addBillinfo (data) { return request({ url: '/invoice/billinfo', method: 'post', @@ -27,7 +27,7 @@ export function addBillinfo(data) { } // 修改开票信息 -export function updateBillinfo(data) { +export function updateBillinfo (data) { return request({ url: '/invoice/billinfo', method: 'put', @@ -36,7 +36,7 @@ export function updateBillinfo(data) { } // 删除开票信息 -export function delBillinfo(id) { +export function delBillinfo (id) { return request({ url: '/invoice/billinfo/' + id, method: 'delete' @@ -44,7 +44,7 @@ export function delBillinfo(id) { } // 重新推送开票明细 -export function pushBillinfo(id) { +export function pushBillinfo (id) { return request({ url: '/invoice/billinfo/push/' + id, method: 'get' diff --git a/jianshui-ui/src/api/login.js b/jianshui-ui/src/api/login.js index 649f59c..53ccd65 100644 --- a/jianshui-ui/src/api/login.js +++ b/jianshui-ui/src/api/login.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 登录方法 -export function login(username, password, code, uuid) { +export function login (username, password, code, uuid) { const data = { username, password, @@ -19,7 +19,7 @@ export function login(username, password, code, uuid) { } // 注册方法 -export function register(data) { +export function register (data) { return request({ url: '/register', headers: { @@ -31,7 +31,7 @@ export function register(data) { } // 获取用户详细信息 -export function getInfo() { +export function getInfo () { return request({ url: '/getInfo', method: 'get' @@ -39,7 +39,7 @@ export function getInfo() { } // 退出方法 -export function logout() { +export function logout () { return request({ url: '/logout', method: 'post' @@ -47,7 +47,7 @@ export function logout() { } // 获取验证码 -export function getCodeImg() { +export function getCodeImg () { return request({ url: '/captchaImage', headers: { @@ -56,4 +56,4 @@ export function getCodeImg() { method: 'get', timeout: 20000 }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/menu.js b/jianshui-ui/src/api/menu.js index faef101..95aaa17 100644 --- a/jianshui-ui/src/api/menu.js +++ b/jianshui-ui/src/api/menu.js @@ -6,4 +6,4 @@ export const getRouters = () => { url: '/getRouters', method: 'get' }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/monitor/cache.js b/jianshui-ui/src/api/monitor/cache.js index 59d3505..4609104 100644 --- a/jianshui-ui/src/api/monitor/cache.js +++ b/jianshui-ui/src/api/monitor/cache.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询缓存详细 -export function getCache() { +export function getCache () { return request({ url: '/monitor/cache', method: 'get' diff --git a/jianshui-ui/src/api/monitor/job.js b/jianshui-ui/src/api/monitor/job.js index 3815569..4e2a579 100644 --- a/jianshui-ui/src/api/monitor/job.js +++ b/jianshui-ui/src/api/monitor/job.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询定时任务调度列表 -export function listJob(query) { +export function listJob (query) { return request({ url: '/monitor/job/list', method: 'get', @@ -10,7 +10,7 @@ export function listJob(query) { } // 查询定时任务调度详细 -export function getJob(jobId) { +export function getJob (jobId) { return request({ url: '/monitor/job/' + jobId, method: 'get' @@ -18,7 +18,7 @@ export function getJob(jobId) { } // 新增定时任务调度 -export function addJob(data) { +export function addJob (data) { return request({ url: '/monitor/job', method: 'post', @@ -27,7 +27,7 @@ export function addJob(data) { } // 修改定时任务调度 -export function updateJob(data) { +export function updateJob (data) { return request({ url: '/monitor/job', method: 'put', @@ -36,7 +36,7 @@ export function updateJob(data) { } // 删除定时任务调度 -export function delJob(jobId) { +export function delJob (jobId) { return request({ url: '/monitor/job/' + jobId, method: 'delete' @@ -44,7 +44,7 @@ export function delJob(jobId) { } // 任务状态修改 -export function changeJobStatus(jobId, status) { +export function changeJobStatus (jobId, status) { const data = { jobId, status @@ -58,7 +58,7 @@ export function changeJobStatus(jobId, status) { // 定时任务立即执行一次 -export function runJob(jobId, jobGroup) { +export function runJob (jobId, jobGroup) { const data = { jobId, jobGroup @@ -68,4 +68,4 @@ export function runJob(jobId, jobGroup) { method: 'put', data: data }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/monitor/jobLog.js b/jianshui-ui/src/api/monitor/jobLog.js index 6e0be61..f3eef56 100644 --- a/jianshui-ui/src/api/monitor/jobLog.js +++ b/jianshui-ui/src/api/monitor/jobLog.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询调度日志列表 -export function listJobLog(query) { +export function listJobLog (query) { return request({ url: '/monitor/jobLog/list', method: 'get', @@ -10,7 +10,7 @@ export function listJobLog(query) { } // 删除调度日志 -export function delJobLog(jobLogId) { +export function delJobLog (jobLogId) { return request({ url: '/monitor/jobLog/' + jobLogId, method: 'delete' @@ -18,7 +18,7 @@ export function delJobLog(jobLogId) { } // 清空调度日志 -export function cleanJobLog() { +export function cleanJobLog () { return request({ url: '/monitor/jobLog/clean', method: 'delete' diff --git a/jianshui-ui/src/api/monitor/logininfor.js b/jianshui-ui/src/api/monitor/logininfor.js index 26a46eb..a20f283 100644 --- a/jianshui-ui/src/api/monitor/logininfor.js +++ b/jianshui-ui/src/api/monitor/logininfor.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询登录日志列表 -export function list(query) { +export function list (query) { return request({ url: '/monitor/logininfor/list', method: 'get', @@ -10,7 +10,7 @@ export function list(query) { } // 删除登录日志 -export function delLogininfor(infoId) { +export function delLogininfor (infoId) { return request({ url: '/monitor/logininfor/' + infoId, method: 'delete' @@ -18,7 +18,7 @@ export function delLogininfor(infoId) { } // 清空登录日志 -export function cleanLogininfor() { +export function cleanLogininfor () { return request({ url: '/monitor/logininfor/clean', method: 'delete' diff --git a/jianshui-ui/src/api/monitor/online.js b/jianshui-ui/src/api/monitor/online.js index bd22137..76da959 100644 --- a/jianshui-ui/src/api/monitor/online.js +++ b/jianshui-ui/src/api/monitor/online.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询在线用户列表 -export function list(query) { +export function list (query) { return request({ url: '/monitor/online/list', method: 'get', @@ -10,7 +10,7 @@ export function list(query) { } // 强退用户 -export function forceLogout(tokenId) { +export function forceLogout (tokenId) { return request({ url: '/monitor/online/' + tokenId, method: 'delete' diff --git a/jianshui-ui/src/api/monitor/operlog.js b/jianshui-ui/src/api/monitor/operlog.js index a04bca8..c7fae8c 100644 --- a/jianshui-ui/src/api/monitor/operlog.js +++ b/jianshui-ui/src/api/monitor/operlog.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询操作日志列表 -export function list(query) { +export function list (query) { return request({ url: '/monitor/operlog/list', method: 'get', @@ -10,7 +10,7 @@ export function list(query) { } // 删除操作日志 -export function delOperlog(operId) { +export function delOperlog (operId) { return request({ url: '/monitor/operlog/' + operId, method: 'delete' @@ -18,7 +18,7 @@ export function delOperlog(operId) { } // 清空操作日志 -export function cleanOperlog() { +export function cleanOperlog () { return request({ url: '/monitor/operlog/clean', method: 'delete' diff --git a/jianshui-ui/src/api/monitor/server.js b/jianshui-ui/src/api/monitor/server.js index e1f9ca2..8512d81 100644 --- a/jianshui-ui/src/api/monitor/server.js +++ b/jianshui-ui/src/api/monitor/server.js @@ -1,9 +1,9 @@ import request from '@/utils/request' // 获取服务信息 -export function getServer() { +export function getServer () { return request({ url: '/monitor/server', method: 'get' }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/platform/exportmanage.js b/jianshui-ui/src/api/platform/exportmanage.js index 386da24..efbf1b2 100644 --- a/jianshui-ui/src/api/platform/exportmanage.js +++ b/jianshui-ui/src/api/platform/exportmanage.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询导入设置列表 -export function listExportmanage(query) { +export function listExportmanage (query) { return request({ url: '/platform/exportmanage/list', method: 'get', @@ -10,7 +10,7 @@ export function listExportmanage(query) { } // 查询导入设置详细 -export function getExportmanage(id) { +export function getExportmanage (id) { return request({ url: '/platform/exportmanage/' + id, method: 'get' @@ -18,7 +18,7 @@ export function getExportmanage(id) { } // 新增导入设置 -export function addExportmanage(data) { +export function addExportmanage (data) { return request({ url: '/platform/exportmanage', method: 'post', @@ -27,7 +27,7 @@ export function addExportmanage(data) { } // 修改导入设置 -export function updateExportmanage(data) { +export function updateExportmanage (data) { return request({ url: '/platform/exportmanage', method: 'put', @@ -36,7 +36,7 @@ export function updateExportmanage(data) { } // 删除导入设置 -export function delExportmanage(id) { +export function delExportmanage (id) { return request({ url: '/platform/exportmanage/' + id, method: 'delete' diff --git a/jianshui-ui/src/api/platform/exportsetting.js b/jianshui-ui/src/api/platform/exportsetting.js index 7444c02..76d916a 100644 --- a/jianshui-ui/src/api/platform/exportsetting.js +++ b/jianshui-ui/src/api/platform/exportsetting.js @@ -1,7 +1,7 @@ import request from '@/utils/request' //查询单个记录 -export function oneExportmanage() { +export function oneExportmanage () { return request({ url: '/platform/exportmanage/findByName', method: 'get' @@ -10,7 +10,7 @@ export function oneExportmanage() { // 新增导入设置 -export function addExportmanage(data) { +export function addExportmanage (data) { return request({ url: '/platform/exportmanage', method: 'post', @@ -19,7 +19,7 @@ export function addExportmanage(data) { } // 修改导入设置 -export function updateExportmanage(data) { +export function updateExportmanage (data) { return request({ url: '/platform/exportmanage', method: 'put', @@ -28,7 +28,7 @@ export function updateExportmanage(data) { } // 删除导入设置 -export function delExportmanage(id) { +export function delExportmanage (id) { return request({ url: '/platform/exportmanage/' + id, method: 'delete' diff --git a/jianshui-ui/src/api/platform/product_info.js b/jianshui-ui/src/api/platform/product_info.js index 02a5f63..2a7fd70 100644 --- a/jianshui-ui/src/api/platform/product_info.js +++ b/jianshui-ui/src/api/platform/product_info.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询商品信息列表 -export function listProduct_info(query) { +export function listProduct_info (query) { return request({ url: '/platform/product_info/list', method: 'get', @@ -10,7 +10,7 @@ export function listProduct_info(query) { } // 查询商品信息详细 -export function getProduct_info(id) { +export function getProduct_info (id) { return request({ url: '/platform/product_info/' + id, method: 'get' @@ -18,7 +18,7 @@ export function getProduct_info(id) { } // 新增商品信息 -export function addProduct_info(data) { +export function addProduct_info (data) { return request({ url: '/platform/product_info', method: 'post', @@ -27,7 +27,7 @@ export function addProduct_info(data) { } // 修改商品信息 -export function updateProduct_info(data) { +export function updateProduct_info (data) { return request({ url: '/platform/product_info', method: 'put', @@ -36,7 +36,7 @@ export function updateProduct_info(data) { } // 删除商品信息 -export function delProduct_info(id) { +export function delProduct_info (id) { return request({ url: '/platform/product_info/' + id, method: 'delete' diff --git a/jianshui-ui/src/api/platform/vehiclecode.js b/jianshui-ui/src/api/platform/vehiclecode.js index a3e8cfe..ef4badf 100644 --- a/jianshui-ui/src/api/platform/vehiclecode.js +++ b/jianshui-ui/src/api/platform/vehiclecode.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询车辆编码列表 -export function listVehiclecode(query) { +export function listVehiclecode (query) { return request({ url: '/platform/vehiclecode/list', method: 'get', @@ -10,7 +10,7 @@ export function listVehiclecode(query) { } // 查询车辆编码详细 -export function getVehiclecode(id) { +export function getVehiclecode (id) { return request({ url: '/platform/vehiclecode/' + id, method: 'get' @@ -18,7 +18,7 @@ export function getVehiclecode(id) { } // 新增车辆编码 -export function addVehiclecode(data) { +export function addVehiclecode (data) { return request({ url: '/platform/vehiclecode', method: 'post', @@ -27,7 +27,7 @@ export function addVehiclecode(data) { } // 修改车辆编码 -export function updateVehiclecode(data) { +export function updateVehiclecode (data) { return request({ url: '/platform/vehiclecode', method: 'put', @@ -36,7 +36,7 @@ export function updateVehiclecode(data) { } // 删除车辆编码 -export function delVehiclecode(id) { +export function delVehiclecode (id) { return request({ url: '/platform/vehiclecode/' + id, method: 'delete' diff --git a/jianshui-ui/src/api/sandbox/encrypt.js b/jianshui-ui/src/api/sandbox/encrypt.js index 899f2c1..e401ab2 100644 --- a/jianshui-ui/src/api/sandbox/encrypt.js +++ b/jianshui-ui/src/api/sandbox/encrypt.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -export function encrypt(data) { +export function encrypt (data) { return request({ url: '/sandbox/encrypt', method: 'post', diff --git a/jianshui-ui/src/api/sdInvoicefile/sdinvoicefile.js b/jianshui-ui/src/api/sdInvoicefile/sdinvoicefile.js index 0550122..ce06a92 100644 --- a/jianshui-ui/src/api/sdInvoicefile/sdinvoicefile.js +++ b/jianshui-ui/src/api/sdInvoicefile/sdinvoicefile.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询导入设置列表 -export function getFilePreview(data) { +export function getFilePreview (data) { return request({ url: '/invoice/filePreview', method: 'post', @@ -10,7 +10,7 @@ export function getFilePreview(data) { } // 下载文件 -export function downloadFile(data) { +export function downloadFile (data) { return request({ url: '/invoice/QuerySdInvoiceFileDownload', method: 'post', diff --git a/jianshui-ui/src/api/system/companyservice.js b/jianshui-ui/src/api/system/companyservice.js index 845defc..579a110 100644 --- a/jianshui-ui/src/api/system/companyservice.js +++ b/jianshui-ui/src/api/system/companyservice.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询销方信息列表 -export function listCompanyservice(query) { +export function listCompanyservice (query) { return request({ url: '/system/companyservice/list', method: 'get', @@ -10,7 +10,7 @@ export function listCompanyservice(query) { } // 查询销方信息详细 -export function getCompanyservice(companyid) { +export function getCompanyservice (companyid) { return request({ url: '/system/companyservice/' + companyid, method: 'get' @@ -18,7 +18,7 @@ export function getCompanyservice(companyid) { } // 新增销方信息 -export function addCompanyservice(data) { +export function addCompanyservice (data) { return request({ url: '/system/companyservice', method: 'post', @@ -27,7 +27,7 @@ export function addCompanyservice(data) { } // 修改销方信息 -export function updateCompanyservice(data) { +export function updateCompanyservice (data) { return request({ url: '/system/companyservice', method: 'put', @@ -36,7 +36,7 @@ export function updateCompanyservice(data) { } // 删除销方信息 -export function delCompanyservice(companyid) { +export function delCompanyservice (companyid) { return request({ url: '/system/companyservice/' + companyid, method: 'delete' diff --git a/jianshui-ui/src/api/system/companyservice_detail.js b/jianshui-ui/src/api/system/companyservice_detail.js index 3a6830a..7c7b5ae 100644 --- a/jianshui-ui/src/api/system/companyservice_detail.js +++ b/jianshui-ui/src/api/system/companyservice_detail.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询销方详情列表 -export function listCompanyservice_detail(query) { +export function listCompanyservice_detail (query) { return request({ url: '/system/companyservice_detail/list', method: 'get', @@ -10,7 +10,7 @@ export function listCompanyservice_detail(query) { } // 查询销方详情详细 -export function getCompanyservice_detail(id) { +export function getCompanyservice_detail (id) { return request({ url: '/system/companyservice_detail/' + id, method: 'get' @@ -18,7 +18,7 @@ export function getCompanyservice_detail(id) { } // 新增销方详情 -export function addCompanyservice_detail(data) { +export function addCompanyservice_detail (data) { return request({ url: '/system/companyservice_detail', method: 'post', @@ -27,7 +27,7 @@ export function addCompanyservice_detail(data) { } // 修改销方详情 -export function updateCompanyservice_detail(data) { +export function updateCompanyservice_detail (data) { return request({ url: '/system/companyservice_detail', method: 'put', @@ -36,7 +36,7 @@ export function updateCompanyservice_detail(data) { } // 删除销方详情 -export function delCompanyservice_detail(id) { +export function delCompanyservice_detail (id) { return request({ url: '/system/companyservice_detail/' + id, method: 'delete' diff --git a/jianshui-ui/src/api/system/config.js b/jianshui-ui/src/api/system/config.js index a404d82..699ad4c 100644 --- a/jianshui-ui/src/api/system/config.js +++ b/jianshui-ui/src/api/system/config.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询参数列表 -export function listConfig(query) { +export function listConfig (query) { return request({ url: '/system/config/list', method: 'get', @@ -10,7 +10,7 @@ export function listConfig(query) { } // 查询参数详细 -export function getConfig(configId) { +export function getConfig (configId) { return request({ url: '/system/config/' + configId, method: 'get' @@ -18,7 +18,7 @@ export function getConfig(configId) { } // 根据参数键名查询参数值 -export function getConfigKey(configKey) { +export function getConfigKey (configKey) { return request({ url: '/system/config/configKey/' + configKey, method: 'get' @@ -26,7 +26,7 @@ export function getConfigKey(configKey) { } // 新增参数配置 -export function addConfig(data) { +export function addConfig (data) { return request({ url: '/system/config', method: 'post', @@ -35,7 +35,7 @@ export function addConfig(data) { } // 修改参数配置 -export function updateConfig(data) { +export function updateConfig (data) { return request({ url: '/system/config', method: 'put', @@ -44,7 +44,7 @@ export function updateConfig(data) { } // 删除参数配置 -export function delConfig(configId) { +export function delConfig (configId) { return request({ url: '/system/config/' + configId, method: 'delete' @@ -52,7 +52,7 @@ export function delConfig(configId) { } // 刷新参数缓存 -export function refreshCache() { +export function refreshCache () { return request({ url: '/system/config/refreshCache', method: 'delete' diff --git a/jianshui-ui/src/api/system/dept.js b/jianshui-ui/src/api/system/dept.js index 2804676..0dac690 100644 --- a/jianshui-ui/src/api/system/dept.js +++ b/jianshui-ui/src/api/system/dept.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询部门列表 -export function listDept(query) { +export function listDept (query) { return request({ url: '/system/dept/list', method: 'get', @@ -10,7 +10,7 @@ export function listDept(query) { } // 查询部门列表(排除节点) -export function listDeptExcludeChild(deptId) { +export function listDeptExcludeChild (deptId) { return request({ url: '/system/dept/list/exclude/' + deptId, method: 'get' @@ -18,7 +18,7 @@ export function listDeptExcludeChild(deptId) { } // 查询部门详细 -export function getDept(deptId) { +export function getDept (deptId) { return request({ url: '/system/dept/' + deptId, method: 'get' @@ -26,7 +26,7 @@ export function getDept(deptId) { } // 查询部门下拉树结构 -export function treeselect() { +export function treeselect () { return request({ url: '/system/dept/treeselect', method: 'get' @@ -34,7 +34,7 @@ export function treeselect() { } // 根据角色ID查询部门树结构 -export function roleDeptTreeselect(roleId) { +export function roleDeptTreeselect (roleId) { return request({ url: '/system/dept/roleDeptTreeselect/' + roleId, method: 'get' @@ -42,7 +42,7 @@ export function roleDeptTreeselect(roleId) { } // 新增部门 -export function addDept(data) { +export function addDept (data) { return request({ url: '/system/dept', method: 'post', @@ -51,7 +51,7 @@ export function addDept(data) { } // 修改部门 -export function updateDept(data) { +export function updateDept (data) { return request({ url: '/system/dept', method: 'put', @@ -60,9 +60,9 @@ export function updateDept(data) { } // 删除部门 -export function delDept(deptId) { +export function delDept (deptId) { return request({ url: '/system/dept/' + deptId, method: 'delete' }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/system/dict/data.js b/jianshui-ui/src/api/system/dict/data.js index 6c9eb79..e4fbc90 100644 --- a/jianshui-ui/src/api/system/dict/data.js +++ b/jianshui-ui/src/api/system/dict/data.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询字典数据列表 -export function listData(query) { +export function listData (query) { return request({ url: '/system/dict/data/list', method: 'get', @@ -10,7 +10,7 @@ export function listData(query) { } // 查询字典数据详细 -export function getData(dictCode) { +export function getData (dictCode) { return request({ url: '/system/dict/data/' + dictCode, method: 'get' @@ -18,7 +18,7 @@ export function getData(dictCode) { } // 根据字典类型查询字典数据信息 -export function getDicts(dictType) { +export function getDicts (dictType) { return request({ url: '/system/dict/data/type/' + dictType, method: 'get' @@ -26,7 +26,7 @@ export function getDicts(dictType) { } // 新增字典数据 -export function addData(data) { +export function addData (data) { return request({ url: '/system/dict/data', method: 'post', @@ -35,7 +35,7 @@ export function addData(data) { } // 修改字典数据 -export function updateData(data) { +export function updateData (data) { return request({ url: '/system/dict/data', method: 'put', @@ -44,7 +44,7 @@ export function updateData(data) { } // 删除字典数据 -export function delData(dictCode) { +export function delData (dictCode) { return request({ url: '/system/dict/data/' + dictCode, method: 'delete' diff --git a/jianshui-ui/src/api/system/dict/type.js b/jianshui-ui/src/api/system/dict/type.js index a7a6e01..f0a45b6 100644 --- a/jianshui-ui/src/api/system/dict/type.js +++ b/jianshui-ui/src/api/system/dict/type.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询字典类型列表 -export function listType(query) { +export function listType (query) { return request({ url: '/system/dict/type/list', method: 'get', @@ -10,7 +10,7 @@ export function listType(query) { } // 查询字典类型详细 -export function getType(dictId) { +export function getType (dictId) { return request({ url: '/system/dict/type/' + dictId, method: 'get' @@ -18,7 +18,7 @@ export function getType(dictId) { } // 新增字典类型 -export function addType(data) { +export function addType (data) { return request({ url: '/system/dict/type', method: 'post', @@ -27,7 +27,7 @@ export function addType(data) { } // 修改字典类型 -export function updateType(data) { +export function updateType (data) { return request({ url: '/system/dict/type', method: 'put', @@ -36,7 +36,7 @@ export function updateType(data) { } // 删除字典类型 -export function delType(dictId) { +export function delType (dictId) { return request({ url: '/system/dict/type/' + dictId, method: 'delete' @@ -44,7 +44,7 @@ export function delType(dictId) { } // 刷新字典缓存 -export function refreshCache() { +export function refreshCache () { return request({ url: '/system/dict/type/refreshCache', method: 'delete' @@ -52,9 +52,9 @@ export function refreshCache() { } // 获取字典选择框列表 -export function optionselect() { +export function optionselect () { return request({ url: '/system/dict/type/optionselect', method: 'get' }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/system/manageservices.js b/jianshui-ui/src/api/system/manageservices.js index fcf5cb4..1fe1c9b 100644 --- a/jianshui-ui/src/api/system/manageservices.js +++ b/jianshui-ui/src/api/system/manageservices.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询服务管理列表 -export function listManageservices(query) { +export function listManageservices (query) { return request({ url: '/system/manageservices/list', method: 'get', @@ -10,7 +10,7 @@ export function listManageservices(query) { } // 查询服务管理详细 -export function getManageservices(id) { +export function getManageservices (id) { return request({ url: '/system/manageservices/' + id, method: 'get' @@ -18,7 +18,7 @@ export function getManageservices(id) { } // 新增服务管理 -export function addManageservices(data) { +export function addManageservices (data) { return request({ url: '/system/manageservices', method: 'post', @@ -27,7 +27,7 @@ export function addManageservices(data) { } // 修改服务管理 -export function updateManageservices(data) { +export function updateManageservices (data) { return request({ url: '/system/manageservices', method: 'put', @@ -36,7 +36,7 @@ export function updateManageservices(data) { } // 删除服务管理 -export function delManageservices(id) { +export function delManageservices (id) { return request({ url: '/system/manageservices/' + id, method: 'delete' diff --git a/jianshui-ui/src/api/system/menu.js b/jianshui-ui/src/api/system/menu.js index f6415c6..6f82014 100644 --- a/jianshui-ui/src/api/system/menu.js +++ b/jianshui-ui/src/api/system/menu.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询菜单列表 -export function listMenu(query) { +export function listMenu (query) { return request({ url: '/system/menu/list', method: 'get', @@ -10,7 +10,7 @@ export function listMenu(query) { } // 查询菜单详细 -export function getMenu(menuId) { +export function getMenu (menuId) { return request({ url: '/system/menu/' + menuId, method: 'get' @@ -18,7 +18,7 @@ export function getMenu(menuId) { } // 查询菜单下拉树结构 -export function treeselect() { +export function treeselect () { return request({ url: '/system/menu/treeselect', method: 'get' @@ -26,7 +26,7 @@ export function treeselect() { } // 根据角色ID查询菜单下拉树结构 -export function roleMenuTreeselect(roleId) { +export function roleMenuTreeselect (roleId) { return request({ url: '/system/menu/roleMenuTreeselect/' + roleId, method: 'get' @@ -34,7 +34,7 @@ export function roleMenuTreeselect(roleId) { } // 新增菜单 -export function addMenu(data) { +export function addMenu (data) { return request({ url: '/system/menu', method: 'post', @@ -43,7 +43,7 @@ export function addMenu(data) { } // 修改菜单 -export function updateMenu(data) { +export function updateMenu (data) { return request({ url: '/system/menu', method: 'put', @@ -52,9 +52,9 @@ export function updateMenu(data) { } // 删除菜单 -export function delMenu(menuId) { +export function delMenu (menuId) { return request({ url: '/system/menu/' + menuId, method: 'delete' }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/system/notice.js b/jianshui-ui/src/api/system/notice.js index c274ea5..99b3d7b 100644 --- a/jianshui-ui/src/api/system/notice.js +++ b/jianshui-ui/src/api/system/notice.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询公告列表 -export function listNotice(query) { +export function listNotice (query) { return request({ url: '/system/notice/list', method: 'get', @@ -10,7 +10,7 @@ export function listNotice(query) { } // 查询公告详细 -export function getNotice(noticeId) { +export function getNotice (noticeId) { return request({ url: '/system/notice/' + noticeId, method: 'get' @@ -18,7 +18,7 @@ export function getNotice(noticeId) { } // 新增公告 -export function addNotice(data) { +export function addNotice (data) { return request({ url: '/system/notice', method: 'post', @@ -27,7 +27,7 @@ export function addNotice(data) { } // 修改公告 -export function updateNotice(data) { +export function updateNotice (data) { return request({ url: '/system/notice', method: 'put', @@ -36,9 +36,9 @@ export function updateNotice(data) { } // 删除公告 -export function delNotice(noticeId) { +export function delNotice (noticeId) { return request({ url: '/system/notice/' + noticeId, method: 'delete' }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/system/post.js b/jianshui-ui/src/api/system/post.js index 1a8e9ca..36faaf9 100644 --- a/jianshui-ui/src/api/system/post.js +++ b/jianshui-ui/src/api/system/post.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询岗位列表 -export function listPost(query) { +export function listPost (query) { return request({ url: '/system/post/list', method: 'get', @@ -10,7 +10,7 @@ export function listPost(query) { } // 查询岗位详细 -export function getPost(postId) { +export function getPost (postId) { return request({ url: '/system/post/' + postId, method: 'get' @@ -18,7 +18,7 @@ export function getPost(postId) { } // 新增岗位 -export function addPost(data) { +export function addPost (data) { return request({ url: '/system/post', method: 'post', @@ -27,7 +27,7 @@ export function addPost(data) { } // 修改岗位 -export function updatePost(data) { +export function updatePost (data) { return request({ url: '/system/post', method: 'put', @@ -36,7 +36,7 @@ export function updatePost(data) { } // 删除岗位 -export function delPost(postId) { +export function delPost (postId) { return request({ url: '/system/post/' + postId, method: 'delete' diff --git a/jianshui-ui/src/api/system/prop.js b/jianshui-ui/src/api/system/prop.js index 3cdce52..e573a27 100644 --- a/jianshui-ui/src/api/system/prop.js +++ b/jianshui-ui/src/api/system/prop.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询企业扩展属性,包括大象key等列表 -export function listProp(query) { +export function listProp (query) { return request({ url: '/system/prop/list', method: 'get', @@ -10,7 +10,7 @@ export function listProp(query) { } // 查询企业扩展属性,包括大象key等详细 -export function getProp(companyid) { +export function getProp (companyid) { return request({ url: '/system/prop/' + companyid, method: 'get' @@ -18,7 +18,7 @@ export function getProp(companyid) { } // 新增企业扩展属性,包括大象key等 -export function addProp(data) { +export function addProp (data) { return request({ url: '/system/prop', method: 'post', @@ -27,7 +27,7 @@ export function addProp(data) { } // 修改企业扩展属性,包括大象key等 -export function updateProp(data) { +export function updateProp (data) { return request({ url: '/system/prop', method: 'put', @@ -36,7 +36,7 @@ export function updateProp(data) { } // 删除企业扩展属性,包括大象key等 -export function delProp(companyid) { +export function delProp (companyid) { return request({ url: '/system/prop/' + companyid, method: 'delete' @@ -44,7 +44,7 @@ export function delProp(companyid) { } // 初始化销方prop -export function initProp(companyid) { +export function initProp (companyid) { return request({ url: '/system/prop/init/' + companyid, method: 'get' diff --git a/jianshui-ui/src/api/system/role.js b/jianshui-ui/src/api/system/role.js index 4b455e1..9039253 100644 --- a/jianshui-ui/src/api/system/role.js +++ b/jianshui-ui/src/api/system/role.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询角色列表 -export function listRole(query) { +export function listRole (query) { return request({ url: '/system/role/list', method: 'get', @@ -10,7 +10,7 @@ export function listRole(query) { } // 查询角色详细 -export function getRole(roleId) { +export function getRole (roleId) { return request({ url: '/system/role/' + roleId, method: 'get' @@ -18,7 +18,7 @@ export function getRole(roleId) { } // 新增角色 -export function addRole(data) { +export function addRole (data) { return request({ url: '/system/role', method: 'post', @@ -27,7 +27,7 @@ export function addRole(data) { } // 修改角色 -export function updateRole(data) { +export function updateRole (data) { return request({ url: '/system/role', method: 'put', @@ -36,7 +36,7 @@ export function updateRole(data) { } // 角色数据权限 -export function dataScope(data) { +export function dataScope (data) { return request({ url: '/system/role/dataScope', method: 'put', @@ -45,7 +45,7 @@ export function dataScope(data) { } // 角色状态修改 -export function changeRoleStatus(roleId, status) { +export function changeRoleStatus (roleId, status) { const data = { roleId, status @@ -58,7 +58,7 @@ export function changeRoleStatus(roleId, status) { } // 删除角色 -export function delRole(roleId) { +export function delRole (roleId) { return request({ url: '/system/role/' + roleId, method: 'delete' @@ -66,7 +66,7 @@ export function delRole(roleId) { } // 查询角色已授权用户列表 -export function allocatedUserList(query) { +export function allocatedUserList (query) { return request({ url: '/system/role/authUser/allocatedList', method: 'get', @@ -75,7 +75,7 @@ export function allocatedUserList(query) { } // 查询角色未授权用户列表 -export function unallocatedUserList(query) { +export function unallocatedUserList (query) { return request({ url: '/system/role/authUser/unallocatedList', method: 'get', @@ -84,7 +84,7 @@ export function unallocatedUserList(query) { } // 取消用户授权角色 -export function authUserCancel(data) { +export function authUserCancel (data) { return request({ url: '/system/role/authUser/cancel', method: 'put', @@ -93,7 +93,7 @@ export function authUserCancel(data) { } // 批量取消用户授权角色 -export function authUserCancelAll(data) { +export function authUserCancelAll (data) { return request({ url: '/system/role/authUser/cancelAll', method: 'put', @@ -102,10 +102,10 @@ export function authUserCancelAll(data) { } // 授权用户选择 -export function authUserSelectAll(data) { +export function authUserSelectAll (data) { return request({ url: '/system/role/authUser/selectAll', method: 'put', params: data }) -} \ No newline at end of file +} diff --git a/jianshui-ui/src/api/system/user.js b/jianshui-ui/src/api/system/user.js index 9a1e271..9e7fc9f 100644 --- a/jianshui-ui/src/api/system/user.js +++ b/jianshui-ui/src/api/system/user.js @@ -2,7 +2,7 @@ import request from '@/utils/request' import { praseStrEmpty } from "@/utils/jianshui"; // 查询用户列表 -export function listUser(query) { +export function listUser (query) { return request({ url: '/system/user/list', method: 'get', @@ -11,7 +11,7 @@ export function listUser(query) { } // 查询用户详细 -export function getUser(userId) { +export function getUser (userId) { return request({ url: '/system/user/' + praseStrEmpty(userId), method: 'get' @@ -19,7 +19,7 @@ export function getUser(userId) { } // 新增用户 -export function addUser(data) { +export function addUser (data) { return request({ url: '/system/user', method: 'post', @@ -28,7 +28,7 @@ export function addUser(data) { } // 修改用户 -export function updateUser(data) { +export function updateUser (data) { return request({ url: '/system/user', method: 'put', @@ -37,7 +37,7 @@ export function updateUser(data) { } // 删除用户 -export function delUser(userId) { +export function delUser (userId) { return request({ url: '/system/user/' + userId, method: 'delete' @@ -45,7 +45,7 @@ export function delUser(userId) { } // 用户密码重置 -export function resetUserPwd(userId, password) { +export function resetUserPwd (userId, password) { const data = { userId, password @@ -58,7 +58,7 @@ export function resetUserPwd(userId, password) { } // 用户状态修改 -export function changeUserStatus(userId, status) { +export function changeUserStatus (userId, status) { const data = { userId, status @@ -71,7 +71,7 @@ export function changeUserStatus(userId, status) { } // 查询用户个人信息 -export function getUserProfile() { +export function getUserProfile () { return request({ url: '/system/user/profile', method: 'get' @@ -79,7 +79,7 @@ export function getUserProfile() { } // 修改用户个人信息 -export function updateUserProfile(data) { +export function updateUserProfile (data) { return request({ url: '/system/user/profile', method: 'put', @@ -88,7 +88,7 @@ export function updateUserProfile(data) { } // 用户密码重置 -export function updateUserPwd(oldPassword, newPassword) { +export function updateUserPwd (oldPassword, newPassword) { const data = { oldPassword, newPassword @@ -101,7 +101,7 @@ export function updateUserPwd(oldPassword, newPassword) { } // 用户头像上传 -export function uploadAvatar(data) { +export function uploadAvatar (data) { return request({ url: '/system/user/profile/avatar', method: 'post', @@ -110,7 +110,7 @@ export function uploadAvatar(data) { } // 查询授权角色 -export function getAuthRole(userId) { +export function getAuthRole (userId) { return request({ url: '/system/user/authRole/' + userId, method: 'get' @@ -118,7 +118,7 @@ export function getAuthRole(userId) { } // 保存授权角色 -export function updateAuthRole(data) { +export function updateAuthRole (data) { return request({ url: '/system/user/authRole', method: 'put', diff --git a/jianshui-ui/src/api/tool/gen.js b/jianshui-ui/src/api/tool/gen.js index 4506927..5024f0f 100644 --- a/jianshui-ui/src/api/tool/gen.js +++ b/jianshui-ui/src/api/tool/gen.js @@ -1,7 +1,7 @@ import request from '@/utils/request' // 查询生成表数据 -export function listTable(query) { +export function listTable (query) { return request({ url: '/tool/gen/list', method: 'get', @@ -9,7 +9,7 @@ export function listTable(query) { }) } // 查询db数据库列表 -export function listDbTable(query) { +export function listDbTable (query) { return request({ url: '/tool/gen/db/list', method: 'get', @@ -18,7 +18,7 @@ export function listDbTable(query) { } // 查询表详细信息 -export function getGenTable(tableId) { +export function getGenTable (tableId) { return request({ url: '/tool/gen/' + tableId, method: 'get' @@ -26,7 +26,7 @@ export function getGenTable(tableId) { } // 修改代码生成信息 -export function updateGenTable(data) { +export function updateGenTable (data) { return request({ url: '/tool/gen', method: 'put', @@ -35,7 +35,7 @@ export function updateGenTable(data) { } // 导入表 -export function importTable(data) { +export function importTable (data) { return request({ url: '/tool/gen/importTable', method: 'post', @@ -44,7 +44,7 @@ export function importTable(data) { } // 预览生成代码 -export function previewTable(tableId) { +export function previewTable (tableId) { return request({ url: '/tool/gen/preview/' + tableId, method: 'get' @@ -52,7 +52,7 @@ export function previewTable(tableId) { } // 删除表数据 -export function delTable(tableId) { +export function delTable (tableId) { return request({ url: '/tool/gen/' + tableId, method: 'delete' @@ -60,7 +60,7 @@ export function delTable(tableId) { } // 生成代码(自定义路径) -export function genCode(tableName) { +export function genCode (tableName) { return request({ url: '/tool/gen/genCode/' + tableName, method: 'get' @@ -68,7 +68,7 @@ export function genCode(tableName) { } // 同步数据库 -export function synchDb(tableName) { +export function synchDb (tableName) { return request({ url: '/tool/gen/synchDb/' + tableName, method: 'get' diff --git a/jianshui-ui/src/assets/images/tishi.png b/jianshui-ui/src/assets/images/tishi.png new file mode 100644 index 0000000..dba91b9 Binary files /dev/null and b/jianshui-ui/src/assets/images/tishi.png differ diff --git a/jianshui-ui/src/permission.js b/jianshui-ui/src/permission.js index dc6da80..0aa1796 100644 --- a/jianshui-ui/src/permission.js +++ b/jianshui-ui/src/permission.js @@ -7,8 +7,8 @@ import { getToken } from '@/utils/auth' NProgress.configure({ showSpinner: false }) -const whiteList = ['/login', '/auth-redirect', '/bind' - , '/register','/auth','/XA','/sdFile/*'] +const whiteList = ['/login', '/auth-redirect', '/bind', '/taxBureauLogin','/authNew' + , '/register', '/auth', '/XA', '/sdFile/*'] router.beforeEach((to, from, next) => { NProgress.start() @@ -28,11 +28,11 @@ router.beforeEach((to, from, next) => { next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 }) }).catch(err => { - store.dispatch('LogOut').then(() => { - Message.error(err) - next({ path: '/' }) - }) + store.dispatch('LogOut').then(() => { + Message.error(err) + next({ path: '/' }) }) + }) } else { next() } diff --git a/jianshui-ui/src/router/index.js b/jianshui-ui/src/router/index.js index 3430a03..7c321e6 100644 --- a/jianshui-ui/src/router/index.js +++ b/jianshui-ui/src/router/index.js @@ -46,17 +46,17 @@ export const constantRoutes = [ }, { path: '/auth', - component: resolve => require(['@/views/freedom/login'],resolve), + component: resolve => require(['@/views/freedom/login'], resolve), hidden: true }, { path: '/authNew', - component: resolve => require(['@/views/freedom/loginNew'],resolve), + component: resolve => require(['@/views/freedom/loginNew'], resolve), hidden: true }, { path: '/XA', - component: resolve => require(['@/views/freedom/XA'],resolve), + component: resolve => require(['@/views/freedom/XA'], resolve), hidden: true }, { @@ -64,9 +64,14 @@ export const constantRoutes = [ component: (resolve) => require(['@/views/register'], resolve), hidden: true }, + { + path: '/taxBureauLogin', + component: (resolve) => require(['@/views/freedom/taxBureauLogin/index'], resolve), + hidden: true + }, { path: '/sdFile/:id', - component: resolve => require(['@/views/sdinvoicefile/index'],resolve), + component: resolve => require(['@/views/sdinvoicefile/index'], resolve), hidden: true }, { diff --git a/jianshui-ui/src/store/modules/user.js b/jianshui-ui/src/store/modules/user.js index 0e45157..9174e84 100644 --- a/jianshui-ui/src/store/modules/user.js +++ b/jianshui-ui/src/store/modules/user.js @@ -7,7 +7,8 @@ const user = { name: '', avatar: '', roles: [], - permissions: [] + permissions: [], + authStatus: {}, }, mutations: { @@ -25,12 +26,14 @@ const user = { }, SET_PERMISSIONS: (state, permissions) => { state.permissions = permissions + }, + SET_AUTH_STATUS: (state, authStatus) => { + state.authStatus = authStatus } }, - actions: { // 登录 - Login({ commit }, userInfo) { + Login ({ commit }, userInfo) { const username = userInfo.username.trim() const password = userInfo.password const code = userInfo.code @@ -47,7 +50,8 @@ const user = { }, // 获取用户信息 - GetInfo({ commit, state }) { + GetInfo ({ commit, state }) { + debugger return new Promise((resolve, reject) => { getInfo().then(res => { const user = res.user @@ -68,7 +72,7 @@ const user = { }, // 退出系统 - LogOut({ commit, state }) { + LogOut ({ commit, state }) { return new Promise((resolve, reject) => { logout(state.token).then(() => { commit('SET_TOKEN', '') @@ -83,7 +87,7 @@ const user = { }, // 前端 登出 - FedLogOut({ commit }) { + FedLogOut ({ commit }) { return new Promise(resolve => { commit('SET_TOKEN', '') removeToken() diff --git a/jianshui-ui/src/utils/request.js b/jianshui-ui/src/utils/request.js index 870e4d1..7f258ca 100644 --- a/jianshui-ui/src/utils/request.js +++ b/jianshui-ui/src/utils/request.js @@ -19,6 +19,7 @@ const service = axios.create({ // request拦截器 service.interceptors.request.use(config => { + console.log(config) // 是否需要设置 token const isToken = (config.headers || {}).isToken === false if (getToken() && !isToken) { @@ -31,49 +32,51 @@ service.interceptors.request.use(config => { config.params = {}; config.url = url; } + console.log(config, 'config') return config + }, error => { - console.log(error) - Promise.reject(error) + console.log(error) + Promise.reject(error) }) // 响应拦截器 service.interceptors.response.use(res => { - // 未设置状态码则默认成功状态 - const code = res.data.code || 200; - // 获取错误信息 - const msg = errorCode[code] || res.data.msg || errorCode['default'] - // 二进制数据则直接返回 - if(res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer'){ - return res.data + // 未设置状态码则默认成功状态 + const code = res.data.code || 200; + // 获取错误信息 + const msg = errorCode[code] || res.data.msg || errorCode['default'] + // 二进制数据则直接返回 + if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') { + return res.data + } + if (code === 401) { + MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { + confirmButtonText: '重新登录', + cancelButtonText: '取消', + type: 'warning' } - if (code === 401) { - MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { - confirmButtonText: '重新登录', - cancelButtonText: '取消', - type: 'warning' - } - ).then(() => { - store.dispatch('LogOut').then(() => { - location.href = '/index'; - }) - }).catch(() => {}); - return Promise.reject('无效的会话,或者会话已过期,请重新登录。') - } else if (code === 500) { - Message({ - message: msg, - type: 'error' - }) - return Promise.reject(new Error(msg)) - } else if (code !== 200) { - Notification.error({ - title: msg + ).then(() => { + store.dispatch('LogOut').then(() => { + location.href = '/index'; }) - return Promise.reject('error') - } else { - return res.data - } - }, + }).catch(() => { }); + return Promise.reject('无效的会话,或者会话已过期,请重新登录。') + } else if (code === 500) { + Message({ + message: msg, + type: 'error' + }) + return Promise.reject(new Error(msg)) + } else if (code !== 200) { + Notification.error({ + title: msg + }) + return Promise.reject('error') + } else { + return res.data + } +}, error => { console.log('err' + error) let { message } = error; @@ -96,7 +99,7 @@ service.interceptors.response.use(res => { ) // 通用下载方法 -export function download(url, params, filename) { +export function download (url, params, filename) { downloadLoadingInstance = Loading.service({ text: "正在下载数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", }) return service.post(url, params, { transformRequest: [(params) => { return tansParams(params) }], diff --git a/jianshui-ui/src/views/digital/registered/index.vue b/jianshui-ui/src/views/digital/registered/index.vue index 5570a65..42fbcc6 100644 --- a/jianshui-ui/src/views/digital/registered/index.vue +++ b/jianshui-ui/src/views/digital/registered/index.vue @@ -1,7 +1,8 @@ + + diff --git a/jianshui-ui/src/views/freedom/taxBureauLogin/index.vue b/jianshui-ui/src/views/freedom/taxBureauLogin/index.vue new file mode 100644 index 0000000..dd19aaa --- /dev/null +++ b/jianshui-ui/src/views/freedom/taxBureauLogin/index.vue @@ -0,0 +1,434 @@ + + + diff --git a/jianshui-ui/vue.config.js b/jianshui-ui/vue.config.js index c7daeb8..3555f9c 100644 --- a/jianshui-ui/vue.config.js +++ b/jianshui-ui/vue.config.js @@ -1,15 +1,19 @@ 'use strict' const path = require('path') -function resolve(dir) { +function resolve (dir) { return path.join(__dirname, dir) } +// let portUrl = 'http://58.87.71.213:8082'//测试环境 const name = process.env.VUE_APP_TITLE || '简税平台管理系统' // 网页标题 const port = process.env.port || process.env.npm_config_port || 8088 // 端口 - -const url = process.env.NODE_ENV === 'development' ? 'http://localhost:8081' : 'http://localhost:8080' +// 'http://dev.goldentaxcloud.com:8081' +// www.goldentaxcloud.com:8080 +// let development = 'http://dev.goldentaxcloud.com:8081' +let development = 'www.goldentaxcloud.com:8080' +const url = process.env.NODE_ENV === 'development' ? development : development // vue.config.js 配置说明 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions @@ -24,7 +28,7 @@ module.exports = { // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下) assetsDir: 'static', // 是否开启eslint保存检测,有效值:ture | false | 'error' - lintOnSave: process.env.NODE_ENV === 'development', + // lintOnSave: process.env.NODE_ENV === 'development', // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 productionSourceMap: false, // webpack-dev-server 相关配置 @@ -32,16 +36,32 @@ module.exports = { host: '0.0.0.0', port: port, open: true, + // logLevel: 'debug', proxy: { - // detail: https://cli.vuejs.org/config/#devserver-proxy + // '/api/invoice/front/v1': { + // target: 'http://58.87.71.213:8082/api/invoice/front/v1', // 测试环境 + // changeOrigin: true, + // pathRewrite: { + // '^/api/invoice/front/v1': '' + // } + // }, [process.env.VUE_APP_BASE_API]: { - target: url, + target: url, // 测试环境 changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } - } + }, }, + // proxy: { + // [process.env.VUE_APP_BASE_API]: { + // target: 'http://localhost:8081', + // changeOrigin: true, + // pathRewrite: { + // ['^' + process.env.VUE_APP_BASE_API +]: '' + // } + // } + // }, disableHostCheck: true }, configureWebpack: { @@ -52,7 +72,7 @@ module.exports = { } } }, - chainWebpack(config) { + chainWebpack (config) { config.plugins.delete('preload') // TODO: need test config.plugins.delete('prefetch') // TODO: need test @@ -86,33 +106,33 @@ module.exports = { .end() config .optimization.splitChunks({ - chunks: 'all', - cacheGroups: { - libs: { - name: 'chunk-libs', - test: /[\\/]node_modules[\\/]/, - priority: 10, - chunks: 'initial' // only package third parties that are initially dependent - }, - elementUI: { - name: 'chunk-elementUI', // split elementUI into a single package - priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app - test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm - }, - commons: { - name: 'chunk-commons', - test: resolve('src/components'), // can customize your rules - minChunks: 3, // minimum common number - priority: 5, - reuseExistingChunk: true + chunks: 'all', + cacheGroups: { + libs: { + name: 'chunk-libs', + test: /[\\/]node_modules[\\/]/, + priority: 10, + chunks: 'initial' // only package third parties that are initially dependent + }, + elementUI: { + name: 'chunk-elementUI', // split elementUI into a single package + priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app + test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm + }, + commons: { + name: 'chunk-commons', + test: resolve('src/components'), // can customize your rules + minChunks: 3, // minimum common number + priority: 5, + reuseExistingChunk: true + } } - } - }) + }) config.optimization.runtimeChunk('single'), - { - from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 - to: './' //到根目录下 - } + { + from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 + to: './' //到根目录下 + } } ) }