Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dsyerp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
dsyerp
Commits
f526207f
Commit
f526207f
authored
Nov 17, 2023
by
wxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表入库出库列表
parent
598722cf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
35 deletions
+79
-35
module/Store/src/Controller/GoodsController.php
module/Store/src/Controller/GoodsController.php
+19
-20
module/Store/src/Repository/AllExWarehouseOrderGoodsRepository.php
...ore/src/Repository/AllExWarehouseOrderGoodsRepository.php
+16
-1
module/Store/src/Repository/AllWarehouseOrderGoodsRepository.php
...Store/src/Repository/AllWarehouseOrderGoodsRepository.php
+30
-0
module/Store/view/store/goods/exwarehousegoods.phtml
module/Store/view/store/goods/exwarehousegoods.phtml
+6
-6
module/Store/view/store/goods/index.phtml
module/Store/view/store/goods/index.phtml
+2
-2
module/Store/view/store/goods/otherwarehousegoods.phtml
module/Store/view/store/goods/otherwarehousegoods.phtml
+6
-6
No files found.
module/Store/src/Controller/GoodsController.php
View file @
f526207f
...
@@ -24,9 +24,12 @@ use Stock\Entity\ExWarehouseOrder;
...
@@ -24,9 +24,12 @@ use Stock\Entity\ExWarehouseOrder;
use
Stock\Entity\ExWarehouseOrderGoods
;
use
Stock\Entity\ExWarehouseOrderGoods
;
use
Stock\Entity\OtherWarehouseOrder
;
use
Stock\Entity\OtherWarehouseOrder
;
use
Stock\Entity\OtherWarehouseOrderGoods
;
use
Stock\Entity\OtherWarehouseOrderGoods
;
use
Store\Entity\AllExWarehouseOrderGoods
;
use
Store\Entity\AllWarehouseOrderGoods
;
use
Store\Entity\Goods
;
use
Store\Entity\Goods
;
use
Store\Entity\GoodsCategory
;
use
Store\Entity\GoodsCategory
;
use
Store\Entity\GoodsCustom
;
use
Store\Entity\GoodsCustom
;
use
Store\Entity\Warehouse
;
use
Store\Entity\WarehouseGoods
;
use
Store\Entity\WarehouseGoods
;
use
Store\Form\GoodsForm
;
use
Store\Form\GoodsForm
;
use
Store\Form\ImportGoodsForm
;
use
Store\Form\ImportGoodsForm
;
...
@@ -85,8 +88,8 @@ class GoodsController extends AbstractActionController
...
@@ -85,8 +88,8 @@ class GoodsController extends AbstractActionController
$goodsList
=
$this
->
adminCommon
()
->
erpPaginator
(
$query
,
$page
);
$goodsList
=
$this
->
adminCommon
()
->
erpPaginator
(
$query
,
$page
);
if
(
!
empty
(
$goodsList
))
{
if
(
!
empty
(
$goodsList
))
{
foreach
(
$goodsList
as
$key
=>
$value
)
{
foreach
(
$goodsList
as
$key
=>
$value
)
{
$value
->
OtherWarehouseOrderGoodsAmount
=
$this
->
entityManager
->
getRepository
(
OtherWarehouseOrderGoods
::
class
)
->
OtherW
arehouseOrderGoodsAmount
([
'goods_id'
=>
$value
->
getGoodsId
()]);
$value
->
OtherWarehouseOrderGoodsAmount
=
$this
->
entityManager
->
getRepository
(
AllWarehouseOrderGoods
::
class
)
->
w
arehouseOrderGoodsAmount
([
'goods_id'
=>
$value
->
getGoodsId
()]);
$value
->
ExWarehouseOrderGoodsAmount
=
$this
->
entityManager
->
getRepository
(
ExWarehouseOrderGoods
::
class
)
->
E
xWarehouseOrderGoodsAmount
([
'goods_id'
=>
$value
->
getGoodsId
()]);
$value
->
ExWarehouseOrderGoodsAmount
=
$this
->
entityManager
->
getRepository
(
AllExWarehouseOrderGoods
::
class
)
->
e
xWarehouseOrderGoodsAmount
([
'goods_id'
=>
$value
->
getGoodsId
()]);
}
}
}
}
return
[
'goodsList'
=>
$goodsList
,
'searchForm'
=>
$searchForm
];
return
[
'goodsList'
=>
$goodsList
,
'searchForm'
=>
$searchForm
];
...
@@ -499,22 +502,20 @@ class GoodsController extends AbstractActionController
...
@@ -499,22 +502,20 @@ class GoodsController extends AbstractActionController
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该商品不存在!'
));
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该商品不存在!'
));
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
}
}
$orderGoods
=
$this
->
entityManager
->
getRepository
(
Other
WarehouseOrderGoods
::
class
)
->
findBy
([
'goodsId'
=>
$goodsId
]);
$orderGoods
=
$this
->
entityManager
->
getRepository
(
All
WarehouseOrderGoods
::
class
)
->
findBy
([
'goodsId'
=>
$goodsId
]);
if
(
$orderGoods
==
null
)
{
if
(
$orderGoods
==
null
)
{
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该入库单不存在!'
));
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该入库单不存在!'
));
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
}
}
if
(
!
empty
(
$orderGoods
))
{
if
(
!
empty
(
$orderGoods
))
{
foreach
(
$orderGoods
as
$key
=>
$value
)
{
foreach
(
$orderGoods
as
$key
=>
$value
)
{
$otherWarehouseOrderInfo
=
$this
->
entityManager
->
getRepository
(
OtherWarehouseOrder
::
class
)
->
findOneBy
([
'otherWarehouseOrderId'
=>
$value
->
getOtherWarehouseOrderId
()]);
$warehouse
=
$this
->
entityManager
->
getRepository
(
Warehouse
::
class
)
->
findOneBy
([
'warehouseId'
=>
$value
->
getwarehouseId
()]);
$value
->
otherAddTime
=
$otherWarehouseOrderInfo
->
getOtherAddTime
();
$value
->
warehouseName
=
$warehouse
->
getWarehouseName
();
$value
->
WarehouseOrderSn
=
$otherWarehouseOrderInfo
->
getWarehouseOrderSn
();
$value
->
WarehouseName
=
$otherWarehouseOrderInfo
->
getOneWarehouse
()
->
getWarehouseName
();
$value
->
WarehouseOrderInfo
=
$otherWarehouseOrderInfo
->
getWarehouseOrderInfo
();
$otherWarehouseOrderInfo
->
OtherWarehouseOrderGoodsAmount
=
$this
->
entityManager
->
getRepository
(
OtherWarehouseOrderGoods
::
class
)
->
OtherWarehouseOrderGoodsAmount
([
'goods_id'
=>
$value
->
getGoodsId
()]);
}
}
$warehouseOrderGoods
[
'Num'
]
=
$this
->
entityManager
->
getRepository
(
AllWarehouseOrderGoods
::
class
)
->
warehouseOrderGoodsAmount
([
'goods_id'
=>
$goodsId
]);
$warehouseOrderGoods
[
'Amount'
]
=
$this
->
entityManager
->
getRepository
(
AllWarehouseOrderGoods
::
class
)
->
warehouseOrderGoodsAmountPrice
([
'goods_id'
=>
$goodsId
]);
}
}
return
[
'goodsInfo'
=>
$goodsInfo
,
'otherWarehouseOrder'
=>
$otherWarehouseOrderInfo
,
'orderGoods'
=>
$orderGoods
];
return
[
'goodsInfo'
=>
$goodsInfo
,
'warehouseOrderGoods'
=>
$warehouseOrderGoods
,
'orderGoods'
=>
$orderGoods
];
}
}
/**
/**
...
@@ -530,22 +531,20 @@ class GoodsController extends AbstractActionController
...
@@ -530,22 +531,20 @@ class GoodsController extends AbstractActionController
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该商品不存在!'
));
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该商品不存在!'
));
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
}
}
$orderGoods
=
$this
->
entityManager
->
getRepository
(
ExWarehouseOrderGoods
::
class
)
->
findBy
([
'goodsId'
=>
$goodsId
]);
$orderGoods
=
$this
->
entityManager
->
getRepository
(
All
ExWarehouseOrderGoods
::
class
)
->
findBy
([
'goodsId'
=>
$goodsId
]);
if
(
$orderGoods
==
null
)
{
if
(
$orderGoods
==
null
)
{
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该出库单不存在!'
));
$this
->
flashMessenger
()
->
addWarningMessage
(
$this
->
translator
->
translate
(
'该出库单不存在!'
));
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
return
$this
->
redirect
()
->
toRoute
(
'goods'
);
}
}
if
(
!
empty
(
$orderGoods
))
{
if
(
!
empty
(
$orderGoods
))
{
foreach
(
$orderGoods
as
$key
=>
$value
)
{
foreach
(
$orderGoods
as
$key
=>
$value
)
{
$exWarehouseOrderInfo
=
$this
->
entityManager
->
getRepository
(
ExWarehouseOrder
::
class
)
->
findOneBy
([
'exWarehouseOrderId'
=>
$value
->
getExWarehouseOrderId
()]);
$warehouse
=
$this
->
entityManager
->
getRepository
(
Warehouse
::
class
)
->
findOneBy
([
'warehouseId'
=>
$value
->
getwarehouseId
()]);
$value
->
exAddTime
=
$exWarehouseOrderInfo
->
getExAddTime
();
$value
->
warehouseName
=
$warehouse
->
getWarehouseName
();
$value
->
ExWarehouseOrderSn
=
$exWarehouseOrderInfo
->
getExWarehouseOrderSn
();
$value
->
WarehouseName
=
$exWarehouseOrderInfo
->
getOneWarehouse
()
->
getWarehouseName
();
$value
->
ExWarehouseOrderInfo
=
$exWarehouseOrderInfo
->
getExWarehouseOrderInfo
();
$exWarehouseOrderInfo
->
ExWarehouseOrderGoodsAmount
=
$this
->
entityManager
->
getRepository
(
ExWarehouseOrderGoods
::
class
)
->
ExWarehouseOrderGoodsAmount
([
'goods_id'
=>
$value
->
getGoodsId
()]);
}
}
$exWarehouseOrderGoods
[
'Num'
]
=
$this
->
entityManager
->
getRepository
(
AllExWarehouseOrderGoods
::
class
)
->
exWarehouseOrderGoodsAmount
([
'goods_id'
=>
$goodsId
]);
$exWarehouseOrderGoods
[
'Amount'
]
=
$this
->
entityManager
->
getRepository
(
AllExWarehouseOrderGoods
::
class
)
->
exWarehouseOrderGoodsAmountPrice
([
'goods_id'
=>
$goodsId
]);
}
}
return
[
'goodsInfo'
=>
$goodsInfo
,
'exWarehouseOrder
'
=>
$exWarehouseOrderInfo
,
'orderGoods'
=>
$orderGoods
];
return
[
'goodsInfo'
=>
$goodsInfo
,
'exWarehouseOrder
Goods'
=>
$exWarehouseOrderGoods
,
'orderGoods'
=>
$orderGoods
];
}
}
/**
/**
...
@@ -575,8 +574,8 @@ class GoodsController extends AbstractActionController
...
@@ -575,8 +574,8 @@ class GoodsController extends AbstractActionController
$arr
[
'goodsSpec'
]
=
$val
->
getGoodsSpec
();
$arr
[
'goodsSpec'
]
=
$val
->
getGoodsSpec
();
$arr
[
'goodsCategoryName'
]
=
$val
->
getGoodsCategory
()
?
$val
->
getGoodsCategory
()
->
getGoodsCategoryName
()
:
''
;
$arr
[
'goodsCategoryName'
]
=
$val
->
getGoodsCategory
()
?
$val
->
getGoodsCategory
()
->
getGoodsCategoryName
()
:
''
;
$arr
[
'brandName'
]
=
$val
->
getBrand
()
?
$val
->
getBrand
()
->
getBrandName
()
:
''
;
$arr
[
'brandName'
]
=
$val
->
getBrand
()
?
$val
->
getBrand
()
->
getBrandName
()
:
''
;
$arr
[
'OtherWarehouseOrderGoodsAmount'
]
=
$this
->
entityManager
->
getRepository
(
OtherWarehouseOrderGoods
::
class
)
->
OtherW
arehouseOrderGoodsAmount
([
'goods_id'
=>
$val
->
getGoodsId
()]);
$arr
[
'OtherWarehouseOrderGoodsAmount'
]
=
$this
->
entityManager
->
getRepository
(
AllWarehouseOrderGoods
::
class
)
->
w
arehouseOrderGoodsAmount
([
'goods_id'
=>
$val
->
getGoodsId
()]);
$arr
[
'ExWarehouseOrderGoodsAmount'
]
=
$this
->
entityManager
->
getRepository
(
ExWarehouseOrderGoods
::
class
)
->
E
xWarehouseOrderGoodsAmount
([
'goods_id'
=>
$val
->
getGoodsId
()]);
$arr
[
'ExWarehouseOrderGoodsAmount'
]
=
$this
->
entityManager
->
getRepository
(
AllExWarehouseOrderGoods
::
class
)
->
e
xWarehouseOrderGoodsAmount
([
'goods_id'
=>
$val
->
getGoodsId
()]);
array_push
(
$list
,
$arr
);
array_push
(
$list
,
$arr
);
}
}
$columns
=
[
'goodsId'
,
'goodsName'
,
'goodsStock'
,
'goodsPrice'
,
'goodsRecommendPrice'
,
'goodsSpec'
,
'goodsCategoryName'
,
'brandName'
,
'OtherWarehouseOrderGoodsAmount'
,
'ExWarehouseOrderGoodsAmount'
];
$columns
=
[
'goodsId'
,
'goodsName'
,
'goodsStock'
,
'goodsPrice'
,
'goodsRecommendPrice'
,
'goodsSpec'
,
'goodsCategoryName'
,
'brandName'
,
'OtherWarehouseOrderGoodsAmount'
,
'ExWarehouseOrderGoodsAmount'
];
...
...
module/Store/src/Repository/AllExWarehouseOrderGoodsRepository.php
View file @
f526207f
...
@@ -25,7 +25,7 @@ class AllExWarehouseOrderGoodsRepository extends EntityRepository
...
@@ -25,7 +25,7 @@ class AllExWarehouseOrderGoodsRepository extends EntityRepository
* @param array $search
* @param array $search
* @return \Doctrine\ORM\Query
* @return \Doctrine\ORM\Query
*/
*/
public
function
AllE
xWarehouseOrderGoodsAmount
(
$search
=
[])
public
function
e
xWarehouseOrderGoodsAmount
(
$search
=
[])
{
{
$query
=
$this
->
getEntityManager
()
->
createQueryBuilder
()
$query
=
$this
->
getEntityManager
()
->
createQueryBuilder
()
->
select
(
'SUM(e.warehouseGoodsExNum)'
)
->
select
(
'SUM(e.warehouseGoodsExNum)'
)
...
@@ -35,6 +35,21 @@ class AllExWarehouseOrderGoodsRepository extends EntityRepository
...
@@ -35,6 +35,21 @@ class AllExWarehouseOrderGoodsRepository extends EntityRepository
return
$ExWarehouseAmount
?
$ExWarehouseAmount
:
0
;
return
$ExWarehouseAmount
?
$ExWarehouseAmount
:
0
;
}
}
/**
* 获取入库总金额
* @param array $search
* @return \Doctrine\ORM\Query
*/
public
function
exWarehouseOrderGoodsAmountPrice
(
$search
=
[])
{
$query
=
$this
->
getEntityManager
()
->
createQueryBuilder
()
->
select
(
'SUM(e.warehouseGoodsAmount)'
)
->
from
(
AllExWarehouseOrderGoods
::
class
,
'e'
);
$this
->
querySearchData
(
$search
,
$query
);
$OtherWarehouseAmount
=
$query
->
getQuery
()
->
getSingleScalarResult
();
return
$OtherWarehouseAmount
?
$OtherWarehouseAmount
:
0
;
}
/**
/**
* 检索商品id
* 检索商品id
* @param $goodsName
* @param $goodsName
...
...
module/Store/src/Repository/AllWarehouseOrderGoodsRepository.php
View file @
f526207f
...
@@ -59,6 +59,36 @@ class AllWarehouseOrderGoodsRepository extends EntityRepository
...
@@ -59,6 +59,36 @@ class AllWarehouseOrderGoodsRepository extends EntityRepository
return
true
;
return
true
;
}
}
/**
* 获取入库总数
* @param array $search
* @return \Doctrine\ORM\Query
*/
public
function
warehouseOrderGoodsAmount
(
$search
=
[])
{
$query
=
$this
->
getEntityManager
()
->
createQueryBuilder
()
->
select
(
'SUM(o.warehouseGoodsBuyNum)'
)
->
from
(
AllWarehouseOrderGoods
::
class
,
'o'
);
$this
->
querySearchData
(
$search
,
$query
);
$OtherWarehouseAmount
=
$query
->
getQuery
()
->
getSingleScalarResult
();
return
$OtherWarehouseAmount
?
$OtherWarehouseAmount
:
0
;
}
/**
* 获取入库总金额
* @param array $search
* @return \Doctrine\ORM\Query
*/
public
function
warehouseOrderGoodsAmountPrice
(
$search
=
[])
{
$query
=
$this
->
getEntityManager
()
->
createQueryBuilder
()
->
select
(
'SUM(o.warehouseGoodsAmount)'
)
->
from
(
AllWarehouseOrderGoods
::
class
,
'o'
);
$this
->
querySearchData
(
$search
,
$query
);
$OtherWarehouseAmount
=
$query
->
getQuery
()
->
getSingleScalarResult
();
return
$OtherWarehouseAmount
?
$OtherWarehouseAmount
:
0
;
}
private
function
querySearchData
(
$search
,
QueryBuilder
$queryBuilder
)
private
function
querySearchData
(
$search
,
QueryBuilder
$queryBuilder
)
{
{
if
(
isset
(
$search
[
'all_warehouse_order_goods_id'
])
&&
!
empty
(
$search
[
'all_warehouse_order_goods_id'
]))
$queryBuilder
->
andWhere
(
$queryBuilder
->
expr
()
->
eq
(
'o.allWarehouseOrderGoodsId'
,
$search
[
'all_warehouse_order_goods_id'
]));
if
(
isset
(
$search
[
'all_warehouse_order_goods_id'
])
&&
!
empty
(
$search
[
'all_warehouse_order_goods_id'
]))
$queryBuilder
->
andWhere
(
$queryBuilder
->
expr
()
->
eq
(
'o.allWarehouseOrderGoodsId'
,
$search
[
'all_warehouse_order_goods_id'
]));
...
...
module/Store/view/store/goods/exwarehousegoods.phtml
View file @
f526207f
...
@@ -50,18 +50,18 @@
...
@@ -50,18 +50,18 @@
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsPrice
());
?>
</td>
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsPrice
());
?>
</td>
<td>
<?php
echo
$goodsValue
->
getWarehouseGoodsExNum
();
?>
</td>
<td>
<?php
echo
$goodsValue
->
getWarehouseGoodsExNum
();
?>
</td>
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsAmount
());
?>
</td>
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsAmount
());
?>
</td>
<td>
<?php
echo
$
goodsValue
->
ExWarehouseOrderSn
;
?>
</td>
<td>
<?php
echo
$
this
->
escapeHtml
(
$goodsValue
->
getExWarehouseOrderSn
());
?>
</td>
<td>
<?php
echo
$goodsValue
->
W
arehouseName
;
?>
</td>
<td>
<?php
echo
$goodsValue
->
w
arehouseName
;
?>
</td>
<td>
<?php
echo
date
(
"Y-m-d H:i:s"
,
$goodsValue
->
exAddTime
);
?>
</td>
<td>
<?php
echo
date
(
"Y-m-d H:i:s"
,
$goodsValue
->
getAddTime
()
);
?>
</td>
<td>
<
?php
echo
$goodsValue
->
ExWarehouseOrderInfo
;
?>
<
/td>
<td></td>
</tr>
</tr>
<?php
}
?>
<?php
}
?>
<tfoot>
<tfoot>
<tr>
<tr>
<td
colspan=
"6"
></td>
<td
colspan=
"6"
></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'总出库数'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
exWarehouseOrder
)
?
$this
->
exWarehouseOrder
->
ExWarehouseOrderGoodsAmount
:
0
);
?>
</span></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'总出库数'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
exWarehouseOrder
Goods
)
?
$this
->
exWarehouseOrderGoods
[
'Num'
]
:
0
);
?>
</span></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'金额合计'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
exWarehouseOrder
)
?
$this
->
erpCurrencyFormat
(
$this
->
exWarehouseOrder
->
getExWarehouseOrderAmount
()
)
:
0
);
?>
</span></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'金额合计'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
exWarehouseOrder
Goods
)
?
$this
->
erpCurrencyFormat
(
$this
->
exWarehouseOrderGoods
[
'Amount'
]
)
:
0
);
?>
</span></td>
</tr>
</tr>
</tfoot>
</tfoot>
</table>
</table>
...
...
module/Store/view/store/goods/index.phtml
View file @
f526207f
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
<th
width=
"10%"
>
<?php
echo
$this
->
translate
(
'商品分类'
);
?>
</th>
<th
width=
"10%"
>
<?php
echo
$this
->
translate
(
'商品分类'
);
?>
</th>
<th
width=
"8%"
>
<?php
echo
$this
->
translate
(
'商品品牌'
);
?>
</th>
<th
width=
"8%"
>
<?php
echo
$this
->
translate
(
'商品品牌'
);
?>
</th>
<th
width=
"6%"
>
<?php
echo
$this
->
translate
(
'库存'
);
?>
</th>
<th
width=
"6%"
>
<?php
echo
$this
->
translate
(
'库存'
);
?>
</th>
<th
width=
"6%"
>
<?php
echo
$this
->
translate
(
'总出库存'
);
?>
</th>
<th
width=
"6%"
>
<?php
echo
$this
->
translate
(
'总入库存'
);
?>
</th>
<th
width=
"6%"
>
<?php
echo
$this
->
translate
(
'总入库存'
);
?>
</th>
<th
width=
"6%"
>
<?php
echo
$this
->
translate
(
'总出库存'
);
?>
</th>
<th
width=
"12%"
>
<?php
echo
$this
->
translate
(
'操作'
);
?>
</th>
<th
width=
"12%"
>
<?php
echo
$this
->
translate
(
'操作'
);
?>
</th>
</tr>
</tr>
<?php
<?php
...
@@ -138,8 +138,8 @@
...
@@ -138,8 +138,8 @@
<?php
echo
$this
->
translate
(
'无'
);
?>
<?php
echo
$this
->
translate
(
'无'
);
?>
<?php
}
?>
<?php
}
?>
</td>
</td>
<td>
<?php
echo
empty
(
$goods
->
ExWarehouseOrderGoodsAmount
)
?
$this
->
translate
(
'无'
)
:
$this
->
escapeHtml
(
$goods
->
ExWarehouseOrderGoodsAmount
);
?>
</td>
<td>
<?php
echo
empty
(
$goods
->
OtherWarehouseOrderGoodsAmount
)
?
$this
->
translate
(
'无'
)
:
$this
->
escapeHtml
(
$goods
->
OtherWarehouseOrderGoodsAmount
);
?>
</td>
<td>
<?php
echo
empty
(
$goods
->
OtherWarehouseOrderGoodsAmount
)
?
$this
->
translate
(
'无'
)
:
$this
->
escapeHtml
(
$goods
->
OtherWarehouseOrderGoodsAmount
);
?>
</td>
<td>
<?php
echo
empty
(
$goods
->
ExWarehouseOrderGoodsAmount
)
?
$this
->
translate
(
'无'
)
:
$this
->
escapeHtml
(
$goods
->
ExWarehouseOrderGoodsAmount
);
?>
</td>
<td>
<td>
<a
href=
"
<?php
echo
$this
->
url
(
'goods'
,
<a
href=
"
<?php
echo
$this
->
url
(
'goods'
,
[
'action'
=>
'edit'
,
'id'
=>
$goods
->
getGoodsId
()]);
?>
"
[
'action'
=>
'edit'
,
'id'
=>
$goods
->
getGoodsId
()]);
?>
"
...
...
module/Store/view/store/goods/otherwarehousegoods.phtml
View file @
f526207f
...
@@ -49,18 +49,18 @@
...
@@ -49,18 +49,18 @@
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsPrice
());
?>
</td>
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsPrice
());
?>
</td>
<td>
<?php
echo
$goodsValue
->
getWarehouseGoodsBuyNum
();
?>
</td>
<td>
<?php
echo
$goodsValue
->
getWarehouseGoodsBuyNum
();
?>
</td>
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsAmount
());
?>
</td>
<td>
<?php
echo
$this
->
erpCurrencyFormat
(
$goodsValue
->
getWarehouseGoodsAmount
());
?>
</td>
<td>
<?php
echo
$
goodsValue
->
WarehouseOrderSn
;
?>
</td>
<td>
<?php
echo
$
this
->
escapeHtml
(
$goodsValue
->
getWarehouseOrderSn
());
?>
</td>
<td>
<?php
echo
$goodsValue
->
W
arehouseName
;
?>
</td>
<td>
<?php
echo
$goodsValue
->
w
arehouseName
;
?>
</td>
<td>
<?php
echo
date
(
"Y-m-d H:i:s"
,
$goodsValue
->
otherAddTime
);
?>
</td>
<td>
<?php
echo
date
(
"Y-m-d H:i:s"
,
$goodsValue
->
getAddTime
()
);
?>
</td>
<td>
<
?php
echo
$goodsValue
->
WarehouseOrderInfo
;
?>
<
/td>
<td></td>
</tr>
</tr>
<?php
}
?>
<?php
}
?>
<tfoot>
<tfoot>
<tr>
<tr>
<td
colspan=
"6"
></td>
<td
colspan=
"6"
></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'总入库数'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
otherWarehouseOrder
)
?
$this
->
otherWarehouseOrder
->
OtherWarehouseOrderGoodsAmount
:
0
);
?>
</span></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'总入库数'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
warehouseOrderGoods
)
?
$this
->
warehouseOrderGoods
[
'Num'
]
:
0
);
?>
</span></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'金额合计'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
otherWarehouseOrder
)
?
$this
->
erpCurrencyFormat
(
$this
->
otherWarehouseOrder
->
getWarehouseOrderAmount
()
)
:
0
);
?>
</span></td>
<td
colspan=
"2"
class=
"text-right"
><b>
<?php
echo
$this
->
translate
(
'金额合计'
);
?>
:
</b><span
id=
"order-amount"
>
<?php
echo
(
isset
(
$this
->
warehouseOrderGoods
)
?
$this
->
erpCurrencyFormat
(
$this
->
warehouseOrderGoods
[
'Amount'
]
)
:
0
);
?>
</span></td>
</tr>
</tr>
</tfoot>
</tfoot>
</table>
</table>
...
...
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