From 1d4ce029e2b64a48352806d17a37b92e132efc9c Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Sat, 24 Aug 2024 12:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BF=A1=E6=81=AF=E4=B8=AD=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9=E4=B8=BA=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=90=8D=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8=E3=80=82?= =?UTF-8?q?=E4=B8=8B=E5=88=97=E5=88=97=E8=A1=A8=E9=80=89=E6=8B=A9=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E9=9C=80=E8=A6=81=E6=8A=8A=E5=AF=B9=E5=BC=88?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E5=90=8D=E4=B8=AD=E7=9A=84=E4=BB=93=E5=BA=93?= =?UTF-8?q?ID=20=E4=BF=AE=E6=94=B9:=E4=BB=93=E5=BA=93=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E7=9B=98=E7=82=B9=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=AD=E4=BB=93=E5=BA=93=E5=90=8D=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BF=AE=E6=94=B9=E4=B8=BA=E4=BB=93=E5=BA=93=E5=90=8D?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8=E3=80=82=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BF=A1=E6=81=AF=E4=B8=AD=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9=E4=B8=BA=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=90=8D=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8=E3=80=82?= =?UTF-8?q?=E4=B8=8B=E5=88=97=E5=88=97=E8=A1=A8=E9=80=89=E6=8B=A9=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E9=9C=80=E8=A6=81=E6=8A=8A=E5=AF=B9=E5=BC=88?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E5=90=8D=E4=B8=AD=E7=9A=84=E4=BB=93=E5=BA=93?= =?UTF-8?q?ID=E3=80=82=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BB=93=E5=BA=93=E7=9B=98=E7=82=B9=E4=BA=BA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=B8=BA=E5=BD=93=E5=89=8D=E7=99=BB=E5=BD=95=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E7=9A=84=E7=99=BB=E5=BD=95=E5=90=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouse/inventoryCheck/add.html | 139 ++++++++--------- .../warehouse/inventoryCheck/detail.html | 113 ++++++++------ .../warehouse/inventoryCheck/edit.html | 142 +++++++++--------- .../warehouse/inventoryInquiry/add.html | 2 +- .../inventoryInquiry/inventoryHistory.html | 8 +- .../inventoryInquiry/inventoryInquiry.html | 21 ++- .../warehouse/inventoryReportDamage/add.html | 118 +++++++++++---- 7 files changed, 319 insertions(+), 224 deletions(-) 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