xieruidong 2 years ago
parent
commit
a57f2b2fb1

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

@@ -108,6 +108,7 @@ class Index extends Api
      * @ApiParams (name=info[0][refund_config][refund_type],type=object,description="申请类型数组")
      * @ApiParams (name=info[0][refund_config][type],type=object,description="退货方式数组")
      * @ApiParams (name=info[0][refund_config][req_amount],type=object,description="1是0否需要填写金额字段")
+     * @ApiParams (name=info[0][refund_config][req_order],type=object,description="1是0否需要拍维修单")
      * @ApiParams (name=tax,description=发票信息)
      * @ApiParams (name=tax.paper_type,description=1电子2纸质)
      * @ApiParams (name=tax.self_type,description=1专票2普票)

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

@@ -150,6 +150,7 @@ class Refund Extends Model
             ];
             $refundConfig['reason']=array_values(Refund::getReasons());
             $refundConfig['req_amount']=1;
+            $refundConfig['req_order']=0;
         }
         #已发货
         elseif(in_array($order['status'],[$order::S_WAIT_REC,$order::S_OVER])){
@@ -163,6 +164,7 @@ class Refund Extends Model
                 ];
                 $refundConfig['reason']=array_values(Refund::getReasons());
                 $refundConfig['req_amount']=1;
+                $refundConfig['req_order']=0;
             }else{
                 $refundConfig['refund_type']=[
                     self::REFUND_TYPE_HHBX=>'换货保修',
@@ -172,6 +174,7 @@ class Refund Extends Model
                 ];
                 $refundConfig['reason']=array_values(Refund::getReasons());
                 $refundConfig['req_amount']=0;
+                $refundConfig['req_order']=1;
             }
         }
 

+ 11 - 1
public/api.html

@@ -7954,6 +7954,12 @@
                                                         <td>1是0否需要填写金额字段</td>
                                                     </tr>
                                                                                                         <tr>
+                                                        <td>info[0][refund_config][req_order]</td>
+                                                        <td>object</td>
+                                                        <td>是</td>
+                                                        <td>1是0否需要拍维修单</td>
+                                                    </tr>
+                                                                                                        <tr>
                                                         <td>tax</td>
                                                         <td>string</td>
                                                         <td>是</td>
@@ -8278,6 +8284,10 @@
                                                             <input type="object" class="form-control input-sm" id="info[0][refund_config][req_amount]" required placeholder="1是0否需要填写金额字段" name="info[0][refund_config][req_amount]">
                                                         </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="tax">tax</label>
                                                             <input type="string" class="form-control input-sm" id="tax" required placeholder="发票信息" name="tax">
                                                         </div>
@@ -16439,7 +16449,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2022-11-04 11:36:57 <a href="./" target="_blank">苏州屏酷有限公司</a>
+                    Generated on 2022-11-04 13:11:39 <a href="./" target="_blank">苏州屏酷有限公司</a>
                 </div>
             </div>