|
|
@@ -169,7 +169,7 @@ class ClearClass extends BaseClass
|
|
|
$customShop->save();
|
|
|
}
|
|
|
|
|
|
- //完整信息 shish 20210625
|
|
|
+ //供应商的采购信息 shish 20210625
|
|
|
public static function getGhsCgInfo($id)
|
|
|
{
|
|
|
$info = self::getById($id);
|
|
|
@@ -181,16 +181,16 @@ class ClearClass extends BaseClass
|
|
|
$cgList = CgClass::getAllByCondition(['id' => ['in', $cgArr]], null, 'id,orderSn,bigNum,smallNum,realPrice', null);
|
|
|
$info['orderList'] = $cgList;
|
|
|
$info['orderNum'] = count($cgArr);
|
|
|
- $type = $info['type'] ?? 1;
|
|
|
+ $clearStyle = $info['clearStyle'] ?? dict::getDict('clearStyle', 'gys2KmGys');
|
|
|
$operator = $info['customShopAdminName'] ?? '';
|
|
|
- if ($type == 2) {
|
|
|
+ if ($clearStyle == dict::getDict('clearStyle', 'kmGys2gys')) {
|
|
|
$operator = '商家';
|
|
|
}
|
|
|
$info['operator'] = $operator;
|
|
|
return $info;
|
|
|
}
|
|
|
|
|
|
- //完整信息 shish 20210625
|
|
|
+ //零售的采购信息 shish 20210625
|
|
|
public static function getCgInfo($id)
|
|
|
{
|
|
|
$info = self::getById($id);
|
|
|
@@ -202,9 +202,9 @@ class ClearClass extends BaseClass
|
|
|
$cgList = PurchaseClass::getAllByCondition(['id' => ['in', $cgArr]], null, 'id,orderSn,bigNum,smallNum,realPrice', null);
|
|
|
$info['orderList'] = $cgList;
|
|
|
$info['orderNum'] = count($cgArr);
|
|
|
- $type = $info['type'] ?? 1;
|
|
|
+ $clearStyle = $info['clearStyle'] ?? dict::getDict('clearStyle', 'hd2Gys');
|
|
|
$operator = $info['customShopAdminName'] ?? '';
|
|
|
- if ($type == 2) {
|
|
|
+ if ($clearStyle == dict::getDict('clearStyle', 'gys2Hd')) {
|
|
|
$operator = '商家';
|
|
|
}
|
|
|
$info['operator'] = $operator;
|