- <div class=" col-xs-12 col-md-6 col-lg-4" v-for="(p1,index) in carList" :key="index">
- <div class="box box-success" style="margin-top: 15px;overflow: hidden;" >
- <div class="col-xs-7" style="border-right:1px solid #eee;padding-top: 10px;">
- <label class="col-xs-12 " style="padding: 5px 0;">车牌号: <span style="font-weight: normal;word-break:break-all;">{{p1.planLicenseNo}}</span></label>
- <label class="col-xs-12" style="padding: 5px 0;;">司机:<span style="font-weight: normal;word-break:break-all;">{{p1.planDriver}}</span></label>
-
- </div>
- <div class="col-xs-5" style="padding-top: 10px;">
- <div class="form-group" :class="{'has-error': errors.has('licenseNo' + index, 'newsletter' + index)}">
- <label >实际车牌号 <i class="errMsg">*</i></label>
- <input type="text" class="form-control" v-model.trim="p1.licenseNo"
- v-validate="{required: true}" :data-vv-scope="'newsletter' + index"
- :name="'licenseNo' + index" :data-vv-as="$t('pagefield.purchase.carCode')">
- <span v-show="errors.has('licenseNo' + index, 'newsletter' + index)" class="help-block">{{ errors.first('licenseNo' + index, 'newsletter' + index) }}</span>
- </div>
-
- <div class="form-group" :class="{'has-error': errors.has('actualQty' + index, 'newsletter' + index)}">
- <label >实际数量(头)<i class="errMsg">*</i></label>
- <input type="text" class="form-control" v-model.trim="p1.actualQty" :data-vv-scope="'newsletter' + index"
- v-validate="{required: true, decimal:2, min_value: 0, max_value: p1.planQty}"
- :name="'actualQty' + index" :data-vv-as="$t('message.quantity')">
- <span v-show="errors.has('actualQty' + index, 'newsletter' + index)" class="help-block">{{ errors.first('actualQty' + index, 'newsletter' + index) }}</span>
- </div>
- <div class="form-group" :class="{'has-error': errors.has('actualWgh' + index, 'newsletter' + index)}">
- <label>总重(kg) <i class="errMsg">*</i></label>
- <input type="text" class="form-control" v-model.trim="p1.actualWgh" :data-vv-scope="'newsletter' + index"
- v-validate="{required: true, decimal:2, min_value: 0, max_value: p1.planWgh}"
- :name="'actualWgh' + index" :data-vv-as="$t('message.weight')">
- <span v-show="errors.has('actualWgh' + index, 'newsletter' + index)" class="help-block">{{ errors.first('actualWgh' + index, 'newsletter' + index) }}</span>
- </div>
- <div class="form-group">
- <label>过磅单</label>
- <input type="text" class="form-control" v-model.trim="p1.weightNo">
- </div>
-
- </div>
- <div class="col-xs-12 text-right" style="border-top: 1px solid #eee;padding: 10px 15px;">
- <button class="btn btn-warning" @click="doSave(p1, index)">保存</button>
- </div>
- </div>
- </div>