源文件

This commit is contained in:
gyq
2024-05-23 14:39:33 +08:00
commit a1128dd791
2997 changed files with 500069 additions and 0 deletions

View File

@@ -0,0 +1,218 @@
/***
* 公共字典参数
* @param {value} 数组 ['A','B']
* @function filterDcit 过滤 需要的 字典值
* */
export function filterDcit(value) {
if (!value) return [];
let list = dictLists.filter((v) => {
if (value.includes(v.type)) return true;
});
return list;
}
/**
* @param {val} String
* @return {list} Array
* 数组筛选字典数据 模糊查询 components文件下面dict 组件使用方法
* */
export function filterDicts(val) {
if (!val) return [];
if (val.trim() == "全部") return dictLists;
let list = dictLists.filter((v) => {
if (v.type.includes(val) || v.text.includes(val)) return true;
});
return list;
}
/***
* A 商户类型
* B 账户类型
* C 判断类型
* D 结算类型
* E 银行卡类型
* F 收款类型
* G 其他类型
* K 入账标识
* L 超管类型
* M 协议类型
* N 其他类型
* */
const dictLists = [
{
type: "A0",
value: 1,
text: "个人",
},
{
type: "A1",
value: 2,
text: "个体工商户",
},
{
type: "A2",
value: 3,
text: "企业",
},
{
type: "A3",
value: 1,
text: "小微商户",
},
{
type: "A4",
value: 6,
text: "个人卖家",
},
{
type: "A5",
value: 1,
text: "小微个人",
},
{
type: "B0",
value: "B",
text: "对公",
},
{
type: "B1",
value: "C",
text: "对私",
},
{
type: "B2",
value: "D",
text: "对私非法人",
},
{
type: "B3",
value: "1",
text: "对公",
},
{
type: "B4",
value: "2",
text: "对私",
},
{
type: "B5",
value: "3",
text: "授权人账户",
},
{
type: "C0",
value: "1",
text: "开通",
},
{
type: "C1",
value: "0",
text: "不开通",
},
{
type: "C2",
value: "1",
text: "是",
},
{
type: "C3",
value: "0",
text: "否",
},
{
type: "D0",
value: "1",
text: "自动结算T1",
},
{
type: "D1",
value: "2",
text: "手动结算",
},
{
type: "D2",
value: "3",
text: "自动结算D1",
},
{
type: "D3",
value: "4",
text: "定时结算",
},
{
type: "E0",
value: "RYX",
text: "瑞银信",
},
{
type: "E1",
value: "ZF",
text: "中付",
},
{
type: "E2",
value: "COMMONS",
text: "其他",
},
{
type: "F0",
value: "alipayAccount",
text: "支付宝账号",
},
{
type: "F1",
value: "bankCard",
text: "银行卡",
},
{
type: "G0",
value: "1",
text: "实体",
},
{
type: "G1",
value: "2",
text: "虚拟",
},
{
type: "K0",
value: "0",
text: "非法人入账",
},
{
type: "K1",
value: "1",
text: "法人入账",
},
{
type: "L0",
value: "SUPER",
text: "经办人",
},
{
type: "L1",
value: "LEGAL",
text: "经营者/法人",
},
{
type: "M0",
value: "0",
text: "电子协议",
},
{
type: "M1",
value: "1",
text: "纸质协议",
},
{
type: "N0",
value: "1",
text: "市",
},
{
type: "N1",
value: "2",
text: "区",
},
];