lilei 1 vuosi sitten
vanhempi
commit
b1e6e454a7
1 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  1. 8 3
      src/views/salesReturnManagement/salesReturn/detail.vue

+ 8 - 3
src/views/salesReturnManagement/salesReturn/detail.vue

@@ -82,7 +82,7 @@
               </div>
             </a-alert>
             <div style="display:flex;align-items:center;justify-content: space-between;margin-bottom: 10px;">
-              <div>说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品</div>
+              <div>说明:红色行表示收货时新增的产品;黄色表示客服确认时新增的产品;退货原因文字显示红色表示退货原因和退货类别不一致;</div>
             </div>
             <!-- 列表 -->
             <s-table
@@ -95,7 +95,12 @@
               :columns="columns"
               :data="loadData"
               :scroll="{ x: 'calc(700px + 50%)'}"
-              bordered></s-table>
+              bordered>
+              <!-- 退货原因 -->
+              <template slot="returnReason" slot-scope="text, record">
+                <span title="退货原因和退货类别不一致" :style="{color:record.needHandleFlag==1?'red':''}">{{ record.returnReason||'--' }}</span>
+              </template>
+            </s-table>
           </a-tab-pane>
           <a-tab-pane :key="2" tab="审核进度" >
             <auditDetail v-if="$hasPermissions('B_salesReturnAudit')" ref="auditDetail" businessType="SALES_RETURN" :itemSn="$route.params.sn"></auditDetail>
@@ -205,7 +210,7 @@ export default {
         { title: '坏件数量', dataIndex: 'badQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '良品数量', dataIndex: 'goodQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '返库数量', dataIndex: 'backStockQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '退货原因', dataIndex: 'returnReason', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '退货原因', dataIndex: 'returnReason', width: '8%', align: 'center', scopedSlots: { customRender: 'returnReason' } },
         { title: '备注', dataIndex: 'returnReasonRemarks', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
       ]
       if (this.$hasPermissions('B_salesReturnDetail_salesPrice') && this.showFlag != 0) { //  售价权限