<template>
  <view class="reservation-page">
    <view class="fixed-nav">
      <NavBar title="发票管理">
      </NavBar>
    </view>
    <view class="content-area">
      <!-- 基本信息分组 -->
      <view class="invoice-section">
        <view class="invoice-title">基本信息</view>
        <view class="invoice-row">
          <text class="invoice-label">抬头类型</text>
          <picker :range="titleTypeOptions" v-model="form.titleTypeIndex">
            <view class="invoice-value">{{ titleTypeOptions[form.titleTypeIndex] }}</view>
          </picker>
        </view>
        <view class="invoice-row">
          <text class="invoice-label">发票抬头</text>
          <input class="invoice-value" v-model="form.title" placeholder="请输入发票抬头" />
        </view>
        <view class="invoice-row">
          <text class="invoice-label">税号</text>
          <input class="invoice-value" v-model="form.taxNo" placeholder="请输入税号" />
        </view>
      </view>
      <!-- 预约信息分组 -->
      <view class="invoice-section">
        <view class="invoice-title">预约信息</view>
        <view class="invoice-row"><text class="invoice-label">预约日期</text><text class="invoice-value">2024-01-14</text></view>
        <view class="invoice-row"><text class="invoice-label">预约批次</text><text class="invoice-value">下午批次</text></view>
        <view class="invoice-row"><text class="invoice-label">航行方向</text><text class="invoice-value">南向北</text></view>
        <view class="invoice-row">
          <text class="invoice-label">预约状态</text>
          <text class="pay-status">已确认</text>
        </view>
      </view>
      <!-- 船舶信息分组 -->
      <view class="invoice-section">
        <view class="invoice-title">船舶信息</view>
        <view class="invoice-row"><text class="invoice-label">船舶</text><text class="invoice-value">苏航666</text></view>
        <view class="invoice-row"><text class="invoice-label">编号</text><text class="invoice-value">ZJ12345</text></view>
        <view class="invoice-row"><text class="invoice-label">载重</text><text class="invoice-value">500吨</text></view>
        <view class="invoice-row"><text class="invoice-label">类型</text><text class="invoice-value">货船</text></view>
        <view class="invoice-row"><text class="invoice-label">总长度</text><text class="invoice-value">45米</text></view>
        <view class="invoice-row"><text class="invoice-label">型宽</text><text class="invoice-value">8米</text></view>
        <view class="invoice-row"><text class="invoice-label">型深</text><text class="invoice-value">3.5米</text></view>
      </view>
      <!-- 票价信息分组 -->
      <view class="invoice-section">
        <view class="invoice-title">票价信息</view>
        <view class="invoice-row"><text class="invoice-label">过闸费用</text><text class="invoice-value">￥300.00</text></view>
        <view class="invoice-row"><text class="invoice-label">按吨位计费</text><text class="invoice-value">500吨</text></view>
        <view class="invoice-row pay-total">
          <text class="invoice-label">总计</text>
          <text class="invoice-value pay-total-num">￥300.00</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import NavBar from '@/components/NavBar.vue'
export default {
  name: 'InvoiceManagePage',
  components: { NavBar },
  data() {
    return {
      form: {
        titleTypeIndex: 0,
        title: '',
        taxNo: ''
      },
      titleTypeOptions: ['企业单位', '个人/非企业单位']
    }
  },
  methods: {
    // 相关方法可根据需要补充
  }
}
</script>

<style scoped>
.reservation-page {
  background: linear-gradient(180deg, #eaf3ff 0%, #f6faff 100%);
  min-height: 100vh;
  padding-bottom: 40rpx;
}
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, #cbe6ff 0%, #f6faff 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.content-area {
  padding: 220rpx 24rpx 20rpx 24rpx;
}
.invoice-card, .invoice-header, .status-tag, .invoice-date, .invoice-amount, .invoice-batch, .invoice-actions, .invoice-detail-btn, .invoice-detail-btn.issue, .invoice-btn {
  display: none !important;
}
.invoice-section {
  background: #fff;
  border-radius: 16rpx;
  box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.04);
  padding: 32rpx 28rpx 8rpx 28rpx;
  margin-bottom: 32rpx;
}
.invoice-title {
  font-size: 30rpx;
  font-weight: bold;
  margin-bottom: 24rpx;
}
.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 28rpx;
  color: #222;
  padding: 18rpx 0;
  border-bottom: 1rpx solid #f2f4f8;
}
.invoice-row:last-child {
  border-bottom: none;
}
.invoice-label {
  color: #3b4a6b;
  min-width: 180rpx;
  font-size: 28rpx;
}
.invoice-value {
  flex: 1;
  text-align: right;
  color: #222;
  font-size: 28rpx;
  background: transparent;
  border: none;
  outline: none;
}
.pay-status {
  background: #217aff;
  color: #fff;
  border-radius: 24rpx;
  padding: 4rpx 24rpx;
  font-size: 24rpx;
  margin-left: 12rpx;
}
.pay-total-num {
  color: #217aff;
  font-size: 32rpx;
  font-weight: bold;
}
.pay-total {
  font-weight: bold;
}
</style> 