<template>
  <view class="page-product-receipt">
    <view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
      <view class="left">
        <u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
      </view>
      <view class="title">报修审核</view>
      <view class="right"></view>
    </view>
    <view class="fiexdcontent">
      <u-form v-if="noitem" class="form" ref="form" label-width="180rpx">
        <u-form-item label="报修来源">
          <u-input disabled :border="true" v-model="histroyItem.orderSource" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="设备名称">
          <u-input disabled :border="true" v-model="histroyItem.equipmentName" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="设备编码">
          <u-input disabled :border="true" v-model="histroyItem.equipmentCode" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="故障时间">
          <u-input disabled :border="true" v-model="histroyItem.orderBreakdownTime" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="故障描述">
          <u-input disabled :border="true" v-model="histroyItem.orderDesc" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="报修人">
          <u-input disabled :border="true" v-model="histroyItem.orderRepairmanName" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item>
          <u-button type="primary" @click="showpicture">查看照片</u-button>
        </u-form-item>
        <view v-show="isshowpic">
          <scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft()">
            <view class="photoList">
              <view class="itemBox photoBox" v-for="(img, index) in imgList" :key="index + 'd'">
                <image class="img" :src="img.fileAddress" mode="aspectFit" @click="showScreenImg(index)"></image>
              </view>
              <!-- <view class="itemBox chooseBtn" @click="chooseImg">
              <view class="inner">
                <image class="img" src="../../../static/images/upload-pic-icon.svg" mode="scaleToFill"></image>
                <text class="desc">添加照片</text>
              </view>
            </view> -->
            </view>
          </scroll-view>
        </view>
      </u-form>
      <u-form v-if="!noitem" class="form" ref="form" label-width="180rpx">
        <u-form-item label="报修来源">
          <u-input disabled :border="true" v-model="histroyItem.orderSource" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="设备名称">
          <u-input disabled :border="true" v-model="histroyItem.equipmentName" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="设备编码">
          <u-input disabled :border="true" v-model="histroyItem.equipmentCode" placeholder="" style="overflow: hidden" />
        </u-form-item>
        <u-form-item label="报修人">
          <u-input disabled :border="true" v-model="histroyItem.orderRepairmanName" placeholder="" style="overflow: hidden" />
        </u-form-item>
      </u-form>

      <view class="item" v-for="(item, index) in histroyItem.checkList" :key="index">
        <div class="item1">检查项: {{ item.itemName }}</div>
        <div class="item1">检查方法: {{ item.itemMethod }}</div>
        <div v-for="(item1, index1) in item.standardList" :key="index1">
          <div @click="checkimg(item1, item1.detailReach, index, index1)" class="item1 item2" v-if="item1.standardType == 'qualitative'">
            <div>检查标准: {{ item1.standardName }}</div>
            <div class="select">
              <u-radio-group v-model="item1.detailReach">
                <u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
                  {{ n.name }}
                </u-radio>
              </u-radio-group>
            </div>
          </div>
          <div @click="checkimg(item1, item1.detailReach, index, index1)" class="item1 item2" v-if="item1.standardType == 'quantify'">
            <div>检查标准: {{ item1.standardName }}</div>
            <div class="input-box" id="input-box1">
              实际值:
              <input class="input" :disabled="item1.actualValue == null ? true : true" v-model="item1.actualValue" type="text" name="" id="" />
              单位:mm
            </div>
          </div>
        </div>
      </view>

      <u-form v-if="isshowbutton" style="margin-top: 10rpx" class="form" ref="form1" label-width="180rpx">
        <view style="font-size: 30rpx; display: flex; justify-content: center">审核</view>
        <u-form-item label="报修去向">
          <jPicker sureColor="#ff0000" @bindpicker="selectgoneStatus" showKey="label" valKey="value" :val="gone.value" :options="goneList" />
        </u-form-item>
        <view v-if="gone.value == '计划性维修' || gone.value == '立即维修'">
          <u-form-item label="维修组">
            <jPicker sureColor="#ff0000" @bindpicker="selectgroupStatus" showKey="label" valKey="value" :val="group.value" :options="groupList" />
          </u-form-item>
          <u-form-item label="计划维修时间">
            <picker mode="time" :value="startdate" @change="startchange">
              <view class="uni-input">{{ startdate }}</view>
            </picker>
          </u-form-item>
          <u-form-item label="是否停机">
            <u-radio-group v-model="isShutdown" @change="changeradio1(isShutdown)">
              <u-radio v-for="(n, indexn) in listselectdetermine" :key="indexn" :name="n.type" :disabled="n.disabled">
                {{ n.name }}
              </u-radio>
            </u-radio-group>
          </u-form-item>
          <u-form-item label="计划停机时间">
            <picker mode="time" :value="stopdate" @change="stopchange">
              <view class="uni-input">{{ stopdate }}</view>
            </picker>
          </u-form-item>
        </view>
        <view v-if="gone.value == '不维修'">
          <u-form-item label="审核意见">
            <u-input :border="true" v-model="form1.auditOpinion" placeholder="" style="overflow: hidden" />
          </u-form-item>
        </view>
        <view v-if="gone.value == '委外维修'">
          <u-form-item label="委外单位">
            <u-input :border="true" v-model="form1.workOutsourcingUnit" placeholder="" style="overflow: hidden" />
          </u-form-item>
          <u-form-item label="委外维修人员">
            <u-input :border="true" v-model="form1.outSourcePerson" placeholder="" style="overflow: hidden" />
          </u-form-item>
          <u-form-item label="联系方式">
            <u-input :border="true" v-model="form1.workConnection" placeholder="" style="overflow: hidden" />
          </u-form-item>
          <u-form-item label="委外原因">
            <u-input :border="true" v-model="form1.outSourceReason" placeholder="" style="overflow: hidden" />
          </u-form-item>
        </view>
      </u-form>
      <!-- 1111回显 -->
      <u-form v-else style="margin-top: 10rpx" class="form" ref="form1" label-width="180rpx">
        <view style="font-size: 30rpx; display: flex; justify-content: center">审核</view>
        <u-form-item label="报修去向">
          {{ histroyItem.repairDestination }}
          <!-- <jPicker sureColor="#ff0000" @bindpicker="selectgoneStatus" showKey="label" valKey="value" :val="gone.value" :options="goneList" /> -->
        </u-form-item>
        <view v-if="histroyItem.repairDestination == '计划性维修' || histroyItem.repairDestination == '立即维修'">
          <u-form-item label="维修组">
            {{ histroyItem.workTeam }}
            <!-- <jPicker sureColor="#ff0000" @bindpicker="selectgroupStatus" showKey="label" valKey="value" :val="group.value" :options="groupList" /> -->
          </u-form-item>
          <u-form-item label="计划维修时间">
            {{ histroyItem.workPlanTime }}
            <!-- <picker mode="time" :value="startdate" @change="startchange">
              <view class="uni-input">{{ startdate }}</view>
            </picker> -->
          </u-form-item>
          <u-form-item label="是否停机">
            {{ histroyItem.workDownMachine == '1' ? '是' : '否' }}
            <!-- <u-radio-group v-model="isShutdown" @change="changeradio1(isShutdown)">
              <u-radio v-for="(n, indexn) in listselectdetermine" :key="indexn" :name="n.type" :disabled="n.disabled">
                {{ n.name }}
              </u-radio>
            </u-radio-group> -->
          </u-form-item>
          <u-form-item label="计划停机时间">
            {{ histroyItem.workPlanDownTime }}
            <!-- <picker mode="time" :value="stopdate" @change="stopchange">
              <view class="uni-input">{{ stopdate }}</view>
            </picker> -->
          </u-form-item>
        </view>
        <view v-if="histroyItem.repairDestination == '不维修'">
          <u-form-item label="审核意见">
            {{ histroyItem.auditOpinion }}
            <!-- <u-input :border="true" v-model="form1.auditOpinion" placeholder="" style="overflow: hidden" /> -->
          </u-form-item>
        </view>
        <view v-if="histroyItem.repairDestination == '委外维修'">
          <u-form-item label="委外单位">
            {{ histroyItem.workOutsourcingUnit }}
            <!-- <u-input :border="true" v-model="form1.workOutsourcingUnit" placeholder="" style="overflow: hidden" /> -->
          </u-form-item>
          <u-form-item label="委外维修人员">
            {{ histroyItem.outSourcePerson }}
            <!-- <u-input :border="true" v-model="form1.outSourcePerson" placeholder="" style="overflow: hidden" /> -->
          </u-form-item>
          <u-form-item label="联系方式">
            {{ histroyItem.workConnection }}
            <!-- <u-input :border="true" v-model="form1.workConnection" placeholder="" style="overflow: hidden" /> -->
          </u-form-item>
          <u-form-item label="委外原因">
            {{ histroyItem.outSourceReason }}
            <!-- <u-input :border="true" v-model="form1.outSourceReason" placeholder="" style="overflow: hidden" /> -->
          </u-form-item>
        </view>
      </u-form>
    </view>
    <!-- <view style="height: 14rpx"></view> -->

    <view class="bottom-bar">
      <u-row v-if="isshowbutton" class="button-bar">
        <!-- 确定 -->
        <u-col :span="6">
          <u-button @click="onSubmit" type="primary">确认</u-button>
        </u-col>
        <!-- 返回 -->
        <u-col :span="6">
          <u-button type="error" @click="uni.navigateBack({})">返回</u-button>
        </u-col>
      </u-row>
      <u-row style="justify-content: center" v-else class="button-bar">
        <!-- 返回 -->
        <u-col :span="6">
          <u-button type="error" @click="uni.navigateBack({})">返回</u-button>
        </u-col>
      </u-row>
    </view>

    <u-modal v-model="isshow" class="modal" :show-cancel-button="true" :show-title="false">
      <div class="upload-name">
        <div class="name">检查标准:{{ picstandardName }}</div>
        <!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> -->
        <scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft()">
          <view class="photoList">
            <view class="itemBox photoBox" v-for="(img, index) in imgList1" :key="index">
              <image class="img" :src="img.fileAddress" mode="aspectFit" @click="showScreenImg1(index)"></image>
            </view>
          </view>
        </scroll-view>
      </div>
    </u-modal>
    <u-toast ref="uToast" />
  </view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
import dayjs from 'dayjs';
interface OptionType {
  label: string;
  value: string;
}
//import { session } from '@/store/modules/session';
@Component({
  components: {
    jPicker,
  },
})
export default class RepairAudit extends BasePage {
  model = model;
  picstandardName: any = '';
  noitem = true;
  isshow = false;
  isshowpic = false;
  imgList: any = [];
  imgList1: any = [];
  listselectdetermine: any = [
    {
      type: '1',
      name: '是',
      radiovalue: null,
    },
    {
      type: '0',
      name: '否',
      radiovalue: null,
    },
  ];
  listselect: any = [
    {
      type: 1,
      name: '符合标准',
      radiovalue: null,
    },
    {
      type: 0,
      name: '未达标',
      radiovalue: null,
    },
  ];
  isShutdown: any = '1';
  gone: any = {};
  goneList: any = [
    {
      label: '计划性维修',
      value: '计划性维修',
    },
    {
      label: '立即维修',
      value: '立即维修',
    },
    {
      label: '不维修',
      value: '不维修',
    },
    {
      label: '委外维修',
      value: '委外维修',
    },
  ];
  group: any = {};
  groupList: any = [];
  startdate = dayjs().format('YYYY-MM-DD HH:mm:ss');
  stopdate = dayjs().format('YYYY-MM-DD HH:mm:ss');
  form1: any = {};
  histroyItem: any = {};
  list: any = [];
  aimWl = {} as OptionType;
  bimWl = {} as OptionType;
  cimWl = {} as OptionType;
  boxnumber: any = '';
  materilist = [];
  userDefined1list = [];
  warehouselist = [];
  TraysList = [
    { materialCode: '1111', materialDesc: '33333' },
    { materialCode: '1111', materialDesc: '33333' },
    { materialCode: '1111', materialDesc: '33333' },
    { materialCode: '1111', materialDesc: '33333' },
  ];
  orderNo: any = '';
  border = true;
  orderNoItemList: any = [];
  showProduceCodeList: any = [];
  itemdetail: any = '';
  outnumber: any = 0;
  istongguostatus: any = '';
  isshowbutton = true;
  // async onReady() {

  // }
  async onLoad(options) {
    let orderId = options.orderId;
    await this.model.getTaskRecord(orderId);
    this.histroyItem = this.model.getTaskRecordList;
    this.istongguostatus = this.histroyItem.orderStatus;
    if (this.histroyItem.checkList === null || this.histroyItem.checkList.length == 0) {
      this.noitem = true;
    } else {
      this.noitem = false;
    }
    console.log('00009999', this.histroyItem);
    if (this.histroyItem.files == null || this.histroyItem.files.length == 0) {
      this.imgList = [];
    } else {
      this.imgList = this.histroyItem.files;
    }

    await this.model.getTeamList();
    this.groupList = this.model.teamList;
    if (this.istongguostatus == '0' || this.istongguostatus == '1') {
      this.isshowbutton = false;
    } else {
      this.isshowbutton = true;
    }
  }
  changeradio1(checkResult) {
    console.log(checkResult);
    ////111111111
  }
  selectgoneStatus(e: any) {
    this.gone = e.pickerName;
    if (this.gone == '2') {
      this.startdate = dayjs().format('YYYY-MM-DD HH:mm:ss');
      this.stopdate = dayjs().format('YYYY-MM-DD HH:mm:ss');
      this.isShutdown = '1';
    }
  }
  showpicture() {
    if (this.imgList.length == 0 || this.imgList == null) {
      this.isshowpic = false;
      this.uni.showToast({
        title: '无照片',
        icon: 'none',
        duration: 1000,
      });
    } else {
      this.isshowpic = true;
    }
  }

  showScreenImg(i) {
    let list = this.imgList.map((item) => {
      return item.fileAddress;
    });
    uni.previewImage({
      current: i,
      urls: list,
      // loop: true
    });
  }
  showScreenImg1(i) {
    let list = this.imgList1.map((item) => {
      return item.fileAddress;
    });
    uni.previewImage({
      current: i,
      urls: list,
      // loop: true
    });
  }
  scrollLeft() {
    return 222 * (this.imgList.length + 1);
  }
  selectgroupStatus(e: any) {
    this.group = e.pickerName;
  }
  startchange(e) {
    this.startdate = e.detail.value;
  }
  stopchange(e) {
    this.stopdate = e.detail.value;
  }

  //选择出库仓库
  warehouseChange(e: any) {
    this.cimWl = e.pickerName;
    this.list = [];
  }

  async onSubmit() {
    let params = {};
    if (this.gone.value == '计划性维修' || this.gone.value == '立即维修') {
      params = {
        ...this.histroyItem,
        repairDestination: this.gone.value,
        workTeam: this.group.value,
        workPlanTime: this.startdate,
        workPlanDownTime: this.stopdate,
        workDownMachine: this.isShutdown,
      };
    } else if (this.gone.value == '不维修') {
      params = {
        ...this.histroyItem,
        auditOpinion: this.form1.auditOpinion,
        repairDestination: this.gone.value,
      };
    } else {
      params = {
        ...this.histroyItem,
        workOutsourcingUnit: this.form1.workOutsourcingUnit,
        outSourcePerson: this.form1.outSourcePerson,
        workConnection: this.form1.workConnection,
        outSourceReason: this.form1.outSourceReason,
        repairDestination: this.gone.value,
      };
    }
    await this.model.updateTaskRecord(params);
    if (this.model.Checkcode == 200) {
      (this.$refs.uToast as any).show({
        title: '成功',
        // url: '/pages/user/index'
      });
      this.mepty();
      uni.navigateBack({
        delta: 1,
      });
    } else {
      (this.$refs.uToast as any).show({
        title: '失败',
        // url: '/pages/user/index'
      });
    }
  }
  mepty() {
    this.form1 = {};
    this.group = {};
    this.gone = {};
  }
  checkimg(item) {
    //console.log('111199990000',item, value);
    this.picstandardName = item.standardName;
    if (item.picturePaths == null || item.picturePaths.length == 0) {
      this.imgList1 = [];
      this.isshow = false;
      this.uni.showToast({
        title: '无照片',
        icon: 'none',
        duration: 1000,
      });
    } else {
      this.imgList1 = item.picturePaths;
      this.isshow = true;
    }
  }
}
</script>
<style>
body {
  background-color: rgb(242, 242, 242);
}
</style>
<style lang="scss" scoped>
.page-product-receipt {
  background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
  background-size: 100% 600rpx;
  padding: 118rpx 30rpx 162rpx;
  min-height: 100%;

  .header {
    position: fixed;
    top: 0rpx;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    height: 120rpx;
    line-height: 88rpx;
    color: #fff;
    font-size: 34rpx;
    font-weight: 500;
    text-align: center;
    padding: 45rpx 0rpx 0rpx;

    .title {
      flex: 3;
    }

    .left,
    .right {
      flex: 1;
    }

    .icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 88rpx;
      height: 88rpx;
    }
  }

  .fiexdcontent {
    // position: fixed;
    width: 100%;
    //box-shadow: 0 0 14px 0 rgb(128 128 128 / 46%);
    z-index: 100;
    .item {
      margin-top: 15px;
      width: 344px;
      border-radius: 5px;
      border: rgba(121, 121, 121, 1) solid 1px;
      background-color: #ffffff;
      padding: 7px 8px 7px 8px;
      box-sizing: border-box;
      .item1 {
        margin-bottom: 3px;
        white-space: 1px;
        font-size: 15px;
        font-weight: 600;
      }
      .item2 {
        display: flex;
        align-content: center;
        justify-content: space-between;
        .select {
          font-size: 15px;
          font-weight: 400;
          display: flex;
          // margin-left: 19px;
        }
        .input-box {
          font-size: 13px;
          font-weight: 400;
          display: flex;
          align-content: center;
          margin-top: 2px;
          .input {
            font-size: 12px;
            width: 65px;
            padding: 1px 8px;
            height: 20px;
            box-sizing: border-box;
            border: 1px solid #b6b6b6;
            margin-left: 6px;
            display: inline-block;
            margin-right: 6px;
            border-radius: 4px;
            position: relative;
          }
        }
      }
    }
  }
  .form {
    background-color: #fff;
    padding: 15rpx;
    border-radius: 10rpx;
    //box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);

    .u-form-item {
      padding: 20rpx 0;
      line-height: 35rpx;

      .Transfer {
        width: 280rpx;
        height: 64rpx;
        background: rgb(242, 242, 242);
        border-radius: 110rpx;
      }
    }

    .single {
      width: 100%;
      height: 60rpx;
      display: flex;

      .single-left {
        width: 80%;
        height: 100%;
        display: flex;

        view {
          width: 142rpx;
          height: 100%;
          line-height: 55rpx;
        }
      }

      .single-right {
        button {
          // margin-top: 15rpx;
          width: 140rpx;
          height: 70rpx;
          background-color: #fa3534;
        }
      }
    }

    .row {
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      flex: 1;
    }
    .photoList {
      display: flex;
      padding-top: 12rpx;

      .chooseBtn {
        width: 202rpx;
        height: 202rpx;
        background: #fafafa;
        border-radius: 12rpx;
        border: 2rpx dashed #e2e2e2;
        display: flex;
        justify-content: center;
        align-items: center;

        .inner {
          text-align: center;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
        }

        .desc {
          font-size: 28rpx;
          font-weight: 400;
          color: #24252a;
          line-height: 40rpx;
        }

        .img {
          width: 50rpx;
          height: 50rpx;
          margin-bottom: 6rpx;
        }
      }

      .photoBox {
        width: 202rpx;
        height: 202rpx;
        background: #fafafa;
        border-radius: 12rpx;
        position: relative;

        .closeBtn {
          position: absolute;
          top: -12rpx;
          right: -12rpx;
          z-index: 2;
          width: 36rpx;
          height: 36rpx;

          .img {
            width: 36rpx;
            height: 36rpx;
          }
        }

        .img {
          width: 202rpx;
          height: 202rpx;
          border-radius: 12rpx;
        }
      }

      .itemBox {
        flex: 0 0 202rpx;
        margin-right: 20rpx;

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
  .form3 {
    background-color: #fff;
    padding: 20rpx 20rpx 20rpx;
    border-radius: 10rpx;
    height: 210rpx;
    overflow: scroll;
    //box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
    //color: #8d8989;
    // .list {
    //   display: flex;
    //   flex-direction: row;
    // }
    .row-list {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      .row-list-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 40%;
      }
      .row-list-item1 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 50%;
      }
      .row-list-item2 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 40%;
      }
      .list-item {
        display: flex;
        flex-direction: row;
        // flex: 1;
      }
    }

    .righttitle {
      display: flex;
      justify-content: flex-end;

      .boder-icon-rigth {
        border: 1rpx solid #fa3534;
        width: 130rpx;
        text-align: center;
        background: #fa3534;
        color: #ffffff;
        margin-top: 10px;
      }
    }
  }
  .form4 {
    background-color: #fff;
    padding: 18rpx;
    border-radius: 10rpx;
    margin-top: 2rpx;
    .u-input__input {
      min-height: 36px;
    }
  }

  .scroll {
    // margin-top: 2rpx;
    height: 680rpx;
    position: absolute;
    width: 92%;
    top: 740rpx;
    /* bottom: 40px; */
    overflow: auto;
    // background-color: #f2f2f2;
    .form2 {
      background-color: #fff;
      padding: 20rpx 20rpx 20rpx;
      border-radius: 10rpx;
      box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
      color: #8d8989;
      .list {
        display: flex;
        flex-direction: row;
        .rowleft {
          width: 80%;
          .row-list {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            .row-list-item {
              display: flex;
              flex-direction: row;
              justify-content: space-between;
              width: 40%;
            }
            .list-item {
              display: flex;
              flex-direction: row;
              flex: 1;
            }
          }
        }
        .rowright {
          width: 20%;
          display: flex;
          justify-content: right;
          .righttitle {
            width: 60%;
            background-color: #8d898947;
            color: red;
            text-align: center;
            /* margin: auto; */
            height: 100%;
            line-height: 70rpx;
          }
        }
      }

      // .righttitle {
      //   display: flex;
      //   justify-content: flex-end;

      //   .boder-icon-rigth {
      //     border: 1rpx solid #fa3534;
      //     width: 130rpx;
      //     text-align: center;
      //     background: #fa3534;
      //     color: #ffffff;
      //     margin-top: 10px;
      //   }

      //   .zhuangtai {
      //     background: #a7a0a04a;
      //     width: 224rpx;
      //     margin-right: -27rpx;
      //     border: 2rpx solid #a7a0a04a;
      //     border-radius: 12rpx;
      //     text-align: center;
      //     margin-bottom: 10rpx;
      //   }

      //   .zhuangtai[data-state='1'] {
      //     color: green;
      //   }

      //   .zhuangtai[data-state='0'] {
      //     color: blue;
      //   }
      // }
    }
  }

  .bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: #ffffff;
    box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
    padding: 20rpx;
  }

  .button-bar {
  }

  .photoList {
    display: flex;
    padding-top: 12rpx;

    .chooseBtn {
      width: 202rpx;
      height: 202rpx;
      background: #fafafa;
      border-radius: 12rpx;
      border: 2rpx dashed #e2e2e2;
      display: flex;
      justify-content: center;
      align-items: center;

      .inner {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }

      .desc {
        font-size: 28rpx;
        font-weight: 400;
        color: #24252a;
        line-height: 40rpx;
      }

      .img {
        width: 50rpx;
        height: 50rpx;
        margin-bottom: 6rpx;
      }
    }

    .photoBox {
      width: 202rpx;
      height: 202rpx;
      background: #fafafa;
      border-radius: 12rpx;
      position: relative;

      .closeBtn {
        position: absolute;
        top: -12rpx;
        right: -12rpx;
        z-index: 2;
        width: 36rpx;
        height: 36rpx;

        .img {
          width: 36rpx;
          height: 36rpx;
        }
      }

      .img {
        width: 202rpx;
        height: 202rpx;
        border-radius: 12rpx;
      }
    }

    .itemBox {
      flex: 0 0 202rpx;
      margin-right: 20rpx;

      &:last-child {
        margin-right: 0;
      }
    }

    // /deep/ .remarksBox textarea {
    //   font-size: 24rpx;
    // }
  }
}
</style>
