Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pda-scan
Commits
6df39096
Commit
6df39096
authored
May 12, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仓库、储位改成模糊搜索
parent
f5cf2960
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
add.vue
pages/stockCheck/add.vue
+5
-4
card.vue
pages/stockTransfer/components/card.vue
+13
-12
No files found.
pages/stockCheck/add.vue
View file @
6df39096
...
...
@@ -13,11 +13,12 @@
:placeholder=
"$t('请输入新增数')"
/>
</uni-forms-item>
<uni-forms-item
:label=
"`$
{$t('选择仓库')}:`">
<
uni-data-select
v-model=
"formData.warehouse"
:localdata=
"warehouseRang
e"
@
change=
"handleChange"
></uni-data-select
>
<
zxz-uni-data-select
filterable
v-model=
"formData.warehouse"
dataKey=
"text"
dataValue=
"valu
e"
:localdata=
"warehouseRange"
@
change=
"handleChange"
/
>
</uni-forms-item>
<uni-forms-item
:label=
"`$
{$t('选择储位')}:`">
<uni-data-select
v-model=
"formData.location"
:localdata=
"storageRange"
></uni-data-select>
<zxz-uni-data-select
filterable
v-model=
"formData.location"
dataKey=
"text"
dataValue=
"value"
:localdata=
"storageRange"
/>
</uni-forms-item>
</uni-forms>
</view>
...
...
@@ -78,7 +79,7 @@
return
{
...
item
,
value
:
item
.
ni002
,
text
:
item
.
ni00
3
,
text
:
item
.
ni00
2
,
}
})
})
...
...
pages/stockTransfer/components/card.vue
View file @
6df39096
...
...
@@ -16,11 +16,12 @@
:
placeholder
=
"$t('请输入调拨数')"
@
change
=
"handleChangeNum"
/>
<
/uni-forms-item>
<
uni
-
forms
-
item
:
label
=
"`${$t('调入仓库')
}
:`"
>
<
uni
-
data
-
select
v
-
model
=
"info.allocateWarehouse"
:
localdata
=
"warehouseRang
e"
@
change
=
"handleChange"
><
/uni-data-select
>
<
zxz
-
uni
-
data
-
select
filterable
v
-
model
=
"info.allocateWarehouse"
dataKey
=
"text"
dataValue
=
"valu
e"
:
localdata
=
"warehouseRange"
@
change
=
"handleChange"
/
>
<
/uni-forms-item>
<
uni
-
forms
-
item
:
label
=
"`${$t('调入储位')
}
:`"
>
<
uni
-
data
-
select
v
-
model
=
"info.allocateLocation"
:
localdata
=
"storageRange"
><
/uni-data-select>
<
zxz
-
uni
-
data
-
select
filterable
v
-
model
=
"info.allocateLocation"
dataKey
=
"text"
dataValue
=
"value"
:
localdata
=
"storageRange"
/>
<
/uni-forms-item>
<
/uni-forms>
<
/view>
...
...
@@ -33,10 +34,10 @@
info
:
{
type
:
Object
,
default
:
()
=>
{
}
}
,
i
:
{
type
:
Number
,
default
:
0
}
,
i
:
{
type
:
Number
,
default
:
0
}
}
,
data
()
{
...
...
@@ -46,9 +47,9 @@
}
}
,
created
()
{
this
.
getWarehouseList
();
if
(
this
.
info
.
allocateWarehouse
)
{
this
.
getStorageList
();
this
.
getWarehouseList
();
if
(
this
.
info
.
allocateWarehouse
)
{
this
.
getStorageList
();
}
}
,
methods
:
{
...
...
@@ -74,7 +75,7 @@
return
{
...
item
,
value
:
item
.
ni002
,
text
:
item
.
ni00
3
,
text
:
item
.
ni00
2
,
}
}
)
}
)
...
...
@@ -90,7 +91,7 @@
this
.
$u
.
toast
(
i18n
.
t
(
'调拨数不能大于库存数'
));
}
}
,
handleChange
()
{
handleChange
()
{
this
.
getStorageList
();
}
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment