Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
5836cd18
Commit
5836cd18
authored
Oct 25, 2024
by
chenwei
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建提货点,启用状态提货点,未启用状态提货点逻辑更改
parent
60d54519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
operatingGift.vue
src/views/ecw/giftManagement/components/operatingGift.vue
+17
-9
No files found.
src/views/ecw/giftManagement/components/operatingGift.vue
View file @
5836cd18
...
@@ -25,14 +25,15 @@
...
@@ -25,14 +25,15 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"10"
v-for=
"(item, index) in queryParams.nodeIds"
>
<el-row
:gutter=
"10"
v-for=
"(item, index) in queryParams.nodeIds"
:key=
"item.id"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
v-if=
"title == 3"
:label=
"$t('提货点')"
:prop=
"`nodeIds[$
{index}].wareHouses`" :rules="rules.nodeIds.wareHouses">
<el-form-item
v-if=
"title == 3"
:label=
"$t('提货点')"
:prop=
"`nodeIds[$
{index}].wareHouses`" :rules="rules.nodeIds.wareHouses">
<el-select
v-model=
"item.wareHouses"
:placeholder=
"$t('请选择提货点')"
:disabled=
"isDisable"
clearable
multiple
filterable
remote
reserve-keyword
:remote-method=
"handleWarehouseList"
@
visible-change=
"changeWarehouseList"
:loading=
"loading"
size=
"small"
>
<el-select
v-model=
"item.wareHouses"
:placeholder=
"$t('请选择提货点')"
:disabled=
"isDisable"
clearable
multiple
filterable
remote
reserve-keyword
:remote-method=
"handleWarehouseList"
@
visible-change=
"changeWarehouseList"
:loading=
"loading"
size=
"small"
>
<el-option
v-for=
"nodeItem in warehouseList"
:key=
"nodeItem.id"
:label=
"isChinese ? nodeItem.titleZh : nodeItem.titleEn"
:value=
"nodeItem.id"
/>
<el-option
v-for=
"nodeItem in warehouseList"
:key=
"nodeItem.id"
:label=
"isChinese ? nodeItem.titleZh : nodeItem.titleEn"
:value=
"nodeItem.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
v-else
:label=
"$t('提货点')"
:prop=
"`nodeIds[$
{index}].wareHouses`" :rules="rules.nodeIds.wareHouses">
<!-- 编辑对应单个提货点 逻辑显示-->
<el-form-item
v-else
:label=
"$t('提货点')"
:prop=
"`nodeId`"
>
<el-select
v-model=
"queryParams.nodeId"
:placeholder=
"$t('请选择提货点')"
:disabled=
"isDisable"
clearable
filterable
remote
reserve-keyword
:remote-method=
"handleWarehouseList"
@
visible-change=
"changeWarehouseList"
:loading=
"loading"
size=
"small"
>
<el-select
v-model=
"queryParams.nodeId"
:placeholder=
"$t('请选择提货点')"
:disabled=
"isDisable"
clearable
filterable
remote
reserve-keyword
:remote-method=
"handleWarehouseList"
@
visible-change=
"changeWarehouseList"
:loading=
"loading"
size=
"small"
>
<el-option
v-for=
"nodeItem in warehouseList"
:key=
"nodeItem.id"
:label=
"isChinese ? nodeItem.titleZh : nodeItem.titleEn"
:value=
"nodeItem.id"
/>
<el-option
v-for=
"nodeItem in warehouseList"
:key=
"nodeItem.id"
:label=
"isChinese ? nodeItem.titleZh : nodeItem.titleEn"
:value=
"nodeItem.id"
/>
</el-select>
</el-select>
...
@@ -190,7 +191,7 @@ export default {
...
@@ -190,7 +191,7 @@ export default {
endTime
:
null
,
endTime
:
null
,
imgEn
:
null
,
imgEn
:
null
,
imgZh
:
null
,
imgZh
:
null
,
nodeIds
:
[{
wareHouses
:
""
,
points
:
""
,
quantityRemain
:
null
}],
nodeIds
:
[{
wareHouses
:
""
,
points
:
""
,
quantityRemain
:
null
,
id
:
0
}],
nodeId
:
null
,
nodeId
:
null
,
pickMethod
:
null
,
pickMethod
:
null
,
pointsRequire
:
null
,
pointsRequire
:
null
,
...
@@ -233,6 +234,13 @@ export default {
...
@@ -233,6 +234,13 @@ export default {
trigger
:
"
blur
"
trigger
:
"
blur
"
}
}
],
],
nodeId
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
请选择提货点
"
),
trigger
:
"
change
"
}
],
nodeIds
:
{
nodeIds
:
{
wareHouses
:
[
wareHouses
:
[
{
{
...
@@ -303,9 +311,7 @@ export default {
...
@@ -303,9 +311,7 @@ export default {
this
.
handleWarehouseList
()
this
.
handleWarehouseList
()
},
},
methods
:
{
methods
:
{
dataTimeFunc
(
e
)
{
dataTimeFunc
(
e
)
{},
console
.
log
(
"
5555
"
,
e
)
},
changeWarehouseList
(
e
)
{
changeWarehouseList
(
e
)
{
if
(
e
)
{
if
(
e
)
{
this
.
handleWarehouseList
()
this
.
handleWarehouseList
()
...
@@ -319,7 +325,7 @@ export default {
...
@@ -319,7 +325,7 @@ export default {
},
},
handleOrderVRule
(
item
,
index
)
{
handleOrderVRule
(
item
,
index
)
{
if
(
index
==
"
0
"
)
{
if
(
index
==
"
0
"
)
{
this
.
queryParams
.
nodeIds
.
push
({
nodeId
:
""
,
points
:
""
})
this
.
queryParams
.
nodeIds
.
push
({
wareHouses
:
null
,
nodeId
:
""
,
points
:
""
,
id
:
index
+
1
})
}
else
{
}
else
{
this
.
queryParams
.
nodeIds
.
splice
(
index
,
1
)
this
.
queryParams
.
nodeIds
.
splice
(
index
,
1
)
}
}
...
@@ -329,7 +335,9 @@ export default {
...
@@ -329,7 +335,9 @@ export default {
params
.
startTime
=
this
.
queryParams
?.
dateRangeCreateTime
?.[
0
]
params
.
startTime
=
this
.
queryParams
?.
dateRangeCreateTime
?.[
0
]
params
.
endTime
=
this
.
queryParams
?.
dateRangeCreateTime
?.[
1
]
params
.
endTime
=
this
.
queryParams
?.
dateRangeCreateTime
?.[
1
]
params
.
pickMethod
=
this
.
queryParams
.
pickMethod
.
toString
()
params
.
pickMethod
=
this
.
queryParams
.
pickMethod
.
toString
()
params
.
nodeIds
[
0
].
wareHouses
[
0
]
=
params
.
nodeId
if
(
this
.
title
!=
3
)
{
params
.
nodeIds
[
0
].
wareHouses
[
0
]
=
params
.
nodeId
}
this
.
$refs
[
"
queryForm
"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"
queryForm
"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
title
==
"
2
"
)
{
if
(
this
.
title
==
"
2
"
)
{
...
@@ -360,7 +368,7 @@ export default {
...
@@ -360,7 +368,7 @@ export default {
this
.
queryParams
=
{
this
.
queryParams
=
{
allowCount
:
null
,
allowCount
:
null
,
endTime
:
null
,
endTime
:
null
,
nodeIds
:
[{
wareHouses
:
""
,
points
:
""
,
quantityRemain
:
null
}],
nodeIds
:
[{
wareHouses
:
""
,
points
:
""
,
quantityRemain
:
null
,
id
:
0
}],
imgEn
:
null
,
imgEn
:
null
,
imgZh
:
null
,
imgZh
:
null
,
nodeId
:
null
,
nodeId
:
null
,
...
...
chenwei
@chenwei
mentioned in commit
c39a150c
·
Oct 25, 2024
mentioned in commit
c39a150c
mentioned in commit c39a150cdfc727c5608fd1b5cc581f5175e5c2ff
Toggle commit list
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