|
|
@@ -421,6 +421,7 @@
|
|
|
@include('order.workOrder._edit_process_log')
|
|
|
@include('order.workOrder._order_commodity_info')
|
|
|
@include('order.workOrder._rejected_item_equals_order_commodity')
|
|
|
+ @include('order.workOrder._custom_rejected_status')
|
|
|
</div>
|
|
|
@endsection()
|
|
|
|
|
|
@@ -650,7 +651,7 @@
|
|
|
dialogProcessLogVisible: false, // 工单处理日志
|
|
|
dialogOrderCommoditiesVisible: false, // 订单商品详情
|
|
|
dialogCommoditiesEqualsVisible: false, // 商品对比
|
|
|
-
|
|
|
+ dialogCustomRejectedStatusVisible: false, // 自定义退回状态
|
|
|
showProcessLogId: null, // workOrder->id
|
|
|
showAddDetailProcessLog: null, // workOrderDetail->ids
|
|
|
showAddProcessLogFrom: null, //
|
|
|
@@ -687,8 +688,8 @@
|
|
|
],
|
|
|
commodityEqualsMap: [],
|
|
|
hideRejectedBills: true,
|
|
|
- tableHeader:null,
|
|
|
- toggleBtnHeight:0,
|
|
|
+ tableHeader: null,
|
|
|
+ toggleBtnHeight: 0,
|
|
|
},
|
|
|
computed: {},
|
|
|
mounted() {
|
|
|
@@ -869,7 +870,7 @@
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- initTableHeader(){
|
|
|
+ initTableHeader() {
|
|
|
let column = this.headerColumn();
|
|
|
this.tableHeader = new Header({
|
|
|
el: "table",
|
|
|
@@ -3660,7 +3661,7 @@
|
|
|
},
|
|
|
toggleRejectedBill() {
|
|
|
this.hideRejectedBills = !this.hideRejectedBills;
|
|
|
- if(this.tableHeader !== null){
|
|
|
+ if (this.tableHeader !== null) {
|
|
|
let column = this.headerColumn();
|
|
|
this.tableHeader.redrawHeader(column);
|
|
|
}
|
|
|
@@ -3680,7 +3681,7 @@
|
|
|
{name: 'status', value: '当前处理人', neglect: true},
|
|
|
{name: 'creator', value: '创建人'},
|
|
|
{name: 'remark', value: '情况说明'},
|
|
|
- {name: 'rejectedBills', value: '展开',neglect: true,max_width:30},)
|
|
|
+ {name: 'rejectedBills', value: '展开', neglect: true, max_width: 30},)
|
|
|
if (!this.hideRejectedBills) {
|
|
|
columns.push({name: 'return_logistic_number', value: '退回单号'});
|
|
|
@if( \Illuminate\Support\Facades\Gate::check('订单管理-工单处理-宝时编辑') || \Illuminate\Support\Facades\Gate::check('订单管理-工单处理-商家编辑') )
|
|
|
@@ -3720,6 +3721,30 @@
|
|
|
], neglect: true
|
|
|
},);
|
|
|
return columns;
|
|
|
+ },
|
|
|
+ showBatchCustomRejectedStatus(){
|
|
|
+
|
|
|
+ },
|
|
|
+ batchCustomRejectedStatus(ids,rejectedStatus) {
|
|
|
+ let url = "{{route('workOrder.customRejectedStatusApi')}}";
|
|
|
+ let data = {
|
|
|
+ ids: ids,
|
|
|
+ rejectedStatus: rejectedStatus,
|
|
|
+ }
|
|
|
+ window.tempTip.setIndex(1999)
|
|
|
+ window.tempTip.setDuration(9999)
|
|
|
+ window.tempTip.waitingTip('处理中')
|
|
|
+ axios.post(url, data).then(res => {
|
|
|
+ window.tempTip.cancelWaitingTip();
|
|
|
+ if(res.data.success) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.errorTempTip(res.data.message)
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ window.tempTip.cancelWaitingTip();
|
|
|
+ this.errorTempTip(err)
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
});
|