|
@@ -3420,6 +3420,10 @@ class Sale extends Base
|
|
|
if ($status !== "") {
|
|
|
$where[] = ['a.status', "=", $status];
|
|
|
}
|
|
|
+ $send_status = isset($this->post['send_status']) && $this->post['send_status'] !== "" ? trim($this->post['send_status']) : "";
|
|
|
+ if ($send_status !== "") {
|
|
|
+ $where[] = ['a.send_status', "=", $send_status];
|
|
|
+ }
|
|
|
$start = isset($this->post['start']) && $this->post['start'] !== "" ? $this->post['start'] : "";
|
|
|
if ($start != "") {
|
|
|
$where[] = ["a.addtime", '>=', $start . " 00:00:00"];
|
|
@@ -3542,7 +3546,7 @@ class Sale extends Base
|
|
|
$all_createrid = array_column($list, 'apply_id');
|
|
|
$item = get_company_name_by_uid($all_createrid);
|
|
|
$user = new \app\admin\common\User();
|
|
|
- $names = $user->handle("getCodeAndName", ["code" => array_merge( array_column($list, "customer_code"), array_column($list, "wsm_supplierNo"))]);
|
|
|
+ $names = $user->handle("getCodeAndName", ["code" => array_merge( array_column($list, "supplierNo"), array_column($list, "wsm_supplierNo"))]);
|
|
|
|
|
|
// $userCommon = new \app\admin\common\User();
|
|
|
// $names = $userCommon->handle('getCodeAndName',['code'=>array_column($list,'customer_code')]);
|