Просмотр исходного кода

日账单月账单页面调整

sunxbiao 1 год назад
Родитель
Сommit
ea338bab6d
1 измененных файлов с 17 добавлено и 7 удалено
  1. 17 7
      src/views/accounts/accountRecord/index.vue

+ 17 - 7
src/views/accounts/accountRecord/index.vue

@@ -149,7 +149,7 @@
149 149
         <el-table-column label="关联订单" min-width="200">
150 150
           <template slot-scope="scope">
151 151
             <span v-if="scope.row.deal_type == 2" style="color: blue"> -- </span>
152
-            <span v-else style="color: blue; cursor: pointer;" @click="pushToOrderList(scope.row.order_sn)"> {{ scope.row.order_sn }} </span>
152
+            <span v-else style="color: blue; cursor: pointer;" @click="pushToOrderList(scope.row.order_sn, scope.row.order_type)"> {{ scope.row.order_sn }} </span>
153 153
           </template>
154 154
         </el-table-column>
155 155
         <el-table-column label="交易时间" prop="deal_time" min-width="230" />
@@ -168,7 +168,7 @@
168 168
         <el-table-column v-if="shouldShowFgColumn" label="订单复购金收益" prop="fg" min-width="230" />
169 169
         <el-table-column label="交易类型" min-width="150">
170 170
           <template slot-scope="scope">
171
-            <span v-if="scope.row.deal_type == 1"> 自营订单入账 <el-button type="primary" size="small" @click="checkOrderFenZhangDetail(scope.row)">明细</el-button></span>
171
+            <span v-if="scope.row.deal_type == 1 && scope.row.order_type === 0"> 自营订单入账 <el-button type="primary" size="small" @click="checkOrderFenZhangDetail(scope.row)">明细</el-button></span>
172 172
             <!-- <el-button v-if="scope.row.deal_type == 1" type="primary" size="small" @click="checkOrderFenZhangDetail(scope.row)">明细</el-button> -->
173 173
             <span v-if="scope.row.deal_type == 2"> 佣金提现到账 </span>
174 174
             <span v-if="scope.row.deal_type == 3"> 订单支付 </span>
@@ -221,6 +221,10 @@
221 221
             <span v-if="orderDidideAccountData.fg"> {{ orderDidideAccountData.fg }}  </span>
222 222
             <span v-else> 0  </span>
223 223
           </el-form-item>
224
+          <el-form-item label="订单分润:" class="width100">
225
+            <span v-if="orderDidideAccountData.fenrun"> {{ orderDidideAccountData.fenrun }}  </span>
226
+            <span v-else> 0  </span>
227
+          </el-form-item>
224 228
 <!--          <el-form-item label="创客让利总额:" class="width100">-->
225 229
 <!--            <span v-if="orderDidideAccountData.order_info"> {{ orderDidideAccountData.order_info.shop_bonus_price }}  </span>-->
226 230
 <!--            <span v-else> 0  </span> -->
@@ -505,11 +509,17 @@ export default {
505 509
       }
506 510
     },
507 511
 
508
-    pushToOrderList(orderIds) {
509
-      this.$router.push({
510
-        path: roterPre + '/order/list/',
511
-        query: { order_sn: orderIds }
512
-      })
512
+    pushToOrderList(orderIds, orderType = 0) {
513
+      if (orderType === 0) {
514
+        this.$router.push({
515
+          path: roterPre + "/order/list/",
516
+          query: { order_sn: orderIds },
517
+        });
518
+      } else if (orderType === 9) {
519
+        alert('暂时无法跳转')
520
+      } else if (orderType === 10) {
521
+        alert('暂时无法跳转')
522
+      }
513 523
     },
514 524
 
515 525
     exportSearchResult() {