企业后台增加一键发送

This commit is contained in:
meimei
2025-04-18 09:28:43 +08:00
parent 9df07e2f23
commit 2b4d32da47
15 changed files with 601 additions and 9 deletions

View File

@@ -229,10 +229,7 @@ class Firmcustomer extends Backend
->paginate($limit);
foreach ($list as $row) {
// $row->visible(['id','name','age','phone','rel_wx','rel_group','firmtags_ids','headimage','remark','responsible_pm','return_visit_content','status','create_time','admin_id']);
// $row->visible(['firmstoreprojectstwo']);
$row->getRelation('firmstoreprojectstwo')->visible(['name']);
// $row->visible(['firmcustomerorigin']);
$row->getRelation('firmcustomerorigin')->visible(['name']);
}
@@ -275,10 +272,6 @@ class Firmcustomer extends Backend
$row->getRelation('firmstoreprojectstwo')->visible(['name']);
$row->visible(['firmcustomerorigin']);
$row->getRelation('firmcustomerorigin')->visible(['name']);
//$row->visible(['admin']);
//$row->getRelation('admin')->visible(['nickname']);
$row->admin_id = Db::table('fa_admin')->where('id',$row->admin_id)->value('nickname');
$row->responsible_pm = Db::table('fa_admin')->where('id',$row->responsible_pm)->value('nickname');
}
$result = array("total" => $list->total(), "rows" => $list->items(),'mess_id'=>$massId);

View File

@@ -1,5 +1,13 @@
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" name="row[customer_ids]" value="{$customerIds}">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('企业')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required"
data-source="firm/index" class="form-control selectpage"
name="row[firm_id]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Messages_content')}:</label>
<div class="col-xs-12 col-sm-8">