feat(purchase): 更新采购信息中采购人名称获取方式
- 将采购人名称获取方式从 User 模型改为 DeliveryService 模型 - 在企业微信通知中添加采购总价信息 - 优化企业微信通知中的采购金额显示,区分单价和总价
This commit is contained in:
parent
74f5de71d6
commit
85997befc8
@ -173,7 +173,7 @@ class PurchaseProductOfferLogic extends BaseLogic
|
||||
Db::commit();
|
||||
$offer['store_name']=$product['store_name'];
|
||||
$offer['unit_name']=$unit_name;
|
||||
$offer['buyer_name']=User::where('id',$offer['buyer_id'])->value('real_name');
|
||||
$offer['buyer_name']=DeliveryService::where('uid',$offer['buyer_id'])->value('nickname');
|
||||
if($offer['pay_type']==1){
|
||||
$offer['pay_type_name']='赊账';
|
||||
}elseif($offer['pay_type']==2){
|
||||
|
@ -56,7 +56,7 @@ class PurchaseProductOfferListsTwo extends BaseApiDataLists implements ListsSear
|
||||
$item->store_name=$find->store_name;
|
||||
$item->unit_name=StoreProductUnit::where('id',$item->unit)->value('name');
|
||||
$item->category_name=StoreCategory::where('id',$find->top_cate_id)->value('name');
|
||||
$item->buyer_name=User::where('id',$item['buyer_id'])->value('real_name');
|
||||
$item->buyer_name=DeliveryService::where('uid',$item->buyer_id)->value('nickname');
|
||||
|
||||
})
|
||||
->toArray();
|
||||
|
@ -17,6 +17,7 @@ class ProductOffer
|
||||
$num = $data['buyer_nums'];
|
||||
$unit_name = $data['unit_name'];
|
||||
$price = $data['price'];
|
||||
$total_price = $data['total_price'];
|
||||
$create_time = $data['create_time'];
|
||||
$buyer_name = $data['buyer_name'];
|
||||
$pay_type = $data['pay_type_name'];
|
||||
@ -26,7 +27,8 @@ class ProductOffer
|
||||
>商品名称:<font color=\"comment\">$store_name</font>
|
||||
>数量/单位:<font color=\"comment\">$num/$unit_name</font>
|
||||
>采购人:<font color=\"comment\">$buyer_name</font>
|
||||
>采购金额:<font color=\"comment\">$price</font>
|
||||
>采购单价:<font color=\"comment\">$price</font>
|
||||
>采购总价:<font color=\"comment\">$total_price</font>
|
||||
>采购时间:<font color=\"comment\">$create_time</font>
|
||||
>支付方式:<font color=\"comment\">$pay_type</font>
|
||||
[下载今日采购表格]($urls)"]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user