@infly/libs 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +5 -0
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/bin/cli.js +30 -0
- package/build/build-dist/index.js +644 -0
- package/build/build-dist/zip.js +57 -0
- package/build/webpack5/inline-runtime-plugin.js +35 -0
- package/build/webpack5/webpack.base.js +227 -0
- package/dataInit/commonTypeMap.js +31 -0
- package/dataInit/marketingActivitiesMap.js +214 -0
- package/dataInit/orderMap.js +13 -0
- package/dataInit/personalMap.js +19 -0
- package/dataInit/settlementMap.js +17 -0
- package/index.js +13 -0
- package/lib/index.js +6 -0
- package/lib/server/connect.js +3011 -0
- package/lib/server/serve-static.js +4848 -0
- package/module/Permission.js +138 -0
- package/module/REST.js +97 -0
- package/module/TokenService.js +127 -0
- package/module/Uts.js +7222 -0
- package/package.json +88 -0
- package/script/git-automation/check-packages.js +44 -0
- package/script/git-automation/git-clone.js +69 -0
- package/script/git-automation/git-submodule.js +17 -0
- package/script/git-automation/index.js +488 -0
- package/script/index.js +26 -0
- package/script/webhook/webhook.js +60 -0
- package/store/index.js +0 -0
- package/store/modules/user.js +166 -0
- package/tools/file-export.js +142 -0
- package/tools/file-process.js +49 -0
- package/tools/format.js +31 -0
- package/tools/project-preview.js +135 -0
- package/types/unused.index.d.ts +71 -0
- package/webpack.config.js +38 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// build/InlineRuntimePlugin.js
|
|
2
|
+
class InlineRuntimePlugin {
|
|
3
|
+
apply(compiler) {
|
|
4
|
+
compiler.hooks.compilation.tap("InlineRuntimePlugin", (compilation) => {
|
|
5
|
+
const HtmlWebpackPlugin = compiler.options.plugins.find(
|
|
6
|
+
(plugin) => plugin.constructor && plugin.constructor.name === "HtmlWebpackPlugin"
|
|
7
|
+
)?.constructor;
|
|
8
|
+
|
|
9
|
+
if (!HtmlWebpackPlugin) return;
|
|
10
|
+
|
|
11
|
+
HtmlWebpackPlugin.getHooks(compilation).alterAssetTagGroups.tap("InlineRuntimePlugin", (assets) => {
|
|
12
|
+
assets.headTags = this.inlineRuntime(assets.headTags, compilation.assets);
|
|
13
|
+
assets.bodyTags = this.inlineRuntime(assets.bodyTags, compilation.assets);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
inlineRuntime(tags, assets) {
|
|
19
|
+
return tags.map((tag) => {
|
|
20
|
+
if (tag.tagName === "script" && tag.attributes?.src && /runtime\..*\.js$/.test(tag.attributes.src)) {
|
|
21
|
+
const filename = tag.attributes.src.replace(/^\//, "");
|
|
22
|
+
if (assets[filename]) {
|
|
23
|
+
return {
|
|
24
|
+
tagName: "script",
|
|
25
|
+
innerHTML: assets[filename].source(),
|
|
26
|
+
closeTag: true
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return tag;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = InlineRuntimePlugin;
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const InlineRuntimePlugin = require("./inline-runtime-plugin");
|
|
5
|
+
|
|
6
|
+
// 环境变量与常量配置
|
|
7
|
+
const ENV = {
|
|
8
|
+
IS_PROD: ["production", "staging"].includes(process.env.NODE_ENV)
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 解析项目路径(兼容monorepo)
|
|
13
|
+
* @param {string} dir 相对路径
|
|
14
|
+
* @returns {string} 绝对路径
|
|
15
|
+
*/
|
|
16
|
+
function resolve(dir) {
|
|
17
|
+
return path.join(process.cwd(), dir);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Node.js polyfill
|
|
22
|
+
*/
|
|
23
|
+
function createNodePolyfills() {
|
|
24
|
+
return {
|
|
25
|
+
path: require.resolve("path-browserify")
|
|
26
|
+
// 需要时可添加更多 polyfill
|
|
27
|
+
// fs: false,
|
|
28
|
+
// stream: require.resolve('stream-browserify'),
|
|
29
|
+
// crypto: require.resolve('crypto-browserify')
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* CSS/SCSS配置
|
|
35
|
+
*/
|
|
36
|
+
function cssModule({ additionalData }) {
|
|
37
|
+
return {
|
|
38
|
+
loaderOptions: {
|
|
39
|
+
sass: {
|
|
40
|
+
implementation: require("sass"),
|
|
41
|
+
sassOptions: {
|
|
42
|
+
api: "modern",
|
|
43
|
+
quietDeps: true,
|
|
44
|
+
silenceDeprecations: ["legacy-js-api", "function-units"]
|
|
45
|
+
},
|
|
46
|
+
additionalData
|
|
47
|
+
},
|
|
48
|
+
css: {
|
|
49
|
+
esModule: true,
|
|
50
|
+
modules: {
|
|
51
|
+
auto: true,
|
|
52
|
+
localIdentName: "[name]_[local]_[hash:base64:5]"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
extract: ENV.IS_PROD ? { ignoreOrder: true } : false
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 基础 configureWebpack 配置
|
|
62
|
+
*/
|
|
63
|
+
function configureWebpack({ name }) {
|
|
64
|
+
return {
|
|
65
|
+
name,
|
|
66
|
+
resolve: {
|
|
67
|
+
alias: {
|
|
68
|
+
vue$: "vue/dist/vue.esm.js",
|
|
69
|
+
"@": resolve("src"),
|
|
70
|
+
"@postal-benefits-platform": resolve("../postal-benefits-platform/src"),
|
|
71
|
+
},
|
|
72
|
+
fallback: createNodePolyfills()
|
|
73
|
+
},
|
|
74
|
+
target: ["web", "es5"],
|
|
75
|
+
output: {
|
|
76
|
+
environment: {
|
|
77
|
+
arrowFunction: false,
|
|
78
|
+
bigIntLiteral: false,
|
|
79
|
+
const: false,
|
|
80
|
+
destructuring: false,
|
|
81
|
+
dynamicImport: false,
|
|
82
|
+
forOf: false,
|
|
83
|
+
module: false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
performance: { hints: false },
|
|
87
|
+
ignoreWarnings: [{ module: /sass-loader/ }]
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* chainWebpack配置
|
|
93
|
+
*/
|
|
94
|
+
function chainWebpack(config) {
|
|
95
|
+
config.plugins.delete("preload");
|
|
96
|
+
config.plugins.delete("prefetch");
|
|
97
|
+
|
|
98
|
+
// 注册 runtime 内联插件
|
|
99
|
+
config.plugin("inline-runtime").use(InlineRuntimePlugin)
|
|
100
|
+
|
|
101
|
+
// SVG图标
|
|
102
|
+
config.module.rule("svg").exclude.add(resolve("src/icons")).end();
|
|
103
|
+
config.module
|
|
104
|
+
.rule("icons")
|
|
105
|
+
.test(/\.svg$/)
|
|
106
|
+
.include.add(resolve("src/icons"))
|
|
107
|
+
.end()
|
|
108
|
+
.use("svg-sprite-loader")
|
|
109
|
+
.loader("svg-sprite-loader")
|
|
110
|
+
.options({ symbolId: "icon-[name]" })
|
|
111
|
+
.end();
|
|
112
|
+
|
|
113
|
+
// Vue Loader
|
|
114
|
+
config.module
|
|
115
|
+
.rule("vue")
|
|
116
|
+
.use("vue-loader")
|
|
117
|
+
.loader("vue-loader")
|
|
118
|
+
.tap((options) => ({
|
|
119
|
+
...options,
|
|
120
|
+
compilerOptions: {
|
|
121
|
+
...(options.compilerOptions || {}),
|
|
122
|
+
preserveWhitespace: true,
|
|
123
|
+
whitespace: "preserve"
|
|
124
|
+
}
|
|
125
|
+
}))
|
|
126
|
+
.end();
|
|
127
|
+
|
|
128
|
+
// 图片资源
|
|
129
|
+
config.module
|
|
130
|
+
.rule("images")
|
|
131
|
+
.test(/\.(png|jpe?g|gif|webp)$/i)
|
|
132
|
+
.set("type", "asset")
|
|
133
|
+
.set("parser", { dataUrlCondition: { maxSize: 4 * 1024 } });
|
|
134
|
+
|
|
135
|
+
// SVG资源(非图标)
|
|
136
|
+
config.module
|
|
137
|
+
.rule("svg-assets")
|
|
138
|
+
.test(/\.(svg)$/i)
|
|
139
|
+
.exclude.add(resolve("src/icons"))
|
|
140
|
+
.end()
|
|
141
|
+
.set("type", "asset/resource");
|
|
142
|
+
|
|
143
|
+
// 媒体资源
|
|
144
|
+
config.module
|
|
145
|
+
.rule("media")
|
|
146
|
+
.test(/\.(mp4|webm|ogg|mp3|wav|flac|aac)$/i)
|
|
147
|
+
.set("type", "asset")
|
|
148
|
+
.set("parser", { dataUrlCondition: { maxSize: 4 * 1024 } });
|
|
149
|
+
|
|
150
|
+
// 字体资源
|
|
151
|
+
config.module
|
|
152
|
+
.rule("fonts")
|
|
153
|
+
.test(/\.(woff2?|eot|ttf|otf)$/i)
|
|
154
|
+
.set("type", "asset/resource");
|
|
155
|
+
|
|
156
|
+
// 生产环境优化
|
|
157
|
+
if (ENV.IS_PROD) {
|
|
158
|
+
config.plugin("html").tap((args) => {
|
|
159
|
+
const options = args[0] || {};
|
|
160
|
+
const now = new Date();
|
|
161
|
+
return [
|
|
162
|
+
{
|
|
163
|
+
...options,
|
|
164
|
+
scriptLoading: "blocking",
|
|
165
|
+
inject: true,
|
|
166
|
+
buildTimestamp: now.toLocaleString(),
|
|
167
|
+
buildVersion: process.env.npm_package_version || "1.0.0",
|
|
168
|
+
buildEnv: process.env.NODE_ENV
|
|
169
|
+
}
|
|
170
|
+
];
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
config.optimization.splitChunks({
|
|
174
|
+
chunks: "all",
|
|
175
|
+
minSize: 20000,
|
|
176
|
+
minChunks: 1,
|
|
177
|
+
maxAsyncRequests: 30,
|
|
178
|
+
maxInitialRequests: 30,
|
|
179
|
+
enforceSizeThreshold: 50000,
|
|
180
|
+
cacheGroups: {
|
|
181
|
+
libs: {
|
|
182
|
+
name: "chunk-libs",
|
|
183
|
+
test: /[\\/]node_modules[\\/]/,
|
|
184
|
+
priority: 10,
|
|
185
|
+
chunks: "initial"
|
|
186
|
+
},
|
|
187
|
+
elementUI: {
|
|
188
|
+
name: "chunk-elementUI",
|
|
189
|
+
priority: 20,
|
|
190
|
+
test: /[\\/]node_modules[\\/]_?element-ui(.*)/
|
|
191
|
+
},
|
|
192
|
+
commons: {
|
|
193
|
+
name: "chunk-commons",
|
|
194
|
+
test: resolve("src/components"),
|
|
195
|
+
minChunks: 3,
|
|
196
|
+
priority: 5,
|
|
197
|
+
reuseExistingChunk: true
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
config.optimization.runtimeChunk("single");
|
|
203
|
+
|
|
204
|
+
config.optimization.minimizer("terser").tap((args) => {
|
|
205
|
+
const options = args[0] || {};
|
|
206
|
+
const terserOptions = options.terserOptions || {};
|
|
207
|
+
options.terserOptions = {
|
|
208
|
+
...terserOptions,
|
|
209
|
+
compress: {
|
|
210
|
+
...(terserOptions.compress || {}),
|
|
211
|
+
drop_console: true,
|
|
212
|
+
drop_debugger: true,
|
|
213
|
+
pure_funcs: ["console.log"]
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
return [options];
|
|
217
|
+
});
|
|
218
|
+
} else {
|
|
219
|
+
config.devtool("eval-cheap-module-source-map");
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
module.exports = {
|
|
224
|
+
cssModule,
|
|
225
|
+
configureWebpack,
|
|
226
|
+
chainWebpack
|
|
227
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
roleList: [
|
|
3
|
+
{ name: "超级管理员", value: 1 },
|
|
4
|
+
{ name: "机构管理员", value: 2 },
|
|
5
|
+
{ name: "客户经理", value: 3 },
|
|
6
|
+
{ name: "其他员工", value: 4 }
|
|
7
|
+
],
|
|
8
|
+
// 是否显示
|
|
9
|
+
displayList: [{ name: "否", value: 2 }, { name: "是", value: 1 }],
|
|
10
|
+
yesNoOptions: [{ name: "是", value: true }, { name: "否", value: false }],
|
|
11
|
+
platformList: [
|
|
12
|
+
{ label: "邮惠权益后台(运营端)", name: "default" },
|
|
13
|
+
{ label: "邮惠权益后台(机构端)", name: "level" }
|
|
14
|
+
],
|
|
15
|
+
miniProgramList: [
|
|
16
|
+
{ label: "邮乐享商圈", name: "xx_wx_wyh_shangquan", value: "xx_wx_wyh_shangquan" },
|
|
17
|
+
{ label: "微邮惠助手", name: "xx_fn_huili", value: "xx_fn_huili" },
|
|
18
|
+
{ label: "微邮惠商家", name: "xx_yf_merchant", value: "xx_yf_merchant" },
|
|
19
|
+
{ label: "邮惠权益", name: "xx_wx_yh_quanyi", value: "xx_wx_yh_quanyi" }
|
|
20
|
+
],
|
|
21
|
+
weekDateOptions: [
|
|
22
|
+
{ name: "周一", value: 0 },
|
|
23
|
+
{ name: "周二", value: 1 },
|
|
24
|
+
{ name: "周三", value: 2 },
|
|
25
|
+
{ name: "周四", value: 3 },
|
|
26
|
+
{ name: "周五", value: 4 },
|
|
27
|
+
{ name: "周六", value: 5 },
|
|
28
|
+
{ name: "周日", value: 6 }
|
|
29
|
+
],
|
|
30
|
+
dateTypeOptions: [{ name: "周期循环", value: 1 }, { name: "指定日期", value: 2 }]
|
|
31
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// 营销活动公共完整枚举
|
|
2
|
+
const completeMaps = {
|
|
3
|
+
voucherStatusList: [
|
|
4
|
+
{ name: "待领取", value: 1 },
|
|
5
|
+
{ name: "已领取", value: 2 },
|
|
6
|
+
{ name: "领取失败", value: 3 },
|
|
7
|
+
{ name: "已撤销", value: 4 },
|
|
8
|
+
{ name: "领取中", value: 5 },
|
|
9
|
+
{ name: "打款中", value: 6 }
|
|
10
|
+
]
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const marketingActivitiesMap = {
|
|
14
|
+
couponTypes: [
|
|
15
|
+
{ name: "银行卡支付立减", value: 1 },
|
|
16
|
+
{ name: "支付宝满减券", value: 2 },
|
|
17
|
+
{ name: "首绑有礼", value: 3 },
|
|
18
|
+
{ name: "多刷有礼", value: 4 },
|
|
19
|
+
{ name: "饿了么场景营销", value: 5 },
|
|
20
|
+
{ name: "商品抵扣券", value: 6 },
|
|
21
|
+
{ name: "免充值券", value: 7 },
|
|
22
|
+
{ name: "微信满减券", value: 8, coupon_channel: 2 },
|
|
23
|
+
{ name: "商家满减券", value: 9 },
|
|
24
|
+
{ name: "美团满减券", value: 10 },
|
|
25
|
+
{ name: "支付宝营销抽奖", value: 11 },
|
|
26
|
+
{ name: "微信多笔定额立减", value: 12, coupon_channel: 2 },
|
|
27
|
+
{ name: "微信多笔随机立减", value: 13, coupon_channel: 2 }
|
|
28
|
+
], // 优惠券类型
|
|
29
|
+
activeStatus: [
|
|
30
|
+
{ name: "未开始", value: 3, tagType: "info" },
|
|
31
|
+
{ name: "进行中", value: 1, tagType: "blue" },
|
|
32
|
+
{ name: "已暂停", value: 4, tagType: "warning" },
|
|
33
|
+
{ name: "已结束", value: 2, tagType: "danger" }
|
|
34
|
+
], // 活动状态
|
|
35
|
+
couponChannel: [
|
|
36
|
+
{ name: "支付宝代金券", value: 1 },
|
|
37
|
+
{ name: "微信代金券", value: 2 },
|
|
38
|
+
{ name: "商家券", value: 3 },
|
|
39
|
+
{ name: "美团代金券", value: 5 }
|
|
40
|
+
], // 优惠券渠道
|
|
41
|
+
couponWays: [
|
|
42
|
+
{ name: "员工派券(固定)", value: 1, tagType: "success" },
|
|
43
|
+
{ name: "公开派券", value: 2, tagType: "blue" },
|
|
44
|
+
{ name: "限时活动", value: 3, tagType: "danger" },
|
|
45
|
+
{ name: "员工派券(共享)", value: 4, tagType: "warning" },
|
|
46
|
+
{ name: "API派券", value: 5, tagType: "yzGreen" },
|
|
47
|
+
{ name: "定制活动", value: 6, tagType: "primary" },
|
|
48
|
+
{ name: "公开派券(多码)", value: 7, tagType: "yzLevel" },
|
|
49
|
+
{ name: "公开派券(手机银行)", value: 8, tagType: "phoneBank" },
|
|
50
|
+
{ name: "定额立减", value: 9, tagType: "purple" },
|
|
51
|
+
{ name: "随机立减", value: 10, tagType: "darkBlue" }
|
|
52
|
+
], // 派发方式
|
|
53
|
+
distributionTypes: [
|
|
54
|
+
{ name: "微信满减券", value: 8 }, // 微信满减券
|
|
55
|
+
{ name: "微信多笔定额立减", value: 12 }, // 微信定额立减
|
|
56
|
+
{ name: "微信多笔随机立减", value: 13 } // 微信随机立减
|
|
57
|
+
], // 派发形式 (本质上其实还是优惠券类型)
|
|
58
|
+
voucherStatusList: [
|
|
59
|
+
{
|
|
60
|
+
name: "待领取",
|
|
61
|
+
value: 0,
|
|
62
|
+
coupon_type: [],
|
|
63
|
+
displayPage: ["wx_cou_get_detail"]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "待核销",
|
|
67
|
+
value: 1,
|
|
68
|
+
coupon_type: [],
|
|
69
|
+
displayPage: ["wx_cou_get_detail"]
|
|
70
|
+
},
|
|
71
|
+
{ name: "不可用", value: 2, coupon_type: [] },
|
|
72
|
+
{ name: "已删除", value: 3, coupon_type: [] },
|
|
73
|
+
{ name: "发送中", value: 4, coupon_type: [] },
|
|
74
|
+
{ name: "已转赠", value: 5, coupon_type: [] },
|
|
75
|
+
{ name: "未领取", value: 6, coupon_type: [] },
|
|
76
|
+
{
|
|
77
|
+
name: "已核销",
|
|
78
|
+
value: 7,
|
|
79
|
+
coupon_type: [],
|
|
80
|
+
displayPage: ["wx_cou_get_detail"]
|
|
81
|
+
},
|
|
82
|
+
{ name: "使用中", value: 8, coupon_type: [] },
|
|
83
|
+
{ name: "已退款", value: 9, coupon_type: [] },
|
|
84
|
+
{ name: "退款中", value: 10, coupon_type: [] },
|
|
85
|
+
{ name: "未激活", value: 11, coupon_type: [] },
|
|
86
|
+
{ name: "已过期", value: 12, coupon_type: [] },
|
|
87
|
+
{ name: "已撤销", value: 13, coupon_type: [] },
|
|
88
|
+
{
|
|
89
|
+
name: "领取失败",
|
|
90
|
+
value: 14,
|
|
91
|
+
coupon_type: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "待报名",
|
|
95
|
+
value: 15,
|
|
96
|
+
coupon_type: [12, 13],
|
|
97
|
+
displayPage: ["wx_cou_get_detail"]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "待使用",
|
|
101
|
+
value: 16,
|
|
102
|
+
coupon_type: [12, 13],
|
|
103
|
+
displayPage: ["wx_cou_get_detail"]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "已使用",
|
|
107
|
+
value: 17,
|
|
108
|
+
coupon_type: [12, 13],
|
|
109
|
+
displayPage: ["wx_cou_get_detail"]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "已过期",
|
|
113
|
+
value: 18,
|
|
114
|
+
coupon_type: [12, 13],
|
|
115
|
+
displayPage: ["wx_cou_get_detail"]
|
|
116
|
+
},
|
|
117
|
+
// { name: "未知状态", value: 19, coupon_type: [12, 13] }, // 暂时用不上
|
|
118
|
+
{ name: "报名失败", value: 20, coupon_type: [12, 13] }
|
|
119
|
+
], // 代金券状态
|
|
120
|
+
// 商户达标抽奖
|
|
121
|
+
merchantEightDraw: {
|
|
122
|
+
activityTypeList: [
|
|
123
|
+
{ name: "商户节", value: 1 },
|
|
124
|
+
{ name: "碰一下", value: 2 },
|
|
125
|
+
{ name: "交易攒福礼", value: 3 },
|
|
126
|
+
{ name: "认证达标", value: 4 },
|
|
127
|
+
{ name: "邮付单王赛活动", value: 5 }
|
|
128
|
+
], // 活动类型
|
|
129
|
+
activeStatusList: [
|
|
130
|
+
{ name: "未开始", value: 1 },
|
|
131
|
+
{ name: "进行中", value: 2 },
|
|
132
|
+
{ name: "已结束", value: "3,4" } // 旧项目复制粘贴了已暂停状态,其实没有,兼容处理整合为一个选项
|
|
133
|
+
], // 活动状态
|
|
134
|
+
claimStatusList: [
|
|
135
|
+
{ name: "待领取", value: 1 },
|
|
136
|
+
{ name: "已领取", value: 2 },
|
|
137
|
+
{ name: "领取失败", value: 3 },
|
|
138
|
+
{ name: "领取中", value: 5 }
|
|
139
|
+
] // 领取状态
|
|
140
|
+
},
|
|
141
|
+
// 微邮惠礼包
|
|
142
|
+
wxGiftBags: {
|
|
143
|
+
voucherStatusList: completeMaps.voucherStatusList,
|
|
144
|
+
levelVoucherStatusList: completeMaps.voucherStatusList.filter(item => item.value !== 5),
|
|
145
|
+
customerVerifyStatusList: [
|
|
146
|
+
{ name: "命中", value: 1 },
|
|
147
|
+
{ name: "未命中", value: 0 },
|
|
148
|
+
{ name: "验证失败", value: 2 }
|
|
149
|
+
],
|
|
150
|
+
customerVerifyTypeList: [{ name: "资格验证", value: 1 }, { name: "黑名单验证", value: 2 }],
|
|
151
|
+
activityRuleList: [
|
|
152
|
+
{ name: "自定义面额", value: 1, tagType: "success" },
|
|
153
|
+
{ name: "指定面额", value: 2, tagType: "blue" },
|
|
154
|
+
{ name: "随机面额", value: 3, tagType: "danger" },
|
|
155
|
+
{ name: "自定义面额(共享)", value: 4, tagType: "warning" },
|
|
156
|
+
{ name: "指定面额(共享)", value: 5, tagType: "info" },
|
|
157
|
+
{ name: "随机面额(共享)", value: 6, tagType: "yzGreen" },
|
|
158
|
+
{ name: "定制活动", value: 7, tagType: "primary" },
|
|
159
|
+
{ name: "API派发", value: 8, tagType: "yzLevel" }
|
|
160
|
+
],
|
|
161
|
+
activityStatusList: [
|
|
162
|
+
{ name: "未开始", value: 1, tagType: "info" },
|
|
163
|
+
{ name: "进行中", value: 2, tagType: "blue" },
|
|
164
|
+
{ name: "已暂停", value: 3, tagType: "warning" },
|
|
165
|
+
{ name: "已结束", value: 4, tagType: "danger" }
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
// 广告管理
|
|
169
|
+
advertisement: {
|
|
170
|
+
publishStatusList: [
|
|
171
|
+
{ name: "已上架", value: 1, tagType: "success" },
|
|
172
|
+
{ name: "已下架", value: 0, tagType: "info" }
|
|
173
|
+
],
|
|
174
|
+
publishOptList: [{ name: "上架", value: 1 }, { name: "下架", value: 0 }],
|
|
175
|
+
placementStatusList: [
|
|
176
|
+
{ name: "未开始", value: "not_started", tagType: "info" },
|
|
177
|
+
{ name: "投放中", value: "running", tagType: "blue" },
|
|
178
|
+
{ name: "已暂停", value: "paused", tagType: "info" },
|
|
179
|
+
{ name: "已结束", value: "ended", tagType: "danger" }
|
|
180
|
+
],
|
|
181
|
+
placementOptList: [{ name: "投放", value: "running" }, { name: "暂停", value: "paused" }],
|
|
182
|
+
jumpTypeList: [
|
|
183
|
+
{ name: "不跳转", value: "none" },
|
|
184
|
+
{ name: "内部页面", value: "internal" },
|
|
185
|
+
{ name: "外部H5", value: "h5" },
|
|
186
|
+
{ name: "第三方小程序", value: "miniprogram" }
|
|
187
|
+
] // 跳转类型
|
|
188
|
+
},
|
|
189
|
+
dataBoard: {
|
|
190
|
+
/** RECHARGE_SOURCE=(
|
|
191
|
+
(1,'微邮惠余额'),
|
|
192
|
+
(2,'账期'),
|
|
193
|
+
(3,'留单库存'),
|
|
194
|
+
(4,'现金'),
|
|
195
|
+
(5,'朋友圈返货'),
|
|
196
|
+
(6,'微邮惠库存'),
|
|
197
|
+
(7,'鼓励金'),
|
|
198
|
+
(8,'支付宝库存'),
|
|
199
|
+
(9,'红包库存呢'),
|
|
200
|
+
(10,'支付宝返佣'),
|
|
201
|
+
(11,'京东余额'),
|
|
202
|
+
(12,'美团余额'),*/
|
|
203
|
+
rechargeSourceList: [
|
|
204
|
+
{ name: "账期", value: "2" },
|
|
205
|
+
{ name: "微邮惠库存", value: "6" },
|
|
206
|
+
{ name: "留单库存", value: "3" },
|
|
207
|
+
{ name: "账期组合", value: "1,2,4,5,7,8,9,10,11,12" },
|
|
208
|
+
{ name: "微邮惠库存组合", value: "1,4,5,6,7,8,9,10,11,12" },
|
|
209
|
+
{ name: "留单库存组合", value: "1,3,4,5,7,8,9,10,11,12" }
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export default marketingActivitiesMap;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const orderMap = {
|
|
2
|
+
relayOrder: {
|
|
3
|
+
relayStatusOptions: [
|
|
4
|
+
{ name: "已接龙", value: 1, tagType: "blue" },
|
|
5
|
+
{ name: "已完成", value: 2, tagType: "success" },
|
|
6
|
+
{ name: "已过期", value: 3, tagType: "info" },
|
|
7
|
+
{ name: "已取消", value: 4, tagType: "danger" }
|
|
8
|
+
],
|
|
9
|
+
relayOptList: [{ name: "标记完成", value: 1 }, { name: "取消接龙", value: 2 }]
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default orderMap;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// 客户经理
|
|
3
|
+
accountManager: {
|
|
4
|
+
//在离岗状态
|
|
5
|
+
inServiceStatus: [{ name: "离岗", value: 0 }, { name: "在岗", value: 1 }, { name: "离职", value: 2 }],
|
|
6
|
+
//签名提交状态
|
|
7
|
+
signStatus: [{ name: "已提交", value: 1 }, { name: "未提交", value: 0 }],
|
|
8
|
+
authStatusList: [
|
|
9
|
+
{ name: "未认证", value: 1, tagType: "error" },
|
|
10
|
+
{ name: "已认证", value: 2, tagType: "success" },
|
|
11
|
+
{
|
|
12
|
+
name: "信息缺失",
|
|
13
|
+
value: 3,
|
|
14
|
+
tagType: "warning"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
authOptTypeList: [{ name: "用户认证", value: 1 }, { name: "后台修改", value: 2 }]
|
|
18
|
+
}
|
|
19
|
+
};
|
package/index.js
ADDED