提交 b114f314 编写于 作者: Skyeye云's avatar Skyeye云

部门领料单,退料单,物料单详情接口合并

上级 3db12c4c
......@@ -14,8 +14,9 @@ layui.config({
showGrid({
id: "showForm",
url: flowableBasePath + "erppick007",
params: {rowId: parent.rowId},
params: {id: parent.rowId},
pagination: false,
method: 'GET',
template: $("#useTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
hdb.registerHelper('compare1', function(v1, v2, options) {
......
......@@ -38,7 +38,7 @@ layui.config({
});
function loadData(){
AjaxPostUtil.request({url:flowableBasePath + "erppick010", params: {rowId: parent.rowId}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url:flowableBasePath + "erppick007", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) {
var data = json.bean;
if (!isNull(data.machinId)){
$("#machinOrder").val(data.machinNum);
......@@ -59,7 +59,7 @@ layui.config({
$("#unitId" + (rowNum - 1)).html(getDataUseHandlebars(selOption, {rows: item.unitList}));
$("#unitId" + (rowNum - 1)).val(item.normsId);
//商品回显
$("#materialId" + (rowNum - 1)).val(item.productName + "(" + item.productModel + ")");
$("#materialId" + (rowNum - 1)).val(item.materialName + "(" + item.materialModel + ")");
$("#currentTock" + (rowNum - 1)).html(item.currentTock);//库存回显
//补充数量
$("#rkNum" + (rowNum - 1)).val(item.needNumber);
......
......@@ -14,8 +14,9 @@ layui.config({
showGrid({
id: "showForm",
url: flowableBasePath + "erppick007",
params: {rowId: parent.rowId},
params: {id: parent.rowId},
pagination: false,
method: 'GET',
template: $("#useTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
hdb.registerHelper('compare1', function(v1, v2, options) {
......
......@@ -39,7 +39,7 @@ layui.config({
});
function loadData(){
AjaxPostUtil.request({url:flowableBasePath + "erppick005", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) {
AjaxPostUtil.request({url:flowableBasePath + "erppick007", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) {
var data = json.bean;
if (!isNull(data.machinId)){
$("#machinOrder").val(data.machinNum);
......
......@@ -14,8 +14,9 @@ layui.config({
showGrid({
id: "showForm",
url: flowableBasePath + "erppick007",
params: {rowId: parent.rowId},
params: {id: parent.rowId},
pagination: false,
method: 'GET',
template: $("#useTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
hdb.registerHelper('compare1', function(v1, v2, options) {
......
......@@ -36,7 +36,7 @@ layui.config({
});
function loadData(){
AjaxPostUtil.request({url:flowableBasePath + "erppick013", params: {rowId: parent.rowId}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: flowableBasePath + "erppick007", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) {
var data = json.bean;
$("#depotId").val(data.depotId);
$("#operTime").val(data.operTime);
......@@ -50,7 +50,7 @@ layui.config({
$("#unitId" + (rowNum - 1)).html(getDataUseHandlebars(selOption, {rows: item.unitList}));
$("#unitId" + (rowNum - 1)).val(item.normsId);
//商品回显
$("#materialId" + (rowNum - 1)).val(item.productName + "(" + item.productModel + ")");
$("#materialId" + (rowNum - 1)).val(item.materialName + "(" + item.materialModel + ")");
$("#currentTock" + (rowNum - 1)).html(item.currentTock);//库存回显
//退料数量
$("#rkNum" + (rowNum - 1)).val(item.needNumber);
......
......@@ -74,7 +74,7 @@
<tbody id="useTable" class="insurance-table">
{{#each items}}
<tr>
<td>{{productName}}({{productModel}})</td>
<td>{{materialName}}({{materialModel}})</td>
<td>{{unitName}}</td>
<td>{{needNumber}}</td>
<td>{{unitPrice}}</td>
......
......@@ -74,7 +74,7 @@
<tbody id="useTable" class="insurance-table">
{{#each items}}
<tr>
<td>{{productName}}({{productModel}})</td>
<td>{{materialName}}({{materialModel}})</td>
<td>{{unitName}}</td>
<td>{{needNumber}}</td>
<td>{{unitPrice}}</td>
......
......@@ -68,7 +68,7 @@
<tbody id="useTable" class="insurance-table">
{{#each items}}
<tr>
<td>{{productName}}({{productModel}})</td>
<td>{{materialName}}({{materialModel}})</td>
<td>{{unitName}}</td>
<td>{{needNumber}}</td>
<td>{{unitPrice}}</td>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册