|
|
@@ -85,7 +85,8 @@
|
|
|
style="background-color: #54c337;color: #FFFFFF;border-color:#90acb6;"
|
|
|
v-if="isBaoShiReview(item)"
|
|
|
@click="baoShiShowEdit(item,i)">
|
|
|
- 终审
|
|
|
+ <span v-if="'错漏发' === item.issue_type_name">宝时处理</span>
|
|
|
+ <span v-else>终审</span>
|
|
|
</button>
|
|
|
@endcan
|
|
|
</td>
|
|
|
@@ -335,6 +336,10 @@
|
|
|
refundImages: [], // 退款图
|
|
|
dealImages: [], // 交易图
|
|
|
commodities: [],
|
|
|
+ return_logistic_number:null,
|
|
|
+ return_name:null,
|
|
|
+ return_address:null,
|
|
|
+ return_phone:null,
|
|
|
},
|
|
|
fillWorkOrder: {
|
|
|
id: null,
|
|
|
@@ -511,6 +516,9 @@
|
|
|
return_logistic_number: detail.return_logistic_number,
|
|
|
remark: detail.remark,
|
|
|
tag: detail.tag,
|
|
|
+ return_address: detail.return_address,
|
|
|
+ return_phone: detail.return_phone,
|
|
|
+ return_name: detail.return_name,
|
|
|
};
|
|
|
},
|
|
|
groupCommodities(workOrder, isCurrent = true) {
|
|
|
@@ -1276,10 +1284,8 @@
|
|
|
return;
|
|
|
}
|
|
|
let formData = new FormData();
|
|
|
- let {detail_id, reissue_logistic_number, logistic_number, price, dealImages, refundImages,commodities} = this.ownerEditWorKOrder;
|
|
|
+ let {detail_id, price, dealImages, refundImages,commodities} = this.ownerEditWorKOrder;
|
|
|
formData.append('detail_id', detail_id);
|
|
|
- formData.append('reissue_logistic_number', reissue_logistic_number);
|
|
|
- formData.append('logistic_number', logistic_number);
|
|
|
formData.append('price', price);
|
|
|
dealImages = this.getImages(dealImages);
|
|
|
refundImages = this.getImages(refundImages);
|
|
|
@@ -1315,8 +1321,13 @@
|
|
|
}
|
|
|
let url = '{{route('workOrder.mistake.owner.handlerAndEndApi')}}';
|
|
|
let formData = new FormData();
|
|
|
- let {detail_id, commodities} = this.ownerEditWorKOrder;
|
|
|
+ let {detail_id, commodities,return_logistic_number,
|
|
|
+ return_address,return_phone,return_name,} = this.ownerEditWorKOrder;
|
|
|
formData.append('detail_id', detail_id);
|
|
|
+ formData.append('return_logistic_number',return_logistic_number ? return_logistic_number : '');
|
|
|
+ formData.append('return_address', return_address ? return_address : '');
|
|
|
+ formData.append('return_phone', return_phone ? return_phone : '');
|
|
|
+ formData.append('return_name', return_name ? return_name : '');
|
|
|
commodities.forEach(e => {
|
|
|
formData.append("commodities[]", JSON.stringify(e));
|
|
|
});
|
|
|
@@ -1381,6 +1392,19 @@
|
|
|
if (filters.length > 0 ){
|
|
|
return {success: false, message: '商品详情中的处理项,和处理子项 未必选项'};
|
|
|
}
|
|
|
+ // hasReturnAddressInfo
|
|
|
+ // hasReturnLogisticNumber
|
|
|
+ if(this.hasReturnAddressInfo(this.ownerEditWorKOrder.commodities)){
|
|
|
+ if (!this.ownerEditWorKOrder.return_name || !this.ownerEditWorKOrder.return_address || !this.ownerEditWorKOrder.return_phone){
|
|
|
+ return {success: false, message: '完整填写寄件人信息'};
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.hasReturnLogisticNumber(this.ownerEditWorKOrder.commodities)){
|
|
|
+ if (!this.ownerEditWorKOrder.return_logistic_number ){
|
|
|
+ return {success: false, message: '填写退回快递单号'};
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
return {success: true};
|
|
|
},
|
|
|
@@ -1500,7 +1524,19 @@
|
|
|
commodities[index]['count'] = count;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ hasReturnAddressInfo(commodities){
|
|
|
+ let filter = commodities.filter(e=>{
|
|
|
+ return e.process_result_info.includes('宝时上门取件');
|
|
|
+ });
|
|
|
+ return filter.length > 0;
|
|
|
+ },
|
|
|
+ hasReturnLogisticNumber(commodities){
|
|
|
+ let filter = commodities.filter(e=>{
|
|
|
+ return e.process_result_info.includes('客户自行退回');
|
|
|
+ });
|
|
|
+ return filter.length > 0;
|
|
|
+ },
|
|
|
},
|
|
|
});
|
|
|
</script>
|