|
|
@@ -61,27 +61,6 @@ class CustomController extends BaseController
|
|
|
util::complete();
|
|
|
}
|
|
|
|
|
|
- //添加新客户 ssh 2021.1.8
|
|
|
- public function actionAdd()
|
|
|
- {
|
|
|
- $post = Yii::$app->request->post();
|
|
|
- $post['style'] = SjClass::STYLE_RETAIL;
|
|
|
- $post['from'] = ApplyClass::FROM_GHS;
|
|
|
- $post['introSjId'] = $this->sjId;
|
|
|
- $post['introStyle'] = SjClass::STYLE_SUPPLIER;
|
|
|
- $post['certType'] = ApplyClass::CERT_TYPE_MOBILE;
|
|
|
- $mobile = $post['mobile'] ?? '';
|
|
|
- $confirmMobile = $post['confirmMobile'];
|
|
|
- if (stringUtil::isMobile($mobile) == false) {
|
|
|
- util::fail(' 请填写正确的手机号');
|
|
|
- }
|
|
|
- if ($mobile != $confirmMobile) {
|
|
|
- util::fail('二次号码填写不一致');
|
|
|
- }
|
|
|
- ApplyService::replaceApply($post);
|
|
|
- util::complete('添加成功,等待审核');
|
|
|
- }
|
|
|
-
|
|
|
//欠款客户 ssh 2021.2.4
|
|
|
public function actionDebtList()
|
|
|
{
|
|
|
@@ -91,6 +70,10 @@ class CustomController extends BaseController
|
|
|
$where['name'] = ['like', $get['name']];
|
|
|
}
|
|
|
$list = CustomService::getDebtList($where);
|
|
|
+ //共X个客户,合计欠款XXX元
|
|
|
+ $shop = $this->shop;
|
|
|
+ $list['customNum'] = $shop->mayGatheringNum ?? 0;
|
|
|
+ $list['debtAmount'] = $shop->mayGathering ?? 0.00;
|
|
|
util::success($list);
|
|
|
}
|
|
|
|