【优化】当选择本地同城配送或者上门自提时,发货物流单号默认设置为"无"。

This commit is contained in:
大灰灰
2022-09-29 00:16:52 +08:00
parent c514bef193
commit 542be1048a

View File

@@ -76,15 +76,15 @@
<col width="70">
</colgroup>
<thead>
<tr>
<th>商品名称</th>
<th>商品编码</th>
<th>货品编码</th>
<th>购买数量</th>
<th>已退数量</th>
<th>已发数量</th>
<th>发货数量</th>
</tr>
<tr>
<th>商品名称</th>
<th>商品编码</th>
<th>货品编码</th>
<th>购买数量</th>
<th>已退数量</th>
<th>已发数量</th>
<th>发货数量</th>
</tr>
</thead>
{{# layui.each(d.params.data.orderModel.items, function(index, item){ }}
<tr>
@@ -107,7 +107,7 @@
<div class="layui-inline">
<label class="layui-form-label">物流公司</label>
<div class="layui-input-inline layui-inline-4">
<select name="logiCode" lay-verify="required" lay-reqText="请选择物流公司" lay-search>
<select name="logiCode" lay-verify="required" lay-reqText="请选择物流公司" lay-search lay-filter="logiCodefilter">
<option value="">搜索选择物流公司</option>
{{# layui.each(d.params.data.logistics, function(index, item){ }}
<option value="{{item.logiCode}}">{{item.logiName}}</option>
@@ -130,7 +130,7 @@
<div class="layui-inline">
<label class="layui-form-label">物流单号</label>
<div class="layui-input-inline layui-inline-3">
<input type="text" name="logiNo" value="" class="layui-input" lay-verType="tips" lay-verify="required">
<input type="text" id="logiNo" name="logiNo" value="" class="layui-input" lay-verType="tips" lay-verify="required">
</div>
</div>
</div>
@@ -162,6 +162,19 @@
, cropperImg = layui.cropperImg
, coreHelper = layui.coreHelper;
form.on('select(logiCodefilter)', function (data) {
if (data.value == 'benditongcheng' || data.value == 'shangmenziti') {
$('#logiNo').val('无');
} else {
var logiNoVal = $('#logiNo').val();
if (logiNoVal == '无') {
$('#logiNo').val('');
} else {
$('#logiNo').val(logiNoVal);
}
}
});
coreHelper.Post("Api/Tools/GetAreaCheckedList", { id: d.params.data.orderModel.shipAreaId }, function (data) {
if (debug) { console.log(data); } //开启调试返回数据
var str = "";