Commit 675b5f08 by 杨树贤

临时供应商申请审核限制

parent a38711f8
...@@ -65,12 +65,15 @@ ...@@ -65,12 +65,15 @@
}); });
//监听供应商类别单选,如果是临时供应商,附件可以不上传 //监听供应商类别单选,如果是临时供应商,附件可以不上传
//如果是临时供应商并且不显示申请审核按钮
form.on('radio(supplier_type)', function(data){ form.on('radio(supplier_type)', function(data){
let supplier_type = data.value; let supplier_type = data.value;
if (supplier_type === '1') { if (supplier_type === '1') {
$('#attachment_required_span').show(); $('#attachment_required_span').show();
$('#apply_audit_button').show();
}else{ }else{
$('#attachment_required_span').hide(); $('#attachment_required_span').hide();
$('#apply_audit_button').hide();
} }
}); });
...@@ -195,6 +198,7 @@ ...@@ -195,6 +198,7 @@
form.on('submit(addAndApplySupplier)', function (data) { form.on('submit(addAndApplySupplier)', function (data) {
layer.confirm('确定直接申请审核吗?确定后会直接进入审核中的状态,无法进行二次修改', function (index) { layer.confirm('确定直接申请审核吗?确定后会直接进入审核中的状态,无法进行二次修改', function (index) {
//还要判断
let url = '/api/supplier/AddSupplier?direct_apply=1'; let url = '/api/supplier/AddSupplier?direct_apply=1';
let res = ajax(url, data.field); let res = ajax(url, data.field);
if (!res) { if (!res) {
......
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
</div> </div>
<div class="layui-col-md4" style="margin-top: 30px"> <div class="layui-col-md4" style="margin-top: 30px">
<div class="layui-row" style="text-align: right"> <div class="layui-row" style="text-align: right">
<button type="button" class="layui-btn layui-btn submit-loading" lay-submit <button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button" lay-submit
lay-filter="addAndApplySupplier">申请审核 lay-filter="addAndApplySupplier">申请审核
</button> </button>
<button type="button" class="layui-btn layui-btn submit-loading" lay-submit <button type="button" class="layui-btn layui-btn submit-loading" lay-submit
......
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