Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
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
0047827f
authored
Nov 11, 2022
by
宁成龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
19285d83
766f02ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletions
app/Admin/Controllers/Api/OrderApiController.php
app/Admin/Service/OrderService.php
app/Models/OrderItem.php
app/Admin/Controllers/Api/OrderApiController.php
View file @
0047827f
...
@@ -45,7 +45,26 @@ class OrderApiController extends Controller
...
@@ -45,7 +45,26 @@ class OrderApiController extends Controller
public
function
orderList
(
Request
$request
){
public
function
orderList
(
Request
$request
){
return
response
()
->
json
([
"code"
=>
0
,
"msg"
=>
"ok"
,
"data"
=>
[],
"count"
=>
0
]);
$arr
=
[];
$arr
[
0
][
"goods_id"
]
=
"123456"
;
$arr
[
0
][
"goods_name"
]
=
"商品型号"
;
$arr
[
0
][
"standard_brand_name"
]
=
"标准品牌"
;
$arr
[
0
][
"supplier_name"
]
=
"应商"
;
$arr
[
0
][
"raw_goods_sn"
]
=
"供应商物料唯一编码"
;
$arr
[
0
][
"raw_brand_name"
]
=
"供应商物料品牌"
;
$arr
[
0
][
"purchase_name"
]
=
"采购员"
;
$arr
[
0
][
"currency_cn"
]
=
"美金"
;
$arr
[
0
][
"goods_price"
]
=
"0.12344"
;
//单价
$arr
[
0
][
"goods_number"
]
=
"66"
;
//购买数量
$arr
[
0
][
"total_amount"
]
=
"100"
;
//小计
$arr
[
0
][
"discount_amount"
]
=
"0.2"
;
//折扣金额
$arr
[
0
][
"other_amount"
]
=
"0.1"
;
//其它费用
$arr
[
0
][
"delivery_time"
]
=
"1-200年"
;
//货期
$arr
[
0
][
"batch"
]
=
"1-200年"
;
//批次
$arr
[
0
][
"remarks"
]
=
"客户备注"
;
//客户备注
return
response
()
->
json
([
"code"
=>
0
,
"msg"
=>
"ok"
,
"data"
=>
[
"list"
=>
$arr
],
"count"
=>
0
]);
}
}
...
...
app/Admin/Service/OrderService.php
View file @
0047827f
...
@@ -47,6 +47,8 @@ class OrderService
...
@@ -47,6 +47,8 @@ class OrderService
}
}
public
static
function
orderIitemList
(
$order_id
=
0
){
}
}
}
app/Models/OrderItem.php
View file @
0047827f
...
@@ -17,4 +17,12 @@ class OrderItem extends Model
...
@@ -17,4 +17,12 @@ class OrderItem extends Model
public
$timestamps
=
false
;
public
$timestamps
=
false
;
public
static
function
getOrderItems
(
$order_id
=
0
){
return
self
::
where
(
"order_id"
,
$order_id
)
->
get
()
->
toArray
();
}
}
}
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