Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
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
f2095b0a
authored
Mar 14, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
v1.0
parent
862230a5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
15 deletions
app/Http/Controllers/ApiController.php
app/Model/GoodsAuditModel.php
app/Model/PackingModel.php
public/pc/js/controller/GoodsAuditList.js
resources/views/pc/GoodsAuditList.blade.php
app/Http/Controllers/ApiController.php
View file @
f2095b0a
...
...
@@ -71,7 +71,7 @@ class ApiController extends Controller
}
//价格审核列表
private
function
ApiGoodsAuditList
(
$request
,
$id
){
(
new
GoodsAuditModel
())
->
getList
(
$request
->
input
(
));
ExportLayui
((
new
GoodsAuditModel
())
->
getList
(
$request
->
input
(),
$request
->
supplier_id
));
}
//获取对账单列表明细
private
function
ApiAccountCheckingDetail
(
$request
,
$id
){
...
...
app/Model/GoodsAuditModel.php
View file @
f2095b0a
...
...
@@ -13,7 +13,7 @@ use Illuminate\Support\Facades\Redis;
class
GoodsAuditModel
extends
Model
{
protected
$connection
=
'yunxin'
;
protected
$table
=
'
supplier_accoun
t'
;
protected
$table
=
'
goods_audi
t'
;
protected
$primaryKey
=
'id'
;
public
$timestamps
=
false
;
//列表
...
...
@@ -39,8 +39,12 @@ class GoodsAuditModel extends Model
$list
=
$list
->
orderBy
(
'create_time'
,
'desc'
)
->
paginate
(
@
$input
[
'limit'
]
?
@
$input
[
'limit'
]
:
10
,
[
'*'
],
'p'
,
@
$input
[
'p'
]
?
@
$input
[
'p'
]
:
1
)
->
toArray
();
if
(
!
$list
)
return
[
20001
,
'没有数据'
];
$status
=
GoodsAuditMap
::
$status
;
$packingList
=
(
new
PackingModel
())
->
packingList
();
foreach
(
$list
[
'data'
]
as
$k
=>&
$v
){
$v
[
'status'
]
=
$status
[
$v
[
'status'
]];
$v
[
'status'
]
=
@
$status
[
$v
[
'status'
]];
$v
[
'create_time'
]
=
timeToDate
(
$v
[
'create_time'
]);
$v
[
'deal_time'
]
=
timeToDate
(
$v
[
'deal_time'
]);
$v
[
'packing'
]
=
@
$packingList
[
$v
[
'packing'
]]
?
$packingList
[
$v
[
'packing'
]]
:
""
;
}
return
[
0
,
'成功'
,
$list
[
'data'
],
$list
[
'total'
]];
}
...
...
app/Model/PackingModel.php
0 → 100644
View file @
f2095b0a
<?php
namespace
App\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
PackingModel
extends
Model
{
protected
$connection
=
'pur'
;
protected
$table
=
'packing'
;
protected
$primaryKey
=
'packing_id'
;
public
$timestamps
=
false
;
public
function
packingList
(
$status
=
1
){
$map
[
'status'
]
=
$status
;
return
$this
->
where
(
$map
)
->
lists
(
'packing_name'
,
'packing_id'
)
->
toArray
();
}
}
public/pc/js/controller/GoodsAuditList.js
View file @
f2095b0a
...
...
@@ -14,13 +14,20 @@
for
(
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
var
s
=
res
.
data
[
i
];
html
+=
"<tr class=\"you\"> "
+
"<td><span class=\"t1\">"
+
s
.
supplier_goods_id
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
goods_code
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
goods_name
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
supplier_brand_name
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
brand_name
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
status
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
encap
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
packing
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
mpq
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
real_number
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
initial_price
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
last_price
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
new_price
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
create_name
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
create_time
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
deal_name
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
deal_time
+
"</span></td>"
+
"<td><span class=\"t1\">"
+
s
.
remark
+
"</span></td>"
+
"</tr>"
}
$
(
"#shopListContent"
).
html
(
html
)
...
...
resources/views/pc/GoodsAuditList.blade.php
View file @
f2095b0a
<div
class=
"lx-content-r fr"
>
<div
class=
"tit-bar"
>
<a
href=
""
>
库存
管理
</a>
<a
href=
""
>
订单
管理
</a>
<span>
>
</span>
<a
class=
"text"
href=
""
>
订单列表
</a>
<a
class=
"text"
href=
""
>
{{ $title }}
</a>
</div>
<div
class=
"con-section shop-list"
>
<p
class=
"text"
>
订单列表
</p>
<p
class=
"text"
>
{{ $title }}
</p>
<form
action=
""
>
<div
class=
"search-bar"
>
<div
class=
"lineBlock input-inline va-m"
>
...
...
@@ -31,12 +31,20 @@
<div
class=
"table-list"
id=
"shopList"
>
<table>
<tr>
<th>
退货单号
<b></b></th>
<th>
创建时间
<b></b></th>
<th>
币种
<b></b></th>
<th>
金额
<b></b></th>
<th>
商品编码
<b></b></th>
<th>
商品型号
<b></b></th>
<th>
品牌名称
<b></b></th>
<th>
状态
<b></b></th>
<th>
操作
</th>
<th>
封装
<b></b></th>
<th>
包装方式
<b></b></th>
<th>
标准包装量
<b></b></th>
<th>
原始售价
<b></b></th>
<th>
最新售价
<b></b></th>
<th>
创建人
<b></b></th>
<th>
创建时间
<b></b></th>
<th>
处理人
<b></b></th>
<th>
处理人名称
<b></b></th>
<th>
备注
<b></b></th>
</tr>
<tbody
id=
"shopListContent"
>
...
...
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