Commit f65eb0cf by 杨树贤

Merge branch 'ysx-CRM转化供应商流程-20260518' into Dev

parents 85d4740d af5370ab
......@@ -34,9 +34,9 @@ class SupplierCrmApiController extends Controller
if ($auditOpinion == 'disagree' && empty($remark)) {
$this->response(-1, '请填写原因说明');
}
// if ($auditOpinion == 'agree' && empty($channelUid)) {
// $this->response(-1, '请指定采购员');
// }
if ($auditOpinion == 'agree' && empty($channelUid)) {
$this->response(-1, '请指定采购员');
}
// 校验审核流状态,已拒绝的不允许再审核
$auditBillInfo = AuditCenterService::getAuditInfoByIdAndType($supplierId, AuditCenterService::TYPE_CUSTOMER_CONVERT_SUPPLIER_AUDIT);
......@@ -62,4 +62,4 @@ class SupplierCrmApiController extends Controller
$result = AuditCenterService::getAuditInfoByIdAndType($supplierId, AuditCenterService::TYPE_CUSTOMER_CONVERT_SUPPLIER_AUDIT);
$this->response(0, 'ok', $result);
}
}
}
\ No newline at end of file
......@@ -9,6 +9,11 @@
let remark = data.field.remark || '';
let channelUid = data.field.channel_uid || '';
// 同意时必须指定采购员
if (auditOpinion === 'agree' && !channelUid) {
parent.layer.msg('请指定采购员', {icon: 5});
return false;
}
let url = '/api/supplier_crm/AuditCustomerConvertSupplier';
let requestData = {
supplier_id: supplierId,
......
......@@ -62,6 +62,7 @@
<div class="layui-input-block block-42 info-label">
{{ array_get($userCodes, $supplier['channel_uid'], '未知') }}
</div>
<input type="hidden" name="channel_uid" value="{{ $supplier['channel_uid'] }}">
@else
{!! $statusPresenter->render('channel_uid','指定采购员 : ',null,
$userCodes,['required'=>true,'width'=>'150px']) !!}
......@@ -105,4 +106,4 @@
</div>
</form>
</div>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment