...
|
...
|
@@ -88,10 +88,10 @@ common.edit.ajaxfileupload('#skuUpmCode', batchExport('#brand-file', 'skuUpmCode |
|
|
|
|
|
common.edit.ajaxfileupload('#expectSaleTime', batchExport('#sort-file', 'expectSaleTime'));
|
|
|
|
|
|
var isbrandId=false,isshops=false;
|
|
|
var isbrandId=false,isshops=false,issellType=false;
|
|
|
|
|
|
function jiekai(){
|
|
|
if(isbrandId&&isshops){
|
|
|
if(isbrandId&&isshops&&issellType){
|
|
|
$("#baseProduct").prop("disabled",false);
|
|
|
}else{
|
|
|
$("#baseProduct").prop("disabled",true);
|
...
|
...
|
@@ -118,12 +118,24 @@ $(document).on("change","#shopId",function(){ |
|
|
})
|
|
|
$(document).on("change","#supplierId",function(){ // 不维护供应商,则不带出经销选项
|
|
|
if($(this).val() > 0){
|
|
|
$("#sellType").append("<option value='1'>经销</option>");
|
|
|
$("#sellType option[value=1], #sellType option[value=2], #sellType option[value=3]").remove();
|
|
|
$("#sellType").append("<option value='2'>代销</option>");
|
|
|
$("#sellType").append("<option value='3'>JIT</option>");
|
|
|
}else{
|
|
|
$("#sellType option[value=1]").remove();
|
|
|
$("#sellType option[value=1], #sellType option[value=2], #sellType option[value=3]").remove();
|
|
|
$("#sellType").append("<option value='1'>经销</option>");
|
|
|
}
|
|
|
$("#sellType").val(-1).trigger("change");
|
|
|
})
|
|
|
$(document).on("change","#sellType",function(){ // 不维护供应商,则不带出经销选项
|
|
|
if($(this).val() > 0){
|
|
|
issellType = true;
|
|
|
}else{
|
|
|
issellType = false;
|
|
|
}
|
|
|
jiekai();
|
|
|
})
|
|
|
|
|
|
|
|
|
function __ajaxExeclById(unquid){
|
|
|
var params={param:unquid};
|
...
|
...
|
|