<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 font_normal_body">客户编号:</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 font_normal_body">公司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 font_normal_body">客户名称:</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 font_normal_body">客户电话:</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 font_normal_body">证件号码:</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 font_normal_body">地址:</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>
