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
f1657038
Commit
f1657038
authored
Sep 25, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏归属仓库字段
parent
4b1448e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
edit.vue
src/views/ecw/channel/edit.vue
+17
-17
No files found.
src/views/ecw/channel/edit.vue
View file @
f1657038
...
...
@@ -49,19 +49,19 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('归属仓库')"
prop=
"warehouseIds"
>
<!--
<el-select
v-model=
"form.wareHouseIds"
>
<el-option
v-for=
"item in warehouseList"
:value=
"item.id"
:label=
"item.nameZh"
/
>
</el-select>
-->
<el-checkbox-group
v-model=
"warehouseIdsArr"
>
<!--label需要是字符串,因为回显时分解后为字符串格式
-->
<el-checkbox
v-for=
"item in warehouseList"
:label=
"`$
{item.id}`" :key="item.id" >
{{
item
.
titleZh
}}
</el-checkbox
>
</el-checkbox-group
>
<!--
<el-input
v-model=
"form.warehouseIds"
placeholder=
"请输入归属仓库Ids"
/>
-->
</el-form-item
>
<!--
<el-form-item
:label=
"$t('归属仓库')"
prop=
"warehouseIds"
>
--
>
<!-- <!–
<el-select
v-model=
"form.wareHouseIds"
>
--
>
<!--
<el-option
v-for=
"item in warehouseList"
:value=
"item.id"
:label=
"item.nameZh"
/>
--
>
<!--
</el-select>
–>
-->
<!--
<el-checkbox-group
v-model=
"warehouseIdsArr"
>
--
>
<!-- <!–label需要是字符串,因为回显时分解后为字符串格式–>
-->
<!--
<el-checkbox
v-for=
"item in warehouseList"
:label=
"`$
{item.id}`" :key="item.id" >
{{
item
.
titleZh
}}
</el-checkbox>
--
>
<!--
</el-checkbox-group>
--
>
<!-- <!–
<el-input-->
<!-- v-model="form.warehouseIds"-->
<!-- placeholder="请输入归属仓库Ids"-->
<!-- /> –>
-->
<!--
</el-form-item>
--
>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('排序')"
prop=
"sort"
>
...
...
@@ -259,9 +259,9 @@ export default {
this
.
form
.
channelPackagingList
.
forEach
(
item
=>
{
item
.
packagingTypes
=
item
.
packagingTypes
&&
item
.
packagingTypes
.
length
!==
0
?
item
.
packagingTypes
.
split
(
'
,
'
)
:
[]
})
if
(
this
.
form
.
warehouseIds
.
length
){
this
.
warehouseIdsArr
=
this
.
form
.
warehouseIds
.
split
(
'
,
'
)?.
filter
(
item
=>
!!
item
)
}
//
if(this.form.warehouseIds.length){
//
this.warehouseIdsArr = this.form.warehouseIds.split(',')?.filter(item => !!item)
//
}
if
(
this
.
form
.
bubbleWeightRatio
){
this
.
form
.
bubbleWeightRatio
=
this
.
form
.
bubbleWeightRatio
*
100
}
...
...
@@ -372,7 +372,7 @@ export default {
}
})
if
(
derail
)
return
;
this
.
form
.
warehouseIds
=
this
.
warehouseIdsArr
.
join
(
'
,
'
)
//
this.form.warehouseIds = this.warehouseIdsArr.join(',')
let
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
let
attrId
=
this
.
form
.
attrId
attrId
=
attrId
.
join
(
'
,
'
)
...
...
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