 <ion-view view-title="车辆信息">
    <ion-content>
        <div class="list">
            <div class="item item-divider">
                您的车辆
            </div>
            <a class="item item-avatar-right item-arrow-no" ng-click="setPhoto()">
                <img ng-src="{{host}}{{vm.photo | truckPhoto}}" />
                <h2>上传照片</h2>
                <p>车头45度左右，车牌清晰</p>
            </a>
            <a class="item item-input">
                <span class="input-label">名称<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="vm.name" type="text" placeholder="名称">
            </a>
            <label class="item item-input item-select item-select-width">
                <span class="input-label">
                    类型<span class="mustfill">*</span>
                </span>
                <select ng-model="vm.type" ng-options="x.value as x.name for x in typeOpt"></select>
            </label>
            <label class="item item-input ">
                <span class="input-label">车牌号<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="vm.truck_no" type="text" placeholder="车牌号">
            </label>
            <label class="item item-input">
                <span class="input-label">车长<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="vm.length" type="number" placeholder="车长">
            </label>
            <label class="item item-input">
                <span class="input-label">车宽<span class="mustfill">*</span></span>
                <input style="text-align:right" ng-model="vm.width" type="number" placeholder="车宽">
            </label>
            <label class="item item-input ">
                <span class="input-label">车高<span class="mustfill">*</span></span>
                <input style="text-align:right" type="number" ng-model="vm.height" placeholder="车高">
            </label>
            <label class="item item-input ">
                <span class="input-label">车辆自重<span class="mustfill">*</span></span>
                <input style="text-align:right" type="number" ng-model="vm.truck_weight"  placeholder="车辆自重">
            </label>
            <label class="item item-input ">
                <span class="input-label">车辆载重<span class="mustfill">*</span></span>
                <input style="text-align:right" type="number" ng-model="vm.load_weight" placeholder="车辆载重">
            </label>
            <label class="item item-input ">
                <span class="input-label">容量<span class="mustfill">*</span></span>
                <input style="text-align:right" type="text" ng-model="vm.capacity" placeholder="容量">
            </label>
            <label class="item item-input ">
                <span class="input-label">开始使用日期<span class="mustfill">*</span></span>
                <input style="text-align:right" type="date" ng-model="vm.begin_use_date" placeholder="开始使用日期">
            </label>
            <label class="item item-input ">
                <span class="input-label">报废日期<span class="mustfill">*</span></span>
                <input style="text-align:right" type="date" ng-model="vm.expire_date" placeholder="报废日期">
            </label>
            <div class="padding">
                <button type="button" ng-click="save()" class="button button-full button-positive">提交</button>
            </div>
        </div>
    </ion-content>
</ion-view>
