|
@@ -169,7 +169,7 @@
|
|
|
|
|
|
<div class="button_box">
|
|
<div class="button_box">
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button @click="cancel">取消</el-button>
|
|
- <el-button type="primary" @click="makeSure">确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="makeSure" :loading="loading">确定</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -188,6 +188,7 @@ export default {
|
|
pos: 0,
|
|
pos: 0,
|
|
//加载
|
|
//加载
|
|
selectLineLoading: false,
|
|
selectLineLoading: false,
|
|
|
|
+ loading:false,
|
|
//所有选中承运商Id和承运商名称暂存
|
|
//所有选中承运商Id和承运商名称暂存
|
|
carrierIdAndName: [],
|
|
carrierIdAndName: [],
|
|
//承运商下拉框中的值
|
|
//承运商下拉框中的值
|
|
@@ -522,6 +523,8 @@ export default {
|
|
},
|
|
},
|
|
//点击确定按钮的事件
|
|
//点击确定按钮的事件
|
|
makeSure() {
|
|
makeSure() {
|
|
|
|
+ this.loading=true;
|
|
|
|
+ return;
|
|
if (this.canSend == -1) {
|
|
if (this.canSend == -1) {
|
|
this.$message.warning("电话号码格式不正确,请输入正确的电话号码!");
|
|
this.$message.warning("电话号码格式不正确,请输入正确的电话号码!");
|
|
} else {
|
|
} else {
|
|
@@ -572,6 +575,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$message.error("派单失败:" + res.data.data);
|
|
this.$message.error("派单失败:" + res.data.data);
|
|
}
|
|
}
|
|
|
|
+ this.loading=false;
|
|
});
|
|
});
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|