|
|
@@ -171,9 +171,9 @@
|
|
|
:class="errors['destination_city_id'] ? 'is-invalid' :''" v-model="waybill.destination_city_id">
|
|
|
<option v-for="city in cities" :value="city.id">@{{city.name}}</option>
|
|
|
</select>
|
|
|
- <input type="text" class="form-control-sm form-control tooltipTarget" style="vertical-align: middle"
|
|
|
+ <input v-if="!waybill.order_id" type="text" class="form-control-sm form-control tooltipTarget" style="vertical-align: middle"
|
|
|
placeholder="输入关键字定位" @input="destination_city_id" v-model="waybill.destination_city" id="destination_city" title="若无法显示区/县级市,可点击后方按钮手动添加" >
|
|
|
- <button type="button" class="btn btn-outline-info btn-sm" @click="addCounty()" style="transform: scale(0.9)">添加市/县</button>
|
|
|
+ <button v-if="!waybill.order_id" type="button" class="btn btn-outline-info btn-sm" @click="addCounty()" style="transform: scale(0.9)">添加市/县</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -596,6 +596,7 @@
|
|
|
});
|
|
|
},
|
|
|
destination_city_id:function (e) {
|
|
|
+ if (this.waybill.order_id)return;
|
|
|
let val=e.target.value;
|
|
|
if (!val)this. waybill.destination_city_id='';
|
|
|
else this.cities.some((city)=> {
|
|
|
@@ -606,6 +607,7 @@
|
|
|
});
|
|
|
},
|
|
|
addCounty:function () {
|
|
|
+ if (this.waybill.order_id)return;
|
|
|
if (!this.waybill.destination_city) {
|
|
|
window.tempTip.setDuration(2000);
|
|
|
window.tempTip.show('您未输入市/县!');
|