给司机发送短信
This commit is contained in:
@ -119,7 +119,15 @@ export class SupplyManagementVehicleAssignedCarComponent implements OnInit {
|
||||
nzContent: '<b>该司机还未注册,是否邀请他注册?点击"是"系统将发送邀请短信给司机</b>',
|
||||
nzOkText: '确定',
|
||||
nzCancelText: '取消',
|
||||
nzOnOk: () => console.log('OK')
|
||||
nzOnOk: () => {
|
||||
this.sendMsg(this.sf?.value?.nameOrPhone).subscribe((res => {
|
||||
if (res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
} else {
|
||||
this.service.msgSrv.success('发送失败');
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
return [];
|
||||
}
|
||||
@ -256,5 +264,11 @@ export class SupplyManagementVehicleAssignedCarComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送邀请司机注册短信
|
||||
*/
|
||||
sendMsg(phoneNumber: string) {
|
||||
return this.service.request(this.service.$api_send_msg_code, phoneNumber)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -246,7 +246,15 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
|
||||
nzContent: '<b>该司机还未注册,是否邀请他注册?点击"是"系统将发送邀请短信给司机</b>',
|
||||
nzOkText: '确定',
|
||||
nzCancelText: '取消',
|
||||
nzOnOk: () => console.log('OK')
|
||||
nzOnOk: () => {
|
||||
this.sendMsg(this.sf?.value?.nameOrPhone).subscribe((res => {
|
||||
if (res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
} else {
|
||||
this.service.msgSrv.success('发送失败');
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
return [];
|
||||
}
|
||||
@ -327,4 +335,11 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送邀请司机注册短信
|
||||
*/
|
||||
sendMsg(phoneNumber: string) {
|
||||
return this.service.request(this.service.$api_send_msg_code, phoneNumber)
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,8 +119,8 @@ export class SupplyManagementService extends BaseService {
|
||||
public $api_getContractContent = '/api/sdc/contractTemplate/getContractContent';
|
||||
// 获取运价
|
||||
public $api_getFreight = '/api/mdc/cuc/freightConfig/getFreight';
|
||||
// 从业资格证
|
||||
$api_recognizeQualificationCertificate = '/api/mdc/pbc/hwc/ocr/recognizeQualificationCertificate';
|
||||
// 从业资格证
|
||||
$api_recognizeQualificationCertificate = '/api/mdc/pbc/hwc/ocr/recognizeQualificationCertificate';
|
||||
/**
|
||||
* 获取车型、车长字典数据
|
||||
* @returns
|
||||
@ -177,6 +177,8 @@ export class SupplyManagementService extends BaseService {
|
||||
$api_asyncExportWholeList = '/api/sdc/goodsResourceOperate/asyncExportWholeList';
|
||||
// 根据货主ID查询合同签署属性
|
||||
public $api_getContractAtr = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getContractAtr';
|
||||
// 发送邀请司机短信
|
||||
$api_send_msg_code = `/api/mdc/pbc/smsSend/sendInviteDriver`;
|
||||
|
||||
getDictByKey(dictKey: string) {
|
||||
const params = { dictKey: dictKey };
|
||||
|
||||
Reference in New Issue
Block a user