Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
de7ed4a0
Commit
de7ed4a0
authored
Nov 05, 2021
by
季圣华
Browse files
注册租户的密码长度改为6位,给订单编辑页面去掉仓库新增按钮
parent
c4695206
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
de7ed4a0
...
...
@@ -61,11 +61,6 @@
@
valueChange=
"onValueChange"
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<a-row
:gutter=
"24"
style=
"float:left;width:140px;"
>
<a-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;"
data-step=
"3"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
...
...
@@ -96,13 +91,11 @@
</a-form>
</a-spin>
<vendor-modal
ref=
"vendorModalForm"
@
ok=
"vendorModalFormOk"
></vendor-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
</j-modal>
</template>
<
script
>
import
pick
from
'
lodash.pick
'
import
VendorModal
from
'
../../system/modules/VendorModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -115,7 +108,6 @@
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
VendorModal
,
DepotModal
,
JUpload
,
JDate
,
VNodes
:
{
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
de7ed4a0
...
...
@@ -67,11 +67,6 @@
@
valueChange=
"onValueChange"
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<a-row
:gutter=
"24"
style=
"float:left;width:140px;"
>
<a-col
:md=
"24"
:sm=
"24"
>
<a-button
icon=
"plus"
@
click=
"addDepot"
>
新增仓库
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
...
...
@@ -102,13 +97,11 @@
</a-form>
</a-spin>
<customer-modal
ref=
"customerModalForm"
@
ok=
"customerModalFormOk"
></customer-modal>
<depot-modal
ref=
"depotModalForm"
@
ok=
"depotModalFormOk"
></depot-modal>
</j-modal>
</template>
<
script
>
import
pick
from
'
lodash.pick
'
import
CustomerModal
from
'
../../system/modules/CustomerModal
'
import
DepotModal
from
'
../../system/modules/DepotModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -122,7 +115,6 @@
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
CustomerModal
,
DepotModal
,
JUpload
,
JDate
,
JSelectMultiple
,
...
...
jshERP-web/src/views/user/Register.vue
View file @
de7ed4a0
...
...
@@ -14,20 +14,20 @@
<div
:class=
"['user-register', passwordLevelClass]"
>
强度:
<span>
{{
passwordLevelName
}}
</span></div>
<a-progress
:percent=
"state.percent"
:showInfo=
"false"
:strokeColor=
" passwordLevelColor "
/>
<div
style=
"margin-top: 10px;"
>
<span>
请至少输入
8
个字符。请不要使用容易被猜到的密码。
</span>
<span>
请至少输入
6
个字符。请不要使用容易被猜到的密码。
</span>
</div>
</div>
</
template
>
<a-form-item
fieldDecoratorId=
"password"
:fieldDecoratorOptions=
"{rules: [{ required: false}, { validator: this.handlePasswordLevel }], validateTrigger: ['change', 'blur'], validateFirst: true}"
>
<a-input
size=
"large"
type=
"password"
@
click=
"handlePasswordInputClick"
autocomplete=
"false"
placeholder=
"至少
8
位密码,区分大小写"
></a-input>
<a-input
size=
"large"
type=
"password"
@
click=
"handlePasswordInputClick"
autocomplete=
"false"
placeholder=
"至少
6
位密码,区分大小写"
></a-input>
</a-form-item>
</a-popover>
<a-form-item
fieldDecoratorId=
"password2"
:fieldDecoratorOptions=
"{rules: [{ required: true, message: '至少
8
位密码,区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur'], validateFirst: true}"
>
:fieldDecoratorOptions=
"{rules: [{ required: true, message: '至少
6
位密码,区分大小写' }, { validator: this.handlePasswordCheck }], validateTrigger: ['change', 'blur'], validateFirst: true}"
>
<a-input
size=
"large"
type=
"password"
autocomplete=
"false"
placeholder=
"确认密码"
></a-input>
</a-form-item>
...
...
@@ -163,9 +163,9 @@
handlePasswordLevel
(
rule
,
value
,
callback
)
{
let
level
=
0
let
reg
=
/^
(?=
.*
[
a-z
])(?=
.*
\d)
.
{
8
,}
$/
;
let
reg
=
/^
(?=
.*
[
a-z
])(?=
.*
\d)
.
{
6
,}
$/
;
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
'
密码由
8
位数字、小写字母组成!
'
))
callback
(
new
Error
(
'
密码由
6
位数字、小写字母组成!
'
))
}
// 判断这个字符串中有没有数字
if
(
/
[
0-9
]
/
.
test
(
value
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment