Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
aiot-develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b1f5317f
authored
Jan 04, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
时间控件
1 parent
9a553594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
98 deletions
src/common/constants.js
src/common/constants.js
View file @
b1f5317
...
@@ -2,111 +2,14 @@
...
@@ -2,111 +2,14 @@
* @Author: limin
* @Author: limin
* @Date: 2019-09-01 19:06:01
* @Date: 2019-09-01 19:06:01
* @Last Modified by: chenwq
* @Last Modified by: chenwq
* @Last Modified time: 202
0-11-19 11:14:42
* @Last Modified time: 202
1-01-04 12:07:27
*/
*/
// import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account'
// import { BASE_DATA_URL } from '@/api/sys.base'
export
const
TYPE_NAME
=
'confType'
/**
* 后台提供一个接 通过类型获取对应数据
* 此处定义类型
*/
// export const ConfigType = {
// STATION: 'STATION_TYPE',
// POST: 'POST_TYPE',
// SUBSYS: 'SUBSYSTEM_TYPE'
// }
/**
* 前端基础数据管理对应的接口名称的key
*/
export
const
BaseData
=
{
channelType
:
'channelType'
,
productType
:
'productType'
}
/**
* 注册类型
*/
export
const
RegistType
=
{
BY_SELF
:
'1'
,
// 自注册
BY_ADMIN
:
'2'
// 管理员创建
}
/**
* 前端免登录验证接口名
*/
// export const LogExternals = [
// 'fims.user.login', // 登录
// 'fims.user.register', // 注册
// 'fims.configuration.from.conftype', // 基础数据
// 'fims.role.list' // 角色列表
// ]
/**
* 登录来源
*/
// export const LOGIN_TYPE = 1 // 1pc,2小程序
/**
/**
* 超级管理员类型
* 超级管理员类型
*/
*/
export
const
SUPPER_ADMIN
=
1
//
export
const
SUPPER_ADMIN
=
1
//
/**
* 职务置灰选项
*/
// export const POST_DISABLED = ['2001', '2002', '2003'] // 总经理 仓库 部门经理
// 商户类型 - 除广汇外
export
const
userType
=
{
1
:
'员工'
,
2
:
'门店'
,
3
:
'市代'
,
4
:
'省代'
,
5
:
'工厂'
}
// 商户类型 - 广汇
export
const
ghUserType
=
{
1
:
'员工'
,
2
:
'门店'
,
3
:
'片区'
,
4
:
'大区'
,
5
:
'总部'
,
6
:
'供应商'
}
// 品牌商
export
const
brandMerchantList
=
[{
confId
:
'1'
,
confValue
:
'3M/福膜'
},
{
confId
:
'2'
,
confValue
:
'强生/福膜'
},
{
confId
:
'3'
,
confValue
:
'强生/斯帝飞'
},
{
confId
:
'4'
,
confValue
:
'3M/斯帝飞'
},
{
confId
:
'5'
,
confValue
:
'3M/今蓝'
},
{
confId
:
'6'
,
confValue
:
'量子/今蓝'
},
{
confId
:
'7'
,
confValue
:
'强生'
},
{
confId
:
'8'
,
confValue
:
'今蓝'
},
{
confId
:
'9'
,
confValue
:
'琥珀'
},
{
confId
:
'10'
,
confValue
:
'嘀嘀虎'
}]
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
export
function
limitPrice
(
newValue
,
oldValue
,
intergerDigit
,
pointDigit
,
minValue
,
maxValue
,
regRule
)
{
export
function
limitPrice
(
newValue
,
oldValue
,
intergerDigit
,
pointDigit
,
minValue
,
maxValue
,
regRule
)
{
var
reg
=
{
var
reg
=
{
...
@@ -133,3 +36,14 @@ export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minVal
...
@@ -133,3 +36,14 @@ export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minVal
return
newValue
?
oldValue
:
''
return
newValue
?
oldValue
:
''
}
}
}
}
/**
* 时间控件-限制月份
*/
export
const
rangePickerOptions
=
{
disabledDate
(
date
)
{
if
(
date
>
new
Date
())
{
return
true
}
return
false
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment