...
|
...
|
@@ -146,7 +146,9 @@ function ajaxUploadSubmit(importAuditorId){ |
|
|
},function(rs){
|
|
|
if(rs.code == 200){
|
|
|
common.util.__tip("批量导入保存成功!", "success");
|
|
|
location.href = '';
|
|
|
setTimeout(function() {
|
|
|
location.href = '';
|
|
|
}, 1000);
|
|
|
}else{
|
|
|
common.util.__tip(rs.data.message);
|
|
|
}
|
...
|
...
|
@@ -182,6 +184,14 @@ function clearImportResult(){ |
|
|
$("#yohoCoinImportResult").hide();
|
|
|
}
|
|
|
|
|
|
//批量导入确认—校验审核人
|
|
|
function isNeedImportAuditor(){
|
|
|
$.each(importYohoCoinData, function(index,value){
|
|
|
if(value.isNeedAudit || value.salesPrice * pricePercent <= value.needAuditCoin) return true;
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
//吊牌价跟销售价校验
|
|
|
function checkPrice(retailPrice, salesPrice){
|
|
|
if(retailPrice == salesPrice){
|
...
|
...
|
@@ -293,7 +303,7 @@ $(document).on('click', '.btn-delete-yohoCoin', function() { |
|
|
//批量导入结果列表确定
|
|
|
$(document).on('click', '.btn-submit-yohoCoin', function() {
|
|
|
var importAuditorIdInput = $("#importAuditor");
|
|
|
if(isNeedAudit){
|
|
|
if(isNeedImportAuditor()){
|
|
|
if(!checkAuditor(importAuditorIdInput)){
|
|
|
return false;
|
|
|
}
|
...
|
...
|
|