优化单据明细,改为单行删除的方式
This commit is contained in:
@@ -1051,7 +1051,6 @@
|
|||||||
var appendDom = $("#depotHeadDlg #append");
|
var appendDom = $("#depotHeadDlg #append");
|
||||||
autoJumpNextInput(inputDom, appendDom); //敲回车键自动跳转到下一个文本框
|
autoJumpNextInput(inputDom, appendDom); //敲回车键自动跳转到下一个文本框
|
||||||
var body =$("#depotHeadFM .datagrid-view2 .datagrid-body");
|
var body =$("#depotHeadFM .datagrid-view2 .datagrid-body");
|
||||||
var rowDom = body.find(".datagrid-row");
|
|
||||||
var footer =$("#depotHeadFM .datagrid-view2 .datagrid-footer");
|
var footer =$("#depotHeadFM .datagrid-view2 .datagrid-footer");
|
||||||
var input = "input[type=text]";
|
var input = "input[type=text]";
|
||||||
body.find(".datagrid-row").find("input").off("keyup").on("keyup",function(){
|
body.find(".datagrid-row").find("input").off("keyup").on("keyup",function(){
|
||||||
@@ -1083,91 +1082,105 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//单行删除按钮
|
||||||
|
body.find("[field='op']").find("img").off("click").on("click",function() {
|
||||||
|
$(this).closest(".datagrid-cell").click(); //点击操作
|
||||||
|
var row = $('#materialData').datagrid('getChecked');
|
||||||
|
$('#materialData').datagrid('deleteRow', $('#materialData').datagrid("getRowIndex", row[0]));
|
||||||
|
self.statisticsFun(body,0,0,footer,0);
|
||||||
|
});
|
||||||
//修改数量,自动计算金额和合计,另外计算含税单价、税额、价税合计
|
//修改数量,自动计算金额和合计,另外计算含税单价、税额、价税合计
|
||||||
body.find("[field='OperNumber']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='OperNumber']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
var UnitPrice = rowDom.eq(editIndex).find("[field='UnitPrice']").find(input).val(); //单价
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var taxRate = rowDom.eq(editIndex).find("[field='TaxRate']").find(input).val(); //税率
|
var UnitPrice = rowDom.find("[field='UnitPrice']").find(input).val(); //单价
|
||||||
|
var taxRate = rowDom.find("[field='TaxRate']").find(input).val(); //税率
|
||||||
var OperNumber =$(this).val()-0; //数量
|
var OperNumber =$(this).val()-0; //数量
|
||||||
rowDom.eq(editIndex).find("[field='AllPrice']").find(input).val((UnitPrice*OperNumber).toFixed(2)); //金额
|
rowDom.find("[field='AllPrice']").find(input).val((UnitPrice*OperNumber).toFixed(2)); //金额
|
||||||
rowDom.eq(editIndex).find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
rowDom.find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
rowDom.find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
||||||
rowDom.eq(editIndex).find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
rowDom.find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//修改单价,自动计算金额和合计
|
//修改单价,自动计算金额和合计
|
||||||
body.find("[field='UnitPrice']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='UnitPrice']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var UnitPrice =$(this).val()-0; //单价
|
var UnitPrice =$(this).val()-0; //单价
|
||||||
var taxRate = rowDom.eq(editIndex).find("[field='TaxRate']").find(input).val(); //税率
|
var taxRate = rowDom.find("[field='TaxRate']").find(input).val(); //税率
|
||||||
var OperNumber = rowDom.eq(editIndex).find("[field='OperNumber']").find(input).val(); //数量
|
var OperNumber = rowDom.find("[field='OperNumber']").find(input).val(); //数量
|
||||||
rowDom.eq(editIndex).find("[field='AllPrice']").find(input).val((UnitPrice*OperNumber).toFixed(2)); //金额
|
rowDom.find("[field='AllPrice']").find(input).val((UnitPrice*OperNumber).toFixed(2)); //金额
|
||||||
rowDom.eq(editIndex).find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
rowDom.find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
rowDom.find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
||||||
rowDom.eq(editIndex).find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
rowDom.find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
|
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
|
||||||
body.find("[field='TaxUnitPrice']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='TaxUnitPrice']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var TaxUnitPrice =$(this).val()-0; //含税单价
|
var TaxUnitPrice =$(this).val()-0; //含税单价
|
||||||
var taxRate = rowDom.eq(editIndex).find("[field='TaxRate']").find(input).val(); //税率
|
var taxRate = rowDom.find("[field='TaxRate']").find(input).val(); //税率
|
||||||
var UnitPrice = TaxUnitPrice/(1+taxRate/100); //计算单价
|
var UnitPrice = TaxUnitPrice/(1+taxRate/100); //计算单价
|
||||||
rowDom.eq(editIndex).find("[field='UnitPrice']").find(input).val((UnitPrice).toFixed(2)); //单价
|
rowDom.find("[field='UnitPrice']").find(input).val((UnitPrice).toFixed(2)); //单价
|
||||||
var OperNumber = currentRowDom.find("[field='OperNumber']").find(input).val(); //数量
|
var OperNumber = currentRowDom.find("[field='OperNumber']").find(input).val(); //数量
|
||||||
rowDom.eq(editIndex).find("[field='AllPrice']").find(input).val((UnitPrice*OperNumber).toFixed(2)); //金额
|
rowDom.find("[field='AllPrice']").find(input).val((UnitPrice*OperNumber).toFixed(2)); //金额
|
||||||
rowDom.eq(editIndex).find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
rowDom.find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
||||||
rowDom.eq(editIndex).find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
rowDom.find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//修改金额,自动计算单价、税额、价税合计和合计
|
//修改金额,自动计算单价、税额、价税合计和合计
|
||||||
body.find("[field='AllPrice']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='AllPrice']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
var OperNumber = rowDom.eq(editIndex).find("[field='OperNumber']").find(input).val(); //数量
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var taxRate = rowDom.eq(editIndex).find("[field='TaxRate']").find(input).val(); //税率
|
var OperNumber = rowDom.find("[field='OperNumber']").find(input).val(); //数量
|
||||||
|
var taxRate = rowDom.find("[field='TaxRate']").find(input).val(); //税率
|
||||||
var AllPrice =$(this).val()-0; //金额
|
var AllPrice =$(this).val()-0; //金额
|
||||||
var UnitPrice = (AllPrice/OperNumber).toFixed(2);
|
var UnitPrice = (AllPrice/OperNumber).toFixed(2);
|
||||||
rowDom.eq(editIndex).find("[field='UnitPrice']").find(input).val(UnitPrice); //单价
|
rowDom.find("[field='UnitPrice']").find(input).val(UnitPrice); //单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
rowDom.find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
rowDom.find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
||||||
rowDom.eq(editIndex).find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
rowDom.find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//修改税率,自动计算含税单价、税额、价税合计和合计
|
//修改税率,自动计算含税单价、税额、价税合计和合计
|
||||||
body.find("[field='TaxRate']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='TaxRate']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var taxRate =$(this).val()-0; //税率
|
var taxRate =$(this).val()-0; //税率
|
||||||
var OperNumber = rowDom.eq(editIndex).find("[field='OperNumber']").find(input).val(); //数量
|
var OperNumber = rowDom.find("[field='OperNumber']").find(input).val(); //数量
|
||||||
var UnitPrice = rowDom.eq(editIndex).find("[field='UnitPrice']").find(input).val(); //单价
|
var UnitPrice = rowDom.find("[field='UnitPrice']").find(input).val(); //单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
rowDom.find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
rowDom.find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
||||||
rowDom.eq(editIndex).find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
rowDom.find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//修改税额,自动计算税率、含税单价、价税合计和合计
|
//修改税额,自动计算税率、含税单价、价税合计和合计
|
||||||
body.find("[field='TaxMoney']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='TaxMoney']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var taxMoney =$(this).val()-0; //税额
|
var taxMoney =$(this).val()-0; //税额
|
||||||
var AllPrice = rowDom.eq(editIndex).find("[field='AllPrice']").find(input).val(); //金额
|
var AllPrice = rowDom.find("[field='AllPrice']").find(input).val(); //金额
|
||||||
var taxRate = taxMoney/AllPrice*100; //税率
|
var taxRate = taxMoney/AllPrice*100; //税率
|
||||||
var OperNumber = rowDom.eq(editIndex).find("[field='OperNumber']").find(input).val(); //数量
|
var OperNumber = rowDom.find("[field='OperNumber']").find(input).val(); //数量
|
||||||
var UnitPrice = rowDom.eq(editIndex).find("[field='UnitPrice']").find(input).val(); //单价
|
var UnitPrice = rowDom.find("[field='UnitPrice']").find(input).val(); //单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
rowDom.find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxRate']").find(input).val((taxRate).toFixed(2)); //税率
|
rowDom.find("[field='TaxRate']").find(input).val((taxRate).toFixed(2)); //税率
|
||||||
rowDom.eq(editIndex).find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
rowDom.find("[field='TaxLastMoney']").find(input).val((UnitPrice*OperNumber*(1+taxRate/100)).toFixed(2)); //价税合计
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//修改价税合计,自动计算税率、含税单价、税额和合计
|
//修改价税合计,自动计算税率、含税单价、税额和合计
|
||||||
body.find("[field='TaxLastMoney']").find(input).off("keyup").on("keyup",function(){
|
body.find("[field='TaxLastMoney']").find(input).off("keyup").on("keyup",function(){
|
||||||
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
editIndex = $(this).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
|
var rowDom = body.find(".datagrid-row").eq(editIndex);
|
||||||
var taxLastMoney =$(this).val()-0; //价税合计
|
var taxLastMoney =$(this).val()-0; //价税合计
|
||||||
var AllPrice = rowDom.eq(editIndex).find("[field='AllPrice']").find(input).val(); //金额
|
var AllPrice = rowDom.find("[field='AllPrice']").find(input).val(); //金额
|
||||||
var taxRate = (taxLastMoney-AllPrice)/AllPrice*100; //税率
|
var taxRate = (taxLastMoney-AllPrice)/AllPrice*100; //税率
|
||||||
var OperNumber = rowDom.eq(editIndex).find("[field='OperNumber']").find(input).val(); //数量
|
var OperNumber = rowDom.find("[field='OperNumber']").find(input).val(); //数量
|
||||||
var UnitPrice = rowDom.eq(editIndex).find("[field='UnitPrice']").find(input).val(); //单价
|
var UnitPrice = rowDom.find("[field='UnitPrice']").find(input).val(); //单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
rowDom.find("[field='TaxUnitPrice']").find(input).val((UnitPrice*(1+taxRate/100)).toFixed(2)); //含税单价
|
||||||
rowDom.eq(editIndex).find("[field='TaxRate']").find(input).val((taxRate).toFixed(2)); //税率
|
rowDom.find("[field='TaxRate']").find(input).val((taxRate).toFixed(2)); //税率
|
||||||
rowDom.eq(editIndex).find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
rowDom.find("[field='TaxMoney']").find(input).val((UnitPrice*OperNumber*(taxRate/100)).toFixed(2)); //税额
|
||||||
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
self.statisticsFun(body,UnitPrice,OperNumber,footer,taxRate);
|
||||||
});
|
});
|
||||||
//默认税率为0
|
//默认税率为0
|
||||||
@@ -1176,7 +1189,7 @@
|
|||||||
taxRateDom.val(0);
|
taxRateDom.val(0);
|
||||||
}
|
}
|
||||||
//在商品类型加载 组装件、普通子件
|
//在商品类型加载 组装件、普通子件
|
||||||
var mType = rowDom.eq(editIndex).find("[field='MType']");
|
var mType = body.find(".datagrid-row").eq(editIndex).find("[field='MType']");
|
||||||
var rowListLength = mType.find(input).closest(".datagrid-row").attr("datagrid-row-index");
|
var rowListLength = mType.find(input).closest(".datagrid-row").attr("datagrid-row-index");
|
||||||
var mTypeValue = "组合件";
|
var mTypeValue = "组合件";
|
||||||
if(rowListLength > 0){
|
if(rowListLength > 0){
|
||||||
@@ -1194,27 +1207,6 @@
|
|||||||
$('#materialData').datagrid('selectRow', editIndex).datagrid('beginEdit', editIndex);
|
$('#materialData').datagrid('selectRow', editIndex).datagrid('beginEdit', editIndex);
|
||||||
this.autoReckon();
|
this.autoReckon();
|
||||||
},
|
},
|
||||||
//批量删除明细
|
|
||||||
batchDel: function () {
|
|
||||||
var self = this;
|
|
||||||
var row = $('#materialData').datagrid('getChecked');
|
|
||||||
if (row.length == 0) {
|
|
||||||
$.messager.alert('删除提示', '没有记录被选中!', 'info');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (row.length > 0) {
|
|
||||||
$.messager.confirm('删除确认', '确定要删除选中的' + row.length + '条单据信息吗?', function (r) {
|
|
||||||
if (r) {
|
|
||||||
var body =$("#depotHeadFM .datagrid-body");
|
|
||||||
var footer =$("#depotHeadFM .datagrid-footer");
|
|
||||||
for (var i = 0; i < row.length; i++) {
|
|
||||||
$('#materialData').datagrid('deleteRow', $('#materialData').datagrid("getRowIndex", row[i]));
|
|
||||||
self.statisticsFun(body,0,0,footer,0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//新增仓库
|
//新增仓库
|
||||||
appendDepot: function () {
|
appendDepot: function () {
|
||||||
$('#depotDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui/themes/icons/edit_add.png"/> 增加仓库信息');
|
$('#depotDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui/themes/icons/edit_add.png"/> 增加仓库信息');
|
||||||
|
|||||||
@@ -443,17 +443,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -558,14 +560,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -614,6 +608,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -440,17 +440,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '商品类型',field: 'MType',editor:'validatebox',width:80},
|
{ title: '商品类型',field: 'MType',editor:'validatebox',width:80},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor:'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor:'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
@@ -542,14 +544,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -598,6 +592,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -441,17 +441,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '商品类型',field: 'MType',editor:'validatebox',width:80},
|
{ title: '商品类型',field: 'MType',editor:'validatebox',width:80},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
@@ -543,14 +545,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -599,6 +593,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -453,17 +453,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -554,14 +556,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -610,6 +604,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -446,17 +446,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -547,14 +549,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -603,6 +597,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -584,17 +584,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -689,14 +691,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -745,6 +739,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -602,17 +602,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -707,14 +709,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -763,6 +757,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -540,17 +540,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -645,14 +647,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -701,6 +695,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -601,17 +601,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -702,14 +704,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -758,6 +752,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -637,17 +637,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -738,14 +740,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -794,6 +788,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -625,17 +625,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -730,14 +732,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -786,6 +780,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -584,17 +584,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -689,14 +691,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -745,6 +739,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
@@ -661,17 +661,19 @@
|
|||||||
//动画效果
|
//动画效果
|
||||||
animate:false,
|
animate:false,
|
||||||
//选中单行
|
//选中单行
|
||||||
singleSelect : true,
|
singleSelect: true,
|
||||||
collapsible:false,
|
collapsible: false,
|
||||||
selectOnCheck:false,
|
|
||||||
//单击行是否选中
|
|
||||||
checkOnSelect : false,
|
|
||||||
pagination: false,
|
pagination: false,
|
||||||
//交替出现背景
|
//交替出现背景
|
||||||
striped : true,
|
striped : true,
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
columns:[[
|
columns:[[
|
||||||
{ field: 'Id',width:35,align:"center",checkbox:true},
|
{ field: 'Id',width:35,align:"center",hidden:true},
|
||||||
|
{ field: 'op',align:"center", width:35,
|
||||||
|
formatter:function(value,rec,index) {
|
||||||
|
return '<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;"/>';
|
||||||
|
}
|
||||||
|
},
|
||||||
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
{ title: '仓库名称', field: 'DepotId', editor: 'validatebox', width: 90,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return row.DepotName;
|
return row.DepotName;
|
||||||
@@ -766,14 +768,6 @@
|
|||||||
inOutService.append(); //新增行
|
inOutService.append(); //新增行
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id:'delete',
|
|
||||||
text:'删除行',
|
|
||||||
iconCls:'icon-remove',
|
|
||||||
handler:function() {
|
|
||||||
inOutService.batchDel(); //删除行
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id:'appendDepot',
|
id:'appendDepot',
|
||||||
text:'新增仓库',
|
text:'新增仓库',
|
||||||
@@ -822,6 +816,7 @@
|
|||||||
});
|
});
|
||||||
data.footer = array;
|
data.footer = array;
|
||||||
$("#materialData").datagrid('loadData',data);
|
$("#materialData").datagrid('loadData',data);
|
||||||
|
$("#depotHeadFM .datagrid-view2 .datagrid-footer").find("[field='op'] img").hide();
|
||||||
if(type === "add") {
|
if(type === "add") {
|
||||||
$("#depotHeadDlg #append").click(); //新增行
|
$("#depotHeadDlg #append").click(); //新增行
|
||||||
} else if(type === "edit") {
|
} else if(type === "edit") {
|
||||||
|
|||||||
Reference in New Issue
Block a user