Commit aae685e8 by wancheng

其他入库单,其他出库单

parent 00c255cb
......@@ -20,7 +20,7 @@ $(function () {
// 详情
if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="jump(' + item.id + ')" >详情</a>';
+ 'onclick="jump(' + item.id + ',\''+item.submitStatus+'\')" >详情</a>';
}
return template;
}
......@@ -136,8 +136,8 @@ function check(id, auditStatus) {
);
}
//详情
function jump(id) {
var herf = ctx + "\\web\\" + "HGKC006A?inqu_status-0-primaryId=" + id + "&efParentFormEname=HGKC006";
function jump(id,submitStatus) {
var herf = ctx + "\\web\\" + "HGKC006A?inqu_status-0-primaryId=" + id + "&inqu_status-0-submitStatus="+ submitStatus +"&efParentFormEname=HGKC006";
window.open(herf);
}
/**
......
......@@ -61,7 +61,6 @@ $(function () {
field: "invQty",
template: function (item) {
if(item.invQty && item.invUnitWeight){
debugger;
let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString();
resultGrid.setCellValue(item, 'invWeight', invWeight);
......@@ -76,7 +75,6 @@ $(function () {
}, {
field: "invUnitWeight",
template: function (item) {
debugger;
if(item.invQty && item.invUnitWeight){
let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString();
......@@ -155,6 +153,13 @@ $(function () {
*/
$(window).load(function () {
query();
let submitStatus = $("#inqu_status-0-submitStatus").val();
if(submitStatus==1){
$(".k-grid-add").hide();
$(".k-grid-save-changes").hide();
$(".k-grid-cancel-changes").hide();
$(".k-grid-delete").hide();
}
});
/**
......
......@@ -15,6 +15,7 @@
</EF:EFSelect>--%>
<EF:EFInput cname="存货名称" ename="inventName" blockId="inqu_status" row="0" colWidth="3"/>
<EF:EFInput cname="主表id" ename="primaryId" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
<EF:EFInput cname="主表状态" ename="submitStatus" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
</div>
<%-- <div class="row">
<EF:EFInput cname="部件名称" ename="prdtName" blockId="inqu_status" row="0" colWidth="3"/>
......
......@@ -20,7 +20,7 @@ $(function () {
// 详情
if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="jump(' + item.id + ')" >详情</a>';
+ 'onclick="jump(' + item.id + ',\''+item.submitStatus+'\')" >详情</a>';
}
return template;
}
......@@ -137,8 +137,8 @@ function check(id, auditStatus) {
}
//详情
function jump(id) {
var herf = ctx + "\\web\\" + "HGKC007A?inqu_status-0-primaryId=" + id + "&efParentFormEname=HGKC007";
function jump(id,submitStatus) {
var herf = ctx + "\\web\\" + "HGKC007A?inqu_status-0-primaryId=" + id + "&inqu_status-0-submitStatus="+ submitStatus +"&efParentFormEname=HGKC007";
window.open(herf);
}
......
......@@ -61,7 +61,6 @@ $(function () {
field: "invQty",
template: function (item) {
if(item.invQty && item.invUnitWeight){
debugger;
let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString();
resultGrid.setCellValue(item, 'invWeight', invWeight);
......@@ -76,7 +75,6 @@ $(function () {
}, {
field: "invUnitWeight",
template: function (item) {
debugger;
if(item.invQty && item.invUnitWeight){
let invWeight = item.invQty * item.invUnitWeight;
//item['invWeight'] = invWeight.toString();
......@@ -155,6 +153,13 @@ $(function () {
*/
$(window).load(function () {
query();
let submitStatus = $("#inqu_status_0_submitStatus").val();
if(submitStatus==1){
$(".k-grid-add").hide();
$(".k-grid-save-changes").hide();
$(".k-grid-cancel-changes").hide();
$(".k-grid-delete").hide();
}
});
/**
......
......@@ -15,6 +15,7 @@
</EF:EFSelect>--%>
<EF:EFInput cname="存货名称" ename="inventName" blockId="inqu_status" row="0" colWidth="3"/>
<EF:EFInput cname="主表id" ename="primaryId" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
<EF:EFInput cname="主表状态" ename="submitStatus" blockId="inqu_status" row="0" colWidth="3" type="hidden"/>
</div>
</EF:EFRegion>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment