1,货主选择物料
parent
b9ba496ce4
commit
81f0f5a6b0
|
@ -127,8 +127,11 @@ public class MvGoodsController extends BaseController {
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public AjaxJson setvalue(String cusCode, HttpServletRequest request) {
|
public AjaxJson setvalue(String cusCode, HttpServletRequest request) {
|
||||||
AjaxJson j = new AjaxJson();
|
AjaxJson j = new AjaxJson();
|
||||||
coscode = cusCode;
|
System.out.print("ResourceUtil.getSessionUserName().setBrowser(cusCode)*******"+ ResourceUtil.getSessionUserName().getBrowser());
|
||||||
|
ResourceUtil.getSessionUserName().setBrowser(cusCode);
|
||||||
|
System.out.print("ResourceUtil.getSessionUserName().setBrowser(cusCode)########"+ ResourceUtil.getSessionUserName().getBrowser());
|
||||||
|
|
||||||
|
coscode = cusCode;
|
||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -137,7 +140,6 @@ public class MvGoodsController extends BaseController {
|
||||||
* @param request
|
* @param request
|
||||||
* @param response
|
* @param response
|
||||||
* @param dataGrid
|
* @param dataGrid
|
||||||
* @param user
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@RequestMapping(params = "datagrid")
|
@RequestMapping(params = "datagrid")
|
||||||
|
@ -148,8 +150,10 @@ public class MvGoodsController extends BaseController {
|
||||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, mvGoods, request.getParameterMap());
|
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, mvGoods, request.getParameterMap());
|
||||||
try{
|
try{
|
||||||
//自定义追加查询条件
|
//自定义追加查询条件
|
||||||
if(!StringUtil.isEmpty(coscode)){
|
System.out.print("ResourceUtil.getSessionUserName().setBrowser(cusCode)data"+ ResourceUtil.getSessionUserName().getBrowser());
|
||||||
cq.like("cusCode", coscode);
|
|
||||||
|
if(!StringUtil.isEmpty(ResourceUtil.getSessionUserName().getBrowser())){
|
||||||
|
cq.like("cusCode", ResourceUtil.getSessionUserName().getBrowser());
|
||||||
}
|
}
|
||||||
cq.add();
|
cq.add();
|
||||||
if(!StringUtil.isEmpty(goodsCode)){
|
if(!StringUtil.isEmpty(goodsCode)){
|
||||||
|
@ -239,7 +243,6 @@ public class MvGoodsController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 添加商品视图
|
* 添加商品视图
|
||||||
*
|
*
|
||||||
* @param ids
|
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(params = "doAdd")
|
@RequestMapping(params = "doAdd")
|
||||||
|
@ -263,7 +266,6 @@ public class MvGoodsController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 更新商品视图
|
* 更新商品视图
|
||||||
*
|
*
|
||||||
* @param ids
|
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(params = "doUpdate")
|
@RequestMapping(params = "doUpdate")
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 41 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
|
@ -124,6 +124,35 @@
|
||||||
// function selectfun(){
|
// function selectfun(){
|
||||||
// alert($("#cuscodeid").val);
|
// alert($("#cuscodeid").val);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
//绑定下拉框change事件,当下来框改变时调用 SelectChange()方法
|
||||||
|
$("select[name='cusCode']").change(function() { SelectChange(); });
|
||||||
|
SelectChange();
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
function SelectChange() {
|
||||||
|
var selectcusValue = $("select[name='cusCode']").val();
|
||||||
|
//加载工地
|
||||||
|
var url = "mvGoodsController.do?setvalue&cusCode="+selectcusValue;
|
||||||
|
$.ajax({
|
||||||
|
url:url,
|
||||||
|
type:"GET",
|
||||||
|
dataType:"JSON",
|
||||||
|
async: false,
|
||||||
|
success:function(data){
|
||||||
|
if(data.success){
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
<form id="formobj" action="wmImNoticeHController.do?doAdd" name="formobj" method="post"><input type="hidden" id="btn_sub" class="btn_sub"/>
|
<form id="formobj" action="wmImNoticeHController.do?doAdd" name="formobj" method="post"><input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||||
|
@ -145,7 +174,7 @@
|
||||||
<b>客户编码:</b>
|
<b>客户编码:</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-2">
|
<div class="col-xs-2">
|
||||||
<t:dictSelect readonly="${wmImNoticeHPage.readonly}" id="cusCodeid" field="cusCode" type="list" extendJson=" {class:'form-control',datatype:'*',style:'width:230px'}"
|
<t:dictSelect readonly="${wmImNoticeHPage.readonly}" field="cusCode" type="list" extendJson=" {class:'form-control',datatype:'*',style:'width:230px'}"
|
||||||
defaultVal="${wmImNoticeHPage.cusCode}" dictTable="mv_cus" dictField="cus_code" dictText="cus_name" hasLabel="false" title="客户编码"></t:dictSelect>
|
defaultVal="${wmImNoticeHPage.cusCode}" dictTable="mv_cus" dictField="cus_code" dictText="cus_name" hasLabel="false" title="客户编码"></t:dictSelect>
|
||||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||||
<label class="Validform_label" style="display: none">客户编码</label>
|
<label class="Validform_label" style="display: none">客户编码</label>
|
||||||
|
|
|
@ -99,6 +99,34 @@
|
||||||
//tabHead.attr("tab-ajax-cached", true);
|
//tabHead.attr("tab-ajax-cached", true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
//绑定下拉框change事件,当下来框改变时调用 SelectChange()方法
|
||||||
|
$("select[name='cusCode']").change(function() { SelectChange(); });
|
||||||
|
SelectChange();
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
function SelectChange() {
|
||||||
|
var selectcusValue = $("select[name='cusCode']").val();
|
||||||
|
//加载工地
|
||||||
|
var url = "mvGoodsController.do?setvalue&cusCode="+selectcusValue;
|
||||||
|
$.ajax({
|
||||||
|
url:url,
|
||||||
|
type:"GET",
|
||||||
|
dataType:"JSON",
|
||||||
|
async: false,
|
||||||
|
success:function(data){
|
||||||
|
if(data.success){
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
<form id="formobj" action="wmOmNoticeHController.do?doAdd" name="formobj" method="post"><input type="hidden" id="btn_sub" class="btn_sub"/>
|
<form id="formobj" action="wmOmNoticeHController.do?doAdd" name="formobj" method="post"><input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||||
|
@ -119,7 +147,7 @@
|
||||||
<b>客户:</b>
|
<b>客户:</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-2">
|
<div class="col-xs-2">
|
||||||
<t:dictSelect id="cusCodeid" field="cusCode" type="list" extendJson="{class:'form-control',datatype:'*',style:'width:230px'}"
|
<t:dictSelect field="cusCode" type="list" extendJson="{class:'form-control',datatype:'*',style:'width:230px'}"
|
||||||
defaultVal="${wmOmNoticeHPage.cusCode}" readonly="${wmOmNoticeHPage.readonly}" dictTable="mv_cus" dictField="cus_code" dictText="cus_name" hasLabel="false" title="客户编码"></t:dictSelect>
|
defaultVal="${wmOmNoticeHPage.cusCode}" readonly="${wmOmNoticeHPage.readonly}" dictTable="mv_cus" dictField="cus_code" dictText="cus_name" hasLabel="false" title="客户编码"></t:dictSelect>
|
||||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||||
<label class="Validform_label" style="display: none">客户编码</label>
|
<label class="Validform_label" style="display: none">客户编码</label>
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
<input id="wmOmNoticeIList[0].goodsId" name="wmOmNoticeIList[0].goodsId" maxlength="32"
|
<input id="wmOmNoticeIList[0].goodsId" name="wmOmNoticeIList[0].goodsId" maxlength="32"
|
||||||
ignore="ignore"
|
ignore="ignore"
|
||||||
type="text" style="width:420px;text-align: left" >
|
type="text" style="width:420px;text-align: left" >
|
||||||
<t:choose hiddenName="wmOmNoticeIList[0].goodsId" hiddenid="goodsName" url="mvGoodsController.do?list" name="mvGoodsList" width="600" height="410" icon="icon-search" title="选择" textname="goodsName" isInit="true"></t:choose>
|
<t:choose hiddenName="wmOmNoticeIList[0].goodsId" hiddenid="goodsName" url="mvGoodsController.do?list" name="mvGoodsList" width="600" height="410" icon="icon-search" title="选择" textname="goodsName" isInit="true"></t:choose>
|
||||||
|
|
||||||
<label class="Validform_label" style="display: none;">出货商品</label>
|
<label class="Validform_label" style="display: none;">出货商品</label>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue