<template>
  <view class="app-container">
    <u-navbar
      leftText="返回"
      title="现场检查记录"
      :autoBack="true"
      :placeholder="true"
    />
    <view class="list-item active view-global" v-for="item in 2" :key="item">
      <view class="item-cell">
        <view class="cell-lable">店铺名称：</view>
        <view class="cell-value">南京市XX街道XX路66号XX店</view>
      </view>
      <view class="item-cell">
        <view class="cell-lable">检查时间：</view>
        <view class="cell-value">2023-09-12</view>
      </view>
      <view class="item-cell">
        <view class="cell-lable">检查人员：</view>
        <view class="cell-value">张三</view>
      </view>
      <view class="item-cell">
        <view class="cell-lable">发现隐患：</view>
        <view class="cell-value">XXXXXXX</view>
      </view>
      <view class="item-cell">
        <view class="cell-lable">是否发起整改：</view>
        <view class="cell-value">是</view>
      </view>
      <view class="cell-btn">
        <u-button
          text="案件移交"
          size="small"
          color="linear-gradient(90deg, #3976F1 0%, #3CA0F6 100%)"
          :custom-style="{
            width: '130rpx',
            height: '65rpx',
            margin: '0',
          }"
        ></u-button>
      </view>
    </view>
    <fixed-buttom title="新增现场检查" @click="handelAdd"></fixed-buttom>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    handelAdd() {
      uni.$u.route({
        url: "/subViolation/ShengchanJiandu/FieldTest/add",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.app-container {
  .list-item {
    background-color: #fff;
    border-radius: 16rpx;
    box-sizing: border-box;
    padding: 25rpx;
    margin-bottom: 30rpx;

    .item-cell {
      display: flex;
      align-items: center;

      .cell-lable {
        width: 200rpx;
        font-size: 28rpx;
        font-weight: 400;
        color: #9da2ab;
      }

      .cell-value {
        flex: 1;
        font-size: 28rpx;
        font-weight: 400;
        color: #2e2f31;
      }
    }

    .cell-btn {
      display: flex;
      flex-direction: row-reverse;
    }

    & > view:not(.cell-btn) {
      margin-bottom: 20rpx;
    }
  }

  & > .list-item:last-child {
    margin-bottom: 0;
  }
}
</style>
