Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mini-wms
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
周海峰
mini-wms
Commits
c2ea7e08
Commit
c2ea7e08
authored
Dec 18, 2025
by
yubin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a885a8a9
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
111 行增加
和
44 行删除
+111
-44
ruoyi-admin-vue/src/views/inventory/locations/index.vue
+0
-0
ruoyi-admin-vue/src/views/inventory/orders/OutboundOrderFormWithItems.vue
+0
-0
ruoyi-admin-vue/src/views/inventory/orders/index.vue
+60
-7
ruoyi-admin-vue/src/views/inventory/owners/index.vue
+50
-36
ruoyi-admin-vue/src/views/inventory/warehouses/index.vue
+0
-0
ruoyi-inventory/src/main/resources/mapper/inventory/OutboundOrdersMapper.xml
+1
-1
没有找到文件。
ruoyi-admin-vue/src/views/inventory/locations/index.vue
View file @
c2ea7e08
差异被折叠。
点击展开。
ruoyi-admin-vue/src/views/inventory/orders/OutboundOrderFormWithItems.vue
View file @
c2ea7e08
差异被折叠。
点击展开。
ruoyi-admin-vue/src/views/inventory/orders/index.vue
View file @
c2ea7e08
...
...
@@ -54,13 +54,14 @@
<!-- 页面容器 -->
<div
class=
"page-container"
>
<!-- 搜索区域 -->
<
page-wrapper-search
<!-- 搜索区域 -
参考样式修改 -
->
<
el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
@
search=
"handleQuery"
@
reset=
"resetQuery"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"出库单号"
prop=
"orderId"
>
<el-input
...
...
@@ -96,7 +97,7 @@
v-model=
"queryParams.orderTypeId"
placeholder=
"请输入出库类型"
clearable
style=
"width: 1
00%
"
style=
"width: 1
50px
"
>
<el-option
v-for=
"dict in dict.type.inbound_outbound_type"
...
...
@@ -120,7 +121,7 @@
v-model=
"queryParams.orderStatus"
placeholder=
"请选择订单状态"
clearable
style=
"width: 1
00%
"
style=
"width: 1
50px
"
>
<el-option
v-for=
"dict in dict.type.outbound_order_status"
...
...
@@ -150,7 +151,13 @@
</
template
>
</el-input>
</el-form-item>
</page-wrapper-search>
<!-- 新增搜索和重置按钮 -->
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<!-- 表格容器 -->
<div
class=
"table-container"
>
...
...
@@ -1271,6 +1278,13 @@ export default {
ownerId
:
false
,
outboundOrderId
:
false
}
// 核心修改:设置出库日期默认值为当前日期
const
today
=
new
Date
()
const
year
=
today
.
getFullYear
()
const
month
=
String
(
today
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
const
day
=
String
(
today
.
getDate
()).
padStart
(
2
,
'0'
)
this
.
form
.
inboundDate
=
`${year
}
-${month
}
-${day
}
`
this
.
open
=
true
this
.
title
=
"添加出库单"
}
,
...
...
@@ -1563,3 +1577,41 @@ export default {
}
}
<
/script
>
<
style
scoped
>
.
page
-
container
{
padding
:
16
px
;
background
:
#
fff
;
border
-
radius
:
4
px
;
margin
-
bottom
:
16
px
;
display
:
flex
;
flex
-
direction
:
column
;
height
:
calc
(
100
vh
-
140
px
);
min
-
height
:
600
px
;
}
.
table
-
container
{
flex
:
1
;
min
-
height
:
0
;
margin
-
top
:
16
px
;
display
:
flex
;
flex
-
direction
:
column
;
overflow
-
x
:
auto
;
}
/* 补充样式,保持和参考页面一致 */
.
el
-
form
-
item
{
margin
-
bottom
:
16
px
;
}
.
material
-
group
{
margin
-
bottom
:
16
px
;
}
.
mb8
{
margin
-
bottom
:
8
px
;
}
.
mb10
{
margin
-
bottom
:
10
px
;
}
<
/style>
\ No newline at end of file
ruoyi-admin-vue/src/views/inventory/owners/index.vue
View file @
c2ea7e08
<
template
>
<div
class=
"app-container"
>
<PageTitle>
<template
#
buttons
>
<el-button
type=
"primary"
plain
...
...
@@ -12,7 +10,6 @@
@
click=
"handleAdd"
v-hasPermi=
"['inventory:owners:add']"
>
新增
</el-button>
<el-button
type=
"success"
plain
...
...
@@ -22,7 +19,6 @@
@
click=
"handleUpdate"
v-hasPermi=
"['inventory:owners:edit']"
>
修改
</el-button>
<el-button
type=
"danger"
plain
...
...
@@ -32,7 +28,6 @@
@
click=
"handleDelete"
v-hasPermi=
"['inventory:owners:remove']"
>
删除
</el-button>
<el-button
type=
"success"
plain
...
...
@@ -41,7 +36,6 @@
@
click=
"handleImport"
v-hasPermi=
"['inventory:owners:add']"
>
导入
</el-button>
<el-button
type=
"warning"
plain
...
...
@@ -50,19 +44,18 @@
@
click=
"handleExport"
v-hasPermi=
"['inventory:owners:export']"
>
导出
</el-button>
</
template
>
</PageTitle>
<div
class=
"page-container"
>
<page-wrapper-search
<!-- 替换原有page-wrapper-search为原生el-form -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
@
search=
"handleQuery"
@
reset=
"resetQuery"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"货主编码"
prop=
"ownerCode"
>
<el-input
...
...
@@ -80,7 +73,6 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<!-- 新增英文名称查询项 -->
<el-form-item
label=
"英文名称"
prop=
"englishName"
>
<el-input
v-model=
"queryParams.englishName"
...
...
@@ -97,14 +89,12 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"是否激活"
prop=
"isActive"
>
<el-select
v-model=
"queryParams.isActive"
placeholder=
"请选择是否激活"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
style=
"width: 100%"
style=
"width: 150px"
>
<el-option
v-for=
"dict in dict.type.yes_no"
...
...
@@ -114,14 +104,19 @@
></el-option>
</el-select>
</el-form-item>
</page-wrapper-search>
<!-- 独立的搜索和重置按钮 -->
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<div
class=
"table-container"
>
<el-table
v-loading=
"loading"
:data=
"ownersList"
height=
"100%"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
fixed
/>
<el-table-column
label=
"货主编码"
align=
"center"
prop=
"ownerCode"
width=
"120"
fixed
/>
<el-table-column
label=
"货主名称"
align=
"center"
prop=
"ownerName"
width=
"220"
/>
<!-- 新增英文名称表格列 -->
<el-table-column
label=
"英文名称"
align=
"center"
prop=
"englishName"
width=
"220"
/>
<el-table-column
label=
"货主名称"
align=
"center"
prop=
"ownerName"
width=
"220"
/>
<el-table-column
label=
"英文名称"
align=
"center"
prop=
"englishName"
width=
"220"
/>
<el-table-column
label=
"货主类型"
align=
"center"
prop=
"ownerType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.owner_type"
:value=
"scope.row.ownerType"
/>
...
...
@@ -131,14 +126,13 @@
<el-table-column
label=
"联系电话"
align=
"center"
prop=
"contactPhone"
width=
"120"
/>
<el-table-column
label=
"邮箱"
align=
"center"
prop=
"email"
width=
"200"
/>
<el-table-column
label=
"地址"
align=
"center"
prop=
"address"
width=
"220"
/>
<el-table-column
label=
"税号"
align=
"center"
prop=
"taxNumber"
width=
"180"
/>
<el-table-column
label=
"税号"
align=
"center"
prop=
"taxNumber"
width=
"180"
/>
<el-table-column
label=
"银行账户"
align=
"center"
prop=
"bankAccount"
width=
"180"
/>
<el-table-column
label=
"是否激活"
align=
"center"
prop=
"isActive"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.yes_no"
:value=
"scope.row.isActive"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"创建日期"
align=
"center"
prop=
"createTime"
width=
"160"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"120"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -161,7 +155,6 @@
</el-table>
</div>
<pagination
v-show=
"total>0"
:total=
"total"
...
...
@@ -171,9 +164,6 @@
/>
</div>
<!-- 添加或修改货主信息对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"900px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
...
...
@@ -189,7 +179,6 @@
</el-form-item>
</el-col>
</el-row>
<!-- 新增英文名称表单项 -->
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"英文名称"
prop=
"englishName"
>
...
...
@@ -249,7 +238,6 @@
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"银行账户"
prop=
"bankAccount"
>
<el-input
v-model=
"form.bankAccount"
placeholder=
"请输入银行账户"
/>
...
...
@@ -271,11 +259,10 @@
template-name=
"owners_importTemplate"
@
success=
"getList"
/>
</div>
</template>
<
script
>
<
script
>
import
{
listOwners
,
getOwners
,
delOwners
,
addOwners
,
updateOwners
}
from
"@/api/inventory/owners"
import
ImportExcel
from
"@/components/ImportExcel/index"
...
...
@@ -309,7 +296,7 @@ export default {
pageSize
:
10
,
ownerCode
:
null
,
ownerName
:
null
,
englishName
:
null
,
// 新增英文名称查询参数
englishName
:
null
,
ownerType
:
null
,
contactPerson
:
null
,
contactPhone
:
null
,
...
...
@@ -332,7 +319,7 @@ export default {
ownerName
:
[
{
required
:
true
,
message
:
'货主名称不能为空'
,
trigger
:
'blur'
}
],
englishName
:
[
// 新增英文名称校验规则(非必填,可根据需求调整)
englishName
:
[
{
required
:
false
,
message
:
'英文名称不能为空'
,
trigger
:
'blur'
}
],
contactPerson
:
[
...
...
@@ -377,7 +364,7 @@ export default {
id
:
null
,
ownerCode
:
null
,
ownerName
:
null
,
englishName
:
null
,
// 新增英文名称表单重置
englishName
:
null
,
ownerType
:
null
,
contactPerson
:
null
,
contactPhone
:
null
,
...
...
@@ -401,12 +388,15 @@ export default {
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
queryParams
=
{
// 使用el-form的resetFields方法重置表单
this
.
$refs
.
queryForm
.
resetFields
()
// 手动重置复杂类型的参数(如下拉框)
this
.
queryParams
=
{
pageNum
:
1
,
pageSize
:
10
,
ownerCode
:
null
,
ownerName
:
null
,
englishName
:
null
,
// 新增英文名称查询参数重置
englishName
:
null
,
ownerType
:
null
,
contactPerson
:
null
,
contactPhone
:
null
,
...
...
@@ -418,7 +408,7 @@ export default {
sortNo
:
null
,
createUserCode
:
null
,
updateUserCode
:
null
}
,
}
this
.
handleQuery
()
},
// 多选框选中数据
...
...
@@ -486,3 +476,26 @@ export default {
}
}
</
script
>
<
style
scoped
>
/* 添加参考页面的样式,保证布局一致 */
.page-container
{
padding
:
16px
;
background
:
#fff
;
border-radius
:
4px
;
margin-bottom
:
16px
;
display
:
flex
;
flex-direction
:
column
;
height
:
calc
(
100vh
-
140px
);
min-height
:
600px
;
}
.table-container
{
flex
:
1
;
min-height
:
0
;
margin-top
:
16px
;
display
:
flex
;
flex-direction
:
column
;
overflow-x
:
auto
;
}
</
style
>
\ No newline at end of file
ruoyi-admin-vue/src/views/inventory/warehouses/index.vue
View file @
c2ea7e08
差异被折叠。
点击展开。
ruoyi-inventory/src/main/resources/mapper/inventory/OutboundOrdersMapper.xml
View file @
c2ea7e08
...
...
@@ -108,7 +108,7 @@
<if
test=
"orderId != null and orderId != ''"
>
and oo.order_id like concat('%', #{orderId}, '%')
</if>
<if
test=
"batchCode != null and batchCode != ''"
>
and oo.batch_code like concat('%', #{batchCode}, '%')
</if>
<if
test=
"systemNo != null and systemNo != ''"
>
and oo.system_no like concat('%', #{systemNo}, '%')
</if>
<if
test=
"orderTypeId != null and orderTypeId != ''"
>
and oo.order_type_id = {orderTypeId}
</if>
<if
test=
"orderTypeId != null and orderTypeId != ''"
>
and oo.order_type_id =
#
{orderTypeId}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and oo.order_type = #{orderType}
</if>
<if
test=
"batchCode != null and batchCode != ''"
>
and oo.batch_code like concat('%', #{batchCode}, '%')
</if>
<if
test=
"warehouseId != null and warehouseId != ''"
>
and oo.warehouse_id = #{warehouseId}
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论