|
|
@@ -150,7 +150,7 @@
|
|
|
<div class="form-group row">
|
|
|
<label class="col-2 col-form-label text-right"></label>
|
|
|
<div class="col-8">
|
|
|
- <button type="submit" class="btn btn-success form-control" @click="submitFake">提交修改
|
|
|
+ <button type="submit" class="btn btn-success form-control" @click="submitFake" :disabled="isSubmit">提交修改
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -195,7 +195,8 @@
|
|
|
final_status: ['已解决', '待退回', '退回中',],
|
|
|
logisticExpressRemission: ['原单减免', '部分减免', '全部减免'],
|
|
|
baoShiExpressRemission: ['原单减免', '部分减免', '全部减免'],
|
|
|
- logistic_number:@if($rejectedBill)'{!! $rejectedBill->logistic_number_return !!}'@else ''@endif
|
|
|
+ logistic_number:@if($rejectedBill)'{!! $rejectedBill->logistic_number_return !!}'@else ''@endif,
|
|
|
+ isSubmit:false
|
|
|
},
|
|
|
mounted: function () {
|
|
|
$("#editOrderIssue").removeClass('d-none');
|
|
|
@@ -242,6 +243,7 @@
|
|
|
if( logistic_number_return === null || logistic_number_return == '' ){
|
|
|
this.rejectedBill = {logistic_number_return:logistic_number_return} ;
|
|
|
this.orderIssues.rejected_bill_id = null;
|
|
|
+ this.isSubmit = false;
|
|
|
return ;
|
|
|
}
|
|
|
let data = {logisticNumberReturn:logistic_number_return};
|
|
|
@@ -252,6 +254,7 @@
|
|
|
_this.rejectedBill.id_logistic_return = res.data.rejectedBill.id_logistic_return;
|
|
|
_this.rejectedBill.id_owner = res.data.rejectedBill.id_owner;
|
|
|
_this.orderIssues.rejected_bill_id = res.data.rejectedBill.id;
|
|
|
+ _this.isSubmit = false;
|
|
|
}
|
|
|
if(res.data.msg){
|
|
|
tempTip.setDuration(2000);
|
|
|
@@ -263,10 +266,12 @@
|
|
|
tempTip.showSuccess('找到对应的问题单');
|
|
|
}
|
|
|
}else{
|
|
|
+ _this.isSubmit = true;
|
|
|
tempTip.setDuration(4000);
|
|
|
- tempTip.show(res.data.fain_info);
|
|
|
+ tempTip.show(res.data.fail_info);
|
|
|
}
|
|
|
}).catch(function(err){
|
|
|
+ _this.isSubmit = true;
|
|
|
tempTip.setDuration(4000);
|
|
|
tempTip.show('网络异常:' + err);
|
|
|
});
|