Commit 438e617d authored by stone's avatar stone

[fix]增加代理店权限控制

parent 7eaf352b
...@@ -208,6 +208,13 @@ ...@@ -208,6 +208,13 @@
), ),
0)) > 0 0)) > 0
AND t.data_class = 'NORMAL' AND t.data_class = 'NORMAL'
AND t.bp_id_agent_level1 IN (
select h.bp_id
from exp_emp_assign_e_v ee, hls_bp_master h
where ee.user_id = ${/session/@user_id}
and ee.unit_id = h.unit_id
and h.bp_category = 'AGENT'
)
-- AND t.contract_status IN -- AND t.contract_status IN
-- ('INCEPT') -- ('INCEPT')
--测试用,cf_itme应当为0 --测试用,cf_itme应当为0
......
...@@ -49,10 +49,11 @@ ...@@ -49,10 +49,11 @@
$L.showErrorMessage("提示",'请选择厂商相同的现金流信息!'); $L.showErrorMessage("提示",'请选择厂商相同的现金流信息!');
return; return;
} }
if(a[i].get('billing_status_n')!='FULL' ||a[i].get('billing_status_n')!='发票已确认'){ //暂时去掉
/* if(a[i].get('billing_status_n')!='FULL' ||a[i].get('billing_status_n')!='发票已确认'){
$L.showErrorMessage("提示",'请选择开票状态为已开票,发票状态为已确认的现金流!'); $L.showErrorMessage("提示",'请选择开票状态为已开票,发票状态为已确认的现金流!');
return; return;
} }*/
cashflow_id = a[i].get('cashflow_id'); cashflow_id = a[i].get('cashflow_id');
var arr = {}; var arr = {};
......
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 to comment