Browse Source

超时提醒

chenrui 1 year ago
parent
commit
019374953a
1 changed files with 36 additions and 15 deletions
  1. 36 15
      src/views/salesReturnManagement/returnSchedule/list.vue

+ 36 - 15
src/views/salesReturnManagement/returnSchedule/list.vue

@@ -68,9 +68,9 @@
               <a-col :md="6" :sm="24">
                 <a-form-model-item label="超时环节提醒">
                   <a-select v-model="queryParam.checkflag" allowClear placeholder="请选择超时环节提醒状态">
-                    <a-select-option value="oneouttime">!未退货</a-select-option>
-                    <a-select-option value="twoouttime">!!未退货</a-select-option>
-                    <a-select-option value="twoouttime">!未清点</a-select-option>
+                    <a-select-option value="unReturnLevel1">!未退货</a-select-option>
+                    <a-select-option value="unReturnLevel2">!!未退货</a-select-option>
+                    <a-select-option value="oneouttime">!未清点</a-select-option>
                     <a-select-option value="twoouttime">!!未清点</a-select-option>
                   </a-select>
                 </a-form-model-item>
@@ -105,22 +105,43 @@
           bordered>
           <!-- 超时环节提示 -->
           <template slot="tip" slot-scope="text, record">
-            <a-tooltip placement="top" v-if="record.customerServiceConfirmOverDay && record.customerServiceConfirmOverDay*1>3">
-              <template slot="title">
-                <span>已超时{{ record.customerServiceConfirmOverDay }}天(要求提货后3-5天内完成清点)</span>
-              </template>
-              <div>
-                <a-icon type="exclamation-circle" theme="filled" :style="{color:'#ed1c24',fontSize:'18px',marginRight:'6px',display:'inlineBlock'}"/>
-                <a-icon v-if="record.customerServiceConfirmOverDay*1>5" theme="filled" type="exclamation-circle" :style="{color:'#ed1c24',fontSize:'18px',marginRight:'6px',display:'inlineBlock'}"/>
-                <span style="vertical-align: top;">未清点</span>
-              </div>
-            </a-tooltip>
-            <span v-else>--</span>
+            <div v-if="record.pickUpAuditDateOverDay">
+              <a-tooltip placement="top" v-if="record.pickUpAuditDateOverDay*1>=5">
+                <template slot="title">
+                  <span>已超时{{ record.pickUpAuditDateOverDay }}天(要求销售退货单审核通过后5天内完成提货)</span>
+                </template>
+                <div>
+                  <a-icon type="exclamation-circle" theme="filled" :style="{color:'#ed1c24',fontSize:'18px',marginRight:'6px',display:'inlineBlock'}"/>
+                  <a-icon v-if="record.pickUpAuditDateOverDay*1>10" theme="filled" type="exclamation-circle" :style="{color:'#ed1c24',fontSize:'18px',marginRight:'6px',display:'inlineBlock'}"/>
+                  <span style="vertical-align: top;">未退货</span>
+                </div>
+              </a-tooltip>
+              <span v-else>--</span>
+            </div>
+            <div v-if="record.customerServiceConfirmOverDay">
+              <a-tooltip placement="top" v-if="record.customerServiceConfirmOverDay*1>3">
+                <template slot="title">
+                  <span>已超时{{ record.customerServiceConfirmOverDay }}天(要求提货后3-5天内完成清点)</span>
+                </template>
+                <div>
+                  <a-icon type="exclamation-circle" theme="filled" :style="{color:'#ed1c24',fontSize:'18px',marginRight:'6px',display:'inlineBlock'}"/>
+                  <a-icon v-if="record.customerServiceConfirmOverDay*1>5" theme="filled" type="exclamation-circle" :style="{color:'#ed1c24',fontSize:'18px',marginRight:'6px',display:'inlineBlock'}"/>
+                  <span style="vertical-align: top;">未清点</span>
+                </div>
+              </a-tooltip>
+              <span v-else>--</span>
+            </div>
+            <div v-if="!record.pickUpAuditDateOverDay||!record.pickUpAuditDateOverDay">--</div>
           </template>
           <!-- 总部销退单号 -->
           <template slot="salesReturnBillNo" slot-scope="text, record">
             <span class="link-bule" @click="handleDetail(record)">{{ record.salesReturnBillNo }}</span>
           </template>
+          <!-- 提货审核时间 -->
+          <template slot="pickUpAuditDate" slot-scope="text, record">
+            <span v-if="record.pickUpFlag==1">{{ record.pickUpAuditDate }}</span>
+            <span v-else>--</span>
+          </template>
         </s-table>
       </a-spin>
     </a-card>
@@ -215,7 +236,7 @@ export default {
         { title: '申请退货数量', dataIndex: 'totalInitialQty', width: '100px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         // { title: '申请退货金额', dataIndex: 'initialAmount', width: '100px', align: 'right', customRender: text => ((text || text == 0) ? _this.toThousands(text) : '--') },
         { title: '退货申请审核时间', dataIndex: 'auditTime', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '提货审核时间', dataIndex: 'pickUpAuditDate', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '提货审核时间', dataIndex: 'pickUpAuditDate', width: '150px', align: 'center', scopedSlots: { customRender: 'pickUpAuditDate' } },
         { title: '收货时间', dataIndex: 'receiveTime', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品检时间', dataIndex: 'checkTime', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客服确认时间', dataIndex: 'customerServiceConfirmTime', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },