|
|
@@ -59,6 +59,8 @@
|
|
|
@can('退货管理-编辑')
|
|
|
<a class="btn btn-sm btn-outline-dark" href="{{url('rejected/importRejectedNumber')}}" style="cursor: pointer">导入修改</a>
|
|
|
@endcan
|
|
|
+ <button class="btn btn-sm ml-2 btn-primary" v-if="rejectedBills_checkBoxes.length>0" @click="copyLogisticNumber()">复制快递单号</button>
|
|
|
+
|
|
|
<span for="checkSelectingAll" class="d-none" id="cloneCheckAll">
|
|
|
<input type="checkbox" class="form-control-sm tooltipTarget" title="全选"
|
|
|
id="checkSelectingAll" @click="checkBoxAllToggle($event)">
|
|
|
@@ -153,6 +155,7 @@
|
|
|
<div class="text-info h5 btn btn">{{$rejectedBills->count()}}/{{$rejectedBills->total()}}</div>
|
|
|
{{$rejectedBills->appends($paginateParams)->links()}}
|
|
|
</div>
|
|
|
+ <label><textarea id="clipboardDiv" style="opacity:0"></textarea></label>
|
|
|
</div>
|
|
|
</div>
|
|
|
@endsection
|
|
|
@@ -307,6 +310,32 @@
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ copyLogisticNumber(){
|
|
|
+ let text="";
|
|
|
+ this.rejectedBills_checkBoxes.forEach((id,i)=>{
|
|
|
+ this.rejectedBills.some(bill=>{
|
|
|
+ if (bill.id == id){
|
|
|
+ text += bill.logistic_number_return;
|
|
|
+ if (i!==this.rejectedBills_checkBoxes.length-1)text += ",";
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.copyText(text)
|
|
|
+ },
|
|
|
+ copyText(text){
|
|
|
+ try {
|
|
|
+ $('#clipboardDiv').text(text).select().focus();
|
|
|
+ document.execCommand("Copy");
|
|
|
+ tempTip.setIndex(1052)
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.showSuccess('复制成功')
|
|
|
+ } catch (e) {
|
|
|
+ tempTip.setIndex(1052)
|
|
|
+ tempTip.setDuration(2000)
|
|
|
+ tempTip.showSuccess('复制失败:'+e)
|
|
|
+ }
|
|
|
+ },
|
|
|
updateRejectedBillRemark:function (e) {
|
|
|
let target = $(e.target);
|
|
|
let _this = this;
|