Commit b0110348 by mushishixian

去掉转正限制

parent 3e183539
...@@ -257,11 +257,11 @@ ...@@ -257,11 +257,11 @@
layer.msg('该操作不支持多选', {icon: 5}) layer.msg('该操作不支持多选', {icon: 5})
return; return;
} }
const is_type = data[0].is_type; // const is_type = data[0].is_type;
if (is_type === 1) { // if (is_type === 1) {
layer.msg('该供应商为非正式供应商,请先将该供应商转正', {icon: 5}) // layer.msg('该供应商为非正式供应商,请先将该供应商转正', {icon: 5})
return false; // return false;
} // }
const status = data[0].status; const status = data[0].status;
if ((status === 3 || status === 2 || status === -2)) { if ((status === 3 || status === 2 || status === -2)) {
let supplierId = data[0].supplier_id; let supplierId = data[0].supplier_id;
...@@ -299,12 +299,12 @@ ...@@ -299,12 +299,12 @@
layer.msg('选择的供应商里,存在审核状态的供应商,无法分配渠道员', {icon: 5}) layer.msg('选择的供应商里,存在审核状态的供应商,无法分配渠道员', {icon: 5})
return return
} }
let is_type = Array.from(data, ({is_type}) => is_type); // let is_type = Array.from(data, ({is_type}) => is_type);
//分配采购员的多选操作,需要先去判断是否存在审核中的供应商,存在的话,要提示 // //分配采购员的多选操作,需要先去判断是否存在审核中的供应商,存在的话,要提示
if (is_type.indexOf(1) !== -1) { // if (is_type.indexOf(1) !== -1) {
layer.msg('选择的供应商里,存在非正式供应商,请先将其转正', {icon: 5}) // layer.msg('选择的供应商里,存在非正式供应商,请先将其转正', {icon: 5})
return // return
} // }
layer.open({ layer.open({
type: 2, type: 2,
content: '/supplier/BatchAllocatePurchaseUser?view=iframe&supplier_ids=' + supplierIds, content: '/supplier/BatchAllocatePurchaseUser?view=iframe&supplier_ids=' + supplierIds,
...@@ -330,11 +330,11 @@ ...@@ -330,11 +330,11 @@
layer.msg('该操作不支持多选', {icon: 5}) layer.msg('该操作不支持多选', {icon: 5})
return; return;
} }
const is_type = data[0].is_type; // const is_type = data[0].is_type;
if (is_type === 1) { // if (is_type === 1) {
layer.msg('该供应商为非正式供应商,请先将该供应商转正', {icon: 5}) // layer.msg('该供应商为非正式供应商,请先将该供应商转正', {icon: 5})
return false; // return false;
} // }
const status = data[0].status; const status = data[0].status;
if ((status === 3 || status === 2 || status === -2)) { if ((status === 3 || status === 2 || status === -2)) {
let supplierId = data[0].supplier_id; let supplierId = data[0].supplier_id;
......
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