Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
09b82f11
authored
Nov 30, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整JS事件
parent
20d90f45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
public/js/change_order.js
public/js/details.js
resources/views/detail/edit_items.blade.php
public/js/change_order.js
View file @
09b82f11
...
...
@@ -365,7 +365,7 @@
})
// 合同备注
$
(
document
).
delegate
(
'.change_contract_remark'
,
'
keyup
'
,
function
(){
$
(
document
).
delegate
(
'.change_contract_remark'
,
'
blur
'
,
function
(){
var
val
=
$
(
this
).
val
();
if
(
!
val
)
return
false
;
...
...
public/js/details.js
View file @
09b82f11
...
...
@@ -413,7 +413,7 @@
})
// 合同备注
$
(
'.edit_contract_remark'
).
keyup
(
function
(){
$
(
'.edit_contract_remark'
).
blur
(
function
(){
var
val
=
$
(
this
).
val
();
if
(
!
val
)
return
false
;
...
...
@@ -452,14 +452,14 @@
*/
function
getSubStr
(
str
,
start
,
n
)
{
// eslint-disable-line
if
(
str
.
replace
(
/
[\
u
4e00-
\u
9fa5
]
/g
,
'*'
).
length
<=
n
)
{
// 中文长度为两字节,这里只作为一个字节处理
if
(
str
.
replace
(
/
[\
x
00-
\x
ff
]
/g
,
'*'
).
length
<=
n
)
{
// 中文长度为两字节,这里只作为一个字节处理
return
str
;
}
let
len
=
0
;
let
tmpStr
=
''
;
for
(
let
i
=
start
;
i
<
str
.
length
;
i
++
)
{
// 遍历字符串
if
(
/
[\
u
4e00-
\u
9fa5
]
/
.
test
(
str
[
i
]))
{
// 中文长度为两字节,这里只作为一个字节处理
if
(
/
[\
x
00-
\x
ff
]
/
.
test
(
str
[
i
]))
{
// 中文长度为两字节,这里只作为一个字节处理
len
+=
1
;
}
else
{
len
+=
1
;
...
...
resources/views/detail/edit_items.blade.php
View file @
09b82f11
...
...
@@ -48,7 +48,7 @@
<input
type=
"text"
class=
"form-control edit_remarks"
name=
"change_item[{{ $item['rec_id'] }}][remarks]"
value=
"{{ $item['remarks'] }}"
placeholder=
"请填写商品备注"
style=
"width:200px;"
>
</td>
<td>
<input
type=
"text"
class=
"form-control edit_contract_remark"
name=
"change_item[{{ $item['rec_id'] }}][contract_remark]"
value=
"{{ $item['contract_remark'] }}"
placeholder=
"
请填写合同备注
"
style=
"width:200px;"
>
<input
type=
"text"
class=
"form-control edit_contract_remark"
name=
"change_item[{{ $item['rec_id'] }}][contract_remark]"
value=
"{{ $item['contract_remark'] }}"
placeholder=
"
限制8个字符
"
style=
"width:200px;"
>
</td>
</tr>
...
...
Write
Preview
Markdown
is supported
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