供应商选择
parent
6318dbb26a
commit
f90b751d23
|
@ -85,6 +85,10 @@ public class MdSupController extends BaseController {
|
||||||
public ModelAndView list(HttpServletRequest request) {
|
public ModelAndView list(HttpServletRequest request) {
|
||||||
return new ModelAndView("com/zzjee/md/mdSupList");
|
return new ModelAndView("com/zzjee/md/mdSupList");
|
||||||
}
|
}
|
||||||
|
@RequestMapping(params = "listsel")
|
||||||
|
public ModelAndView listsel(HttpServletRequest request) {
|
||||||
|
return new ModelAndView("com/zzjee/md/mdSupselList");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* easyui AJAX请求数据
|
* easyui AJAX请求数据
|
||||||
|
|
|
@ -2307,6 +2307,15 @@ public class WmImNoticeHController extends BaseController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
//获取供应商
|
||||||
|
if(StringUtil.isNotEmpty(wmImNoticeH.getSupName())){
|
||||||
|
try{
|
||||||
|
MdSupEntity mdSupEntity = systemService.findUniqueByProperty(MdSupEntity.class,"zhongWenQch",wmImNoticeH.getSupName());
|
||||||
|
wmImNoticeH.setSupCode(mdSupEntity.getGysBianMa());
|
||||||
|
}catch (Exception e){
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//
|
||||||
List<WmImNoticeIEntity> wmImNoticeIListnew = new ArrayList<WmImNoticeIEntity>();
|
List<WmImNoticeIEntity> wmImNoticeIListnew = new ArrayList<WmImNoticeIEntity>();
|
||||||
for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIList) {
|
for (WmImNoticeIEntity wmImNoticeIEntity : wmImNoticeIList) {
|
||||||
if(!StringUtil.isEmpty(wmImNoticeIEntity.getGoodsCode())){
|
if(!StringUtil.isEmpty(wmImNoticeIEntity.getGoodsCode())){
|
||||||
|
|
|
@ -62,8 +62,14 @@ function popClickone(obj,name,url) {
|
||||||
return false;
|
return false;
|
||||||
}else {
|
}else {
|
||||||
for(var i1=0;i1<names.length;i1++){
|
for(var i1=0;i1<names.length;i1++){
|
||||||
|
console.log("names*********"+names)
|
||||||
|
console.log("names.length*********"+names.length)
|
||||||
|
|
||||||
var str = "";
|
var str = "";
|
||||||
$.each( selected, function(i, n){
|
$.each( selected, function(i, n){
|
||||||
|
console.log("n*********"+n)
|
||||||
|
console.log("n*********"+n)
|
||||||
|
|
||||||
if (i==0)
|
if (i==0)
|
||||||
str+= n[names[i1]];
|
str+= n[names[i1]];
|
||||||
else{
|
else{
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<div region="center" style="padding:0px;border:0px">
|
<div region="center" style="padding:0px;border:0px">
|
||||||
<t:datagrid name="mdSupList" checkbox="true" pagination="true" fitColumns="false" title="供应商" actionUrl="mdSupController.do?datagrid" idField="id" fit="false" queryMode="group">
|
<t:datagrid name="mdSupList" checkbox="true" pagination="true" fitColumns="false" title="供应商" actionUrl="mdSupController.do?datagrid" idField="id" fit="false" queryMode="group">
|
||||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="创建人" field="createName" queryMode="group" width="50"></t:dgCol>
|
<t:dgCol title="创建人" field="createName" hidden="true" queryMode="group" width="50"></t:dgCol>
|
||||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="创建日期" field="createDate" hidden="true" formatter="yyyy-MM-dd" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="审核人" field="updateName" queryMode="group" width="50"></t:dgCol>
|
<t:dgCol title="审核人" field="updateName" hidden="true" queryMode="group" width="50"></t:dgCol>
|
||||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="审核日期" field="updateDate" formatter="yyyy-MM-dd" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="审核日期" field="updateDate" hidden="true" formatter="yyyy-MM-dd" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
<t:dgCol title="中文全称" field="zhongWenQch" query="true" queryMode="single" width="180"></t:dgCol>
|
<t:dgCol title="中文全称" field="zhongWenQch" query="true" queryMode="single" width="180"></t:dgCol>
|
||||||
|
|
|
@ -0,0 +1,122 @@
|
||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||||
|
<%@include file="/context/mytags.jsp"%>
|
||||||
|
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||||
|
<div class="easyui-layout" fit="true">
|
||||||
|
<div region="center" style="padding:0px;border:0px">
|
||||||
|
<t:datagrid name="mdSupList" checkbox="true" pagination="true" fitColumns="true" title="供应商" actionUrl="mdSupController.do?datagrid" idField="id" fit="false" queryMode="group">
|
||||||
|
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="创建人" field="createName" hidden="true" queryMode="group" width="50"></t:dgCol>
|
||||||
|
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="创建日期" field="createDate" hidden="true" formatter="yyyy-MM-dd" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="审核人" field="updateName" hidden="true" queryMode="group" width="50"></t:dgCol>
|
||||||
|
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="审核日期" field="updateDate" hidden="true" formatter="yyyy-MM-dd" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="中文全称" field="zhongWenQch" query="true" queryMode="single" width="180"></t:dgCol>
|
||||||
|
<t:dgCol title="助记码" field="zhuJiMa" hidden="true" query="true" queryMode="single" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="供应商简称" field="gysJianCheng" hidden="true" query="true" queryMode="single" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="供应商编码" field="gysBianMa" query="true" queryMode="single" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="供应商英文名称" field="gysYingWen" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="曾用企业代码" field="zengYongQi" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="曾用企业名称" field="zengYongQiYe" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="停用" field="gysZhuangTai" hidden="true" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
|
||||||
|
<%-- <t:dgCol title="企业属性" field="xingYeFenLei" queryMode="group" dictionary="ba_com_type,com_type_code,com_type_name" width="120"></t:dgCol>--%>
|
||||||
|
<t:dgCol title="供应商等级" field="gysDengJi" hidden="true" queryMode="group" dictionary="ba_com_deg,com_deg_code,com_deg_name" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="所属行业" field="suoShuXingYe" hidden="true" queryMode="group" dictionary="ba_classfl,classfl_code,classfl_name" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="首签日期" field="shouQianRiQi" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="终止合作时间" field="zhongZhiHeShiJian" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="申请时间" field="shenQingShiJian" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="供应商属性" field="gysShuXing" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="归属组织代码" field="guiShuZuZh" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="归属省份代码" field="guiShuSheng" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="归属市代码" field="guiShuShiDai" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="归属县区代码" field="guiShu" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<%-- <t:dgCol title="地址" field="diZhi" queryMode="group" width="200"></t:dgCol>--%>
|
||||||
|
<t:dgCol title="邮政编码" field="youZhengBianMa" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<%-- <t:dgCol title="主联系人" field="zhuLianXiRen" queryMode="group" width="70"></t:dgCol>--%>
|
||||||
|
<%-- <t:dgCol title="电话" field="dianHua" queryMode="group" width="70"></t:dgCol>--%>
|
||||||
|
<%-- <t:dgCol title="手机" field="shouJi" queryMode="group" width="70"></t:dgCol>--%>
|
||||||
|
<t:dgCol title="传真" field="chuanZhen" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<%-- <t:dgCol title="Email地址" field="emaildiZhi" queryMode="group" width="70"></t:dgCol>--%>
|
||||||
|
<t:dgCol title="网页地址" field="wangYeDiZhi" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="法人代表" field="faRenDaiBiao" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="法人身份证号" field="faRenShenFen" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="注册资金万元" field="zhuCeZiJin" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="币别" field="biBie" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="营业执照号" field="yingYeZhiZhao" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="税务登记证号" field="shuiWuDeng" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="组织机构代码证" field="zuZhiJiGou" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="道路运输经营许可证" field="daoLuYunShu" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="主营业务" field="zhuYingYeWu" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="合作意向" field="heYiXiang" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="批准机关" field="piZhunJiGuan" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="批准文号" field="piZhunWenHao" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<t:dgCol title="注册日期" field="zhuCeRiQi" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||||
|
<%-- <t:dgCol title="备注" field="beiZhu" queryMode="group" width="120"></t:dgCol>--%>
|
||||||
|
<%-- <t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
|
||||||
|
<%-- <t:dgDelOpt title="删除" url="mdSupController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
|
||||||
|
<%-- <t:dgToolBar title="录入" icon="icon-add" url="mdSupController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||||
|
<%-- <t:dgToolBar title="审核" icon="icon-edit" url="mdSupController.do?goUpdate" funname="update"></t:dgToolBar>--%>
|
||||||
|
<%-- <t:dgToolBar title="批量删除" icon="icon-remove" url="mdSupController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
|
||||||
|
<%-- <t:dgToolBar title="查看" icon="icon-search" url="mdSupController.do?goUpdate" funname="detail"></t:dgToolBar>--%>
|
||||||
|
<%-- <t:dgToolBar operationCode="uasimpcus" title="第三方系统导入" icon="icon-put" funname="otherimp"></t:dgToolBar>--%>
|
||||||
|
|
||||||
|
<%-- <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>--%>
|
||||||
|
<%-- <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>--%>
|
||||||
|
<%-- <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
|
||||||
|
</t:datagrid>
|
||||||
|
<div name="searchColums1" style="float: left; padding-left: 0px;padding-top: 5px;">
|
||||||
|
<%--<input type="text" name="batchbin" style="width: 100px; height: 30px;">--%>
|
||||||
|
日期:<input type="text" name="batchdate" class="form-control" onClick="WdatePicker()" style="width: 100px; height: 30px;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src = "webpage/com/zzjee/md/mdSupList.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function(){
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function otherimp() {
|
||||||
|
var batchdate;
|
||||||
|
batchdate = $('input[name="batchdate"]').attr("value");
|
||||||
|
if(batchdate==""){
|
||||||
|
alert("日期不能为空");
|
||||||
|
}else{
|
||||||
|
var url = "mdSupController.do?doGet&formDate="+batchdate;
|
||||||
|
$.ajax({
|
||||||
|
async : false,
|
||||||
|
cache : false,
|
||||||
|
type : 'POST',
|
||||||
|
url : url,// 请求的action路径
|
||||||
|
error : function() {// 请求失败处理函数
|
||||||
|
},
|
||||||
|
success : function(data) {
|
||||||
|
var d = $.parseJSON(data);
|
||||||
|
if (d.success) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
tip("获取成功");
|
||||||
|
$('#mdSupList').datagrid('reload',{});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//导入
|
||||||
|
function ImportXls() {
|
||||||
|
openwindow('Excel导入', 'mdSupController.do?upload', "mdSupList");
|
||||||
|
}
|
||||||
|
|
||||||
|
//导出
|
||||||
|
function ExportXls() {
|
||||||
|
JeecgExcelExport("mdSupController.do?exportXls","mdSupList");
|
||||||
|
}
|
||||||
|
|
||||||
|
//模板下载
|
||||||
|
function ExportXlsByT() {
|
||||||
|
JeecgExcelExport("mdSupController.do?exportXlsByT","mdSupList");
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
|
@ -168,6 +168,7 @@
|
||||||
|
|
||||||
<input type="hidden" id="btn_sub" class="btn_sub"/>
|
<input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||||
<input type="hidden" id="cuscodeh" name="cuscodeh"/>
|
<input type="hidden" id="cuscodeh" name="cuscodeh"/>
|
||||||
|
<input type="hidden" id="supCode" name="supCode" type="text" class="form-control"/>
|
||||||
|
|
||||||
<div class="tab-wrapper">
|
<div class="tab-wrapper">
|
||||||
<!-- tab -->
|
<!-- tab -->
|
||||||
|
@ -244,10 +245,15 @@
|
||||||
<b>供应商:</b>
|
<b>供应商:</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-2">
|
<div class="col-xs-2">
|
||||||
|
<input id="supName" name="supName" type="text" class="form-control"
|
||||||
|
ignore="ignore"
|
||||||
|
onclick="popClickone('supName','zhongWenQch','mdSupController.do?listsel')"
|
||||||
|
/>
|
||||||
|
|
||||||
<t:dictSelect field="supCode" type="list" extendJson=" {class:'form-control',style:'width:230px'}"
|
|
||||||
dictTable="md_sup" dictField="GYS_BIAN_MA" dictText="ZHONG_WEN_QCH" hasLabel="false"
|
<%-- <t:dictSelect field="supCode" type="list" extendJson=" {class:'form-control',style:'width:230px'}"--%>
|
||||||
title="供应商"></t:dictSelect>
|
<%-- dictTable="md_sup" dictField="GYS_BIAN_MA" dictText="ZHONG_WEN_QCH" hasLabel="false"--%>
|
||||||
|
<%-- title="供应商"></t:dictSelect>--%>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-1 text-center">
|
<div class="col-xs-1 text-center">
|
||||||
<b>预约库区:</b>
|
<b>预约库区:</b>
|
||||||
|
@ -276,7 +282,6 @@
|
||||||
<%-- <b>供应商名称:</b>--%>
|
<%-- <b>供应商名称:</b>--%>
|
||||||
<%-- </div>--%>
|
<%-- </div>--%>
|
||||||
<%-- <div class="col-xs-2">--%>
|
<%-- <div class="col-xs-2">--%>
|
||||||
<%-- <input id="supName" name="supName" type="text" class="form-control"--%>
|
|
||||||
<%-- ignore="ignore"--%>
|
<%-- ignore="ignore"--%>
|
||||||
<%-- />--%>
|
<%-- />--%>
|
||||||
<%-- <span class="Validform_checktip" style="float:left;height:0px;"></span>--%>
|
<%-- <span class="Validform_checktip" style="float:left;height:0px;"></span>--%>
|
||||||
|
|
Loading…
Reference in New Issue