|
@ -73,7 +73,7 @@ |
|
|
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
var sysUnitClassDatas = [[${@dict.getType('sysUnitClassDatas')}]]; |
|
|
var sysUnitClassDatas = [[${@dict.getType('sysUnitClassDatas')}]]; |
|
|
var purchasePlanTypeDatas = [[${@dict.getType('purchase_plan_source')}]]; |
|
|
var purchasePlanTypeDatas = [[${@dict.getType('purchase_plan_source')}]]; |
|
|
var prefix = ctx + "purchase/plan"; |
|
|
var prefix = ctx + "purchase/purchasePlan"; |
|
|
$(function() { |
|
|
$(function() { |
|
|
var options = { |
|
|
var options = { |
|
|
url: prefix + "/list", |
|
|
url: prefix + "/list", |
|
@ -94,7 +94,7 @@ |
|
|
'<table class="table-container" id="purchase_plan_'+row.id+'"></table>' |
|
|
'<table class="table-container" id="purchase_plan_'+row.id+'"></table>' |
|
|
).find('table'); |
|
|
).find('table'); |
|
|
// 一阶 |
|
|
// 一阶 |
|
|
initOneLevelTable(index,row,$detail); |
|
|
initChildTable(index,row,$detail); |
|
|
}, |
|
|
}, |
|
|
columns: [ |
|
|
columns: [ |
|
|
{checkbox: true}, |
|
|
{checkbox: true}, |
|
@ -126,14 +126,14 @@ |
|
|
$.table.init(options); |
|
|
$.table.init(options); |
|
|
}); |
|
|
}); |
|
|
//采购计划物料清单 |
|
|
//采购计划物料清单 |
|
|
initOneLevelTable = function(index, row, $detail) { |
|
|
initChildTable = function(index, row, $detail) { |
|
|
$("#"+"purchase_plan_"+row.id).bootstrapTable({ |
|
|
$("#"+"purchase_plan_"+row.id).bootstrapTable({ |
|
|
url: prefix + "/oneLevelList", |
|
|
url: ctx + "purchase/purchasePlanChild/list", |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
sidePagination: "server", |
|
|
sidePagination: "server", |
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
queryParams : { |
|
|
queryParams : { |
|
|
parentId: row.id |
|
|
purchasePlanCode: row.purchasePlanCode |
|
|
}, |
|
|
}, |
|
|
columns: [ |
|
|
columns: [ |
|
|
{field: 'purchasePlanId',title: '主键id',visible: false}, |
|
|
{field: 'purchasePlanId',title: '主键id',visible: false}, |
|
|