|
@@ -91,7 +91,7 @@ class Userpledge extends Backend
|
|
|
->field('order_no, status') // 指定字段
|
|
->field('order_no, status') // 指定字段
|
|
|
->select();
|
|
->select();
|
|
|
$status_txt=['已下单','支付','转让','提货','取消','关闭','存储中'];
|
|
$status_txt=['已下单','支付','转让','提货','取消','关闭','存储中'];
|
|
|
- // 合并 status 到主数据
|
|
|
|
|
|
|
+ // 3. 合并 status 到主数据
|
|
|
foreach ($details as &$item_outside) {
|
|
foreach ($details as &$item_outside) {
|
|
|
foreach ($orderData as &$item_inside) {
|
|
foreach ($orderData as &$item_inside) {
|
|
|
if($item_outside['order_no']==$item_inside['order_no']){
|
|
if($item_outside['order_no']==$item_inside['order_no']){
|
|
@@ -105,7 +105,6 @@ class Userpledge extends Backend
|
|
|
$userpledge_status=$row['status'];
|
|
$userpledge_status=$row['status'];
|
|
|
|
|
|
|
|
$this->view->assign("userpledge_status", $userpledge_status);
|
|
$this->view->assign("userpledge_status", $userpledge_status);
|
|
|
- $this->view->assign("userpledge_id", $ids);
|
|
|
|
|
$this->view->assign("row", $details);
|
|
$this->view->assign("row", $details);
|
|
|
return $this->view->fetch();
|
|
return $this->view->fetch();
|
|
|
}
|
|
}
|
|
@@ -115,19 +114,10 @@ class Userpledge extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function cancelStorage(){
|
|
public function cancelStorage(){
|
|
|
$id = $this->request->param('id');
|
|
$id = $this->request->param('id');
|
|
|
- $userpledgeId = $this->request->param('userpledgeId');
|
|
|
|
|
- $row = $this->model->get(['id' => $userpledgeId]);
|
|
|
|
|
- $userpledge_status=$row['status'];
|
|
|
|
|
- if($userpledge_status==0){
|
|
|
|
|
- $resp=$this->product_order_model->where('id', $id)->update(['status' => 0]);
|
|
|
|
|
- if($resp){
|
|
|
|
|
- $this->success(__('取消成功'), '');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- $this->error(__('操作失败'));
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ $resp=$this->product_order_model->where('id', $id)
|
|
|
|
|
+ ->update(['status' => 5]);
|
|
|
|
|
+ return $resp;
|
|
|
|
|
+ // $this->success('取消存储', $resp);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|