diff --git a/ruoyi-admin/src/main/resources/templates/system/basematerialstore/add.html b/ruoyi-admin/src/main/resources/templates/system/basematerialstore/add.html index 0674ebf..f8a852c 100644 --- a/ruoyi-admin/src/main/resources/templates/system/basematerialstore/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/basematerialstore/add.html @@ -35,8 +35,13 @@
-
+ +
+
diff --git a/ruoyi-admin/src/main/resources/templates/system/basematerialstore/basematerialstore.html b/ruoyi-admin/src/main/resources/templates/system/basematerialstore/basematerialstore.html index 3534274..dfe6a60 100644 --- a/ruoyi-admin/src/main/resources/templates/system/basematerialstore/basematerialstore.html +++ b/ruoyi-admin/src/main/resources/templates/system/basematerialstore/basematerialstore.html @@ -18,6 +18,20 @@ +
  • + + +
  • +
  • + + +
  •  搜索  重置 @@ -51,6 +65,7 @@ var editFlag = [[${@permission.hasPermi('system:basematerialstore:edit')}]]; var removeFlag = [[${@permission.hasPermi('system:basematerialstore:remove')}]]; var locationStatusDatas = [[${@dict.getType('location_status')}]]; + var locationInfo = [[${@dict.getType('location_info')}]]; var prefix = ctx + "system/basematerialstore"; $(function() { @@ -90,7 +105,10 @@ }, { field: 'locationArea', - title: '库位区域' + title: '库位区域', + formatter: function(value, row, index) { + return $.table.selectDictLabel(locationInfo, value); + } }, { field: 'recordTime', diff --git a/ruoyi-admin/src/main/resources/templates/system/basematerialstore/edit.html b/ruoyi-admin/src/main/resources/templates/system/basematerialstore/edit.html index 23d26ad..149c1e2 100644 --- a/ruoyi-admin/src/main/resources/templates/system/basematerialstore/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/basematerialstore/edit.html @@ -37,7 +37,10 @@
    - + +
    diff --git a/ruoyi-system/src/main/resources/mapper/system/BaseMaterialStoreMapper.xml b/ruoyi-system/src/main/resources/mapper/system/BaseMaterialStoreMapper.xml index 4168168..d998453 100644 --- a/ruoyi-system/src/main/resources/mapper/system/BaseMaterialStoreMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/BaseMaterialStoreMapper.xml @@ -24,6 +24,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and material_code like concat(concat('%', #{materialCode}), '%') and material_type like concat(concat('%', #{materialType}), '%') + + and location_status = #{locationStatus} + and location_area = #{locationArea} and delete_flag = '1'