Commit e3ec19dc by 杨树贤

公司提示

parent cd322132
......@@ -23,8 +23,8 @@
const supplier_id = supplierId;
const region = $('#region').val();
let tax_number = $('#tax_number').val();
$('#supplier_check_tip').remove();
var self = $(this);
self.next().find('p').text('');
let url = '/api/supplier/CheckSupplierName?supplier_name=' + supplier_name + '&supplier_id=' + supplier_id
+ '&tax_number=' + tax_number + '&region=' + region;
......@@ -57,13 +57,13 @@
}
if (!ignoreCompanyCheck) {
layer.msg(res.err_msg, {icon: 5});
self.next('#supplier_check_tip').find('p').text(res.err_msg);
self.next().find('p').text(res.err_msg);
$('#supplier_name').prop('disabled', false);
}
} else {
//这个code代表供应商名称已经存在,自然要检测
layer.msg(res.err_msg, {icon: 5});
self.next('#supplier_check_tip').find('p').text(res.err_msg);
self.next().find('p').text(res.err_msg);
$('#supplier_name').prop('disabled', false);
}
if (!ignoreCompanyCheck) {
......
......@@ -62,6 +62,9 @@
<div class="layui-input-block">
<input type="text" name="supplier_name" id="supplier_name"
placeholder="选择所在区域才允许输入供应商名称" class="layui-input layui-disabled" value="" disabled>
<div id='supplier_check_tip' style='margin-top: 5px'>
<p style='color: red;'></p>
</div>
</div>
</div>
<div class="layui-col-md5">
......@@ -70,6 +73,9 @@
<div class="layui-input-block">
<input type="text" name="tax_number" id="tax_number" placeholder="选择所在区域才允许输入公司税号,海外供应商没有税号可以不填"
class="layui-input layui-disabled" disabled value="">
<div id='supplier_check_tip' style='margin-top: 5px'>
<p style='color: red;'></p>
</div>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment