linwenxin пре 1 година
родитељ
комит
ac6ac87a1a
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      src/views/valueAddedService/orderSettleManag/index.vue

+ 8 - 1
src/views/valueAddedService/orderSettleManag/index.vue

@@ -355,7 +355,14 @@ export default {
               })
             }}>服务单明细</el-button>
           ) : null}
-          {["PAID"].includes(row.payStatus) && ["ING"].includes(row.settleStatus) ? (
+          {["PAID"].includes(row.payStatus) && ["ING"].includes(row.settleStatus) && (() => {
+            var currentDate = new Date(row.payTime);
+            currentDate.setDate(currentDate.getDate() + 7);
+            currentDate.setHours(23);
+            currentDate.setMinutes(59);
+            currentDate.setSeconds(59);
+            return currentDate > new Date() 
+          })() ? (
             <el-popconfirm
               title={`是否确定退款?`}
               onConfirm={() => {