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
6542aa08
authored
Apr 10, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整备注编辑
parent
0dc36a62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
113 deletions
resources/views/detail/content.blade.php
resources/views/detail/content.blade.php
View file @
6542aa08
...
@@ -586,7 +586,7 @@
...
@@ -586,7 +586,7 @@
<td><a
class=
"order-track"
data-rid=
"{{$v['rec_id']}}"
>
{{ App\Http\Controllers\getLastTrack($v['rec_id']) }}
</a></td>
<td><a
class=
"order-track"
data-rid=
"{{$v['rec_id']}}"
>
{{ App\Http\Controllers\getLastTrack($v['rec_id']) }}
</a></td>
@endif
@endif
<td
class=
"remarks"
>
<td>
@if(!empty($v['remarks']))
@if(!empty($v['remarks']))
{{$v['remarks']}}
{{$v['remarks']}}
@endif
@endif
...
@@ -1121,73 +1121,6 @@
...
@@ -1121,73 +1121,6 @@
$
.
lie
.
order
.
details
();
$
.
lie
.
order
.
details
();
$
.
lie
.
goods
.
add
();
$
.
lie
.
goods
.
add
();
//备注填写确定按钮被点击
$
(
document
).
on
(
'click'
,
'.remarks_enter'
,
function
(){
user_id
=
-
1
;
//获取备注
$remarks
=
$
(
'#remarks_input'
).
val
();
// console.log('备注:'+$remarks);
//采购员
$remarks_user
=
$
(
'#remarks_user'
).
val
();
// console.log('采购员:'+$remarks_user);
//批次
$batch
=
$
(
'#batch'
).
val
();
// console.log($batch);
//检查采购员是否存在
if
(
$remarks_user
.
length
>
0
){
$
.
ajaxSettings
.
async
=
false
;
$
.
post
(
"/api/check_user_exists"
,{
user
:
$remarks_user
},
function
(
result
)
{
//请求处理
console
.
log
(
result
);
if
(
result
.
errmsg
==
'error'
){
alert
(
'采购员不存在或未录入系统,请确认后再填写'
)
return
false
;
}
else
{
user_id
=
result
.
data
}
},
"json"
);
$
.
ajaxSettings
.
async
=
true
;
}
if
(
$remarks_user
.
length
>
0
&&
user_id
==
-
1
){
return
false
;
}
if
(
$remarks
.
length
>
0
||
user_id
>
0
||
$batch
.
length
>
0
){
$
.
post
(
'/api/update_order_items'
,{
id
:
$id
,
remarks
:
$remarks
,
userId
:
user_id
,
batch
:
$batch
},
function
(
data
){
history
.
go
(
0
);
},
'json'
)
}
else
{
alert
(
'您未填写任何信息,请至少填写一处'
);
return
false
;
}
})
//备注填写确定按钮被点击
$
(
document
).
on
(
'click'
,
'.remarks_cancel'
,
function
(){
console
.
log
(
'cancel'
);
layer
.
close
(
index_windows
);
})
// 发送邮件
// 发送邮件
$
(
document
).
on
(
'click'
,
'.send_mail'
,
function
(
data
){
$
(
document
).
on
(
'click'
,
'.send_mail'
,
function
(
data
){
var
cc_sales_count
=
cc_sales
.
length
;
var
cc_sales_count
=
cc_sales
.
length
;
...
@@ -1253,51 +1186,6 @@
...
@@ -1253,51 +1186,6 @@
$('
.
layui
-
layer
-
content
').css('
overflow
', '
visible
'
);
$('
.
layui
-
layer
-
content
').css('
overflow
', '
visible
'
);
})
})
$(function(){
$('
.
remarks
').click(function(){
$id = $(this).parent().parent().find('
.
order
-
track
').attr('
data
-
rid
');
//展示采购员
$buyerName = trim($(this).parent().parent().find('
.
buyerName
').html());
// console.log($buyerName);
//展示备注
$remarks = trim($(this).parent().parent().find('
.
remarks
').html());
// console.log($remarks);
//展示批次
$batch = trim($(this).parent().parent().find('
.
batch
').html());
// console.log($batch);
index_windows = layer.open({
type: 1,
skin: '
layui
-
layer
-
demo
', //样式类名
closeBtn: 0, //不显示关闭按钮
anim: 2,
shadeClose: true, //开启遮罩关闭
content: '
<
div
>
<
h2
>&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
编辑信息
<
/h2>
\
<
br
/><
div
>&
nbsp
;
&
nbsp
;
批次
:
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
<
input
id
=
"batch"
value
=
"'+$batch+'"
><
br
/>
\
<
br
/>
<
div
>&
nbsp
;
&
nbsp
;
采购员
:
<
input
id
=
"remarks_user"
value
=
"'+$buyerName+'"
>
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
<
/div> <br/
>
\
<
div
>&
nbsp
;
&
nbsp
;
备注
:
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
<
input
id
=
"remarks_input"
value
=
"'+$remarks+'"
><
/div>
\
<
br
/>\
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
\
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
\
<
button
type
=
"button"
class
=
"layui-btn remarks_enter layui-btn-primary"
>
确定
<
/button>
\
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
\
<
button
type
=
"button"
class
=
"layui-btn remarks_cancel layui-btn-primary"
>
取消
<
/button>
\
<
br
/><
br
/>\
<
/div>
'
});
})
$
(
'.send_mail'
).
click
(
function
(){
console
.
log
(
'send_mail'
)
})
})
//供使用者调用
//供使用者调用
function
trim
(
s
){
function
trim
(
s
){
return
trimRight
(
trimLeft
(
s
));
return
trimRight
(
trimLeft
(
s
));
...
...
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