<template>
  <div class="auto">
    <form novalidate class="form-horizontal">
      <div class="row" :model="model">
        <div class="form-group form-input-group col-sm-4">
          <label class=" col-sm-2 control-label">用户编号:</label>
          <div class="col-sm-2">
            <input type="text" class="form-control col-sm-2"  v-model="model.f_userinfo_code" disabled/>
          </div>
        </div><div class="form-group form-input-group col-sm-4">
          <label class=" col-sm-2 control-label">公司ID:</label>
          <div class="col-sm-2">
            <input type="text" class="form-control col-sm-2"  v-model="model.f_filialeids" disabled/>
          </div>
        </div>
        <div class="form-group form-input-group col-sm-4">
          <label class=" col-sm-2 control-label">用户姓名:</label>
          <div class="col-sm-2">
            <input type="text" class="form-control col-sm-2"  v-model="model.f_user_name" disabled/>
          </div>
        </div>
        <div class="form-group form-input-group col-sm-4">
          <label class=" col-sm-2 control-label">用户电话:</label>
          <div class="col-sm-2">
            <input type="text" class="form-control col-sm-2"  v-model="model.f_user_phone" disabled/>
          </div>
        </div>
        <div class="form-group form-input-group col-sm-4">
          <label class=" col-sm-2 control-label">证件号码:</label>
          <div class="col-sm-2">
            <input type="text" class="form-control col-sm-2"  v-model="model.f_idnumber" disabled/>
          </div>
        </div>
        <div class="form-group form-input-group col-sm-4">
          <label class=" col-sm-2 control-label">地址:</label>
          <div class="col-sm-2">
            <input type="text" class="form-control col-sm-2"  v-model="model.f_address" disabled/>
          </div>
        </div>

      </div>
    </form>
  </div>
</template>

<script>
  let getData
  let getUserinfoGen = async function (self){

    let getUser = await self.$resetpost('rs/sql/newuserinfoQuery',
      {data:{condition:`f_userinfo_code = '${getData.f_userinfo_code}' and f_filialeids = '${getData.f_filialeids}'`}},{resolveMsg: null, rejectMsg: null})

    self.model = getUser.data[0]
  }

  export default {
    title: '用户基本信息',
    data () {
      return {
        model:{}
      }
    },
    props: ['data'],
    ready () {
      getData = this.data
      getUserinfoGen(this)
    }
  }
</script>
