Merge remote-tracking branch 'origin/beta-prop-all' into beta-prop-all

jianshui-ui
dongxiaoke 1 year ago
commit 82b423bc4b
  1. 44
      jianshui-admin/src/main/java/com/jianshui/api/controller/http/invoice/v1/InvoiceFrontController.java
  2. 2
      jianshui-invoice-all/src/main/java/com/jianshui/invoiceall/service/impl/InvoiceAllImpl.java
  3. BIN
      jianshui-ui/dist.zip
  4. 2
      jianshui-ui/package.json
  5. 2
      jianshui-ui/src/api/breaker/request.js
  6. 26
      jianshui-ui/src/api/digital/registered.js
  7. 49
      jianshui-ui/src/api/digital/taxBureauLogin.js
  8. 12
      jianshui-ui/src/api/invoice/billinfo.js
  9. 12
      jianshui-ui/src/api/login.js
  10. 2
      jianshui-ui/src/api/menu.js
  11. 2
      jianshui-ui/src/api/monitor/cache.js
  12. 16
      jianshui-ui/src/api/monitor/job.js
  13. 6
      jianshui-ui/src/api/monitor/jobLog.js
  14. 6
      jianshui-ui/src/api/monitor/logininfor.js
  15. 4
      jianshui-ui/src/api/monitor/online.js
  16. 6
      jianshui-ui/src/api/monitor/operlog.js
  17. 4
      jianshui-ui/src/api/monitor/server.js
  18. 10
      jianshui-ui/src/api/platform/exportmanage.js
  19. 8
      jianshui-ui/src/api/platform/exportsetting.js
  20. 10
      jianshui-ui/src/api/platform/product_info.js
  21. 10
      jianshui-ui/src/api/platform/vehiclecode.js
  22. 2
      jianshui-ui/src/api/sandbox/encrypt.js
  23. 4
      jianshui-ui/src/api/sdInvoicefile/sdinvoicefile.js
  24. 10
      jianshui-ui/src/api/system/companyservice.js
  25. 10
      jianshui-ui/src/api/system/companyservice_detail.js
  26. 14
      jianshui-ui/src/api/system/config.js
  27. 18
      jianshui-ui/src/api/system/dept.js
  28. 12
      jianshui-ui/src/api/system/dict/data.js
  29. 16
      jianshui-ui/src/api/system/dict/type.js
  30. 10
      jianshui-ui/src/api/system/manageservices.js
  31. 16
      jianshui-ui/src/api/system/menu.js
  32. 12
      jianshui-ui/src/api/system/notice.js
  33. 10
      jianshui-ui/src/api/system/post.js
  34. 12
      jianshui-ui/src/api/system/prop.js
  35. 26
      jianshui-ui/src/api/system/role.js
  36. 26
      jianshui-ui/src/api/system/user.js
  37. 18
      jianshui-ui/src/api/tool/gen.js
  38. BIN
      jianshui-ui/src/assets/images/tishi.png
  39. 12
      jianshui-ui/src/permission.js
  40. 13
      jianshui-ui/src/router/index.js
  41. 16
      jianshui-ui/src/store/modules/user.js
  42. 75
      jianshui-ui/src/utils/request.js
  43. 27
      jianshui-ui/src/views/digital/registered/index.vue
  44. 452
      jianshui-ui/src/views/digital/taxBureauLogin/index.vue
  45. 434
      jianshui-ui/src/views/freedom/taxBureauLogin/index.vue
  46. 86
      jianshui-ui/vue.config.js

@ -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<String,Object> params,@PathVariable("identity") String identity, @PathVariable("secret") String secret) {
@PostMapping("/rpaLogin")
public Object rpaLogin(@RequestBody Map<String,Object> 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<String,Object> 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<String,Object> params,@PathVariable("identity") String identity, @PathVariable("secret") String secret ) {
@PostMapping("/getRpaQrCode")
public Object getRpaQrCode(@RequestBody Map<String,Object> 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<String,Object> params, @PathVariable("identity") String identity, @PathVariable("secret") String secret ) {
@PostMapping("/getRpaAuthStatus")
public Object getRpaAuthStatus(@RequestBody Map<String,Object> 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)){

@ -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);
}

Binary file not shown.

@ -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",

@ -1,6 +1,6 @@
import request from '@/utils/request'
export function jianShuiLicense(data) {
export function jianShuiLicense (data) {
return request({
url: '/breaker/jianShuiLicense',
method: 'post',

@ -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'

@ -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
}
})
}

@ -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'

@ -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
})
}
}

@ -6,4 +6,4 @@ export const getRouters = () => {
url: '/getRouters',
method: 'get'
})
}
}

@ -1,7 +1,7 @@
import request from '@/utils/request'
// 查询缓存详细
export function getCache() {
export function getCache () {
return request({
url: '/monitor/cache',
method: 'get'

@ -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
})
}
}

@ -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'

@ -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'

@ -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'

@ -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'

@ -1,9 +1,9 @@
import request from '@/utils/request'
// 获取服务信息
export function getServer() {
export function getServer () {
return request({
url: '/monitor/server',
method: 'get'
})
}
}

@ -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'

@ -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'

@ -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'

@ -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'

@ -1,6 +1,6 @@
import request from '@/utils/request'
export function encrypt(data) {
export function encrypt (data) {
return request({
url: '/sandbox/encrypt',
method: 'post',

@ -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',

@ -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'

@ -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'

@ -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'

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

@ -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'

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

@ -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'

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

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

@ -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'

@ -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'

@ -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
})
}
}

@ -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',

@ -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'

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

@ -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()
}

@ -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
},
{

@ -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()

@ -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) }],

@ -1,7 +1,8 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="140px">
<el-row>
<el-row >
<el-col :span="8">
<el-form-item label="办税人姓名" prop="bsryxm">
<el-input
v-model="queryParams.bsryxm"
@ -11,18 +12,24 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="登录身份" prop="dlsf">
<el-select v-model="queryParams.dlsf" placeholder="请选择登录身份" clearable size="small">
<el-option v-for="dict in dict.type.login_dlsf" :key="dict.value" :label="dict.label"
:value="dict.value"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="登录方式" prop="dlfs">
<el-select v-model="queryParams.dlfs" placeholder="请选择登录方式" clearable size="small">
<el-option v-for="dict in dict.type.login_dlfs" :key="dict.value" :label="dict.label"
:value="dict.value"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="登录账号" prop="dlzh">
<el-input
v-model="queryParams.dlzh"
@ -32,8 +39,8 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-row>
<el-row>
</el-col>
<el-col :span="8">
<el-form-item label="纳税人名称" prop="nsrmc">
<el-input
v-model="queryParams.nsrmc"
@ -43,6 +50,8 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="纳税人识别号" prop="nsrsbh">
<el-input
v-model="queryParams.nsrsbh"
@ -52,6 +61,8 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="身份证件号码" prop="bsrysfzjhm">
<el-input
v-model="queryParams.bsrysfzjhm"
@ -61,6 +72,8 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="手机号码" prop="bsrysjhm">
<el-input
v-model="queryParams.bsrysjhm"
@ -70,8 +83,8 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-row>
<el-row>
</el-col>
<el-col :span="8">
<el-form-item label="企业ID" prop="identity">
<el-input
v-model="queryParams.identity"
@ -81,13 +94,15 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button

@ -0,0 +1,452 @@
<template>
<div>
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
<el-menu-item index="1">账号登录</el-menu-item>
<el-menu-item index="2">身份认证</el-menu-item>
</el-menu>
<div class="menu_body">
<div v-show="isShow">
<div id="accountLogin">
<div class="menu_body_text">电子税局登录</div>
<el-form ref="form" :model="form" label-width="140px" label-position="left" class="form">
<el-row>
<el-col :span="34">
<el-form-item label="电子税务局用户名">
<el-select v-model="form.name" placeholder="请选择电子税局用户名">
<el-option v-for="item in dzsjList" :key="item.id" :label="item.yhm" :value="item"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12"></el-col>
</el-row>
</el-form>
<div class="button"><el-button :loading="anewLoginBtnLoading" @click="anewLoginBtn()" type="primary">重新登录</el-button></div>
</div>
</div>
<div v-show="!isShow">
<div id="authentication">
<div class="at_title">请使用税务APP扫描下方二维码进行身份验证</div>
<div class="at_input">
<div class="at_labe">电子税局用户名</div>
<div class="select">
<el-select v-model="formQr.name" placeholder="请选择电子税局用户名">
<el-option v-for="item in dzsjList" :key="item.id" :label="item.yhm" :value="item"></el-option>
</el-select>
</div>
<div class="button"><el-button :disabled="isCountingDown" @click="getQrCodeBtn()" type="primary">
<span v-if="isCountingDown">获取认证二维码</span>
<span v-else>{{ countdown }}<span>s</span></span>
</el-button></div>
</div>
<div class="qrcode" ref="qrCodeUrl"></div>
<div class="qrcodetext" v-show="qrcodeShow">可将二维码图片发给认证人员进行身份认证手机端完成认证后自动同步认证结果开展后续数电业务操作</div>
</div>
</div>
</div>
<el-dialog
class="dialog"
title="短信登录"
:visible.sync="dialogVisible"
width="550px"
>
<div class="dialog_title">
<div class="dialog_img"><img src="@/assets/images/tishi.png" height="20px" width="20px"></div>
<div class="dialog_text">为了您的账号安全和信用安全请进行安全验证验证码将以短信形式发送至电子税务局绑定的手机号</div>
</div>
<div class="dialog_body">
<div class="dialog_body_zh"><div class="label">数电账号:</div><div class="zh">{{this.smsFrom.zh}}</div></div>
<div class="dialog_body_yzm">
<div class="label">验证码:</div>
<div class="input"><el-input v-model="dxyzm" placeholder="请输入验证码"></el-input></div>
<div><el-button :loading="getyzmBtnloading" @click="getyzmBtn()" type="primary">获取验证码</el-button></div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="yzmloginBtn()"> </el-button>
</span>
</el-dialog>
<el-dialog
title="责任人"
:visible.sync="zzrdialogVisible"
width="550px"
>
<el-form ref="form" :model="form" label-width="60px" label-position="left" align="center" class="form">
<el-row class="zzr">
<el-col :span="12">
<el-form-item label="责任人">
<el-select v-model="zzrlx" placeholder="请选择责任人">
<el-option v-for="item in zrrList" :key="item.val" :label="item.label" :value="item.val"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="zzrdialogVisible = false"> </el-button>
<el-button type="primary" @click="zzrloginBtn()"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import QRCode from 'qrcodejs2'
import { getRpaQrCodeApi, postRpaAuthStatusApi, queryRpaTaxAccountApi, rpaLoginApi } from '@/api/digital/taxBureauLogin'
export default {
name:"taxBureauLogin",
data() {
return {
isShow:true,
activeIndex: '1',
activeIndex2: '1',
form:{
name:{}
},
formQr:{
name:{}
},
loginKey:{
id:'',
key:''
},
dzsjList:[],
ffm:0,
dialogVisible:false,
smsFrom:{
zh:'',
yzm:''
},
zrrList:[],
countdown:0,
zzrdialogVisible:false,
dxyzm:'',
zzrlx:'',
qrcodeShow:false,
timer:null,
rzid:'',
anewLoginBtnLoading:false,
getyzmBtnloading:false,
isCountingDown:false
};
},
methods: {
handleSelect(key, keyPath) {
key === '1' ? this.isShow = true : this.isShow = false
},
getRpaAuthStatus(){
queryRpaTaxAccountApi().then(res => {
this.dzsjList = res.data
this.form.name = this.dzsjList[length]
});
},
anewLoginBtn(){
this.$confirm('登录操作有可能会影响到开票业务,确定要使用该账号登录电子税务局吗?', '确认', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.postLogin()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
postLogin(){
let parames = {
yhm:this.form.name.yhm,mm:this.form.name.mm,ffm:this.ffm,dxyzm:this.dxyzm,zzrlx:this.zzrlx
}
this.anewLoginBtnLoading = true;
rpaLoginApi(parames).then(({data})=>{
this.ffm = data.hxff
if(data.hxff === "0"){
this.$message({
message: '登录成功',
type: 'success'
});
}
if(data.hxff === "1"){
this.dxyzm = data.dxyzm
this.smsFrom.zh = this.form.name.yhm;
this.dialogVisible = true;
}
if(data.hxff === "2"){
let list = [];
for (let Key in data.personList) {
arr.push({
val:Key,
label:this.zrrList[Key]
})
this.zrrList = list
}
this.zzrdialogVisible = true;
}
if(data.hxff === "3"){
this.$message({
message: '验证码发送成功',
type: 'success'
});
}
}).finally(()=>{
this.anewLoginBtnLoading = false;
})
},
//
getyzmBtn(){
this.getyzmBtnloading = true;
this.ffm = '1'
rpaLoginApi({yhm:this.form.name.yhm,mm:this.form.name.mm,ffm:this.ffm}).finally(()=>{
this.getyzmBtnloading = false;
})
},
yzmloginBtn(){
if(!this.dxyzm){
this.$message({
message: '验证码不能为空',
type: 'warning'
});
}else {
this.postLogin()
this.dialogVisible = false;
}
},
//
zzrloginBtn(){
if(!this.zzrlx){
this.$message({
message: '责任人不能为空',
type: 'warning'
});
}else {
this.postLogin()
this.zzrdialogVisible = false;
}
},
//
getQrCodeBtn(){
if (this.isCountingDown) {
return; //
}
//
//
this.isCountingDown = true;
this.timer = setInterval(() => {
if (this.countdown > 0) {
this.countdown--;
} else {
//
this.isCountingDown = false;
this.countdown = 120;
clearInterval(this.timer); //
getRpaQrCodeApi({yhm: this.formQr.name.yhm}).then(({data})=>{
this.$refs.qrCodeUrl.innerHTML = '';
let qrcode = new QRCode(this.$refs.qrCodeUrl, {
text: data.ewm,
width: 150,
height: 150,
colorDark: '#000000',
colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.H
})
this.qrcodeShow = true
this.rzid = data.rzid
this.polling()
}).finally(()=>{
this.getQrCodeBtnloading = false;
})
}
}, 1000);
},
polling(){
postRpaAuthStatusApi({rzid:this.rzid,yhm:this.formQr.name.yhm}).then(({data})=>{
window.clearInterval(this.timer);
this.timer = null
if(data.slzt === '1' ){
this.timer = window.setInterval( ()=>{ this.polling() },3000)
}
if(data.slzt === '2' ) {
window.clearInterval(this.timer);
this.timer = null
this.$message({
message: '当前账号已认证通过',
type: 'success'
});
this.$nextTick(() => {
this.$refs.qrCodeUrl.innerHTML = '';
this.qrcodeShow = false;
})
}
if (data.slzt === '3') {
this.$message({
message: '扫码失败',
type: 'success'
});
window.clearInterval(this.timer);
this.timer = null
}
})
}
},
created() {
let searchParams = new URLSearchParams(window.location.search);
this.loginKey.id = searchParams.get('id')
this.loginKey.key = searchParams.get('key')
this.$store.commit('SET_AUTH_STATUS', this.loginKey)
},
mounted() {
if (this.loginKey.id !== '' && this.loginKey.key !== '') {
this.getRpaAuthStatus()
}
},
beforeDestroy() {
window.clearInterval(this.timer);
this.timer = null
}
}
</script>
<style scoped lang="scss">
.menu_body {
::v-deep.el-input--suffix .el-input__inner {
//height: 30px;
width: 100%;
}
width: 100%;
height: calc(75vh);
margin-top: 150px;
display: flex;
justify-content: center;
#accountLogin {
width: 400px;
height: 400px;
//background-color: #6c5656;
.menu_body_text {
text-align: center;
font-size: 20px;
font-weight: 500;
}
.form {
margin: 12% 0;
}
.button {
display: flex;
justify-content: center;
}
}
#authentication {
margin-top: -100px;
width: 500px;
height: 400px;
.at_title {
text-align: center;
}
.qrcode {
width: 100px;
height: 100px;
margin: auto;
margin-top: 40px;
}
.qrcodetext {
padding-top: 70px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666;
}
.at_input {
margin-top: 40px;
.at_labe {
line-height: 30px;
width: 120px;
}
display: flex;
height: 40px;
justify-items: center;
.select {
margin: 0 10px;
}
}
}
}
.dialog {
.dialog_title {
padding: 10px 10px 0 10px;
width: 460px;
display: flex;
margin: auto;
background: #fff4e3;
border: 1px solid #e6a23c;
.dialog_text {
margin-left: 10px;
width: 450px;
height: 70px;
}
}
.dialog_body {
.dialog_body_zh {
height: 40px;
display: flex;
align-items: center;
margin: 20px 0 0 25px;
height: 40px;
.label {
width: 90px;
}
.zh {
padding-top: 3px;
}
}
.dialog_body_yzm {
height: 40px;
margin: 20px 0 0 25px;
display: flex;
align-items: center;
height: 40px;
.label {
width: 90px;
}
.input {
margin-right: 20px;
}
}
}
.zzr {
margin-left: 40px;
}
}
</style>

@ -0,0 +1,434 @@
<template>
<div>
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
<el-menu-item index="1">账号登录</el-menu-item>
<el-menu-item index="2">身份认证</el-menu-item>
</el-menu>
<div class="menu_body">
<div v-show="isShow">
<div id="accountLogin">
<div class="menu_body_text">电子税局登录</div>
<el-form ref="form" :model="form" label-width="140px" label-position="left" class="form">
<el-row>
<el-col :span="34">
<el-form-item label="电子税务局用户名">
<el-select v-model="form.name" placeholder="请选择电子税局用户名">
<el-option v-for="item in dzsjList" :key="item.id" :label="item.yhm" :value="item"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12"></el-col>
</el-row>
</el-form>
<div class="button"><el-button :loading="anewLoginBtnLoading" @click="anewLoginBtn()" type="primary">重新登录</el-button></div>
</div>
</div>
<div v-show="!isShow">
<div id="authentication">
<div class="at_title">请使用税务APP扫描下方二维码进行身份验证</div>
<div class="at_input">
<div class="at_labe">电子税局用户名</div>
<div class="select">
<el-select v-model="formQr.name" placeholder="请选择电子税局用户名">
<el-option v-for="item in dzsjList" :key="item.id" :label="item.yhm" :value="item"></el-option>
</el-select>
</div>
<div class="button"><el-button :loading="getQrCodeBtnloading" @click="getQrCodeBtn()" type="primary">获取认证二维码</el-button></div>
</div>
<div class="qrcode" ref="qrCodeUrl"></div>
<div class="qrcodetext" v-show="qrcodeShow">可将二维码图片发给认证人员进行身份认证手机端完成认证后自动同步认证结果开展后续数电业务操作</div>
</div>
</div>
</div>
<el-dialog
class="dialog"
title="短信登录"
:visible.sync="dialogVisible"
width="550px"
>
<div class="dialog_title">
<div class="dialog_img"><img src="@/assets/images/tishi.png" height="20px" width="20px"></div>
<div class="dialog_text">为了您的账号安全和信用安全请进行安全验证验证码将以短信形式发送至电子税务局绑定的手机号</div>
</div>
<div class="dialog_body">
<div class="dialog_body_zh"><div class="label">数电账号:</div><div class="zh">{{this.smsFrom.zh}}</div></div>
<div class="dialog_body_yzm">
<div class="label">验证码:</div>
<div class="input"><el-input v-model="dxyzm" placeholder="请输入验证码"></el-input></div>
<div><el-button :disabled="getyzmBtnloading" @click="getyzmBtn()" type="primary">
<span v-if="!getyzmBtnloading">获取验证码</span>
<span v-else>{{countdown}} <span> s</span></span>
</el-button></div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="yzmloginBtn()"> </el-button>
</span>
</el-dialog>
<el-dialog
title="责任人"
:visible.sync="zzrdialogVisible"
width="550px"
>
<el-form ref="form" :model="form" label-width="60px" label-position="left" align="center" class="form">
<el-row class="zzr">
<el-col :span="12">
<el-form-item label="责任人">
<el-select v-model="zzrlx" placeholder="请选择责任人">
<el-option v-for="item in zrrList" :key="item.val" :label="item.label" :value="item.val"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="zzrdialogVisible = false"> </el-button>
<el-button type="primary" @click="zzrloginBtn()"> </el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import QRCode from 'qrcodejs2'
import { getRpaQrCodeApi, postRpaAuthStatusApi, queryRpaTaxAccountApi, rpaLoginApi } from '@/api/digital/taxBureauLogin'
export default {
name:"taxBureauLogin",
data() {
return {
isShow:true,
activeIndex: '1',
activeIndex2: '1',
form:{
name:{}
},
formQr:{
name:{}
},
loginKey:{
id:'',
key:''
},
dzsjList:[],
ffm:0,
dialogVisible:false,
smsFrom:{
zh:'',
yzm:''
},
zrrList:[],
zzrdialogVisible:false,
dxyzm:'',
zzrlx:'',
qrcodeShow:false,
timer:null,
rzid:'',
anewLoginBtnLoading:false,
getyzmBtnloading:false,
getQrCodeBtnloading:false,
countdown:60,
timec: null, //
};
},
methods: {
handleSelect(key, keyPath) {
key === '1' ? this.isShow = true : this.isShow = false
},
getRpaAuthStatus(){
queryRpaTaxAccountApi().then(res => {
this.dzsjList = res.data
this.form.name = this.dzsjList[length]
});
},
anewLoginBtn(){
this.$confirm('登录操作有可能会影响到开票业务,确定要使用该账号登录电子税务局吗?', '确认', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.postLogin()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
postLogin(){
let parames = {
yhm:this.form.name.yhm,mm:this.form.name.mm,ffm:this.ffm,dxyzm:this.dxyzm,zzrlx:this.zzrlx
}
this.anewLoginBtnLoading = true;
rpaLoginApi(parames).then(({data})=>{
this.ffm = data.hxff
if(data.hxff === "0"){
this.$message({
message: '登录成功',
type: 'success'
});
this.dialogVisible = false;
}
if(data.hxff === "1"){
this.dxyzm = data.dxyzm
this.ffm = '3'
this.smsFrom.zh = this.form.name.yhm;
this.dialogVisible = true;
}
if(data.hxff === "2"){
let list = [];
for (let Key in data.personList) {
arr.push({
val:Key,
label:this.zrrList[Key]
})
this.zrrList = list
}
this.zzrdialogVisible = true;
}
}).finally(()=>{
this.anewLoginBtnLoading = false;
})
},
//
async getyzmBtn(){
if (this.getyzmBtnloading) {
return; //
}
//
this.ffm = '1'
await rpaLoginApi({yhm:this.form.name.yhm,mm:this.form.name.mm,ffm:this.ffm}).then(({data})=>{
if(data.hxff === "3"){
this.ffm = data.hxff
this.$message({
message: '验证码发送成功',
type: 'success'
});
}
})
//
this.getyzmBtnloading = true;
this.timec = setInterval(() => {
if (this.countdown > 0) {
this.countdown--;
} else {
//
this.getyzmBtnloading = false;
this.countdown = 60;
clearInterval(this.timec); //
}
}, 1000);
},
yzmloginBtn(){
if(!this.dxyzm){
this.$message({
message: '验证码不能为空',
type: 'warning'
});
}else {
this.postLogin()
}
},
//
zzrloginBtn(){
if(!this.zzrlx){
this.$message({
message: '责任人不能为空',
type: 'warning'
});
}else {
this.postLogin()
this.zzrdialogVisible = false;
}
},
//
getQrCodeBtn(){
this.getQrCodeBtnloading = true;
getRpaQrCodeApi({yhm: this.formQr.name.yhm}).then(({data})=>{
this.$refs.qrCodeUrl.innerHTML = '';
let qrcode = new QRCode(this.$refs.qrCodeUrl, {
text: data.ewm,
width: 150,
height: 150,
colorDark: '#000000',
colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.H
})
this.qrcodeShow = true
this.rzid = data.rzid
this.polling()
}).finally(()=>{
this.getQrCodeBtnloading = false;
})
},
polling(){
postRpaAuthStatusApi({rzid:this.rzid,yhm:this.formQr.name.yhm}).then(({data})=>{
window.clearInterval(this.timer);
this.timer = null
if(data.slzt === '1' ){
this.timer = window.setInterval( ()=>{ this.polling() },3000)
}
if(data.slzt === '2' ){
window.clearInterval(this.timer);
this.timer = null
this.$message({
message: '当前账号已认证通过',
type: 'success'
});
this.$nextTick(()=>{
this.$refs.qrCodeUrl.innerHTML = '';
this.qrcodeShow = false;
})
}
if(data.slzt === '3' ){
this.$message({
message: '扫码失败',
type: 'success'
});
window.clearInterval(this.timer);
this.timer = null
}
})
}
},
created() {
let searchParams = new URLSearchParams(window.location.search);
this.loginKey.id = searchParams.get('id')
this.loginKey.key = searchParams.get('key')
this.$store.commit('SET_AUTH_STATUS',this.loginKey)
},
mounted() {
if(this.loginKey.id !== '' && this.loginKey.key !== ''){
this.getRpaAuthStatus()
}
},
beforeDestroy(){
window.clearInterval(this.timer);
this.timer = null
}
}
</script>
<style scoped lang="scss">
.menu_body{
::v-deep.el-input--suffix .el-input__inner {
//height: 30px;
width: 100%;
}
width: 100%;
height: calc(75vh);
margin-top: 150px;
display: flex;
justify-content: center;
#accountLogin{
width: 400px;
height: 400px;
//background-color: #6c5656;
.menu_body_text{
text-align: center;
font-size: 20px;
font-weight: 500;
}
.form{
margin: 12% 0;
}
.button{
display: flex;
justify-content: center;
}
}
#authentication{
margin-top: -100px;
width: 500px;
height: 400px;
.at_title{
text-align: center;
}
.qrcode{
width: 100px;
height: 100px;
margin: auto;
margin-top: 40px;
}
.qrcodetext{
padding-top: 70px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666;
}
.at_input{
margin-top: 40px;
.at_labe{
line-height: 30px;
width: 120px;
}
display: flex;
height: 40px;
justify-items: center;
.select{
margin: 0 10px;
}
}
}
}
.dialog{
.dialog_title{
padding: 10px 10px 0 10px;
width: 460px;
display: flex;
margin: auto;
background: #fff4e3;
border: 1px solid #e6a23c;
.dialog_text{
margin-left: 10px;
width: 450px;
height: 70px;
}
}
.dialog_body{
.dialog_body_zh{
height: 40px;
display: flex;
align-items: center;
margin: 20px 0 0 25px;
height: 40px;
.label{
width: 90px;
}
.zh{
padding-top: 3px;
}
}
.dialog_body_yzm{
height: 40px;
margin: 20px 0 0 25px;
display: flex;
align-items: center;
height: 40px;
.label{
width: 90px;
}
.input{
margin-right: 20px;
}
}
}
.zzr{
margin-left: 40px;
}
}
</style>

@ -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: './' //到根目录下
}
}
)
}

Loading…
Cancel
Save