|
@@ -44,7 +44,7 @@
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">送货人电话</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <input type="text" name="sh_delivery_id" placeholder="请输入送货人电话" autocomplete="off" class="layui-input">
|
|
|
+ <input type="text" name="sh_delivery_id" id="sh_delivery_id" placeholder="请输入送货人电话" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -72,8 +72,7 @@
|
|
|
})
|
|
|
});
|
|
|
layList.form.on('select(sh_delivery_name)', function(data){
|
|
|
- let phone = $(data.elem).find("option:selected").attr('phone')
|
|
|
- console.log(phone)
|
|
|
+ $("#sh_delivery_id").value=$(data.elem).find("option:selected").attr('phone');
|
|
|
});
|
|
|
layList.search('delivery',function (data) {
|
|
|
console.log(data);
|