linwenxin преди 5 месеца
родител
ревизия
551621b01e
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      src/components/insuranceDialog.vue
  2. 1 0
      src/packageWorkorder/pages/orderList.vue

+ 1 - 1
src/components/insuranceDialog.vue

@@ -122,7 +122,7 @@ export default {
     calculateDaysDifference(timeString) {
       const inputDate = new Date(timeString)
       const currentDate = new Date()
-      const timeDiff = currentDate - inputDate
+      const timeDiff = inputDate - currentDate
       const daysDiff = Math.floor(timeDiff / (1000 * 60 * 60 * 24))
       return daysDiff
     }

+ 1 - 0
src/packageWorkorder/pages/orderList.vue

@@ -1025,6 +1025,7 @@ export default {
 
       ::v-deep .u-button {
         // width: 160rpx;
+        display: inline-block;
         box-sizing: border-box;
         padding: 20rpx;
         margin: 0;