Commit e4f422867921a9274ad6b7bcd0607db46a85da53

Authored by huhai
2 parents 03b38698 e0971a06

Merge branch 'develop' into WMSV2-HH

src/main/java/com/huaheng/pc/receipt/receiving/controller/ReceivingController.java
@@ -98,7 +98,7 @@ public class ReceivingController extends BaseController { @@ -98,7 +98,7 @@ public class ReceivingController extends BaseController {
98 // if (count > 0) { 98 // if (count > 0) {
99 // return AjaxResult.error("仓库有“出库查看”任务没有完成,请先完成任务"); 99 // return AjaxResult.error("仓库有“出库查看”任务没有完成,请先完成任务");
100 // } 100 // }
101 - AjaxResult result = receiptContainerHeaderService.saveContainer(receiptCode, containerCode, receiptDetailId, 101 + AjaxResult result = receiptContainerHeaderService.saveCountain(receiptCode, containerCode, receiptDetailId,
102 locationCode, qty, locatingRule); 102 locationCode, qty, locatingRule);
103 return result; 103 return result;
104 } 104 }
src/main/resources/static/huaheng/js/huahengUI.js
@@ -39,6 +39,9 @@ var table = { @@ -39,6 +39,9 @@ var table = {
39 type: 0, // 0 代表bootstrapTable 1代表bootstrapTreeTable 39 type: 0, // 0 代表bootstrapTable 1代表bootstrapTreeTable
40 height: undefined, 40 height: undefined,
41 sidePagination: "server", 41 sidePagination: "server",
  42 + createUrl: "",
  43 + updateUrl: "",
  44 + removeUrl: "",
42 sortName: "", 45 sortName: "",
43 sortOrder: "asc", 46 sortOrder: "asc",
44 pagination: true, 47 pagination: true,
@@ -78,6 +81,9 @@ var table = { @@ -78,6 +81,9 @@ var table = {
78 cache: false, // 是否使用缓存 81 cache: false, // 是否使用缓存
79 height: options.height, // 表格的高度 82 height: options.height, // 表格的高度
80 striped: options.striped, // 是否显示行间隔色 83 striped: options.striped, // 是否显示行间隔色
  84 + createUrl: options.createUrl,
  85 + updateUrl: options.updateUrl,
  86 + removeUrl: options.removeUrl,
81 sortable: true, // 是否启用排序 87 sortable: true, // 是否启用排序
82 sortStable: true, // 设置为 true 将获得稳定的排序 88 sortStable: true, // 设置为 true 将获得稳定的排序
83 sortName: options.sortName, // 排序列名称 89 sortName: options.sortName, // 排序列名称
@@ -895,49 +901,54 @@ var table = { @@ -895,49 +901,54 @@ var table = {
895 }, 901 },
896 // 删除信息 902 // 删除信息
897 remove: function(id) { 903 remove: function(id) {
898 - $.modal.confirm("确定删除该条" + $.table._option.modalName + "信息吗?", function() {  
899 - var url = $.common.isEmpty(id) ? $.table._option.removeUrl : $.table._option.removeUrl.replace("{id}", id); 904 + $.modal.confirm("确定删除该条" + $.table.options.modalName + "信息吗?", function() {
  905 + var url = $.common.isEmpty(id) ? $.table.options.removeUrl : $.table.options.removeUrl.replace("{id}", id);
900 var data = { "ids": id }; 906 var data = { "ids": id };
901 $.operate.submit(url, "post", "json", data); 907 $.operate.submit(url, "post", "json", data);
902 }); 908 });
903 }, 909 },
904 // 批量删除信息 910 // 批量删除信息
905 batRemove: function() { 911 batRemove: function() {
906 - var rows = $.common.isEmpty($.table._option.id) ? $.table.selectFirstColumns() : $.table.selectColumns($.table._option.id); 912 + var rows = $.common.isEmpty($.table.options.id) ? $.table.selectFirstColumns() : $.table.selectColumns($.table.options.id);
907 if (rows.length == 0) { 913 if (rows.length == 0) {
908 $.modal.alertWarning("请至少选择一条记录"); 914 $.modal.alertWarning("请至少选择一条记录");
909 return; 915 return;
910 } 916 }
911 $.modal.confirm("确认要删除选中的" + rows.length + "条数据吗?", function() { 917 $.modal.confirm("确认要删除选中的" + rows.length + "条数据吗?", function() {
912 - var url = $.table._option.removeUrl; 918 + var url = $.table.options.removeUrl;
913 var data = { "ids": rows.join() }; 919 var data = { "ids": rows.join() };
914 $.operate.submit(url, "post", "json", data); 920 $.operate.submit(url, "post", "json", data);
915 }); 921 });
916 }, 922 },
917 // 添加信息 923 // 添加信息
918 add: function(id) { 924 add: function(id) {
919 - var url = $.common.isEmpty(id) ? $.table._option.createUrl : $.table._option.createUrl.replace("{id}", id);  
920 - $.modal.open("添加" + $.table._option.modalName, url); 925 + table.set();
  926 + var url = $.common.isEmpty(id) ? table.options.createUrl : $.table.options.createUrl.replace("{id}", id);
  927 + $.modal.open("添加" + table.options.modalName, url);
921 }, 928 },
922 // 修改信息 929 // 修改信息
923 edit: function(id) { 930 edit: function(id) {
924 - var url = $.table._option.updateUrl.replace("{id}", id);  
925 - $.modal.open("修改" + $.table._option.modalName, url); 931 + table.set();
  932 + var url = table.options.updateUrl.replace("{id}", id);
  933 + $.modal.open("修改" + table.options.modalName, url);
926 }, 934 },
927 //查看 935 //查看
928 checklook: function(id) { 936 checklook: function(id) {
929 - var url = $.table._option.updateUrl.replace("{id}", id);  
930 - $.modal.open("查看" + $.table._option.modalName, url); 937 + table.set();
  938 + var url = table.options.updateUrl.replace("{id}", id);
  939 + $.modal.open("查看" + table.options.modalName, url);
931 }, 940 },
932 // 添加信息 全屏 941 // 添加信息 全屏
933 addFull: function(id) { 942 addFull: function(id) {
934 - var url = $.common.isEmpty(id) ? $.table._option.createUrl : $.table._option.createUrl.replace("{id}", id);  
935 - $.modal.openFull("添加" + $.table._option.modalName, url); 943 + table.set();
  944 + let url = $.common.isEmpty(id) ? table.options.createUrl : $.table.options.createUrl.replace("{id}", id);
  945 + $.modal.openFull("添加" + table.options.modalName, url);
936 }, 946 },
937 // 修改信息 全屏 947 // 修改信息 全屏
938 editFull: function(id) { 948 editFull: function(id) {
939 - var url = $.table._option.updateUrl.replace("{id}", id);  
940 - $.modal.openFull("修改" + $.table._option.modalName, url); 949 + table.set();
  950 + var url = table.options.updateUrl.replace("{id}", id);
  951 + $.modal.openFull("修改" + table.options.modalName, url);
941 }, 952 },
942 // 保存信息 953 // 保存信息
943 save: function(url, data) { 954 save: function(url, data) {