xieruidong il y a 2 ans
Parent
commit
4dce91b68a

+ 3 - 0
application/api/controller/object/Index.php

@@ -115,6 +115,9 @@ class Index extends Api
      * @ApiParams (name=info[0][refund_config][req_amount],type=object,description="1是0否需要填写金额字段")
      * @ApiParams (name=info[0][refund_config][amount],type=object,description="退款金额")
      * @ApiParams (name=info[0][refund_config][req_order],type=object,description="1是0否需要拍维修单")
+     * @ApiParams (name=info[0][refund_config][num],type=object,description="退货数量")
+     * @ApiParams (name=info[0][refund_config][num_install],type=object,description="退安装量数量")
+     * @ApiParams (name=info[0][refund_config][req_order],type=object,description="1是0否需要拍维修单")
      * @ApiParams (name=info[0][refund_config][req_order_goods],type=object,description="维修单商品对象")
      * @ApiParams (name=tax,description=发票信息)
      * @ApiParams (name=tax.paper_type,description=1电子2纸质)

+ 4 - 0
application/common/model/Refund.php

@@ -155,6 +155,8 @@ class Refund Extends Model
             $refundConfig['req_amount']=1;
             $refundConfig['amount']=RefundService::setOrderInfo($orderInfo,$orderInfo['num'],$orderInfo['num_install'])->amount(true);
             $refundConfig['req_order']=0;
+            $refundConfig['num']=$orderInfo['num'];
+            $refundConfig['num_install']=$orderInfo['num_install'];
         }
         #已发货
         elseif(in_array($order['status'],[$order::S_WAIT_REC,$order::S_OVER])){
@@ -170,6 +172,8 @@ class Refund Extends Model
                 $refundConfig['req_amount']=1;
                 $refundConfig['amount']=RefundService::setOrderInfo($orderInfo,$orderInfo['num'],$orderInfo['num_install'])->amount(true);
                 $refundConfig['req_order']=0;
+                $refundConfig['num']=$orderInfo['num'];
+                $refundConfig['num_install']=$orderInfo['num_install'];
             }
             #只能换货保修
             else{

+ 31 - 1
public/api.html

@@ -8407,6 +8407,24 @@
                                                         <td>1是0否需要拍维修单</td>
                                                     </tr>
                                                                                                         <tr>
+                                                        <td>info[0][refund_config][num]</td>
+                                                        <td>object</td>
+                                                        <td>是</td>
+                                                        <td>退货数量</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>info[0][refund_config][num_install]</td>
+                                                        <td>object</td>
+                                                        <td>是</td>
+                                                        <td>退安装量数量</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>info[0][refund_config][req_order]</td>
+                                                        <td>object</td>
+                                                        <td>是</td>
+                                                        <td>1是0否需要拍维修单</td>
+                                                    </tr>
+                                                                                                        <tr>
                                                         <td>info[0][refund_config][req_order_goods]</td>
                                                         <td>object</td>
                                                         <td>是</td>
@@ -8769,6 +8787,18 @@
                                                             <input type="object" class="form-control input-sm" id="info[0][refund_config][req_order]" required placeholder="1是0否需要拍维修单" name="info[0][refund_config][req_order]">
                                                         </div>
                                                                                                                 <div class="form-group">
+                                                            <label class="control-label" for="info[0][refund_config][num]">info[0][refund_config][num]</label>
+                                                            <input type="object" class="form-control input-sm" id="info[0][refund_config][num]" required placeholder="退货数量" name="info[0][refund_config][num]">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="info[0][refund_config][num_install]">info[0][refund_config][num_install]</label>
+                                                            <input type="object" class="form-control input-sm" id="info[0][refund_config][num_install]" required placeholder="退安装量数量" name="info[0][refund_config][num_install]">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="info[0][refund_config][req_order]">info[0][refund_config][req_order]</label>
+                                                            <input type="object" class="form-control input-sm" id="info[0][refund_config][req_order]" required placeholder="1是0否需要拍维修单" name="info[0][refund_config][req_order]">
+                                                        </div>
+                                                                                                                <div class="form-group">
                                                             <label class="control-label" for="info[0][refund_config][req_order_goods]">info[0][refund_config][req_order_goods]</label>
                                                             <input type="object" class="form-control input-sm" id="info[0][refund_config][req_order_goods]" required placeholder="维修单商品对象" name="info[0][refund_config][req_order_goods]">
                                                         </div>
@@ -17406,7 +17436,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2022-11-22 13:24:08 <a href="./" target="_blank">苏州屏酷有限公司</a>
+                    Generated on 2022-11-22 13:45:12 <a href="./" target="_blank">苏州屏酷有限公司</a>
                 </div>
             </div>