chenlei 7 tháng trước cách đây
mục cha
commit
e3599c96f7
5 tập tin đã thay đổi với 42 bổ sung51 xóa
  1. 32 0
      config/interfaces/index.js
  2. 2 0
      style/variables.scss
  3. 0 51
      tools.js
  4. 5 0
      tools/index.js
  5. 3 0
      tools/init.js

+ 32 - 0
config/interfaces/index.js

@@ -27,6 +27,38 @@ export default {
     /** 导入用户 */
     import_user: {
       realUrl: 'user/import/import_user'
+    },
+    /** 获取物流公司的所有信息(包含基本信息,认证信息,授权信息等) */
+    get_carrier_info: {
+      realUrl: 'user/org/get_carrier_info'
+    },
+    /** 道路运输许可证发起认证 */
+    road_transport_up: {
+      realUrl: 'user/org_pic/road_transport_up'
+    },
+    /** 物流开票补充信息保存 */
+    carrier_fp_save: {
+      realUrl: 'user/org/carrier_fp_save'
+    },
+    /** 根据关键字获取银行列表 */
+    list_by_keywords: {
+      realUrl: 'user/bank/list_by_keywords'
+    }
+
+
+  },
+  /** 消息中心 */
+  message: {
+    /** OCR识别信息 */
+    orc: {
+      realUrl: 'message/ocr/orc'
+    }
+  },
+  /** 支付中心 */
+  pay: {
+    /** 物流认证通联(会员创建+开户认证+营业执照和法人身份证上传) */
+    carrier_open_account: {
+      realUrl: 'pay/member/carrier_open_account'
     }
 
   }

+ 2 - 0
style/variables.scss

@@ -33,7 +33,9 @@ $p-spacd4: 3px;
 $p-spacm2: 24px;
 // 价格颜色
 $p-price-color: #ec808d; //#f46d00;
+$label-color: #606266;
 $gray-color: #868b9a;
+
 $disabled: #ccc;
 // 边框颜色
 $border-color: #ccc;

+ 0 - 51
tools.js

@@ -1,51 +0,0 @@
-import store from '@/store'
-
-// 请求头文件
-export function axiosRequestParams(_this) {
-  return {
-    timeout: 20000,
-    baseURL: process.env.VUE_APP_BASE_URL,
-    headers: {
-      Authorization: 'Bearer ' + store.getters.woptoken,
-      Identifier: store.getters.wopidntf
-    }
-  }
-}
-// 自定义按钮
-export function custFormBtnList(type = 3) {
-  const bottonList = {
-    iShow: true,
-    list: []
-  }
-  const btnList = []
-
-  if ((type & 1) == 1) {
-    btnList.push({ bType: 'info', icon: 'el-icon-close', type: 'cancel', label: '取消' })
-  }
-
-  if ((type & 2) == 2) {
-    btnList.push({ bType: 'primary', icon: 'el-icon-check', type: 'ok', label: '确认' })
-  }
-
-  bottonList.list = btnList
-
-  return bottonList
-}
-// form表单按钮 type:5 使用默认保存功能
-export function custFormBtnListNew(type = 4) {
-  const rv = custFormBtnList()
-  if (type === 4) {
-    rv.list[0].type = 'close'
-    rv.list[1].type = 'submit'
-  }
-  return rv
-}
-/** 装饰数据行,装饰后可使用nt-from表单默认保存功能 */
-export function decorateSaveRow(row, ext) {
-  row._btn = custFormBtnListNew(4)
-  row._axios = axiosRequestParams()
-  row._url = ext.url
-  row._method = 'post'
-  row._oldData = Object.assign({}, row)
-  return row
-}

+ 5 - 0
tools/index.js

@@ -0,0 +1,5 @@
+export default {
+  getFullFileUrl(url) {
+    return process.env.VUE_APP_FILE_URL + url
+  }
+}

+ 3 - 0
tools/init.js

@@ -0,0 +1,3 @@
+import Vue from 'vue'
+import tools from './index'
+Vue.prototype.$tools = tools