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
056fb95e
authored
Jul 16, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整标准品牌
parent
16ea2aaf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
31 deletions
public/js/add_order.js
public/js/goods.js
resources/views/changeOrder/content.blade.php
public/js/add_order.js
View file @
056fb95e
...
...
@@ -1025,10 +1025,14 @@
'<td>'
+
list
[
i
].
goods_name
+
'</td>'
+
'<td>'
+
list
[
i
].
brand_name
+
'</td>'
;
if
(
goods_type
==
1
)
{
// 联营添加标准品牌列
html
+=
list
[
i
].
standard_brand_name
?
'<td class="standard-brand-yellow">'
:
'<td>'
;
//
if (goods_type == 1) { // 联营添加标准品牌列
//
html += list[i].standard_brand_name ? '<td class="standard-brand-yellow">' : '<td>';
html
+=
'<input type="text" class="change_standard_brand_name" name="standard_brand_name" value="'
+
list
[
i
].
standard_brand_name
+
'" readonly /><i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true" data-type=1></i></td>'
;
// html += '<input type="text" class="change_standard_brand_name" name="standard_brand_name" value="'+list[i].standard_brand_name+'" readonly /><i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true" data-type=1></i></td>';
// }
if
(
goods_type
==
1
)
{
// 联营添加标准品牌列 2021-7-15
html
+=
'<td>'
+
list
[
i
].
standard_brand_name
+
'<td>'
;
}
// if (goods_type == 2) {
...
...
public/js/goods.js
View file @
056fb95e
...
...
@@ -133,21 +133,22 @@
<input class="change_brand_id" type="hidden" name="change_info['
+
curr_no
+
'][brand_id]" value="'
+
order_item
.
brand_id
+
'">\
<input class="change_brand_id" type="hidden" name="change_info['
+
curr_no
+
'][brand_name]" value="'
+
order_item
.
brand_name
+
'">\
<p>'
+
order_item
.
brand_name
+
'</p>\
</td>'
;
if
(
order_item
.
standard_brand_name
)
{
html
+=
'<td class="standard-brand-green">\
<input class="change_standard_brand_id" type="hidden" name="change_info['
+
curr_no
+
'][standard_brand_id]" value="'
+
order_item
.
standard_brand_id
+
'">\
<input class="change_standard_brand_name" type="hidden" name="change_info['
+
curr_no
+
'][standard_brand_name]" value="'
+
order_item
.
standard_brand_name
+
'">\
<p>'
+
order_item
.
standard_brand_name
+
'</p>\
</td>'
;
}
else
{
html
+=
'<td>\
<input class="change_standard_brand_id" type="hidden" name="change_info['
+
curr_no
+
'][standard_brand_id]">\
<input class="change_standard_brand_name" type="text" name="change_info['
+
curr_no
+
'][standard_brand_name]" readonly>\
<i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true" data-type=2></i>\
</td>'
;
}
</td>\
<td>'
+
order_item
.
standard_brand_name
+
'</td>'
;
// if (order_item.standard_brand_name) {
// html += '<td class="standard-brand-green">\
// <input class="change_standard_brand_id" type="hidden" name="change_info['+curr_no+'][standard_brand_id]" value="'+order_item.standard_brand_id+'">\
// <input class="change_standard_brand_name" type="hidden" name="change_info['+curr_no+'][standard_brand_name]" value="'+order_item.standard_brand_name+'">\
// <p>'+order_item.standard_brand_name+'</p>\
// </td>';
// } else {
// html += '<td>\
// <input class="change_standard_brand_id" type="hidden" name="change_info['+curr_no+'][standard_brand_id]">\
// <input class="change_standard_brand_name" type="text" name="change_info['+curr_no+'][standard_brand_name]" readonly>\
// <i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true" data-type=2></i>\
// </td>';
// }
html
+=
'<td>\
...
...
@@ -351,16 +352,17 @@
<td>\
<p>'
+
add_brand_name
+
'</p>\
</td>\
<td>\
<td></td>\
<!-- <td>\
<input class="change_standard_brand_id" type="hidden" name="change_info['
+
curr_no
+
'][standard_brand_id]">\
<input class="change_standard_brand_name" type="text" name="change_info['
+
curr_no
+
'][standard_brand_name]" readonly>\
<i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true" data-type=2></i>\
</td>\
</td>
-->
\
<td>\
<input class="num change_number" name="change_info['
+
curr_no
+
'][goods_number]" value="'
+
add_goods_number
+
'">\
<input
type="text"
class="num change_number" name="change_info['
+
curr_no
+
'][goods_number]" value="'
+
add_goods_number
+
'">\
</td>\
<td>\
<input class="price only_number" name="change_info['
+
curr_no
+
'][goods_price]" data-price="'
+
add_goods_price
+
'" value="'
+
add_goods_price
+
'">\
<input
type="text"
class="price only_number" name="change_info['
+
curr_no
+
'][goods_price]" data-price="'
+
add_goods_price
+
'" value="'
+
add_goods_price
+
'">\
</td>\
<td>\
<select id="buyer_id_'
+
curr_no
+
'" class="form-control change_buyer_id selectpicker" name="change_info['
+
curr_no
+
'][buyer_id]" data-live-search="true" data-size="5" title="请选择采购员">\
...
...
resources/views/changeOrder/content.blade.php
View file @
056fb95e
...
...
@@ -12,7 +12,7 @@
/* 提交审核弹框label */
.submit-check
label
{
display
:
inline-block
;
width
:
120px
;
text-align
:
right
;}
input
[
type
=
"text"
]
{
width
:
120px
;}
.order-change-main
table
th
{
text-align
:
center
;
vertical-align
:
middle
;
}
.order-change-main
table
th
,
.order-change-main
table
td
{
text-align
:
center
;
vertical-align
:
middle
;
}
</style>
<div
class=
"tabs-box"
>
...
...
@@ -74,14 +74,14 @@
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
<i
class=
"text-danger"
>
*
</i>
终端中文名称:
</span>
<span>
终端中文名称:
</span>
<input
type=
"text"
class=
"customer_cn"
name=
"customer_cn"
value=
"{{ $order_extra ? $order_extra['customer_cn'] : '' }}"
>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
<i
class=
"text-danger"
>
*
</i>
客户类型:
</span>
<span>
客户类型:
</span>
<select
class=
"layui-select customer_type"
name=
"customer_type"
>
<option
value=
""
>
请选择
</option>
@if (Config('params.end_user_type'))
...
...
@@ -97,7 +97,7 @@
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
<i
class=
"text-danger"
>
*
</i>
终端英文名称:
</span>
<span>
终端英文名称:
</span>
<input
type=
"text"
class=
"customer_en"
name=
"customer_en"
value=
"{{ $order_extra ? $order_extra['customer_en'] : '' }}"
>
<a
href=
"https://translate.google.cn/"
target=
"_blank"
>
谷歌翻译
</a>
</div>
...
...
@@ -105,7 +105,7 @@
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
<i
class=
"text-danger"
>
*
</i>
产品用途:
</span>
<span>
产品用途:
</span>
<select
class=
"layui-select product_use_classone_sn"
name=
"product_use_classone_sn"
>
<option
value=
""
>
请选择
</option>
@if ($api_dgk_config_one)
...
...
@@ -123,7 +123,7 @@
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
<i
class=
"text-danger"
>
*
</i>
终端客户网址:
</span>
<span>
终端客户网址:
</span>
<input
type=
"text"
class=
"customer_website"
name=
"customer_website"
value=
"{{ $order_extra ? $order_extra['customer_website'] : '' }}"
>
</div>
</div>
...
...
@@ -197,14 +197,15 @@
<p>
{{$v['brand_name']}}
</p>
</td>
@if ($order_info['order_goods_type'] == 1)
<td
class=
"{{ $v['standard_brand_name'] && $v['status'] != -1 ? 'standard-brand-green' : '' }}"
>
<!-- <td class="{{ $v['standard_brand_name'] && $v['status'] != -1 ? 'standard-brand-green' : '' }}"> -->
<td>
<input
type=
"hidden"
class=
"change_standard_brand_id"
name=
"change_info[{{$v['rec_id']}}][standard_brand_id]"
value=
"{{$v['standard_brand_id']}}"
/>
@if ($v['standard_brand_name'] || $v['status'] == -1)
<input
type=
"hidden"
class=
"change_standard_brand_name"
name=
"change_info[{{$v['rec_id']}}][standard_brand_name]"
value=
"{{$v['standard_brand_name']}}"
/>
<p>
{{$v['standard_brand_name']}}
</p>
@else
<input
type=
"text"
class=
"change_standard_brand_name"
name=
"change_info[{{$v['rec_id']}}][standard_brand_name]"
readonly
/>
<i
class=
"fa fa-exclamation-triangle fa-2x select-standard-brand"
aria-hidden=
"true"
data-type=
2
></i>
<
!-- <
input type="text" class="change_standard_brand_name" name="change_info[{{$v['rec_id']}}][standard_brand_name]" readonly />
<i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true" data-type=2></i>
-->
@endif
</td>
@endif
...
...
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