|
|
@@ -32,7 +32,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
public function attributeLabels()
|
|
|
{
|
|
|
return [
|
|
|
- 'data' => '数据',
|
|
|
+ 'data' => 'Data',// 数据
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -58,7 +58,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
public function formatData($attribute){
|
|
|
//$this->data = Json::decode($this->data);
|
|
|
if(!is_array($this->data)){
|
|
|
- $this->addError($attribute, '数据格式错误');
|
|
|
+ $this->addError($attribute, 'Data format error');// 数据格式错误
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -89,7 +89,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
$model->recUserName = null;
|
|
|
$model->location = null;
|
|
|
} else {
|
|
|
- $this->addError($attribute, '报单数据格式错误');
|
|
|
+ $this->addError($attribute, 'The format of the report data is incorrect');// 报单数据格式错误
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -131,7 +131,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
$data->UPDATED_AT = Date::nowTime();
|
|
|
}
|
|
|
}else{
|
|
|
- throw new Exception($packagedata['PACKAGE_NAME'].'库存不足');
|
|
|
+ throw new Exception($packagedata['PACKAGE_NAME'].'Insufficient inventory');// 库存不足
|
|
|
}
|
|
|
}
|
|
|
// 普通商品报单
|
|
|
@@ -152,10 +152,10 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
$data->update();
|
|
|
}
|
|
|
} else {
|
|
|
- throw new Exception($goods['GOODS_NAME'].'商品库存不足');
|
|
|
+ throw new Exception($goods['GOODS_NAME'].'Insufficient inventory');// 商品库存不足
|
|
|
}
|
|
|
}else{
|
|
|
- throw new Exception($goods['GOODS_NAME'].'商品已下架');
|
|
|
+ throw new Exception($goods['GOODS_NAME'].'Sold out');// 商品已下架
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -170,7 +170,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
if( $model->type == 'ZC'){
|
|
|
if($zcUserIdCard != null){
|
|
|
if($model->insertUserIdCard != $zcUserIdCard){
|
|
|
- throw new Exception('批量报单会员必须是同一身份证');
|
|
|
+ throw new Exception('Bulk declaration member must be the same member');//批量报单会员必须是同一身份证
|
|
|
}
|
|
|
} else {
|
|
|
$zcUserIdCard = $model->insertUserIdCard;
|
|
|
@@ -182,7 +182,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
throw new Exception(Form::formatErrorsForApi($model->getErrors()));
|
|
|
}
|
|
|
} else {
|
|
|
- throw new Exception('报单数据格式错误');
|
|
|
+ throw new Exception('The format of the report data is incorrect');// 报单数据格式错误
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -204,7 +204,7 @@ class ApproachDeclarationLoopForm extends Model
|
|
|
public static function rpcIsData($data){
|
|
|
$result = [
|
|
|
'error' => false,
|
|
|
- 'message' => '数据可报单',
|
|
|
+ 'message' => 'Data can be reported',//数据可报单
|
|
|
];
|
|
|
$formModel = new self();
|
|
|
$formModel->scenario = 'canDec';
|