chenlei il y a 6 mois
Parent
commit
40d92951b8
2 fichiers modifiés avec 188 ajouts et 53 suppressions
  1. 181 53
      config/columns/carrier.js
  2. 7 0
      tools/storage.js

+ 181 - 53
config/columns/carrier.js

@@ -5,59 +5,187 @@ var getDate = () => {
 }
 
 export default {
-  carrier_account: [
-    {
-      field: 'orgName',
-      name: '物流公司名称',
-      search: { type: 'text', placeholder: '请输入 物流公司' }
-    },
-    {
-      field: 'tradeType',
-      name: '物流充值交易模式',
-      width: 80,
-      formatter: 'tradeType',
-      search: { type: 'select', obj: 'searchTradeType', placeholder: '物流充值交易模式', style: 'width:210px' }
-    },
-    {
-      field: 'p2pEnable',
-      name: '物流充值工具',
-      formatter: 'p2pEnable',
-      search: { type: 'select', obj: 'p2pEnable', placeholder: '物流充值工具' }
-    },
-    {
-      field: 'otherPay',
-      name: '其他付款启用状态',
-      width: 80,
-      stype: 'slot',
-      slot: 'otherPay',
-      search: { type: 'select', obj: 'otherPay', placeholder: '其他付款启用状态', style: 'width:210px' }
-    },
-    {
-      field: 'rechargeAmount',
-      name: '近 30 日充值(元)',
-      stype: 'slot',
-      slot: 'rechargeAmount'
-    },
-    {
-      field: 'mainAccountBalance',
-      name: '主户余额(元)'
-    },
-    {
-      field: 'truckBalance',
-      name: '车辆总余额(元)'
-    },
-    {
-      field: 'updateDate',
-      name: '更新时间',
-      stype: 'format',
-      formatFun: 'formateTData all'
-    },
-    {
-      name: '操作',
-      stype: 'opt',
-      list: [{ type: 'set', name: '设置' }, { type: 'refresh', name: '刷新' }]
-    }
-  ],
+  /** 物流审核 */
+  get page_list_unauth_carrier() {
+    return [
+      {
+        field: 'orgName',
+        name: '物流公司名称',
+        search: { type: 'text', placeholder: '请输入 公司名称' }
+
+      },
+      {
+        field: 'authStatus',
+        name: '企业认证',
+        stype: 'slot',
+        slot: 'authStatus'
+      },
+      {
+        field: 'roadTransportStatus',
+        name: '资质审核',
+        stype: 'slot',
+        slot: 'roadTransportStatus',
+        search: { type: 'select', obj: 'roadTransportStatus', placeholder: '资质审核状态' }
+      },
+      {
+        field: 'createrName',
+        name: '发起人'
+      },
+      {
+        field: 'updateDate',
+        name: '更新时间',
+        formatFun: 'formateTData all',
+        stype: 'format'
+      },
+      {
+        field: 'useropts',
+        stype: 'opt',
+        ispush: false,
+        name: '操作',
+        fixed: 'right',
+        list(args) {
+          const rv = [{ type: 'details', name: '详情' }]
+          if (args.row.roadTransportStatus === 1) {
+            rv.unshift({ type: 'review', name: '审核' })
+          }
+          return rv
+        }
+      }
+    ]
+  },
+  /** 物流公司资料 */
+  get page_list_carrier() {
+    return [
+      {
+        field: 'orgName',
+        name: '物流公司名称',
+        search: { type: 'text', placeholder: '请输入 公司名称' },
+        width: '200px'
+      },
+      {
+        field: 'status',
+        name: '物流公司启用状态',
+        stype: 'slot',
+        slot: 'status',
+        search: { type: 'select', obj: 'status', placeholder: '公司启用状态' },
+        width: '80px'
+      },
+      {
+        field: 'tradeType',
+        name: '物流充值交易模式',
+        stype: 'slot',
+        slot: 'tradeType',
+        search: { type: 'select', obj: 'tradeType', placeholder: '物流充值交易模式', style: 'width:210px' },
+        width: '80px'
+      },
+      {
+        field: 'authStatus',
+        name: '企业认证',
+        stype: 'slot',
+        slot: 'authStatus'
+      },
+      {
+        field: 'roadTransportStatus',
+        name: '资质审核',
+        stype: 'slot',
+        slot: 'roadTransportStatus'
+      },
+      {
+        field: 'contractStatus',
+        name: '合同签约',
+        stype: 'slot',
+        slot: 'contractStatus'
+      },
+      {
+        field: 'authorizeStatus',
+        name: '平台账户授权',
+        stype: 'slot',
+        slot: 'authorizeStatus'
+      },
+      {
+        field: 'accountStatus',
+        name: '平台提现公户',
+        stype: 'slot',
+        slot: 'accountStatus'
+      },
+      {
+        field: 'createrName',
+        name: '创建人',
+        width: '200px'
+      },
+      {
+        field: 'updateDate',
+        name: '更新时间',
+        formatFun: 'formateTData all',
+        stype: 'format',
+        width: '140px'
+      },
+      {
+        field: 'useropts',
+        stype: 'opt',
+        name: '操作',
+        fixed: 'right',
+        list: [{ type: 'details', name: '详情' }]
+      }
+    ]
+  },
+  /** 物流资金管理 */
+  get carrier_account() {
+    return [
+      {
+        field: 'orgName',
+        name: '物流公司名称',
+        search: { type: 'text', placeholder: '请输入 物流公司' }
+      },
+      {
+        field: 'tradeType',
+        name: '物流充值交易模式',
+        width: 80,
+        formatter: 'tradeType',
+        search: { type: 'select', obj: 'searchTradeType', placeholder: '物流充值交易模式', style: 'width:210px' }
+      },
+      {
+        field: 'p2pEnable',
+        name: '物流充值工具',
+        formatter: 'p2pEnable',
+        search: { type: 'select', obj: 'p2pEnable', placeholder: '物流充值工具' }
+      },
+      {
+        field: 'otherPay',
+        name: '其他付款启用状态',
+        width: 80,
+        stype: 'slot',
+        slot: 'otherPay',
+        search: { type: 'select', obj: 'otherPay', placeholder: '其他付款启用状态', style: 'width:210px' }
+      },
+      {
+        field: 'rechargeAmount',
+        name: '近 30 日充值(元)',
+        stype: 'slot',
+        slot: 'rechargeAmount'
+      },
+      {
+        field: 'mainAccountBalance',
+        name: '主户余额(元)'
+      },
+      {
+        field: 'truckBalance',
+        name: '车辆总余额(元)'
+      },
+      {
+        field: 'updateDate',
+        name: '更新时间',
+        stype: 'format',
+        formatFun: 'formateTData all'
+      },
+      {
+        name: '操作',
+        stype: 'opt',
+        list: [{ type: 'set', name: '设置' }, { type: 'refresh', name: '刷新' }]
+      }
+    ]
+  },
+  /** 物流资金管理 · 物流充值记录 */
   get recharge_log() {
     return [
       { field: 'createDate', hide: true, search: { type: 'date-picker', model: '', value: getDate(), dtime: ['00:00:00', '23:59:59'], findField: 'createDate', clearable: false } },

+ 7 - 0
tools/storage.js

@@ -9,6 +9,10 @@ export function removeLocalStorage(key) {
 export function getLocalStorage(key) {
   return localStorage.getItem(key)
 }
+export function clearLocalStorage() {
+  return localStorage.clear()
+}
+
 export function setSessionStorage(key, token) {
   return sessionStorage.setItem(key, token)
 }
@@ -20,3 +24,6 @@ export function removeSessionStorage(key) {
 export function getSessionStorage(key) {
   return sessionStorage.getItem(key)
 }
+export function clearSessionStorage() {
+  return sessionStorage.clear()
+}