|
@@ -19,6 +19,7 @@
|
|
|
<el-form-item v-if="shipForm.deliveryType == 1" label="快递单号:" prop="deliveryFlowId">
|
|
|
<el-input
|
|
|
v-model="shipForm.deliveryFlowId"
|
|
|
+ @blur="InputBlur()"
|
|
|
placeholder="输入快递单号"
|
|
|
clearable
|
|
|
size="small"
|
|
@@ -54,10 +55,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import CustomFieldsMixin from "@/mixins/CustomFields";
|
|
|
-import {
|
|
|
- companyList,
|
|
|
- deliverOrderShipUpdate,
|
|
|
-} from "@/api/business/order";
|
|
|
+import { companyList, deliverOrderShipUpdate, automaticRecognition} from "@/api/business/order";
|
|
|
export default {
|
|
|
mixins: [CustomFieldsMixin],
|
|
|
props: {
|
|
@@ -123,7 +121,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
-
|
|
|
// 快递下拉列表
|
|
|
getCompanyList() {
|
|
|
companyList({}).then((res) => {
|
|
@@ -131,6 +128,17 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ //快递单号失去焦点时
|
|
|
+ InputBlur(){
|
|
|
+ if (this.shipForm.deliveryFlowId){
|
|
|
+ automaticRecognition(this.shipForm.deliveryFlowId).then((res)=>{
|
|
|
+ if (res.code == 0 && res.data){
|
|
|
+ this.shipForm.deliveryId = res.data.deliveryId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
// 确认
|
|
|
saveClick() {
|
|
|
this.loading = true;
|