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

商品信息,商品计量单位修改

上级 3288e7db
...@@ -61,7 +61,7 @@ function loadMaterialDepotStockByDepotId(depotId){ ...@@ -61,7 +61,7 @@ function loadMaterialDepotStockByDepotId(depotId){
* @param callBack 回调函数 * @param callBack 回调函数
*/ */
function getStockAjaxByDepotAndNormsId(normsIds, depotId, callBack){ function getStockAjaxByDepotAndNormsId(normsIds, depotId, callBack){
AjaxPostUtil.request({url: reqBasePath + "material011", params: {depotId: depotId, normsIds: normsIds}, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "material011", params: {depotId: depotId, normsIds: normsIds}, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) {console.log(typeof(callBack)) if(json.returnCode == 0) {console.log(typeof(callBack))
if(typeof(callBack) == "function") { if(typeof(callBack) == "function") {
callBack(json); callBack(json);
......
...@@ -86,13 +86,12 @@ layui.config({ ...@@ -86,13 +86,12 @@ layui.config({
filterId: 'messageTable', filterId: 'messageTable',
fieldName: 'productId' fieldName: 'productId'
}); });
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'material010', url: flowableBasePath + 'material010',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -215,7 +214,7 @@ layui.config({ ...@@ -215,7 +214,7 @@ layui.config({
var params = { var params = {
proList: JSON.stringify(proList) proList: JSON.stringify(proList)
}; };
AjaxPostUtil.request({url: reqBasePath + "material015", params: params, type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "material015", params: params, type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
parent.productMationList = [].concat(json.rows); parent.productMationList = [].concat(json.rows);
parent.layer.close(index); parent.layer.close(index);
......
...@@ -30,7 +30,7 @@ layui.config({ ...@@ -30,7 +30,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'material017', url: flowableBasePath + 'material017',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -7,9 +7,7 @@ layui.config({ ...@@ -7,9 +7,7 @@ layui.config({
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'eleTree', 'soulTable'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'form', 'eleTree', 'soulTable'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
table = layui.table, table = layui.table,
...@@ -26,12 +24,11 @@ layui.config({ ...@@ -26,12 +24,11 @@ layui.config({
}); });
function initTable(){ function initTable(){
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'material016', url: flowableBasePath + 'material016',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -18,7 +18,7 @@ layui.config({ ...@@ -18,7 +18,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "material007", url: flowableBasePath + "material007",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/material/materialdetailsTemplate.tpl'), template: getFileContent('tpl/material/materialdetailsTemplate.tpl'),
......
...@@ -45,7 +45,7 @@ layui.config({ ...@@ -45,7 +45,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "material008", url: flowableBasePath + "material008",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: showBaseTemplate, template: showBaseTemplate,
...@@ -116,7 +116,7 @@ layui.config({ ...@@ -116,7 +116,7 @@ layui.config({
//加载多单位下拉框 //加载多单位下拉框
showGrid({ showGrid({
id: "unitGroupId", id: "unitGroupId",
url: reqBasePath + "materialunit006", url: flowableBasePath + "materialunit006",
params: {}, params: {},
pagination: false, pagination: false,
template: selTemplate, template: selTemplate,
...@@ -276,12 +276,12 @@ layui.config({ ...@@ -276,12 +276,12 @@ layui.config({
params.extendData = JSON.stringify(extendData); params.extendData = JSON.stringify(extendData);
//工序信息 //工序信息
params.procedureJsonStr = JSON.stringify(procedureMationList); params.procedureJsonStr = JSON.stringify(procedureMationList);
AjaxPostUtil.request({url:reqBasePath + "material009", params: params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material009", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'material001', url: flowableBasePath + 'material001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -135,12 +135,12 @@ layui.config({ ...@@ -135,12 +135,12 @@ layui.config({
function delet(data){ function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "material006", params:{rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material006", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -150,12 +150,12 @@ layui.config({ ...@@ -150,12 +150,12 @@ layui.config({
function down(data){ function down(data){
layer.confirm(systemLanguage["com.skyeye.disableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.disableOperation"][languageType]}, function(index) { layer.confirm(systemLanguage["com.skyeye.disableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.disableOperation"][languageType]}, function(index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "material004", params:{rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material004", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.disableOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.disableOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -165,12 +165,12 @@ layui.config({ ...@@ -165,12 +165,12 @@ layui.config({
function up(data){ function up(data){
layer.confirm(systemLanguage["com.skyeye.enableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.enableOperation"][languageType]}, function(index) { layer.confirm(systemLanguage["com.skyeye.enableOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.enableOperation"][languageType]}, function(index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "material005", params:{rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material005", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.enableOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.enableOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'material012', url: flowableBasePath + 'material012',
where: {mUnitId: parent.mUnitId}, where: {mUnitId: parent.mUnitId},
even: true, even: true,
page: true, page: true,
......
...@@ -39,12 +39,12 @@ layui.config({ ...@@ -39,12 +39,12 @@ layui.config({
unitName: $("#unitName").val(), unitName: $("#unitName").val(),
unitNameStr: JSON.stringify(tableData) unitNameStr: JSON.stringify(tableData)
}; };
AjaxPostUtil.request({url:reqBasePath + "materialunit002", params: params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialunit002", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -18,7 +18,7 @@ layui.config({ ...@@ -18,7 +18,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "materialunit004", url: flowableBasePath + "materialunit004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/materialunit/materialuniteditTemplate.tpl'), template: getFileContent('tpl/materialunit/materialuniteditTemplate.tpl'),
...@@ -56,12 +56,12 @@ layui.config({ ...@@ -56,12 +56,12 @@ layui.config({
unitNameStr: JSON.stringify(tableData), unitNameStr: JSON.stringify(tableData),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "materialunit005", params: params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialunit005", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -21,7 +21,7 @@ layui.config({ ...@@ -21,7 +21,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'materialunit001', url: flowableBasePath + 'materialunit001',
where: {groupName: $("#groupName").val()}, where: {groupName: $("#groupName").val()},
even: true, even: true,
page: true, page: true,
...@@ -81,13 +81,12 @@ layui.config({ ...@@ -81,13 +81,12 @@ layui.config({
var msg = '确认删除选中数据吗?'; var msg = '确认删除选中数据吗?';
layer.confirm(msg, { icon: 3, title: '删除计量单位' }, function (index) { layer.confirm(msg, { icon: 3, title: '删除计量单位' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "materialunit003", params: {rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:reqBasePath + "materialunit003", params:{rowId: data.id}, type:'json', callback:function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<input type="text" id="name" name="name" placeholder="请输入要搜索的节点" class="layui-input" /> <input type="text" id="name" name="name" placeholder="请输入要搜索的节点" class="layui-input" />
</div> </div>
</div> </div>
<div class="layui-inline" style="max-height: 200px; width: 100%"> <div class="layui-inline" style="max-height: 200px; width: 100%; overflow-y: auto;">
<ul id="materialCategoryType" class="ztree fsTree" method="get" isRoot="0" <ul id="materialCategoryType" class="ztree fsTree" method="get" isRoot="0"
treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul> treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul>
</div> </div>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<input type="text" id="name" name="name" placeholder="请输入要搜索的节点" class="layui-input" /> <input type="text" id="name" name="name" placeholder="请输入要搜索的节点" class="layui-input" />
</div> </div>
</div> </div>
<div class="layui-inline" style="max-height: 200px; width: 100%"> <div class="layui-inline" style="max-height: 200px; width: 100%; overflow-y: auto;">
<ul id="materialCategoryType" class="ztree fsTree" method="get" isRoot="0" <ul id="materialCategoryType" class="ztree fsTree" method="get" isRoot="0"
treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul> treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册