|
|
@@ -8,7 +8,7 @@
|
|
|
</div>
|
|
|
<div class="container-fluid">
|
|
|
<div>
|
|
|
-{{-- <div style="min-width: 2070px;">--}}
|
|
|
+ {{-- <div style="min-width: 2070px;">--}}
|
|
|
<div class="d-none" id="list">
|
|
|
@if(Session::has('successTip'))
|
|
|
<div class="alert alert-success h1">{{Session::get('successTip')}}</div>
|
|
|
@@ -117,7 +117,15 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
</td>
|
|
|
- <td class="text-muted" style="max-width: 190px">@{{rejectedBill.remark}}</td>
|
|
|
+ {{-- <td class="text-muted" style="max-width: 190px">@{{rejectedBill.remark}}</td>--}}
|
|
|
+ <td style="min-width:150px;">
|
|
|
+ @can('退货管理-编辑备注')
|
|
|
+ <textarea class="form-control form-control-sm" :rows="rejectedBill.remark?Math.ceil(rejectedBill.remark.length/8):2" cols=8
|
|
|
+ @change="updateRejectedBillRemark($event)" :value="rejectedBill.remark" :data_id="rejectedBill.id">@{{ rejectedBill.remark }}</textarea>
|
|
|
+ @else
|
|
|
+ <span>@{{rejectedBill.remark}}</span>
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
<td class="text-muted">@{{rejectedBill.operator_name}}</td>
|
|
|
@can('退货管理-编辑')
|
|
|
<td>
|
|
|
@@ -149,7 +157,7 @@
|
|
|
rejectedBill.detailFolding=true;
|
|
|
})
|
|
|
let owners=[
|
|
|
- @foreach($owners as $owner)
|
|
|
+ @foreach($owners as $owner)
|
|
|
{id:'{{$owner->id}}',name:'{{$owner->name}}'},
|
|
|
@endforeach
|
|
|
];
|
|
|
@@ -185,18 +193,18 @@
|
|
|
rejectedBills:rejectedBills,
|
|
|
rejectedBills_checkBoxes:[],
|
|
|
owners:[
|
|
|
- @foreach($owners as $owner)
|
|
|
+ @foreach($owners as $owner)
|
|
|
{name:'{{$owner->id}}',value:'{{$owner->name}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
issueIds:{!! $issueIds !!},
|
|
|
logistics:[
|
|
|
- @foreach($logistics as $logistic)
|
|
|
+ @foreach($logistics as $logistic)
|
|
|
{name:'{{$logistic->id}}',value:'{{$logistic->name}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
qualityLabels:[
|
|
|
- @foreach($qualityLabels as $qualityLabel)
|
|
|
+ @foreach($qualityLabels as $qualityLabel)
|
|
|
{name:'{{$qualityLabel->id}}',value:'{{$qualityLabel->name}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
@@ -214,6 +222,7 @@
|
|
|
{name:'logistic_number',type:'input',tip:'原单单号:可在两侧增加百分号(%)进行模糊搜索',placeholder:'原单单号'},
|
|
|
{name:'is_checked',type:'select',placeholder: '是否审核',data:[{name:1,value:'已审核'},{name:0,value:'未审核'}]},
|
|
|
{name:'id_logistic_return',type:'select',placeholder: '快递名称',data:this.logistics},
|
|
|
+ {name:'remark',type:'input',tip:'退单备注:默认查询15天以内记录信息',placeholder: '退单备注'},
|
|
|
],[
|
|
|
{name:'created_at_end',type:'dateTime',tip:'选择显示指定日期的结束时间'},
|
|
|
{name:'barcode_goods',type:'input',tip:'商品条码:可模糊匹配右边未填完的部分,按回车提交',placeholder:'商品条码'},
|
|
|
@@ -221,7 +230,7 @@
|
|
|
{name:'mobile_sender',type:'input',tip:'寄件人手机:输入完成敲回车提交',placeholder:'寄件人手机'},
|
|
|
{name:'checked_numbers',type:'input',tip:'审核批次号:支持右位留空的模糊搜索',placeholder:'审核批次号'},
|
|
|
{name:'is_loaded',type:'select',placeholder: '是否入库',data:[{name:1,value:'是'},{name:0,value:'否'},
|
|
|
- {name:'null',value:'无需入库'},{name:2,value:'待推单'},{name:4,value:'待确认'},{name:3,value:'交互异常'}]},
|
|
|
+ {name:'null',value:'无需入库'},{name:2,value:'待推单'},{name:4,value:'待确认'},{name:3,value:'交互异常'}]},
|
|
|
{name:'is_issue',type:'select',data:[{name:'true',value:'有'},{name:'false',value:'无'}],tip:'问题件',placeholder:'问题件'}
|
|
|
]
|
|
|
];
|
|
|
@@ -291,6 +300,36 @@
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ updateRejectedBillRemark:function (e) {
|
|
|
+ let target = $(e.target);
|
|
|
+ let _this = this;
|
|
|
+ let id = target.attr('data_id');
|
|
|
+ let remark = target.val();
|
|
|
+ let ajaxUrl= '{{url("rejected/changeRejectedBillRemark")}}';
|
|
|
+ axios.post(ajaxUrl,{'id':id,'remark':remark}).then(function (response) {
|
|
|
+ if(response.data.success){
|
|
|
+ _this.updateRejectedBills(id,remark);
|
|
|
+ tempTip.setDuration(2000);
|
|
|
+ tempTip.showSuccess('备注修改成功');
|
|
|
+ }else{
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('备注修改失败!'+response.data.fail_info);
|
|
|
+ }
|
|
|
+ }).catch(function (err) {
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('备注修改失败!网络异常:'+err);
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
+ // 更新表格数据
|
|
|
+ updateRejectedBills(id,remark){
|
|
|
+ this.rejectedBills.some(function(rejectedBill){
|
|
|
+ if(parseInt(rejectedBill.id) === parseInt(id)){
|
|
|
+ rejectedBill.remark = remark;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
edit(id){
|
|
|
window.location.href=editUrl+id+"/edit";
|
|
|
// window.open(editUrl+id+"/edit",'_blank') ;
|
|
|
@@ -372,7 +411,7 @@
|
|
|
alert('网络连接错误:'+e);
|
|
|
tempTip.setDuration(2500);
|
|
|
tempTip.show('审核勾选内容失败,网络连接错误:'+e);
|
|
|
- console.log(e);
|
|
|
+
|
|
|
});
|
|
|
$(e.target).val("")
|
|
|
},
|
|
|
@@ -415,7 +454,6 @@
|
|
|
alert('网络连接错误:'+e);
|
|
|
tempTip.setDuration(2500);
|
|
|
tempTip.show('审核勾选内容失败,网络连接错误:'+e);
|
|
|
- console.log(e);
|
|
|
})
|
|
|
},
|
|
|
confirmBeStored:function($e,id){
|
|
|
@@ -437,7 +475,7 @@
|
|
|
alert('确认失败,网络连接错误:'+e);
|
|
|
tempTip.setDuration(2500);
|
|
|
tempTip.show('确认失败,网络连接错误:'+e);
|
|
|
- console.log(e);
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
finishAll:function(){
|