增加检查
parent
bc0da13220
commit
db515e2f05
|
@ -2137,29 +2137,30 @@ public class WmImNoticeHController extends BaseController {
|
|||
wmImNoticeH.setCusCode(user.getUserName());
|
||||
}
|
||||
}
|
||||
|
||||
//获取供应商
|
||||
if(StringUtil.isNotEmpty(wmImNoticeH.getSupCode())){
|
||||
try{
|
||||
MdSupEntity mdSupEntity = systemService.findUniqueByProperty(MdSupEntity.class,"gysBianMa",wmImNoticeH.getSupCode());
|
||||
wmImNoticeH.setSupName(mdSupEntity.getZhongWenQch());
|
||||
}catch (Exception e){
|
||||
}
|
||||
}
|
||||
//
|
||||
List<WmImNoticeIEntity> wmImNoticeIListnew = new ArrayList<WmImNoticeIEntity>();
|
||||
for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIList) {
|
||||
if(!StringUtil.isEmpty(wmImNoticeIEntity.getGoodsCode())){
|
||||
|
||||
try {
|
||||
|
||||
MvGoodsEntity mvgoods = systemService.findUniqueByProperty(MvGoodsEntity.class,"goodsName",wmImNoticeIEntity.getGoodsCode());
|
||||
|
||||
// String date[]=wmImNoticeIEntity.getGoodsCode().split("-");
|
||||
wmImNoticeIEntity.setGoodsCode(mvgoods.getGoodsCode());
|
||||
wmImNoticeIEntity.setGoodsName(mvgoods.getShpMingCheng());
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
|
||||
wmImNoticeIListnew.add(wmImNoticeIEntity);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
wmImNoticeHService.addMain(wmImNoticeH, wmImNoticeIListnew);
|
||||
|
||||
try {
|
||||
TuiSongMsgUtil.sendMessage("收货通知", Constants.SMS_SEND_TYPE_3,
|
||||
"RKYYTZ", map, "admin", ResourceUtil.getSessionUserName()
|
||||
|
|
|
@ -234,26 +234,30 @@
|
|||
<label class="Validform_label" style="display: none">运输公司</label>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-1 text-center">
|
||||
<b>供应商编码:</b>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<input id="supCode" name="supCode" type="text" class="form-control"
|
||||
ignore="ignore"
|
||||
/>
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">供应商编码</label>
|
||||
</div>
|
||||
<div class="col-xs-1 text-center">
|
||||
<b>供应商名称:</b>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<input id="supName" name="supName" type="text" class="form-control"
|
||||
ignore="ignore"
|
||||
/>
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">司机电话</label>
|
||||
</div>
|
||||
<t:dictSelect field="supCode" type="list" extendJson=" {class:'form-control',datatype:'*',style:'width:230px'}"
|
||||
dictTable="md_sup" dictField="GYS_BIAN_MA" dictText="ZHONG_WEN_QCH" hasLabel="false" title="供应商"></t:dictSelect>
|
||||
|
||||
|
||||
<%-- <div class="col-xs-1 text-center">--%>
|
||||
<%-- <b>供应商编码:</b>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="col-xs-2">--%>
|
||||
<%-- <input id="supCode" name="supCode" type="text" class="form-control"--%>
|
||||
<%-- ignore="ignore"--%>
|
||||
<%-- />--%>
|
||||
<%-- <span class="Validform_checktip" style="float:left;height:0px;"></span>--%>
|
||||
<%-- <label class="Validform_label" style="display: none">供应商编码</label>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="col-xs-1 text-center">--%>
|
||||
<%-- <b>供应商名称:</b>--%>
|
||||
<%-- </div>--%>
|
||||
<%-- <div class="col-xs-2">--%>
|
||||
<%-- <input id="supName" name="supName" type="text" class="form-control"--%>
|
||||
<%-- ignore="ignore"--%>
|
||||
<%-- />--%>
|
||||
<%-- <span class="Validform_checktip" style="float:left;height:0px;"></span>--%>
|
||||
<%-- <label class="Validform_label" style="display: none">司机电话</label>--%>
|
||||
<%-- </div>--%>
|
||||
|
||||
<div class="col-xs-1 text-center">
|
||||
<b>订单类型:</b>
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
|
||||
</script>
|
||||
<body>
|
||||
<form id="formobj" action="wmOmNoticeHController.do?doAdd" name="formobj" method="post"><input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||
<form id="formobj" beforeSubmit="doAddcheck()" action="wmOmNoticeHController.do?doAdd" name="formobj" method="post"><input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||
|
||||
<input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||
|
||||
|
|
|
@ -1,4 +1,73 @@
|
|||
function doAddcheck(name) {
|
||||
// tWzCkHeadController.do?doAddcheck;
|
||||
var flag = true;
|
||||
var msghe = '';
|
||||
$("#wmOmNoticeI_table tr").each(function(){
|
||||
fieldname = $(this).find("td:eq(2)>input").val();
|
||||
fieldnamevalue = $(this).find("td:eq(3)>input").val();
|
||||
// fieldnamelo = $(this).find("td:eq(6)>input").val();
|
||||
if (fieldname !== null && (typeof fieldname != 'undefined') && fieldname !== '') {
|
||||
// var url = "wmOmNoticeHController.do?doAddcheck&mat_code="+fieldname+"&mat_qty="+fieldnamevalue;
|
||||
// $.ajax({
|
||||
// async : false,
|
||||
// cache : false,
|
||||
// type : 'POST',
|
||||
// url : url,// 请求的action路径
|
||||
// error : function() {// 请求失败处理函数
|
||||
// },
|
||||
// success : function(data) {
|
||||
// var d = $.parseJSON(data);
|
||||
// if (d.success) {
|
||||
//
|
||||
// }else{
|
||||
// flag = false;
|
||||
// msghe = msghe +"/" + d.msg;
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
var strs= new Array(); //定义一数组
|
||||
var goods_code;
|
||||
try{
|
||||
strs= fieldname.split('-');// 合计
|
||||
goods_code = strs[0];
|
||||
}catch(err){
|
||||
goods_code = fieldname;
|
||||
}
|
||||
|
||||
var url = "wmOmNoticeHController.do?docheck&goodscode="+goods_code+"&goodsqua="+fieldnamevalue;
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
|
||||
}else{
|
||||
msghe = msghe +"/" + d.msg;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// tWzCkHeadController.do?doAddcheck;
|
||||
}
|
||||
|
||||
// fieldnamevalue = $(this).find("td:eq(4)>input").val();
|
||||
// if (fieldnamevalue !== null || (typeof(fieldnamevalue != 'undefined') || fieldnamevalue !== '') {
|
||||
// alert(fieldnamevalue);
|
||||
// }
|
||||
|
||||
})
|
||||
if(!flag){
|
||||
tip(msghe);
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//初始化下标
|
||||
function resetTrNum(tableId) {
|
||||
|
@ -54,7 +123,7 @@ function commonUpload(callback,inputId){
|
|||
},
|
||||
cancelVal: '关闭',
|
||||
cancel: function(){
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
//通用弹出式文件上传-回调
|
||||
|
@ -66,4 +135,4 @@ function decode(value, id) {//value传入值,id接受值
|
|||
var last = value.lastIndexOf("/");
|
||||
var filename = value.substring(last + 1, value.length);
|
||||
$("#" + id).text(decodeURIComponent(filename));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue