<template>
    <div class="inventoryReview">
      <ul class="detailUl">
        <li class="detailLi">
          <span class="liName">
            <span style="color: red;margin-right: 5rpx">*</span>
            企业名称
          </span>
          <div class="inputBox">
            <input v-model="postData.name" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            <span style="color: red;margin-right: 5rpx">*</span>
            统一社会信用代码
          </span>
          <div class="inputBox">
            <input v-model="postData.code" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            注册资金（万元）
          </span>
          <div class="inputBox">
            <input v-model="postData.capital" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            币种
          </span>
          <div class="inputBox">
            <input placeholder="请填写" v-model="postData.currency" disabled class="myIpt">
            <van-icon name="arrow" />
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            注册时间
          </span>
          <div class="inputBox">
            <input placeholder="请填写" v-model="postData.registrationTime" disabled class="myIpt">
            <van-icon name="arrow" />
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            法定代表人
          </span>
          <input class="myIpt" value="256" disabled style="padding-right: 30rpx">
        </li>
        <li class="detailLi">
          <span class="liName">
            法人电话
          </span>
          <div class="inputBox">
            <input disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            法人邮箱
          </span>
          <div class="inputBox">
            <input disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
          <span style="color: red;margin-right: 5rpx">*</span>
            企业联系人
          </span>
          <div class="inputBox">
            <input value="李瑜" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
          <span style="color: red;margin-right: 5rpx">*</span>
            联系人手机
          </span>
          <div class="inputBox">
            <input value="15822485522" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
          <span style="color: red;margin-right: 5rpx">*</span>
            联系人邮箱
          </span>
          <div class="inputBox">
            <input value="15822485511@qq.com" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
          <span style="color: red;margin-right: 5rpx">*</span>
            财务负责人
          </span>
          <div class="inputBox">
            <input value="李瑜" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
          <span style="color: red;margin-right: 5rpx">*</span>
            负责人电话
          </span>
          <div class="inputBox">
            <input value="15822485522" disabled class="myIpt">
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            注册地址
          </span>
          <div class="moreLineBox">
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            经营地址
          </span>
          <div class="moreLineBox">
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          </div>
        </li>
        <li class="detailLi2" >
          <div class="titleBox" >
            <span class="liName">经营范围</span>
          </div>
          <van-field
              autosize
              type="textarea"
              class="myField"
              readonly
          />
        </li>
        <li class="detailLi2" >
          <div class="titleBox" style="margin-bottom: 24rpx">
            <span class="liName">
            <span style="color: red;margin-right: 5rpx">*</span>
              营业执照
            </span>
          </div>
          <van-uploader
              :max-count="9"
              @delete="deleteRYXXZP"
              @after-read="uploadRYXXZP"
              :show-upload="true"
          />
        </li>
        <li class="detailLi2" >
          <div class="titleBox" >
            <span class="liName">荣誉信息</span>
          </div>
          <van-field
              autosize
              type="textarea"
              class="myField"
              style="margin-bottom: 24rpx"
              readonly
          />
          <van-uploader
              :max-count="6"
              @delete="deleteRYXXZP2"
              :file-list="fileList2"
              @after-read="uploadRYXXZP2"
              :show-upload="true"
          />
          <span style="color: #B3B3B3;font-size: 28rpx">（只能上传jpg/png格式，限制上传6张）</span>
        </li>
        <li class="detailLi2" >
          <div class="titleBox" style="margin-bottom: 24rpx">
            <span class="liName">
              法人身份证
             <span style="color: #B3B3B3;font-size: 28rpx">（只能上传jpg/png格式，限制上传6张）</span>
            </span>
          </div>
          <van-uploader
              :max-count="6"
              @delete="deleteRYXXZP2"
              :file-list="fileList2"
              @after-read="uploadRYXXZP2"
              :show-upload="true"
          />
        </li>
        <li class="detailLi2" style="position:relative;">
          <div class="titleBox" >
            <span class="liName">主营业务</span>
          </div>
          <van-field
              autosize
              type="textarea"
              class="myField"
              readonly
          />
        </li>
        <li class="detailLi">
          <span class="liName">
            全年研发投入（万元）
          </span>
          <div class="moreLineBox">
            552
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            全年技改投入（万元）
          </span>
          <div class="moreLineBox">
            328
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            发明专利（件）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
             软件著作（件）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
             实用新型专利（件）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
              集成电路布图设计专有权（件）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
              四技合同金额-开发（万元）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
             四技合同金额-转让（万元）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
             四技合同金额-服务（万元）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
        <li class="detailLi" style="border-bottom: none">
          <span class="liName">
              四技合同金额-咨询（万元）
          </span>
          <div class="moreLineBox">
            -
          </div>
        </li>
      </ul>
      <ul class="detailUl">
        <li class="detailLi2">
          <span class="liName">
            <span style="color: red;margin-right: 5rpx">*</span>
            入驻类型
          </span>
          <van-radio-group :value="radio" @change="onChange">
            <van-radio name="在园">在园</van-radio>
            <van-radio name="挂靠">挂靠</van-radio>
            <van-radio name="异地生产">异地生产</van-radio>
            <van-radio name="飞地">飞地</van-radio>
            <van-radio name="迁出">迁出</van-radio>
            <van-radio name="在园（仅租赁）">在园（仅租赁）</van-radio>
            <van-radio name="注销">注销</van-radio>
          </van-radio-group>
        </li>
        <li class="detailLi">
          <span class="liName">
            招聘经理
          </span>
          <div class="inputBox">
            <input placeholder="请填写" value="李军" disabled class="myIpt">
            <van-icon name="arrow" />
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            关联企业
          </span>
          <div class="inputBox" style="border-bottom: none">
            <input placeholder="请填写" value="xxx" disabled class="myIpt">
            <van-icon name="arrow" />
          </div>
        </li>
      </ul>
      <ul class="detailUl">
        <li class="detailTitle">审核结果</li>
        <li class="detailLi">
          <span class="liName">
            <span style="color: red;margin-right: 5rpx">*</span>
            入驻类型
          </span>
          <van-radio-group :value="radio2" @change="onChange2">
            <van-radio name="通过">通过</van-radio>
            <van-radio name="不通过">不通过</van-radio>
          </van-radio-group>
        </li>
        <li class="detailLi">
          <span class="liName">
            招聘经理
          </span>
          <div class="inputBox">
            <input placeholder="请填写" value="李军" disabled class="myIpt">
            <van-icon name="arrow" />
          </div>
        </li>
        <li class="detailLi">
          <span class="liName">
            处理结果
          </span>
          <div class="inputBox" style="border-bottom: none">
            <input placeholder="请填写" value="xxx" disabled class="myIpt">
            <van-icon name="arrow" />
          </div>
        </li>
        <li class="detailLi2" style="position:relative;border-bottom: none">
          <div class="titleBox" >
            <span class="liName">处理意见</span>
          </div>
          <van-field
              autosize
              type="textarea"
              class="myField"
              readonly
          />
        </li>
      </ul>
      <div class="buttonBox">
        <button class="btn zcBtn">取消</button>
        <button class="btn tjBtn">提交审核</button>
      </div>
    </div>
</template>

<script>
export default {
  name: "inventoryReview",
  data(){
    return{
      postData:{
        name:'无锡XXXXX有限公司',
        code:'91320214MABPBK9G2E',
        capital:0,
        currency: '人民币',
        registrationTime: '2022-06-02',
        fileList:[],
      },
      radio: '在园',
      radio2: '通过',
    }
  },
  methods:{
    onChange(event) {
      this.setData({
        radio: event.detail,
      });
    },
    onChange2(event) {
      this.setData({
        radio2: event.detail,
      });
    },
    deleteRYXXZP(event) {
      this.fileList.splice(event.detail.index, 1);
      this.$forceUpdate();
    },
    uploadRYXXZP(event) {
      console.log(event)
      let that = this;
      const { file } = event.detail;
      uni.uploadFile({
        url: that.$constant.BASE_URI + "/wx/fileController/upload",
        filePath: file.url,
        name: "file",
        formData: { user: "test" },
        success(res) {
          // 上传完成需要更新 fileList
          let data = JSON.parse(res.data);
          that.fileList.push({
            imgUrl: "/FileController/download/" + data.data[0],
            id: data.data[0],
            url:
                that.$constant.BASE_URI +
                "/FileController/download/" +
                data.data[0],
            isImage: true,
          });
        },
        fail(res) {},
      });
    },
  }
}
</script>

<style lang="scss">
.inventoryReview{
    .detailUl{
      margin-top: 20rpx;
      background: white;
      padding: 24rpx 32rpx;
      .liName{
        font-size: 32rpx;
        color: rgba(51, 51, 51, 1);
        white-space: nowrap;
        .callNumber{
          color: rgba(24, 23, 42, 1);
          font-size: 36rpx;
          font-weight: 600;
        }
        .callName{
          color: rgba(102, 102, 102, 1);
          font-size: 28rpx;
        }
      }
      .phoneIcon{
        width: 64rpx;
        height: 64rpx;
      }
      .detailLi{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 32rpx 0;
        border-bottom: 2rpx solid #E6E6E6;
        .liInfo{
          display: inline-block;
          text-align: right;
          max-width: 428rpx;
          color: rgba(102, 102, 102, 1);
          font-size: 32rpx;
          line-height: 38rpx;
          overflow: hidden;
          word-wrap: break-word;
        }
        .inputBox{
          display: flex;
          align-items: center;
        }
        .moreLineBox{
          word-wrap: break-word;
          max-width: 422rpx;
          color: rgba(102, 102, 102, 1);
        }
        .myIpt{
          text-align: right;
          margin-right: 20rpx;
          color: rgba(102, 102, 102, 1);
          min-width: 422rpx;
        }
      }
      .detailLi2{
        display: flex;
        flex-direction: column;
        padding: 32rpx 0;
        border-bottom: 2rpx solid #E6E6E6;
        .detailLi2BoxTop{
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
          margin: 12rpx 0;
          .checkItem{
            width: 128rpx;
            height: 64rpx;
            font-size: 28rpx;
            color: #666666;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #F5F7FA;
            border-radius: 8rpx;
            margin: 12rpx 0;
          }
          .checked{
            background: #0365F9;
            color: white;
          }
        }
        .locationBox{
          position: absolute;
          right: 24rpx;
          top: 100rpx;
        }
        .van-cell {
          background: #F5F7FA !important;
          border-radius: 8rpx;
          font-size: 28rpx;
          margin-top: 16rpx;
        }
        .van-radio-group{
          display: flex;
          flex-wrap: wrap;
          margin-top: 24rpx;
          gap: 24rpx;
          color: rgba(102, 102, 102, 1);
          font-size: 4vw;
        }
      }
    }
  .buttonBox{
    display: flex;
    justify-content: center;
    .btn{
      width: 240rpx;
      height: 80rpx;
      display: flex;
      border-radius: 8rpx;
      align-items: center;
      justify-content: center;
      margin: 48rpx 16rpx 150rpx 16rpx;
      color: white;
      letter-spacing: 2rpx;
      text-indent: 2rpx;
      &::after{
        border: none;
      }
    }
    .zcBtn{
      background: rgba(0, 0, 0, 0.05);
      color: rgba(3, 101, 249, 1);
    }
    .tjBtn{
      background: #0365F9;
    }
  }
}
</style>
