|
|
@@ -6,20 +6,20 @@
|
|
|
<div class="mt-3 col-8 offset-2">
|
|
|
<div class="form-group row">
|
|
|
<label for="waybill">运单号</label>
|
|
|
- <input id="waybill" type="text" class="form-control" v-model="info.waybill" @keydown.enter="enterVal($event)"></input>
|
|
|
+ <input id="waybill" type="text" class="form-control" v-model="info.waybill" @keydown.enter="enterVal($event)" @blur="searchWaybill()"></input>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
<label for="logistic">物流单号</label>
|
|
|
- <input id="logistic" type="text" class="form-control form-control-sm" v-model="info.waybill" @keydown.enter="enterVal($event)"></input>
|
|
|
+ <input id="logistic" type="text" class="form-control form-control-sm" v-model="info.logistic" @keydown.enter="enterVal($event)"></input>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
<label for="phone">查件电话</label>
|
|
|
- <input id="phone" type="text" class="form-control form-control-sm" v-model="info.waybill" @keydown.enter="enterVal($event)"></input>
|
|
|
+ <input id="phone" type="text" class="form-control form-control-sm" v-model="info.phone" @keydown.enter="enterVal($event)"></input>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
<label for="amount">数量</label>
|
|
|
<div class="input-group input-group-sm">
|
|
|
- <input id="amount" type="text" class="form-control" v-model="info.waybill" @keydown.enter="enterVal($event)"></input>
|
|
|
+ <input id="amount" type="number" class="form-control" v-model="info.amount" step="0.01" @keydown.enter="enterVal($event)"></input>
|
|
|
<div class="input-group-append">
|
|
|
<span class="input-group-text">件</span>
|
|
|
</div>
|
|
|
@@ -28,7 +28,7 @@
|
|
|
<div class="form-group row">
|
|
|
<label for="weight">重量</label>
|
|
|
<div class="input-group input-group-sm">
|
|
|
- <input id="weight" type="text" class="form-control" v-model="info.waybill" @keydown.enter="enterVal($event)"></input>
|
|
|
+ <input id="weight" type="number" class="form-control" v-model="info.weight" step="0.01" @keydown.enter="enterVal($event)"></input>
|
|
|
<div class="input-group-append">
|
|
|
<span class="input-group-text">KG</span>
|
|
|
</div>
|
|
|
@@ -37,14 +37,14 @@
|
|
|
<div class="form-group row">
|
|
|
<label for="volume">体积</label>
|
|
|
<div class="input-group input-group-sm">
|
|
|
- <input id="volume" type="text" class="form-control" v-model="info.waybill" @keydown.enter="enterVal($event)"></input>
|
|
|
+ <input id="volume" type="number" class="form-control" v-model="info.volume" step="0.01" @keydown.enter="enterVal($event)"></input>
|
|
|
<div class="input-group-append">
|
|
|
<span class="input-group-text">M³</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="input-group row">
|
|
|
- <button type="submit" id="submit" class="btn btn-success offset-2 col-10" @click="executeSubmit()">提交调配信息</button>
|
|
|
+ <button type="submit" id="submit" class="btn btn-success offset-2 col-10" @click="executeSubmit()" @keydown.enter="executeSubmit()">提交调配信息</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -57,7 +57,7 @@
|
|
|
data:{
|
|
|
isAndroid:false,
|
|
|
info:{},
|
|
|
- element:["waybill","logistic"],
|
|
|
+ element:["waybill","logistic","phone","amount","weight","volume","submit"],
|
|
|
counter:0,
|
|
|
},
|
|
|
mounted(){
|
|
|
@@ -90,6 +90,23 @@
|
|
|
e.preventDefault();
|
|
|
return false;
|
|
|
},
|
|
|
+ searchWaybill(){
|
|
|
+ let bill = event.target.value;
|
|
|
+ if (!bill)return;
|
|
|
+ window.tempTip.postBasicRequest("{{url('transport/waybill/android/searchWaybill')}}",{bill:bill},res=>{
|
|
|
+ if (!this.info.logistic)this.info.logistic = res.carrier_bill;
|
|
|
+ if (!this.info.phone)this.info.phone = res.inquire_tel;
|
|
|
+ if (!this.info.amount)this.info.amount = res.amount;
|
|
|
+ if (!this.info.weight)this.info.weight = res.carrier_weight;
|
|
|
+ if (!this.info.volume)this.info.volume = res.carrier_weight_other;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ executeSubmit(){
|
|
|
+ window.tempTip.postBasicRequest("{{url('transport/waybill/android/waybillDispatch')}}",this.info,res=>{
|
|
|
+ this.info = {};
|
|
|
+ return "调配成功";
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
});
|
|
|
</script>
|