Commit 0751a5f2 by 杨树贤

优化上传

parent 626e7174
......@@ -119,9 +119,9 @@ class SupplierApiController extends Controller
} else {
$validateResult = $validator->checkSave($data, $isAudit);
}
if ($validateResult) {
$this->response(-1, $validateResult);
}
//if ($validateResult) {
// $this->response(-1, $validateResult);
//}
$channelMap = $this->channelMap;
......@@ -153,8 +153,17 @@ class SupplierApiController extends Controller
]);
$channel = $request->only($channelMap);
//校验一体化实体名单
$businessLicense = '';
if (!empty($channel['field_name'])) {
if (in_array('business_license', $channel['field_name'])) {
foreach ($channel['field_name'] as $key => $item) {
if ($item == 'business_license') {
$businessLicense = $channel['file_url'][$key];
}
}
}
}
//校验一体化实体名单
$checkCompanyEntity = (new CompanyService())->checkCompanyEntity($channel['supplier_name'], $channel['supplier_name_en'], $channel['supplier_address'], $businessLicense);
//待确认要透传到数据库里面去
if ($checkCompanyEntity == 0) {
......
......@@ -96,7 +96,7 @@
}
form.on('submit(addSupplier)', function (data) {
data = getAttachmentData(data);
admin.showLoading();
admin.showLoading('.layui-layer-btn0');
$.ajax({
......
......@@ -79,4 +79,4 @@
</div>
</div>
</div>
@include('script.supplier.SupplierFileScript')
\ No newline at end of file
@include('script.supplier.SupplierFileScript')
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