浏览代码

更新优化

zhang song 6 年之前
父节点
当前提交
c0a426d74a
共有 4 个文件被更改,包括 132 次插入118 次删除
  1. 0 4
      .gitignore
  2. 15 15
      src/components/fullPay.vue
  3. 12 12
      src/components/loanPay.vue
  4. 105 87
      src/components/unsubscribe.vue

+ 0 - 4
.gitignore

@@ -3,7 +3,3 @@
 !/dist/
 !/node_modules/
 !/.idea/
-dist/static/css/
-dist/static/js/app.204a669aeb993c73cf5d.js
-dist/static/js/app.204a669aeb993c73cf5d.js.map
-src/assets/img/

+ 15 - 15
src/components/fullPay.vue

@@ -111,21 +111,21 @@
                 </template>
             </el-table-column>
 
-            <el-table-column label="线下审核时间" width="160">
-                <template slot-scope="scope">
-                    <span v-if="scope.row.offlineAuditTime">{{scope.row.offlineAuditTime}}</span>
-                </template>
-            </el-table-column>
-            <el-table-column label="线上审核时间" width="160">
-                <template slot-scope="scope">
-                    <span v-if="scope.row.onlineAuditTime">{{scope.row.onlineAuditTime}}</span>
-                </template>
-            </el-table-column>
-            <el-table-column label="订单取消时间" width="160">
-                <template slot-scope="scope">
-                    <span v-if="scope.row.orderCancelTime">{{scope.row.orderCancelTime}}</span>
-                </template>
-            </el-table-column>
+<!--            <el-table-column label="线下审核时间" width="160">-->
+<!--                <template slot-scope="scope">-->
+<!--                    <span v-if="scope.row.offlineAuditTime">{{scope.row.offlineAuditTime}}</span>-->
+<!--                </template>-->
+<!--            </el-table-column>-->
+<!--            <el-table-column label="线上审核时间" width="160">-->
+<!--                <template slot-scope="scope">-->
+<!--                    <span v-if="scope.row.onlineAuditTime">{{scope.row.onlineAuditTime}}</span>-->
+<!--                </template>-->
+<!--            </el-table-column>-->
+<!--            <el-table-column label="订单取消时间" width="160">-->
+<!--                <template slot-scope="scope">-->
+<!--                    <span v-if="scope.row.orderCancelTime">{{scope.row.orderCancelTime}}</span>-->
+<!--                </template>-->
+<!--            </el-table-column>-->
             <el-table-column label="订单完成时间" width="160">
                 <template slot-scope="scope">
                     <span v-if="scope.row.orderFinishTime">{{scope.row.orderFinishTime}}</span>

+ 12 - 12
src/components/loanPay.vue

@@ -124,11 +124,11 @@
                     <span v-if="scope.row.onlineAuditTime">{{scope.row.onlineAuditTime}}</span>
                 </template>
             </el-table-column>
-            <el-table-column label="订单取消时间" width="160">
-                <template slot-scope="scope">
-                    <span v-if="scope.row.orderCancelTime">{{scope.row.orderCancelTime}}</span>
-                </template>
-            </el-table-column>
+<!--            <el-table-column label="订单取消时间" width="160">-->
+<!--                <template slot-scope="scope">-->
+<!--                    <span v-if="scope.row.orderCancelTime">{{scope.row.orderCancelTime}}</span>-->
+<!--                </template>-->
+<!--            </el-table-column>-->
             <el-table-column label="订单完成时间" width="160">
                 <template slot-scope="scope">
                     <span v-if="scope.row.orderFinishTime">{{scope.row.orderFinishTime}}</span>
@@ -342,13 +342,13 @@
                     </li>
                 </ul>
             </el-dialog>
-            <el-dialog id="refundDialog" title="退款" :visible.sync="refundDialog"   width="600px"
+            <el-dialog id="refundDialog" title="退款" :visible.sync="refundDialog" width="600px"
                        :before-close="clearForm('refundForm')">
-                <el-form label-width="100px" :model="refundForm" ref="refundForm" status-icon>
+                <el-form label-width="100px"  :model="refundForm" ref="refundForm" status-icon>
                     <el-row>
-                        <el-col :span="12" width="210px">
-                            <el-form-item label="会员号">
-                                <el-input v-model="refundForm.customerId" disabled></el-input>
+                        <el-col :span="12" width="210px" >
+                            <el-form-item label="购车人姓名"  prop="name">
+                                {{refundForm.name}}
                             </el-form-item>
                         </el-col>
                         <el-col :span="12" width="210px">
@@ -358,12 +358,12 @@
                         </el-col>
                         <el-col :span="12" width="210px">
                             <el-form-item label="订单号" prop="orderCode">
-                                <el-input v-model="refundForm.orderCode" disabled></el-input>
+                                {{refundForm.orderCode}}
                             </el-form-item>
                         </el-col>
 
                         <el-col :span="12" width="210px">
-                            <el-form-item label="退原因">
+                            <el-form-item label="退原因">
                                 <el-select v-model="refundForm.reason">
                                     <el-option v-for="(item,index) in reasons"
                                                :key="index"

+ 105 - 87
src/components/unsubscribe.vue

@@ -5,9 +5,9 @@
                 <el-input v-model="queryData.orderNumber" placeholder="订单号" style="width: 150px"></el-input>
                 <el-input v-model="queryData.name" placeholder="购车人" style="width: 150px"></el-input>
                 <el-input v-model="queryData.mobile" placeholder="购车人手机号" style="width: 150px"></el-input>
-                <el-select v-model="queryData.status" filterable placeholder="请选择订单状态">
+                <el-select v-model="queryData.backStatusType" filterable placeholder="请选择退款状态">
                     <el-option
-                            v-for="item in orderStatus"
+                            v-for="item in backStatus"
                             :key="item.value"
                             :label="item.label"
                             :value="item.value">
@@ -23,20 +23,18 @@
                   style="margin-top: 10px">
             <el-table-column type="index" label="排序" width="80"></el-table-column>
             <el-table-column prop="code" label="订单号" width="180"></el-table-column>
-<!--            <el-table-column label="订单状态" width="100">-->
-<!--                <template slot-scope="scope">-->
-<!--                    {{scope.row.status == 1?'待支付订金'-->
-<!--                    :scope.row.status==2?'已支付订金'-->
-<!--                    :scope.row.status==3?'已完成'-->
-<!--                    :scope.row.status==4?'取消订单':'退订金完成'}}-->
-<!--                </template>-->
-<!--            </el-table-column>-->
+            <!--            <el-table-column label="订单状态" width="100">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    {{scope.row.status == 1?'待支付订金'-->
+            <!--                    :scope.row.status==2?'已支付订金'-->
+            <!--                    :scope.row.status==3?'已完成'-->
+            <!--                    :scope.row.status==4?'取消订单':'退订金完成'}}-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
 
             <el-table-column label="退款状态" width="100">
                 <template slot-scope="scope">
-                    {{scope.row.backStatus == 1?'待审核'
-                    :scope.row.backStatus==2?'审核通过'
-                    :scope.row.backStatus==3?'审核不通过':'已退款'}}
+                    {{backStatus[scope.row.backStatus-1].label}}
                 </template>
             </el-table-column>
 
@@ -69,7 +67,7 @@
             <!--            <el-table-column prop="downPaymentRate" label="首付比例"></el-table-column>-->
             <!--            <el-table-column prop="realDownPaymentPrice" label="实际首付款"></el-table-column>-->
             <!--            <el-table-column prop="realDownPaymentRate" label="实际首付比例"></el-table-column>-->
-<!--            <el-table-column prop="finalPaymentPrice" label="尾款"></el-table-column>-->
+            <!--            <el-table-column prop="finalPaymentPrice" label="尾款"></el-table-column>-->
             <!--            <el-table-column prop="loanPrice" label="贷款总额"></el-table-column>-->
             <!--            <el-table-column prop="loanRate" label="贷款利率"></el-table-column>-->
             <!--            <el-table-column prop="monthlyInstallmentPaymentPrice" label="月供金额"></el-table-column>-->
@@ -84,54 +82,54 @@
             <!--                    {{(scope.row.offlinePayments?scope.row.offlinePayments.downPaymentStatus:"0" == 0)?'未支付':'已支付'}}-->
             <!--                </template>-->
             <!--            </el-table-column>-->
-<!--            <el-table-column label="尾款状态" width="120">-->
-<!--                <template slot-scope="scope">-->
-<!--                    {{OfflinePay(scope.row)}}-->
-<!--                </template>-->
-<!--            </el-table-column>-->
-
-<!--            <el-table-column-->
-<!--                    label="发票信息"-->
-<!--                    align="center">-->
-<!--                <template slot-scope="scope">-->
-<!--                    <button-->
-<!--                            v-show="scope.row.offlinePayments && scope.row.offlinePayments.invoicePath !='' "-->
-<!--                            @click="open(scope.row.offlinePayments?scope.row.offlinePayments.invoicePath:'0')">查看图片-->
-<!--                    </button>-->
-<!--                </template>-->
-<!--            </el-table-column>-->
-
-<!--            <el-table-column-->
-<!--                    label="交车凭证"-->
-<!--                    align="center">-->
-<!--                <template slot-scope="scope">-->
-<!--                    <button-->
-<!--                            v-show="scope.row.offlinePayments && scope.row.offlinePayments.deliveryPath !='' "-->
-<!--                            @click="open(scope.row.offlinePayments?scope.row.offlinePayments.deliveryPath:'0')">查看图片-->
-<!--                    </button>-->
-<!--                </template>-->
-<!--            </el-table-column>-->
-
-<!--            <el-table-column label="线下审核时间" width="160">-->
-<!--                <template slot-scope="scope">-->
-<!--                    <span v-if="scope.row.offlineAuditTime">{{scope.row.offlineAuditTime}}</span>-->
-<!--                </template>-->
-<!--            </el-table-column>-->
-<!--            <el-table-column label="线上审核时间" width="160">-->
-<!--                <template slot-scope="scope">-->
-<!--                    <span v-if="scope.row.onlineAuditTime">{{scope.row.onlineAuditTime}}</span>-->
-<!--                </template>-->
-<!--            </el-table-column>-->
-<!--            <el-table-column label="订单取消时间" width="160">-->
-<!--                <template slot-scope="scope">-->
-<!--                    <span v-if="scope.row.orderCancelTime">{{scope.row.orderCancelTime}}</span>-->
-<!--                </template>-->
-<!--            </el-table-column>-->
-<!--            <el-table-column label="订单完成时间" width="160">-->
-<!--                <template slot-scope="scope">-->
-<!--                    <span v-if="scope.row.orderFinishTime">{{scope.row.orderFinishTime}}</span>-->
-<!--                </template>-->
-<!--            </el-table-column>-->
+            <!--            <el-table-column label="尾款状态" width="120">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    {{OfflinePay(scope.row)}}-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
+
+            <!--            <el-table-column-->
+            <!--                    label="发票信息"-->
+            <!--                    align="center">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <button-->
+            <!--                            v-show="scope.row.offlinePayments && scope.row.offlinePayments.invoicePath !='' "-->
+            <!--                            @click="open(scope.row.offlinePayments?scope.row.offlinePayments.invoicePath:'0')">查看图片-->
+            <!--                    </button>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
+
+            <!--            <el-table-column-->
+            <!--                    label="交车凭证"-->
+            <!--                    align="center">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <button-->
+            <!--                            v-show="scope.row.offlinePayments && scope.row.offlinePayments.deliveryPath !='' "-->
+            <!--                            @click="open(scope.row.offlinePayments?scope.row.offlinePayments.deliveryPath:'0')">查看图片-->
+            <!--                    </button>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
+
+            <!--            <el-table-column label="线下审核时间" width="160">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <span v-if="scope.row.offlineAuditTime">{{scope.row.offlineAuditTime}}</span>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
+            <!--            <el-table-column label="线上审核时间" width="160">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <span v-if="scope.row.onlineAuditTime">{{scope.row.onlineAuditTime}}</span>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
+            <!--            <el-table-column label="订单取消时间" width="160">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <span v-if="scope.row.orderCancelTime">{{scope.row.orderCancelTime}}</span>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
+            <!--            <el-table-column label="订单完成时间" width="160">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <span v-if="scope.row.orderFinishTime">{{scope.row.orderFinishTime}}</span>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
             <el-table-column prop="pickCity" label="取车城市" width="120"></el-table-column>
             <el-table-column prop="name" label="购车人姓名" width="100"></el-table-column>
             <el-table-column prop="mobile" label="购车人联系方式" width="120"></el-table-column>
@@ -174,30 +172,30 @@
             </el-table-column>
 
 
-            <el-table-column label="操作 " width="160px" fixed="right" align="center">
-                <template slot-scope="scope">
-                    <el-button v-show="scope.row.loanStatus == 4 && scope.row.status==2 " type="primary" size="small"
-                               @click="examine(scope.row,scope.$index)">审核
-                    </el-button>
-                    <el-button
-                            v-show="scope.row.loanStatus == 5 && !scope.row.offlinePayments  && scope.row.isRefund != 1 ||  (scope.row.status==2 &&scope.row.payType==1 &&!scope.row.offlinePayments) "
-                            type="warning"
-                            size="small"
-                            @click="payForBtn(scope.row,scope.$index)"
-                            style="margin-bottom: 5px"
-                        >上传尾款发票
-                    </el-button>
-                    <el-button v-show="scope.row.offlinePayments && scope.row.status == 3 &&  (scope.row.offlinePayments.deliveryPath == null || scope.row.offlinePayments.deliveryPath == '')"
-                               type="warning"
-                               size="small"
-                               @click="deliveryVehicles(scope.row,scope.$index)">上传交车图片
-                    </el-button>
-                    <el-button v-show="scope.row.status != '3' && scope.row.isRefund == 0"
-                               size="small"
-                               @click="refundBtn(scope.row,scope.$index)">退款
-                    </el-button>
-                </template>
-            </el-table-column>
+            <!--            <el-table-column label="操作 " width="160px" fixed="right" align="center">-->
+            <!--                <template slot-scope="scope">-->
+            <!--                    <el-button v-show="scope.row.loanStatus == 4 && scope.row.status==2 " type="primary" size="small"-->
+            <!--                               @click="examine(scope.row,scope.$index)">审核-->
+            <!--                    </el-button>-->
+            <!--                    <el-button-->
+            <!--                            v-show="scope.row.loanStatus == 5 && !scope.row.offlinePayments  && scope.row.isRefund != 1 ||  (scope.row.status==2 &&scope.row.payType==1 &&!scope.row.offlinePayments) "-->
+            <!--                            type="warning"-->
+            <!--                            size="small"-->
+            <!--                            @click="payForBtn(scope.row,scope.$index)"-->
+            <!--                            style="margin-bottom: 5px"-->
+            <!--                        >上传尾款发票-->
+            <!--                    </el-button>-->
+            <!--                    <el-button v-show="scope.row.offlinePayments && scope.row.status == 3 &&  (scope.row.offlinePayments.deliveryPath == null || scope.row.offlinePayments.deliveryPath == '')"-->
+            <!--                               type="warning"-->
+            <!--                               size="small"-->
+            <!--                               @click="deliveryVehicles(scope.row,scope.$index)">上传交车图片-->
+            <!--                    </el-button>-->
+            <!--                    <el-button v-show="scope.row.status != '3' && scope.row.isRefund == 0"-->
+            <!--                               size="small"-->
+            <!--                               @click="refundBtn(scope.row,scope.$index)">退款-->
+            <!--                    </el-button>-->
+            <!--                </template>-->
+            <!--            </el-table-column>-->
         </el-table>
         <el-pagination
                 @size-change="handleSizeChange"
@@ -380,7 +378,7 @@
             </el-dialog>
 
 
-            <el-dialog id="refundDeaDialog" title="退款详情" :visible.sync="refundDeaDialog"  width="600px">
+            <el-dialog id="refundDeaDialog" title="退款详情" :visible.sync="refundDeaDialog" width="600px">
                 <el-form label-width="100px" :model="refundDealtis" ref="refundForm" status-icon
                 >
                     <el-row>
@@ -526,6 +524,8 @@
                     name: '',//搜索条件 购车人姓名
                     status: '',//搜索条件 订单状态
                     offlinePayType: '',//搜索条件 首付/尾款支付状态
+                    backStatusType: '',//搜索条件 退款状态
+
                 },
                 loading: true,
                 totalNumber: null,
@@ -613,6 +613,22 @@
                 //         {required: true, message: '请输入银行名称', trigger: 'blur'}
                 //     ],
                 // },
+                backStatus: [{
+                    label: '待审核',
+                    value: "1"
+                       },
+                    {
+                        label: '审核通过',
+                        value: "2"
+                    },
+                    {
+                        label: '审核不通过',
+                        value: "3"
+                    },
+                    {
+                        label: '已退款',
+                        value: "4"
+                    }],
                 dealerReason: [
                     {
                         label: '72小时内',
@@ -764,6 +780,8 @@
                     name: this.queryData.name,
                     mobile: this.queryData.mobile,
                     status: this.queryData.status,
+                    backStatus: this.queryData.backStatusType,
+
                     currentPage: this.currentPage,
                     pageNumber: this.pageSize
                 };