|
|
@@ -136,8 +136,8 @@ class DeclarationForm extends Model
|
|
|
[['insertUserName'], 'isCanAddUser'],
|
|
|
[['decUserName'], 'issetDec'],
|
|
|
[['conUserName'], 'isConUserName'],
|
|
|
- [['recUserName'], 'isRecUserName'],
|
|
|
- [['location'], 'isLocation'],
|
|
|
+// [['recUserName'], 'isRecUserName'],
|
|
|
+// [['location'], 'isLocation'],
|
|
|
// [['insertUserIdCard'], 'isSameSystem'],
|
|
|
];
|
|
|
}
|
|
|
@@ -210,12 +210,12 @@ class DeclarationForm extends Model
|
|
|
$this->addError($attribute, Yii::t('app', 'stockistDoesNotExist'));
|
|
|
return false;
|
|
|
} else {
|
|
|
- if ($this->decType !== 'ba') {
|
|
|
+// if ($this->decType !== 'ba') {
|
|
|
// 判断报单中心是否在新加入会员的安置网上级中
|
|
|
- $this->loopFindParentToNetwork($this->insertUserName);
|
|
|
+// $this->loopFindParentToNetwork($this->insertUserName);
|
|
|
//反转数组,in_array搜索错误
|
|
|
//in_array($this->decUserName, $this->_tempNetworkParentUser[$this->insertUserName]);
|
|
|
- $flipParent = array_flip(array_filter($this->_tempNetworkParentUser[$this->insertUserName]));
|
|
|
+// $flipParent = array_flip(array_filter($this->_tempNetworkParentUser[$this->insertUserName]));
|
|
|
// var_dump($flipParent);
|
|
|
// echo $this->insertUserName.'=='.$this->decUserName;
|
|
|
// exit;
|
|
|
@@ -224,7 +224,7 @@ class DeclarationForm extends Model
|
|
|
// $this->addError($attribute, 'To' . $this->insertUserName . 'Entry, Stockist' . $this->decUserName . 'not in exist' . $this->insertUserName . 'in the placement superiors');
|
|
|
// return;
|
|
|
// }
|
|
|
- }
|
|
|
+// }
|
|
|
$this->_decId = $decUser['ID'];
|
|
|
}
|
|
|
}
|