|
|
@@ -139,8 +139,8 @@ class ApproachDeclarationForm extends Model
|
|
|
[['insertUserName'], 'isCanAddUser'],
|
|
|
[['decUserName', 'decType'], 'issetDec'],
|
|
|
[['conUserName'], 'isConUserName'],
|
|
|
- [['recUserName'], 'isRecUserName'],
|
|
|
- [['location'], 'isLocation'],
|
|
|
+// [['recUserName'], 'isRecUserName'],
|
|
|
+// [['location'], 'isLocation'],
|
|
|
// [['insertUserIdCard'], 'isSameSystem'],
|
|
|
];
|
|
|
}
|
|
|
@@ -210,18 +210,18 @@ class ApproachDeclarationForm 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]));
|
|
|
// if (!isset($flipParent[$this->decUserName])) {
|
|
|
// //$this->addError($attribute, '为' . $this->insertUserName . '报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
|
|
|
// $this->addError($attribute, 'To' . $this->insertUserName . 'Entry, Stockist' . $this->decUserName . 'not in exist' . $this->insertUserName . 'in the placement superiors');
|
|
|
// return ;
|
|
|
// }
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
$this->_decId = $decUser['ID'];
|
|
|
}
|