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
c4128182
authored
Mar 12, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整仓库损耗下拉列表
parent
6c55f147
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
app/Model/OrderModel.php
config/params.php
public/js/add_order.js
app/Model/OrderModel.php
View file @
c4128182
...
@@ -344,7 +344,7 @@ class OrderModel extends Model
...
@@ -344,7 +344,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'order_sn'
]
=
"
\t
"
.
$order
[
$i
][
'order_sn'
]
.
"
\t
"
;
$tmp
[
$i
][
'order_sn'
]
=
"
\t
"
.
$order
[
$i
][
'order_sn'
]
.
"
\t
"
;
if
(
$order
[
$i
][
'order_goods_type'
]
==
2
)
{
if
(
$order
[
$i
][
'order_goods_type'
]
==
2
)
{
$tmp
[
$i
][
'business_type'
]
=
Config
(
'params.business_type'
)[
$order
[
$i
][
'business_type'
]]
;
// 自营其他业务类型
$tmp
[
$i
][
'business_type'
]
=
$order
[
$i
][
'business_type'
]
?
Config
(
'params.business_type'
)[
$order
[
$i
][
'business_type'
]]
:
'正常订单'
;
// 自营其他业务类型
}
}
$tmp
[
$i
][
'user_account'
]
=
$order
[
$i
][
'mobile'
]
?
$order
[
$i
][
'mobile'
]
:
$order
[
$i
][
'email'
];
$tmp
[
$i
][
'user_account'
]
=
$order
[
$i
][
'mobile'
]
?
$order
[
$i
][
'mobile'
]
:
$order
[
$i
][
'email'
];
...
...
config/params.php
View file @
c4128182
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
// 特殊业务类型
// 特殊业务类型
'business_type'
=>
[
'business_type'
=>
[
0
=>
'正常订单'
,
1
=>
'样品销售'
,
1
=>
'样品销售'
,
2
=>
'仓库损耗'
,
2
=>
'仓库损耗'
,
],
],
...
...
public/js/add_order.js
View file @
c4128182
...
@@ -38,9 +38,9 @@
...
@@ -38,9 +38,9 @@
// 自营其他订单类型---仓库损耗
// 自营其他订单类型---仓库损耗
if
(
mobile
==
'15022222222'
)
{
if
(
mobile
==
'15022222222'
)
{
$
(
'#business_type'
).
val
(
2
);
$
(
'#business_type'
).
val
(
2
)
.
attr
(
'disabled'
,
true
)
;
}
else
{
}
else
{
$
(
'#business_type'
).
val
(
1
);
$
(
'#business_type'
).
val
(
1
)
.
attr
(
'disabled'
,
false
)
;
}
}
$
.
ajax
({
$
.
ajax
({
...
...
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