diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/add.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/add.html index 0cbad494..03f20245 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/add.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/add.html @@ -10,21 +10,24 @@
- +
-
- +
+
- +
- +
- +
+
@@ -64,10 +67,9 @@ \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/detail.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/detail.html index 87c0fd13..6b6252c6 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/detail.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/detail.html @@ -21,15 +21,17 @@
- +
- +
- +
- +
@@ -147,53 +149,22 @@ showRefresh:false, showSearch:false, singleSelect:true, - columns: [{ - checkbox: false - }, - { - title: '库存盘点详情ID', - field: 'inventoryCheckDetailId', - visible: false - }, - { - title: '料号', - field: 'materialNo', - }, - { - title: '物料名称', - field: 'materialName', - }, - { - title: '物料单位', - field: 'materialUnit', - }, - { - title: '物料描述', - field: 'materialDescribe', - }, - { - title: '盘点数量', - field: 'inventoryCheckNum', - }, - { - title: '当时库存账上数量', - field: 'inventoryAccountNum', - }, - { - title: '存放地址', - field: 'warehouseStoreAddress', - }, - { - title: '批号', - field: 'batchNumber', - }, - { - title: '说明', - field: 'remark', - }, + columns: [ + {checkbox: false}, + {title: '库存盘点详情ID', field: 'inventoryCheckDetailId', visible: false}, + {title: '料号', field: 'materialNo',}, + {title: '物料名称', field: 'materialName',}, + {title: '物料单位', field: 'materialUnit',}, + {title: '物料描述', field: 'materialDescribe',}, + {title: '盘点数量', field: 'inventoryCheckNum',}, + {title: '当时库存账上数量', field: 'inventoryAccountNum',}, + {title: '存放地址', field: 'warehouseStoreAddress',}, + {title: '批号', field: 'batchNumber',}, + {title: '说明', field: 'remark',}, ] }; $.table.init(options); + loadWarehouseCodes(); }) function queryParams(params) { @@ -235,7 +206,51 @@ values: materialNo }) } - + function loadWarehouseCodes() { + var url = ctx + 'stock/stockInfo/getAllWarehouseCode'; + $("#stockName").select2({ + ajax: { + theme: "bootstrap", + allowClear: true, + placeholder: "请选择一个料号", + type: 'GET', // 请求类型 + url: url, // 后端接口URL + dataType: 'json', // 预期服务器返回的数据类型 + data: function(params) { + return { + q: params.term, // 搜索关键词 + page: params.page || 1 ,// 当前页码 + // 其他参数 + pageSize: 30 + }; + }, + processResults: function(data, params) { + params.page = params.page || 1; + var options = []; + for (var i = 0; i < data.length; i++) { + var option = { + id: data[i].stockName, + text: data[i].stockName, + title: data[i].stockNO + }; + options.push(option); + } + var moreDataAvaliable = (params.page * 30) < data.total_count; + return { + // 实现下拉实现填入stockName + results: options, + pagination: { + more: moreDataAvaliable // 是否还有更多数据 + } + }; + } + } + }); + } + $('#stockName').on('select2:select', function(e) { + var data = e.params.data; + $("input[name='warehouseCode']").val(data.title); + }); diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/edit.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/edit.html index 71087f38..94087f19 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/edit.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryCheck/edit.html @@ -3,6 +3,7 @@ +
@@ -20,16 +21,18 @@
-
- +
+
- +
- +
- +
@@ -70,21 +73,17 @@ + diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/add.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/add.html index c85e26af..9d5b5ddf 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/add.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/add.html @@ -124,12 +124,12 @@ $("#form-inventoryInquiry-add").validate({ focusCleanup: true }); - function submitHandler() { if ($.validate.form()) { $.operate.save(prefix + "/add", $('#form-inventoryInquiry-add').serialize()); } } + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryHistory.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryHistory.html index 96f5dd31..c3a9f961 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryHistory.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryHistory.html @@ -33,7 +33,13 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryInquiry.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryInquiry.html index 02a6e558..44f931b7 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryInquiry.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryInquiry/inventoryInquiry.html @@ -69,6 +69,13 @@ updateUrl: prefix + "/edit/{id}", exportUrl: prefix + "/export", modalName: "仓库库存查询", + height: $(window).height() - 200, + modalWidth: 1200, + fixedColumns:true, + fixedNumber: 1, + fixedRightNumber: 1, + search: false, + showExport: true, columns: [ {checkbox: true}, {title: '库存查询id', field: 'inventoryInquiryId', visible: false}, @@ -114,13 +121,13 @@ {title: '录入人', field: 'createBy',}, {title: '更新人', field: 'updateBy',}, {title: '上次更新时间', field: 'updateTime',}, - {title: '操作', align: 'center', - formatter: function(value, row, index) { - var actions = []; - actions.push('编辑 '); - return actions.join(''); - } - } + // {title: '操作', align: 'center', + // formatter: function(value, row, index) { + // var actions = []; + // actions.push('编辑 '); + // return actions.join(''); + // } + // } ] }; $.table.init(options); diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html index 25844378..424d21de 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/inventoryReportDamage/add.html @@ -3,6 +3,7 @@ +
@@ -15,10 +16,19 @@ -
- +
+
- + +
+
+
+ +
+
+ + +
@@ -30,55 +40,46 @@
-
- -
- -
-
-
- +
+
-
- - -
+
-
+ +
- +
- +
- +
@@ -97,23 +98,84 @@
+ \ No newline at end of file