|
|
@@ -34,26 +34,13 @@
|
|
|
v-model="filterData.ordertime_start" :class="filterData.ordertime_start?'bg-warning':''">
|
|
|
</td>
|
|
|
<td style="width: 300px">
|
|
|
- <input style="max-width: 200px" name="orderno" v-model="filterData.orderno" class="form-control form-control-sm tooltipTarget" placeholder="编号" :class="filterData.orderno?'bg-warning':''">
|
|
|
+ <input style="max-width: 200px" type="date" class=" form-control form-control-sm tooltipTarget" name="ordertime_end" title="选择显示指定日期的结束时间"
|
|
|
+ v-model="filterData.ordertime_end" :class="filterData.ordertime_end?'bg-warning':''" >
|
|
|
</td>
|
|
|
<td style="width: 300px">
|
|
|
<input style="max-width: 200px" name="carriername" v-model="filterData.carriername" class="form-control form-control-sm tooltipTarget" placeholder="承运人" :class="filterData.carriername?'bg-warning':''">
|
|
|
</td>
|
|
|
- <td style="width: 300px">
|
|
|
- <div class="form-inline">
|
|
|
- <input style="max-width: 200px" name="notes" title="右侧选择查询范围,默认为一天内" v-model="filterData.notes" class="form-control form-control-sm tooltipTarget" placeholder="备注" :class="filterData.notes?'bg-warning':''">
|
|
|
- <select style="max-width: 100px" title="查询范围,范围越短搜索越快" name="addtime" v-model="filterData.addtime" class="form-control form-control-sm tooltipTarget">
|
|
|
- <option value="31">近一月</option>
|
|
|
- <option value="92">近三月</option>
|
|
|
- <option value="183">近半年</option>
|
|
|
- <option value="366">近一年</option>
|
|
|
- <option value="0">不限期</option>
|
|
|
- </select></div>
|
|
|
- </td>
|
|
|
- <td style="width: 300px">
|
|
|
- <input style="max-width: 200px" name="issuepartyname" v-model="filterData.issuepartyname" class="form-control form-control-sm tooltipTarget" placeholder="店铺名称" :class="filterData.issuepartyname?'bg-warning':''">
|
|
|
- </td>
|
|
|
- <td colspan="4"></td>
|
|
|
+ <td colspan="6"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td >
|
|
|
@@ -67,15 +54,31 @@
|
|
|
</select>
|
|
|
</div>
|
|
|
</td>
|
|
|
- <td >
|
|
|
- <input style="max-width: 200px" type="date" class=" form-control form-control-sm tooltipTarget" name="ordertime_end" title="选择显示指定日期的结束时间"
|
|
|
- v-model="filterData.ordertime_end" :class="filterData.ordertime_end?'bg-warning':''" >
|
|
|
+ <td>
|
|
|
+ <input style="max-width: 200px" name="orderno" v-model="filterData.orderno" class="form-control form-control-sm tooltipTarget" placeholder="编号" title="编号,糊模查找需要在左边打上%符号" autocomplete="off" :class="filterData.orderno?'bg-warning':''">
|
|
|
</td>
|
|
|
<td >
|
|
|
- <input style="max-width: 200px" name="soreference5" title="可输入多快递单号" v-model="filterData.soreference5" class="form-control form-control-sm tooltipTarget" placeholder="快递单号" :class="filterData.soreference5?'bg-warning':''">
|
|
|
+ <input style="max-width: 200px" name="soreference5" placeholder="多快递单号" v-model="filterData.soreference5" class="form-control form-control-sm tooltipTarget" title="可支持多快递单号,糊模查找需要在左边打上%符号" autocomplete="off" :class="filterData.soreference5?'bg-warning':''">
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input style="max-width: 200px" name="soreference1" title="可输入多客户订单号" v-model="filterData.soreference1" class="form-control form-control-sm tooltipTarget" placeholder="客户订单号" :class="filterData.soreference1?'bg-warning':''">
|
|
|
+ <input style="max-width: 200px" name="soreference1" v-model="filterData.soreference1" class="form-control form-control-sm tooltipTarget" placeholder="客户订单号" title="客户订单号,糊模查找需要在左边打上%符号" autocomplete="off" :class="filterData.soreference1?'bg-warning':''">
|
|
|
+ </td>
|
|
|
+ <td colspan="6"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <div class="form-inline">
|
|
|
+ <input style="max-width: 200px" name="notes" title="右侧选择查询范围,默认为一天内" v-model="filterData.notes" class="form-control form-control-sm tooltipTarget" placeholder="备注" autocomplete="off" :class="filterData.notes?'bg-warning':''">
|
|
|
+ <select style="max-width: 100px" title="查询范围,范围越短搜索越快" name="addtime" v-model="filterData.addtime" class="form-control form-control-sm tooltipTarget">
|
|
|
+ <option value="31">近一月</option>
|
|
|
+ <option value="92">近三月</option>
|
|
|
+ <option value="183">近半年</option>
|
|
|
+ <option value="366">近一年</option>
|
|
|
+ <option value="0">不限期</option>
|
|
|
+ </select></div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input style="max-width: 200px" name="issuepartyname" v-model="filterData.issuepartyname" class="form-control form-control-sm tooltipTarget" placeholder="店铺名称" :class="filterData.issuepartyname?'bg-warning':''">
|
|
|
</td>
|
|
|
<td>
|
|
|
<input style="max-width: 200px" name="waveno" v-model="filterData.waveno" title="波次编号,模糊查找需要在左边打上%的符号" class="form-control form-control-sm tooltipTarget" placeholder="波次编号" :class="filterData.waveno?'bg-warning':''">
|
|
|
@@ -83,7 +86,7 @@
|
|
|
<td>
|
|
|
<input style="max-width: 200px" name="alternate_sku1" v-model="filterData.alternate_sku1" title="产品条码,模糊查找需要在左边打上%的符号" class="form-control form-control-sm tooltipTarget" placeholder="产品条码" :class="filterData.alternate_sku1?'bg-warning':''">
|
|
|
</td>
|
|
|
- <td colspan="4"><input hidden type="submit"></td>
|
|
|
+ <td colspan="6"><input hidden type="submit"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="10">
|
|
|
@@ -118,91 +121,100 @@
|
|
|
</div><!-- /.modal-content -->
|
|
|
</div><!-- /.modal -->
|
|
|
</div>
|
|
|
- <table class="table table-sm table-striped table-bordered table-hover card-body mt-2 ml-3">
|
|
|
- <tr class="text-nowrap">
|
|
|
- <th>
|
|
|
- <label for="all">
|
|
|
- <input id="all" type="checkbox" @click="checkAll($event)">全选
|
|
|
- </label>
|
|
|
- </th>
|
|
|
- <th>序号</th>
|
|
|
- <th>操作</th>
|
|
|
- <th>编号</th>
|
|
|
- <th>订单状态</th>
|
|
|
- <th>接口下发时间</th>
|
|
|
- <th>店铺名称</th>
|
|
|
- <th>客户</th>
|
|
|
- <th>客户订单号</th>
|
|
|
- <th>承运人</th>
|
|
|
- <th>快递单号</th>
|
|
|
- <th>收货人名称</th>
|
|
|
- <th>收货人电话</th>
|
|
|
- <th>省</th>
|
|
|
- <th>市</th>
|
|
|
- <th>区</th>
|
|
|
- <th style="min-width:320px;">收货人地址</th>
|
|
|
- <th>波次编号</th>
|
|
|
- <th>仓库</th>
|
|
|
- <th>快递获取标记</th>
|
|
|
- <th>快递获取时间</th>
|
|
|
- <th style="min-width: 150px">产品代码</th>
|
|
|
- <th style="min-width: 150px">产品条码</th>
|
|
|
- <th style="min-width: 180px">产品名称</th>
|
|
|
- <th>订单数量</th>
|
|
|
- <th>复核时间</th>
|
|
|
- <th style="min-width:260px;">备注</th>
|
|
|
- <th>接口取消标记</th>
|
|
|
- <th>拣货单打印标记</th>
|
|
|
- <th>接口回传标记</th>
|
|
|
- <th>订单冻结标记</th>
|
|
|
- </tr>
|
|
|
- <tr v-for="(order,i) in orders" @click="selectedColor(order.orderno)" :style="{'font-weight': order.orderno==selectedStyle?'bold':''}">
|
|
|
- <td>
|
|
|
- <input class="checkItem" type="checkbox" :value="order.orderno" v-model="checkData">
|
|
|
- </td>
|
|
|
- <td>@{{ i+1 }}</td>
|
|
|
- <td>@can('订单管理-编辑')<button v-if="order.releasestatus==='N'" @click="freeze(order.orderno,order.waveno)" class="btn btn-sm btn-outline-danger text-nowrap">冻结</button>@endcan</td>
|
|
|
- <td class="text-dark font-weight-bold text-nowrap">@{{ order.orderno }}</td>
|
|
|
- <td class="text-muted text-nowrap">@{{ order.codename_c }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.addtime }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.issuepartyname }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.customer_descr_c }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.soreference1 }}</td>
|
|
|
- <td class="text-muted text-nowrap">@{{ order.carriername }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.soreference5 }}</td>
|
|
|
- <td class="text-muted text-nowrap">@{{ order.c_contact }}</td>
|
|
|
- <td class="text-muted text-nowrap">@{{ order.c_tel2 }}</td>
|
|
|
- <td class="text-nowrap"> @{{ order.c_province }}</td>
|
|
|
- <td class="text-nowrap"> @{{ order.c_city }}</td>
|
|
|
- <td class="text-nowrap"> @{{ order.c_district }}</td>
|
|
|
- <td>@{{ order.c_address1 }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.waveno }}</td>
|
|
|
- <td class="text-nowrap"> @{{ order.warehouseid }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.edisendflag2 }}</td>
|
|
|
- <td class="text-nowrap">@{{ order.edisendtime2 }}</td>
|
|
|
- <td colspan="5" class="text-center">
|
|
|
- <table v-if="commodities[order.orderno]&&commodities[order.orderno].length==1 || isBtn[order.orderno]" class="table text-nowrap table-sm">
|
|
|
- <tr v-for="oracleDOCOrderDetail in commodities[order.orderno]">
|
|
|
- <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.sku }}</div></td>
|
|
|
- <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.alternate_sku1 }}</div></td>
|
|
|
- <td><div :title="oracleDOCOrderDetail.descr_c" class="tooltipTarget" style="width: 250px;overflow: hidden">@{{ oracleDOCOrderDetail.descr_c }}</div></td>
|
|
|
- <td>@{{ oracleDOCOrderDetail.qtyordered }}</td>
|
|
|
- <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.checktime }}</div></td>
|
|
|
- </tr>
|
|
|
- <tr v-if="isBtn[order.orderno]">
|
|
|
- <td colspan="5">
|
|
|
- <b style="cursor:pointer;color: #4aa0e6;" @click="isBtn[order.orderno]=false;">点击收起明细</b>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <b @click="unfold(order.orderno)" style="cursor:pointer;text-decoration: underline;color: #4aa0e6;" v-if="commodities[order.orderno]&&commodities[order.orderno].length>1 && !isBtn[order.orderno]">共有 @{{ commodities[order.orderno].length }} 件商品,点击展开</b>
|
|
|
- </td>
|
|
|
- <td>@{{ order.notes }}</td>
|
|
|
- <td>@{{ order.erpcancelflag }}</td>
|
|
|
- <td>@{{ order.picking_print_flag }}</td>
|
|
|
- <td>@{{ order.edisendflag }}</td>
|
|
|
- <td>@{{ order.releasestatus }}</td>
|
|
|
- </tr>
|
|
|
+ <table class="table table-sm table-striped table-bordered table-hover card-body mt-2 ml-3">
|
|
|
+ <tr class="text-nowrap">
|
|
|
+ <th>
|
|
|
+ <label for="all">
|
|
|
+ <input id="all" type="checkbox" @click="checkAll($event)">全选
|
|
|
+ </label>
|
|
|
+ </th>
|
|
|
+ <th>序号</th>
|
|
|
+ <th>编号</th>
|
|
|
+ <th>订单状态</th>
|
|
|
+ <th>接口下发时间</th>
|
|
|
+ <th>店铺名称</th>
|
|
|
+ <th>客户</th>
|
|
|
+ <th>客户订单号</th>
|
|
|
+ <th>承运人</th>
|
|
|
+ <th>快递单号</th>
|
|
|
+ <th>收货人名称</th>
|
|
|
+ <th>收货人电话</th>
|
|
|
+ <th>省</th>
|
|
|
+ <th>市</th>
|
|
|
+ <th>区</th>
|
|
|
+ <th style="min-width:320px;">收货人地址</th>
|
|
|
+ <th>波次编号</th>
|
|
|
+ <th>仓库</th>
|
|
|
+ <th>快递获取标记</th>
|
|
|
+ <th>快递获取时间</th>
|
|
|
+ <th style="min-width: 200px">产品代码</th>
|
|
|
+ <th style="min-width: 200px">产品条码</th>
|
|
|
+ <th style="min-width: 200px">产品名称</th>
|
|
|
+ <th>订单数量</th>
|
|
|
+ <th>复核时间</th>
|
|
|
+ <th style="min-width:260px;">备注</th>
|
|
|
+ <th>接口取消标记</th>
|
|
|
+ <th>拣货单打印标记</th>
|
|
|
+ <th>接口回传标记</th>
|
|
|
+ <th>订单冻结</th>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr v-for="(order,i) in orders" @click="selectedColor(order.orderno)" :style="{'font-weight': order.orderno==selectedStyle?'bold':''}">
|
|
|
+ <td>
|
|
|
+ <input class="checkItem" type="checkbox" :value="order.orderno" v-model="checkData">
|
|
|
+ </td>
|
|
|
+ <td>@{{ i+1 }}</td>
|
|
|
+ <td class="text-dark font-weight-bold text-nowrap">@{{ order.orderno }}</td>
|
|
|
+ <td class="text-muted text-nowrap">@{{ order.codename_c }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.addtime }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.issuepartyname }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.customer_descr_c }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.soreference1 }}</td>
|
|
|
+ <td class="text-muted text-nowrap">@{{ order.carriername }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.soreference5 }}</td>
|
|
|
+ <td class="text-muted text-nowrap">@{{ order.c_contact }}</td>
|
|
|
+ <td class="text-muted text-nowrap">@{{ order.c_tel2 }}</td>
|
|
|
+ <td class="text-nowrap"> @{{ order.c_province }}</td>
|
|
|
+ <td class="text-nowrap"> @{{ order.c_city }}</td>
|
|
|
+ <td class="text-nowrap"> @{{ order.c_district }}</td>
|
|
|
+ <td class="text-muted">@{{ order.c_address1 }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.waveno }}</td>
|
|
|
+ <td class="text-nowrap"> @{{ order.warehouseid }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.edisendflag2 }}</td>
|
|
|
+ <td class="text-nowrap">@{{ order.edisendtime2 }}</td>
|
|
|
+ <td colspan="5" class="text-center">
|
|
|
+ <table v-if="commodities[order.orderno]&&commodities[order.orderno].length==1 || isBtn[order.orderno]" class="table text-nowrap table-sm">
|
|
|
+ <tr v-for="oracleDOCOrderDetail in commodities[order.orderno]">
|
|
|
+ <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.sku }}</div></td>
|
|
|
+ <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.alternate_sku1 }}</div></td>
|
|
|
+ <td><div :title="oracleDOCOrderDetail.descr_c" class="tooltipTarget" style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.descr_c }}</div></td>
|
|
|
+ <td>@{{ oracleDOCOrderDetail.qtyordered }}</td>
|
|
|
+ <td><div style="width: 180px;overflow: hidden">@{{ oracleDOCOrderDetail.checktime }}</div></td>
|
|
|
+ </tr>
|
|
|
+ <tr v-if="isBtn[order.orderno]">
|
|
|
+ <td colspan="5">
|
|
|
+ <b style="cursor:pointer;color: #4aa0e6;" @click="isBtn[order.orderno]=false;">点击收起明细</b>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <b @click="unfold(order.orderno)" style="cursor:pointer;text-decoration: underline;color: #4aa0e6;" v-if="commodities[order.orderno]&&commodities[order.orderno].length>1 && !isBtn[order.orderno]">共有 @{{ commodities[order.orderno].length }} 件商品,点击展开</b>
|
|
|
+ </td>
|
|
|
+ <td>@{{ order.notes }}</td>
|
|
|
+ <td>@{{ order.erpcancelflag }}</td>
|
|
|
+ <td>@{{ order.picking_print_flag }}</td>
|
|
|
+ <td>@{{ order.edisendflag }}</td>
|
|
|
+ <td>
|
|
|
+ @can('订单管理-编辑')
|
|
|
+ <button v-if="order.releasestatus!=='H'" @click="freeze(order.orderno,order.waveno)" class="btn btn-sm btn-outline-dark text-nowrap"
|
|
|
+ :disabled="!(order.codename_c==='创建订单'||order.codename_c==='分配完成'||order.codename_c==='拣货完成'||order.codename_c==='播种完成')">冻结</button>
|
|
|
+ <button v-else @click="thaw(order.orderno,order.waveno)" class="btn btn-sm btn-outline-danger text-nowrap"
|
|
|
+ :disabled="!(order.codename_c==='创建订单'||order.codename_c==='分配完成'||order.codename_c==='拣货完成'||order.codename_c==='播种完成')">解冻</button>
|
|
|
+ @else
|
|
|
+ @{{ order.releasestatus }}
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
<button type="button" @click="pageUp()" :readonly="page>1?false:true" class="btn btn-sm " :class="page>1?'btn-outline-info':''">上一页</button>
|
|
|
<button type="button" @click="pageDown()" :readonly="page<maxPage?false:true" class="btn btn-sm m-3" :class="page<maxPage?'btn-outline-info':''">下一页</button>
|
|
|
@@ -418,24 +430,45 @@
|
|
|
this.selectedStyle=orderno;
|
|
|
},
|
|
|
freeze(orderno,waveno){
|
|
|
- if(!confirm('确定要冻结“'+orderno+'”吗?'))return;
|
|
|
- let _this=this;
|
|
|
- axios.post('{{url('order/freeze')}}',{orderno:orderno,waveno:waveno})
|
|
|
- .then(function (response) {
|
|
|
+ if(!confirm('确定要冻结“'+orderno+'”吗?'))return;
|
|
|
+ let _this=this;
|
|
|
+ axios.post('{{url('order/freeze')}}',{orderno:orderno,waveno:waveno})
|
|
|
+ .then(function (response) {
|
|
|
if (response.data.success){
|
|
|
_this.orders.some(function (order) {
|
|
|
if (order.orderno===orderno){
|
|
|
- order.releasestatus='Y';
|
|
|
+ order.releasestatus='H';
|
|
|
+ order.waveno='*';
|
|
|
return true;
|
|
|
}
|
|
|
});
|
|
|
tempTip.setDuration(3000);
|
|
|
- tempTip.show('订单已被冻结!');
|
|
|
+ tempTip.showSuccess('订单已被冻结!');
|
|
|
}
|
|
|
- }).catch(function (err) {
|
|
|
+ }).catch(function (err) {
|
|
|
tempTip.setDuration(3000);
|
|
|
tempTip.show('网络异常:'+err);
|
|
|
- });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ thaw(orderno,waveno){
|
|
|
+ if(!confirm('确定要解冻“'+orderno+'”吗?'))return;
|
|
|
+ let _this=this;
|
|
|
+ axios.post('{{url('order/thaw')}}',{orderno:orderno,waveno:waveno})
|
|
|
+ .then(function (response) {
|
|
|
+ if (response.data.success){
|
|
|
+ _this.orders.some(function (order) {
|
|
|
+ if (order.orderno===orderno){
|
|
|
+ order.releasestatus='N';
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.showSuccess('订单已成功冻结!');
|
|
|
+ }
|
|
|
+ }).catch(function (err) {
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('网络异常:'+err);
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
});
|