|
@@ -409,6 +409,7 @@ function initProduceType(){
|
|
*/
|
|
*/
|
|
function ulcProcessResult(data){
|
|
function ulcProcessResult(data){
|
|
initProcessResult(data[1].procMethodIsBack,data[1].procMethodIsSend);
|
|
initProcessResult(data[1].procMethodIsBack,data[1].procMethodIsSend);
|
|
|
|
+ $("#procMethodDesc").html("补充说明:"+data[1].procMethodDesc);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1711,26 +1712,36 @@ function setSelectProduct(colorIds){
|
|
for(var i=0;i<data.returnMsg.productColorList.length;i++){
|
|
for(var i=0;i<data.returnMsg.productColorList.length;i++){
|
|
var productColor = data.returnMsg.productColorList[i];
|
|
var productColor = data.returnMsg.productColorList[i];
|
|
html += '<tr >'
|
|
html += '<tr >'
|
|
- + '<td style="text-align: center;" >' + cufte(productColor.productName) + '</td>'
|
|
|
|
- + '<td style="text-align: center;" >' + cufte(productColor.colorName) + '</td>'
|
|
|
|
- + '<td style="text-align: center;"><input type="text" style="width: 100%;border: none;text-align: center;" class="input-text input-number input-itemNum" value="1" placeholder="产品数量" onkeyup="keyFun($(this),999,1)" onpaste="keyFun($(this),999,1)"></td>'
|
|
|
|
- + '<td style="text-align: center;" >'
|
|
|
|
|
|
+ + '<td width="80" style="text-align: center;" >' + cufte(productColor.productName) + '</td>'
|
|
|
|
+ + '<td width="40" style="text-align: center;" >' + cufte(productColor.colorName) + '</td>'
|
|
|
|
+ + '<td width="20" style="text-align: center;"><input type="text" style="width: 100%;border: none;text-align: center;" class="input-text input-number input-itemNum" value="1" placeholder="产品数量" onkeyup="keyFun($(this),999,1)" onpaste="keyFun($(this),999,1)"></td>'
|
|
|
|
+ + '<td width="100" style="text-align: center;" >'
|
|
+ '<input type="hidden" class="input-produce-id" value="' + productColor.colorProductId + '">'
|
|
+ '<input type="hidden" class="input-produce-id" value="' + productColor.colorProductId + '">'
|
|
+ '<input type="hidden" class="input-fc-id" value="' + productColor.colorId +'">'
|
|
+ '<input type="hidden" class="input-fc-id" value="' + productColor.colorId +'">'
|
|
+ '<input type="hidden" class="input-69code" value="' + productColor.colorBar +'">'
|
|
+ '<input type="hidden" class="input-69code" value="' + productColor.colorBar +'">'
|
|
+ '<input type="" class="input-text input-number input-code" style="width: 100%;border: none;text-align: center;" value="" placeholder="机器编号" name="" id="item-' + productColor.colorProductId + '-' + productColor.colorId +'" number="1" " onkeyup="keyFunString($(this),30)" onpaste="keyFunString($(this),30)" >'
|
|
+ '<input type="" class="input-text input-number input-code" style="width: 100%;border: none;text-align: center;" value="" placeholder="机器编号" name="" id="item-' + productColor.colorProductId + '-' + productColor.colorId +'" number="1" " onkeyup="keyFunString($(this),30)" onpaste="keyFunString($(this),30)" >'
|
|
+ '</td>'
|
|
+ '</td>'
|
|
- + '<td style="text-align: center;" ><a href="javascript:void(0)" onclick="delColor(this)" >删除</a></td>'
|
|
|
|
|
|
+ + '<td width="20" style="text-align: center;" ><a href="javascript:void(0)" onclick="delColor(this)" >删除</a></td>'
|
|
+ '</tr>';
|
|
+ '</tr>';
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
layer.msg("添加产品失败!", {icon: 5, time: 3000});
|
|
layer.msg("添加产品失败!", {icon: 5, time: 3000});
|
|
}
|
|
}
|
|
- if(productAddType == 2){
|
|
|
|
- $("#addSendProduct").append(html);
|
|
|
|
- }else if(productAddType == 1){
|
|
|
|
- $("#addBackProduct").append(html);
|
|
|
|
|
|
+ var notSelectOrderHtml = $("#addSendProduct").find(".notSelectOrder").html();
|
|
|
|
+ if(!isEmpty(notSelectOrderHtml)){
|
|
|
|
+ if(productAddType == 2){
|
|
|
|
+ $("#addSendProduct").append(html);
|
|
|
|
+ }else if(productAddType == 1){
|
|
|
|
+ $("#addBackProduct").append(html);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ if(productAddType == 2){
|
|
|
|
+ $("#addSendProduct").html(html);
|
|
|
|
+ }else if(productAddType == 1){
|
|
|
|
+ $("#addBackProduct").html(html);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|