|
@@ -38,6 +38,10 @@
|
|
|
<button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="batchStoreLogsModel">
|
|
<button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="batchStoreLogsModel">
|
|
|
批量处理说明
|
|
批量处理说明
|
|
|
</button>
|
|
</button>
|
|
|
|
|
+ <span class="ml-1">
|
|
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="batchOthersModel">
|
|
|
|
|
+ 批量处理赔偿金额与事故责任方
|
|
|
|
|
+ </button>
|
|
|
</span>
|
|
</span>
|
|
|
@endcan
|
|
@endcan
|
|
|
<span class="ml-1">
|
|
<span class="ml-1">
|
|
@@ -54,9 +58,14 @@
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
@can('订单管理-问题件-财务确认')
|
|
@can('订单管理-问题件-财务确认')
|
|
|
<span class="ml-1">
|
|
<span class="ml-1">
|
|
|
- <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="financeConfirm">
|
|
|
|
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="financeConfirm('是')">
|
|
|
批量财务确认
|
|
批量财务确认
|
|
|
</button>
|
|
</button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span class="ml-1">
|
|
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget" @click="financeConfirm('否')">
|
|
|
|
|
+ 批量财务确认取消
|
|
|
|
|
+ </button>
|
|
|
</span>
|
|
</span>
|
|
|
@endcan
|
|
@endcan
|
|
|
@can('订单管理-问题件-批量归档')
|
|
@can('订单管理-问题件-批量归档')
|
|
@@ -71,13 +80,13 @@
|
|
|
<table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0" style="background: #fff;@cannot('订单管理-问题件-客户不可见')min-width: 3000px;@else min-width: 1990px; @endcannot">
|
|
<table class="table table-sm table-striped table-bordered table-hover card-body p-0 m-0" style="background: #fff;@cannot('订单管理-问题件-客户不可见')min-width: 3000px;@else min-width: 1990px; @endcannot">
|
|
|
<tr class="tr-yellow align-center">
|
|
<tr class="tr-yellow align-center">
|
|
|
<th class=" font-weight-bolder header-1" ></th>
|
|
<th class=" font-weight-bolder header-1" ></th>
|
|
|
- <th class="td-yellow font-weight-bolder original-class table-head-warning header-2">
|
|
|
|
|
|
|
+ <th class="td-yellow font-weight-bolder original-class table-head-warning header-2 text-center">
|
|
|
<span>原始运单</span>
|
|
<span>原始运单</span>
|
|
|
<button class="btn btn-sm btn-outline-secondary float-right" v-if="isShowOrderInfo" @click="hideOrderInfo">
|
|
<button class="btn btn-sm btn-outline-secondary float-right" v-if="isShowOrderInfo" @click="hideOrderInfo">
|
|
|
隐藏运单列
|
|
隐藏运单列
|
|
|
</button>
|
|
</button>
|
|
|
</th>
|
|
</th>
|
|
|
- <th class="font-weight-bolder header-3">
|
|
|
|
|
|
|
+ <th class="font-weight-bolder header-3 text-center">
|
|
|
<button class="btn btn-sm btn-outline-secondary float-left" v-if="isShowRejectedBill" @click="hideRejectedBill">
|
|
<button class="btn btn-sm btn-outline-secondary float-left" v-if="isShowRejectedBill" @click="hideRejectedBill">
|
|
|
隐藏退单列
|
|
隐藏退单列
|
|
|
</button>
|
|
</button>
|
|
@@ -151,7 +160,7 @@
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">宝时赔偿金额</th>
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">宝时赔偿金额</th>
|
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">宝时快递减免</th>
|
|
<th class="three-layer align-middle" rowspan="2" style="min-width: 120px">宝时快递减免</th>
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
- <th class="three-layer align-middle" rowspan="2" style="min-width: 120px">事故责任方</th>
|
|
|
|
|
|
|
+ <th class="three-layer align-middle" rowspan="2" style="min-width: 200px">事故责任方</th>
|
|
|
<th class="align-middle" rowspan="2" style="min-width: 120px">操作</th>
|
|
<th class="align-middle" rowspan="2" style="min-width: 120px">操作</th>
|
|
|
@endcannot
|
|
@endcannot
|
|
|
</tr>
|
|
</tr>
|
|
@@ -267,7 +276,7 @@
|
|
|
<span v-if='orderIssue.order.logistic'>@{{ orderIssue.order.logistic.name }}</span>
|
|
<span v-if='orderIssue.order.logistic'>@{{ orderIssue.order.logistic.name }}</span>
|
|
|
</td>
|
|
</td>
|
|
|
<td class=" hide-content p-0 td-yellow child-layer-2 align-center" valign="middle">
|
|
<td class=" hide-content p-0 td-yellow child-layer-2 align-center" valign="middle">
|
|
|
- <div v-if="orderIssue.order">
|
|
|
|
|
|
|
+ <template v-if="orderIssue.order">
|
|
|
<span :class="orderIssue.order.packages.length > 1 ?'collapse ':''" :id="'logisticNumbers'+orderIssue.id" >
|
|
<span :class="orderIssue.order.packages.length > 1 ?'collapse ':''" :id="'logisticNumbers'+orderIssue.id" >
|
|
|
<span class="m-0 p-0 d-inline-block" v-for="package in orderIssue.order.packages" >@{{ package.logistic_number }} </span>
|
|
<span class="m-0 p-0 d-inline-block" v-for="package in orderIssue.order.packages" >@{{ package.logistic_number }} </span>
|
|
|
</span>
|
|
</span>
|
|
@@ -276,7 +285,7 @@
|
|
|
@click="toggleLogisticNumbers(orderIssue.id,orderIssue.order.packages.length)">
|
|
@click="toggleLogisticNumbers(orderIssue.id,orderIssue.order.packages.length)">
|
|
|
分箱@{{ orderIssue.order.packages.length }}件,点击展开
|
|
分箱@{{ orderIssue.order.packages.length }}件,点击展开
|
|
|
</button>
|
|
</button>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </template>
|
|
|
</td>
|
|
</td>
|
|
|
{{--商品明细 开始--}}
|
|
{{--商品明细 开始--}}
|
|
|
<td class="td-yellow p-0 m-0 child-layer-2 w-50" v-if="!isShowOrderInfo && index===0" :rowspan="orderIssues.length">
|
|
<td class="td-yellow p-0 m-0 child-layer-2 w-50" v-if="!isShowOrderInfo && index===0" :rowspan="orderIssues.length">
|
|
@@ -382,7 +391,7 @@
|
|
|
@endcan
|
|
@endcan
|
|
|
</td>
|
|
</td>
|
|
|
|
|
|
|
|
- <td class=" m-0 p-0 log-td child-layer-3 valign-middle align-center" v-on:mouseover="showAddBtn($event)" v-on:mouseleave="hideAddBtn($event)" colspan="4">
|
|
|
|
|
|
|
+ <td class=" m-0 p-0 log-td child-layer-3 align-center" v-on:mouseover="showAddBtn($event)" v-on:mouseleave="hideAddBtn($event)" colspan="4">
|
|
|
@can('订单管理-问题件-处理结果添加')
|
|
@can('订单管理-问题件-处理结果添加')
|
|
|
<div class="addLogDiv row m-0 p-0 form-group" :id="'AddLog_'+orderIssue.id" style="display: none;">
|
|
<div class="addLogDiv row m-0 p-0 form-group" :id="'AddLog_'+orderIssue.id" style="display: none;">
|
|
|
<input type="hidden" name="id" :value="orderIssue.id">
|
|
<input type="hidden" name="id" :value="orderIssue.id">
|
|
@@ -406,7 +415,7 @@
|
|
|
<td class="text-muted" style="min-width: 170px">@{{ log.created_at }}</td>
|
|
<td class="text-muted" style="min-width: 170px">@{{ log.created_at }}</td>
|
|
|
@can('订单管理-问题件-处理结果删除')
|
|
@can('订单管理-问题件-处理结果删除')
|
|
|
<td style="" class="m-0 p-0 border-0">
|
|
<td style="" class="m-0 p-0 border-0">
|
|
|
- <button type="button" class="btn btn-sm btn-outline-danger m-0 del-btn invisible" @click="deleteOrderIssueLog(log.id,orderIssue.id)">删</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn btn-sm btn-outline-danger m-0 del-btn invisible" @click="deleteOrderIssueLog(log,orderIssue.id)">删</button>
|
|
|
</td>
|
|
</td>
|
|
|
@endcan
|
|
@endcan
|
|
|
</template>
|
|
</template>
|
|
@@ -533,10 +542,38 @@
|
|
|
</td>
|
|
</td>
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
<td class="child-layer-3">
|
|
<td class="child-layer-3">
|
|
|
- <select class="form-control form-control-sm" :value="orderIssue.user_workgroup_id" @change="updateOrderIssue(orderIssue,'user_workgroup_id',$event)">
|
|
|
|
|
- <option value></option>
|
|
|
|
|
- <option v-for="item in userWorkGroup" :value="item.name">@{{ item.value }}</option>
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+ <table class="table table-sm">
|
|
|
|
|
+ <tr colspan="2">
|
|
|
|
|
+ <td colspan="2">
|
|
|
|
|
+ <select class="form-control form-control-sm" @change="addUserWorkgroup(orderIssue,'user_workgroup_id',$event)">
|
|
|
|
|
+ <option value></option>
|
|
|
|
|
+ <option v-for="item in userWorkGroup" :value="item.name">@{{ item.value }}</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr v-for="(user_workgroup,j) in orderIssue.user_workgroups" v-if="j<2 || orderIssue.is_show_user_workgroup">
|
|
|
|
|
+ <td>@{{ user_workgroup.name }}</td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <button class="btn btn-sm btn-outline-danger"
|
|
|
|
|
+ @click="deleteUserWorkgroup(user_workgroup,j,orderIssue)">
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td colspan="2" v-if="orderIssue.user_workgroups.length > 2">
|
|
|
|
|
+ <div class="row" @click="showUserWorkgroup(orderIssue)" v-if="orderIssue.user_workgroups.length > 2">
|
|
|
|
|
+ <label class="text-center mt-0 p-0 cursor-pointer offset-5">
|
|
|
|
|
+ <span class="fa"
|
|
|
|
|
+ :class="orderIssue.is_show_user_workgroup ? 'fa-angle-double-down' : 'fa-angle-double-right'"></span>
|
|
|
|
|
+ <span v-if="orderIssue.is_show_user_workgroup">收起</span><span
|
|
|
|
|
+ v-if="!orderIssue.is_show_user_workgroup">展开</span>共@{{ orderIssue.user_workgroups.length }} 条
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
@can('订单管理-问题件-编辑')
|
|
@can('订单管理-问题件-编辑')
|
|
@@ -574,6 +611,46 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="modal fade" id="batchOthersModel" tabindex="-1" role="dialog" aria-labelledby="othersLabel" aria-hidden="true">
|
|
|
|
|
+ <div class="modal-dialog modal-dialog-centered">
|
|
|
|
|
+ <div class="modal-content">
|
|
|
|
|
+ <div class="modal-body">
|
|
|
|
|
+ <h5 class="modal-title" id="othersLabel">承运商赔偿金额</h5>
|
|
|
|
|
+ <input type="number" v-model="edit.batchOthers.logistic_indemnity_money" class="form-control form-control-sm">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="modal-body">
|
|
|
|
|
+ <h5 class="modal-title" id="othersLabel">承运商快递减免</h5>
|
|
|
|
|
+ <select class="form-control form-control-sm" v-model="edit.batchOthers.logistic_express_remission">
|
|
|
|
|
+ <option disabled value="">请选择</option>
|
|
|
|
|
+ <option v-for="item in expressRemission" :value="item">@{{ item }}</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="modal-body">
|
|
|
|
|
+ <h5 class="modal-title" id="othersLabel">宝时赔偿金额</h5>
|
|
|
|
|
+ <input type="number" v-model="edit.batchOthers.baoshi_indemnity_money" class="form-control form-control-sm">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="modal-body">
|
|
|
|
|
+ <h5 class="modal-title" id="othersLabel">宝时快递减免</h5>
|
|
|
|
|
+ <select class="form-control form-control-sm" v-model="edit.batchOthers.baoshi_express_remission">
|
|
|
|
|
+ <option disabled value="">请选择</option>
|
|
|
|
|
+ <option v-for="item in expressRemission" :value="item">@{{ item }}</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="modal-body" >
|
|
|
|
|
+ <h5 class="modal-title" id="logsLabel">事故责任方</h5>
|
|
|
|
|
+ <span v-for="item in userWorkGroup">
|
|
|
|
|
+ <input v-model="edit.batchOthers.userWorkGroupIds" type="checkbox" name="vehicle" :value="item.name" /> @{{ item.value }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
|
|
|
+ <button type="button" class="btn btn-primary" data-dismiss="modal" @click="batchOthers()">确认</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
{{--delete OrderIssue--}}
|
|
{{--delete OrderIssue--}}
|
|
|
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModalLabel"
|
|
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModalLabel"
|
|
@@ -723,6 +800,13 @@
|
|
|
message:{},
|
|
message:{},
|
|
|
edit:{
|
|
edit:{
|
|
|
batchStoreLogs:'',
|
|
batchStoreLogs:'',
|
|
|
|
|
+ batchOthers:{
|
|
|
|
|
+ logistic_indemnity_money: null ,
|
|
|
|
|
+ logistic_express_remission: null,
|
|
|
|
|
+ baoshi_indemnity_money: null,
|
|
|
|
|
+ baoshi_express_remission: null,
|
|
|
|
|
+ userWorkGroupIds: []
|
|
|
|
|
+ },
|
|
|
isShow:[],
|
|
isShow:[],
|
|
|
addSendOrderIssueID:'',
|
|
addSendOrderIssueID:'',
|
|
|
orderIssue: {id: null,showId:''},
|
|
orderIssue: {id: null,showId:''},
|
|
@@ -735,6 +819,7 @@
|
|
|
_this.regroupOrder(orderIssue.second_order);
|
|
_this.regroupOrder(orderIssue.second_order);
|
|
|
_this.regroupRejectedBill(orderIssue);
|
|
_this.regroupRejectedBill(orderIssue);
|
|
|
_this.regroupLogs(orderIssue);
|
|
_this.regroupLogs(orderIssue);
|
|
|
|
|
+ _this.regroupUserGroup(orderIssue);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
mounted: function () {
|
|
mounted: function () {
|
|
@@ -777,6 +862,9 @@
|
|
|
},
|
|
},
|
|
|
{name: 'logistic_number_return', type: 'input', tip: '退回单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '退回单号'},
|
|
{name: 'logistic_number_return', type: 'input', tip: '退回单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '退回单号'},
|
|
|
{name: 'send_client_code', type: 'input', tip: '二次订单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '二次订单号'},
|
|
{name: 'send_client_code', type: 'input', tip: '二次订单号:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '二次订单号'},
|
|
|
|
|
+ {name: ['shop_name','shop_name_limit_time'], type: 'input_select', tip: ['商铺:前或后加 百分号为单个模糊搜索,默认添加后%,否则为多条件精确搜索','查询范围越短,搜索速度越快'], placeholder: ['店铺',''],
|
|
|
|
|
+ data:log_content_range,
|
|
|
|
|
+ rules:[{son:{shop_name_limit_time:{default:'15',required_without_all_if:['created_at_start','created_at_end']}}}]},
|
|
|
], [
|
|
], [
|
|
|
{name: 'created_at_end', type: 'dateTime', tip: '登记结束日期'},
|
|
{name: 'created_at_end', type: 'dateTime', tip: '登记结束日期'},
|
|
|
{name: 'consignee_name', type: 'input', tip: '收货人名称:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '收货人名称'},
|
|
{name: 'consignee_name', type: 'input', tip: '收货人名称:前或后加百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '收货人名称'},
|
|
@@ -785,6 +873,7 @@
|
|
|
{name: 'good_name', type: 'input', tip: '商品名:前或后加 百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '商品名'},
|
|
{name: 'good_name', type: 'input', tip: '商品名:前或后加 百分号为单个模糊搜索,否则为多条件精确搜索', placeholder: '商品名'},
|
|
|
{name: 'id_quality_label', type: 'select', tip: '是否正品', placeholder: '是否正品', data: this.qualityLabel},
|
|
{name: 'id_quality_label', type: 'select', tip: '是否正品', placeholder: '是否正品', data: this.qualityLabel},
|
|
|
{name: 'is_imported', type: 'select', tip: '是否导入处理', placeholder: '是否导入处理', data: imported_status},
|
|
{name: 'is_imported', type: 'select', tip: '是否导入处理', placeholder: '是否导入处理', data: imported_status},
|
|
|
|
|
+ {name: 'user_workgroups', type: 'select_multiple_select', tip: ['事故责任方',''], placeholder: ['事故责任方',''], data: this.userWorkGroup},
|
|
|
],[
|
|
],[
|
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
@cannot('订单管理-问题件-客户不可见')
|
|
|
{name: 'logistic_indemnity_money', type: 'select', tip: '承运商赔偿金额', placeholder: '承运商赔偿金额',data:[{name: '是',value:'是'},{name: '否',value:'否'}]},
|
|
{name: 'logistic_indemnity_money', type: 'select', tip: '承运商赔偿金额', placeholder: '承运商赔偿金额',data:[{name: '是',value:'是'},{name: '否',value:'否'}]},
|
|
@@ -800,6 +889,7 @@
|
|
|
// {date_relevance:{date:['orderdate_start','orderdate_end'],relevance:'addtime',killing:'date',default:[31,92,183,366]}}]},
|
|
// {date_relevance:{date:['orderdate_start','orderdate_end'],relevance:'addtime',killing:'date',default:[31,92,183,366]}}]},
|
|
|
{name: 'custom_code', type: 'input', tip: '自定义订单号:自定义订单号', placeholder: '自定义订单号'},
|
|
{name: 'custom_code', type: 'input', tip: '自定义订单号:自定义订单号', placeholder: '自定义订单号'},
|
|
|
{name: 'is_handle', type: 'checkbox', tip: '是否已处理', data: [{name: 'ture', value: '已解决'}]},
|
|
{name: 'is_handle', type: 'checkbox', tip: '是否已处理', data: [{name: 'ture', value: '已解决'}]},
|
|
|
|
|
+ {name: 'finance_confirm', type: 'select', tip: '财务确认', placeholder: '财务确认是/否', data:[{name: '是',value:'是'},{name: '否',value:'否'}]},
|
|
|
],[
|
|
],[
|
|
|
{name: 'settlement_at_start', type: 'dateTime', tip: '完结起始日期'},
|
|
{name: 'settlement_at_start', type: 'dateTime', tip: '完结起始日期'},
|
|
|
{name: 'settlement_at_end', type: 'dateTime', tip: '完结结束日期' },
|
|
{name: 'settlement_at_end', type: 'dateTime', tip: '完结结束日期' },
|
|
@@ -893,6 +983,9 @@
|
|
|
orderIssue.log_is_show = false;
|
|
orderIssue.log_is_show = false;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ regroupUserGroup(orderIssue){
|
|
|
|
|
+ orderIssue.is_show_user_workgroup = false;
|
|
|
|
|
+ },
|
|
|
displayDelBtn(bool,e){
|
|
displayDelBtn(bool,e){
|
|
|
if(bool)$(e.target).next().removeClass('d-none');
|
|
if(bool)$(e.target).next().removeClass('d-none');
|
|
|
else {
|
|
else {
|
|
@@ -1134,15 +1227,19 @@
|
|
|
tempTip.show('网络异常:' + err);
|
|
tempTip.show('网络异常:' + err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- deleteOrderIssueLog(id, OrderIssueId) {
|
|
|
|
|
|
|
+ deleteOrderIssueLog(log, OrderIssueId) {
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
if(!confirm('是否删除当前记录'))return;
|
|
if(!confirm('是否删除当前记录'))return;
|
|
|
- axios.post("{{url('apiLocal/order/issue/log/destroy')}}", {id: id}).then(function (res) {
|
|
|
|
|
|
|
+ if(log.type === '创建'){
|
|
|
|
|
+ tempTip.show('创建记录不能删除');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ axios.post("{{url('apiLocal/order/issue/log/destroy')}}", {id: log.id}).then(function (res) {
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
_this.orderIssues.forEach(function (orderIssue) {
|
|
_this.orderIssues.forEach(function (orderIssue) {
|
|
|
if (orderIssue.id == OrderIssueId) {
|
|
if (orderIssue.id == OrderIssueId) {
|
|
|
orderIssue.logs.forEach(function (item, index) {
|
|
orderIssue.logs.forEach(function (item, index) {
|
|
|
- if (item.id == id)orderIssue.logs.splice(index, 1);
|
|
|
|
|
|
|
+ if (item.id == log.id)orderIssue.logs.splice(index, 1);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -1184,7 +1281,13 @@
|
|
|
let domObj = $(e.target).parents('.log-td');
|
|
let domObj = $(e.target).parents('.log-td');
|
|
|
if (domObj.hasClass('log-td')) {
|
|
if (domObj.hasClass('log-td')) {
|
|
|
domObj.find('.add-btn').show();
|
|
domObj.find('.add-btn').show();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ let obj = $(e.target);
|
|
|
|
|
+ if(obj.hasClass('log-td')){
|
|
|
|
|
+ obj.find('.add-btn').show();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
hideAddBtn(e) {
|
|
hideAddBtn(e) {
|
|
|
let domObj = $(e.target);
|
|
let domObj = $(e.target);
|
|
@@ -1332,6 +1435,14 @@
|
|
|
}
|
|
}
|
|
|
$("#batchStoreLogsModel").modal('show');
|
|
$("#batchStoreLogsModel").modal('show');
|
|
|
},
|
|
},
|
|
|
|
|
+ batchOthersModel(){
|
|
|
|
|
+ if(this.checkData.length === 0){
|
|
|
|
|
+ tempTip.setDuration(2000)
|
|
|
|
|
+ tempTip.show('没有勾选内容')
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ $("#batchOthersModel").modal('show');
|
|
|
|
|
+ },
|
|
|
batchStoreLogs(){
|
|
batchStoreLogs(){
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
let data = {orderIssueIds:this.checkData,content:this.edit.batchStoreLogs};
|
|
let data = {orderIssueIds:this.checkData,content:this.edit.batchStoreLogs};
|
|
@@ -1358,6 +1469,32 @@
|
|
|
tempTip.show('处理结果添加异常:'+error)
|
|
tempTip.show('处理结果添加异常:'+error)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ batchOthers(){
|
|
|
|
|
+ let _this = this;
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ orderIssueIds:this.checkData,
|
|
|
|
|
+ logistic_indemnity_money: this.edit.batchOthers.logistic_indemnity_money,
|
|
|
|
|
+ logistic_express_remission: this.edit.batchOthers.logistic_express_remission,
|
|
|
|
|
+ baoshi_indemnity_money: this.edit.batchOthers.baoshi_indemnity_money,
|
|
|
|
|
+ baoshi_express_remission: this.edit.batchOthers.baoshi_express_remission,
|
|
|
|
|
+ userWorkGroupIds: this.edit.batchOthers.userWorkGroupIds,
|
|
|
|
|
+ };
|
|
|
|
|
+ window.tempTip.postBasicRequest('{{url("apiLocal/order/issue/batchOthers")}}', data, res => {
|
|
|
|
|
+ if (_this.edit.batchOthers.logistic_indemnity_money) {
|
|
|
|
|
+ _this.orderIssuesEdit(_this.checkData, "logistic_indemnity_money", _this.edit.batchOthers.logistic_indemnity_money);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.edit.batchOthers.logistic_express_remission) {
|
|
|
|
|
+ _this.orderIssuesEdit(_this.checkData, "logistic_express_remission", _this.edit.batchOthers.logistic_express_remission);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.edit.batchOthers.baoshi_indemnity_money) {
|
|
|
|
|
+ _this.orderIssuesEdit(_this.checkData, "baoshi_indemnity_money", _this.edit.batchOthers.baoshi_indemnity_money);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.edit.batchOthers.baoshi_express_remission) {
|
|
|
|
|
+ _this.orderIssuesEdit(_this.checkData, "baoshi_express_remission", _this.edit.batchOthers.baoshi_express_remission);
|
|
|
|
|
+ }
|
|
|
|
|
+ return "批量修改完成";
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
editSecondClientNo(orderIssue,e){
|
|
editSecondClientNo(orderIssue,e){
|
|
|
let value = $(e.target).val()
|
|
let value = $(e.target).val()
|
|
|
let data = {id:orderIssue.id,secondClientNo:value}
|
|
let data = {id:orderIssue.id,secondClientNo:value}
|
|
@@ -1418,7 +1555,7 @@
|
|
|
_this.regroupOrder(response.data.order);
|
|
_this.regroupOrder(response.data.order);
|
|
|
orderIssue.second_order = response.data.order
|
|
orderIssue.second_order = response.data.order
|
|
|
orderIssue.second_client_no = response.data.order.client_code
|
|
orderIssue.second_client_no = response.data.order.client_code
|
|
|
- }
|
|
|
|
|
|
|
+ }else orderIssue.second_logistic_number = logisticNumber;
|
|
|
if(response.data.second_logistic_number != null ){
|
|
if(response.data.second_logistic_number != null ){
|
|
|
orderIssue.second_logistic_number = response.data.second_logistic_number
|
|
orderIssue.second_logistic_number = response.data.second_logistic_number
|
|
|
}
|
|
}
|
|
@@ -1464,23 +1601,32 @@
|
|
|
tempTip.show('处理导入出现异常'+error)
|
|
tempTip.show('处理导入出现异常'+error)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- financeConfirm(){
|
|
|
|
|
|
|
+ financeConfirm(flag){
|
|
|
let _this= this
|
|
let _this= this
|
|
|
if(this.checkData.length === 0){
|
|
if(this.checkData.length === 0){
|
|
|
tempTip.setDuration(2000)
|
|
tempTip.setDuration(2000)
|
|
|
tempTip.show('没有勾选内容')
|
|
tempTip.show('没有勾选内容')
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if(!confirm('是否进行财务确认'))return;
|
|
|
|
|
|
|
+ if (flag=='是') {
|
|
|
|
|
+ if (!confirm('是否进行财务确认')) return;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ if (!confirm('是否取消财务确认')) return;
|
|
|
|
|
+ }
|
|
|
let data = {ids:this.checkData};
|
|
let data = {ids:this.checkData};
|
|
|
tempTip.setDuration(9999);
|
|
tempTip.setDuration(9999);
|
|
|
tempTip.waitingTip('处理中.......');
|
|
tempTip.waitingTip('处理中.......');
|
|
|
|
|
+ data.flag = flag;
|
|
|
axios.post('{{url('apiLocal/order/issue/financeConfirm')}}',data)
|
|
axios.post('{{url('apiLocal/order/issue/financeConfirm')}}',data)
|
|
|
.then(function(response){
|
|
.then(function(response){
|
|
|
tempTip.cancelWaitingTip();
|
|
tempTip.cancelWaitingTip();
|
|
|
if(response.data.success){
|
|
if(response.data.success){
|
|
|
tempTip.setDuration(2000);
|
|
tempTip.setDuration(2000);
|
|
|
- tempTip.showSuccess('确认成功');
|
|
|
|
|
|
|
+ if (flag=='是') {
|
|
|
|
|
+ tempTip.showSuccess('确认成功');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ tempTip.showSuccess('取消成功');
|
|
|
|
|
+ }
|
|
|
_this.orderIssuesEdit(data.ids,'finance_confirm','是');
|
|
_this.orderIssuesEdit(data.ids,'finance_confirm','是');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1553,6 +1699,7 @@
|
|
|
orderIssue.rejecting_status = response.data.data.orderIssue.rejecting_status;
|
|
orderIssue.rejecting_status = response.data.data.orderIssue.rejecting_status;
|
|
|
}
|
|
}
|
|
|
_this.regroupRejectedBill(orderIssue);
|
|
_this.regroupRejectedBill(orderIssue);
|
|
|
|
|
+ _this.$forceUpdate();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
tempTip.setDuration(2000);
|
|
tempTip.setDuration(2000);
|
|
@@ -1571,9 +1718,9 @@
|
|
|
if(response.data.success){
|
|
if(response.data.success){
|
|
|
tempTip.setDuration(2000);
|
|
tempTip.setDuration(2000);
|
|
|
tempTip.showSuccess('退回单号取消关联成功');
|
|
tempTip.showSuccess('退回单号取消关联成功');
|
|
|
- if(orderIssue.rejected_bills===null)return;
|
|
|
|
|
|
|
+ if(orderIssue.order_issue_rejected_bills===null)return;
|
|
|
$.each(orderIssue.order_issue_rejected_bills,function(i,item){
|
|
$.each(orderIssue.order_issue_rejected_bills,function(i,item){
|
|
|
- if(item.logistic_number_return === logistic_number){
|
|
|
|
|
|
|
+ if(item && item.logistic_number_return === logistic_number){
|
|
|
orderIssue.order_issue_rejected_bills.splice(i,1);
|
|
orderIssue.order_issue_rejected_bills.splice(i,1);
|
|
|
_this.regroupRejectedBill(orderIssue);
|
|
_this.regroupRejectedBill(orderIssue);
|
|
|
}
|
|
}
|
|
@@ -1626,6 +1773,30 @@
|
|
|
tempTip.setDuration(2000);
|
|
tempTip.setDuration(2000);
|
|
|
tempTip.show(error);
|
|
tempTip.show(error);
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ addUserWorkgroup(orderIssue,user_workgroup_id,e) {
|
|
|
|
|
+ let value = $(e.target).val()
|
|
|
|
|
+ window.tempTip.postBasicRequest("{{url('apiLocal/order/issue/userWorkgroups/add')}}", {
|
|
|
|
|
+ orderIssueId: orderIssue.id,
|
|
|
|
|
+ userWorkgroupId: value
|
|
|
|
|
+ }, res => {
|
|
|
|
|
+ orderIssue.user_workgroups.unshift(res);
|
|
|
|
|
+ return "添加事故责任方成功!";
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ deleteUserWorkgroup(user_workgroup,index,orderIssue) {
|
|
|
|
|
+ window.tempTip.postBasicRequest("{{url('apiLocal/order/issue/userWorkgroups/delete')}}", {
|
|
|
|
|
+ orderIssueId: orderIssue.id,
|
|
|
|
|
+ userWorkgroupId: user_workgroup.id
|
|
|
|
|
+ }, res => {
|
|
|
|
|
+ orderIssue.user_workgroups.splice(index, 1);
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
|
+ return "删除事故责任方成功!";
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ showUserWorkgroup(orderIssue) {
|
|
|
|
|
+ orderIssue.is_show_user_workgroup = !orderIssue.is_show_user_workgroup;
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|