xuxueyang
2024-08-12 f837b731f571bb53cee99f9bc22a6f74855f3e6c
sub_pages/supplier/order-settlement/order-settlement.vue
@@ -59,8 +59,7 @@
                     </view>
                  </view>
               </view>
               <view class="line"></view>
               <!-- <view class="line"></view> -->
               <view class="form">
                  <view class="flex">
                     <view class="form-item">
@@ -84,6 +83,7 @@
</template>
<script>
import moment from 'moment'
   export default {
      data() {
         return {
@@ -97,16 +97,19 @@
      onLoad() {
         var currentMonthStr = this.$util.toDate(new Date()).substring(0, 8) + '01'
         this.query.startDateStr = currentMonthStr
         var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() + 3600_000 * 24 *
            40).substring(0, 8) + '01').getTime() - 3600_000 * 24 * 1)
         var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() + 3600000 * 24 *
            40).substring(0, 8) + '01').getTime() - 3600000 * 24 * 1)
         this.query.endDateStr = this.$util.toDate(lastMonthDate)
         this.listApi = '/api/partner/settlement/list'
         // #ifdef PUB_PARTNER
         this.listApi = '/api/partner/settlement/list'
         // #endif
         // #ifdef PUB_SUPPLIER
         this.listApi = '/api/supplier/settlement/list'
         // #endif
         this.getList()
      },
      onReachBottom() {
         this.page.current += 1
         this.getMore()
      },
      async onPullDownRefresh() {
@@ -127,6 +130,7 @@
               if (index === 0) {
                  var currentMonthStr = this.$util.toDate(new Date()).substring(0, 8) + '01'
                  this.query.startDateStr = currentMonthStr
                  // moment().startOf
                  var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() +
                     3600_000 * 24 * 40).substring(0, 8) + '01').getTime() - 3600_000 * 24 * 1)
                  this.query.endDateStr = this.$util.toDate(lastMonthDate)
@@ -138,11 +142,6 @@
            }
         },
         toDetail(item) {
            // uni.navigateTo({
            //    url: `/pages/notice/notice?id=${item.id}`
            // })
         }
      }
   }
</script>
@@ -168,8 +167,8 @@
         }
         .form {
            display: flex;
            flex-wrap: wrap;
            // display: flex;
            // flex-wrap: wrap;
            .form-item {
               flex: 1;
@@ -196,6 +195,8 @@
                  font-size: 24rpx;
                  color: #000000;
                  line-height: 34rpx;
                  text-align: center;
                  flex: 1;
               }
               .value.red {