Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
logistics-center
Project
Project
Details
Activity
Releases
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
前端
logistics-center
Commits
c019aba0
Commit
c019aba0
authored
Jun 28, 2021
by
冯腾骁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物流公司渠道页面完善
parent
7b5f1c9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
20 deletions
+55
-20
companyChannels.vue
src/views/logisticsConfiguration/companyChannels.vue
+55
-20
No files found.
src/views/logisticsConfiguration/companyChannels.vue
View file @
c019aba0
...
...
@@ -8,9 +8,9 @@
<el-form
:inline=
"true"
:model=
"companyParams"
class=
"demo-form-inline"
>
<el-form-item
label=
"物流公司查询:"
>
<el-input
v-model=
"companyParams.companyName"
clearable
size=
"mini"
placeholder=
"输入物流公司名"
@
keyup
.
enter
.
native=
"
get
CompanyPage"
/>
@
keyup
.
enter
.
native=
"
search
CompanyPage"
/>
</el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"
get
CompanyPage"
class=
"mt7 mr15 r mb10"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"
search
CompanyPage"
class=
"mt7 mr15 r mb10"
>
查询
</el-button>
</el-form>
...
...
@@ -20,7 +20,7 @@
</el-button>
</div>
<el-table
ref=
"multipleTable"
:data=
"companyTableData"
class=
"pl15 mb47"
@
selection-change=
"
getChannelPage
"
:height=
"tableMaxHeight"
>
@
selection-change=
"
companySearchChannel
"
:height=
"tableMaxHeight"
>
<el-table-column
type=
"selection"
align=
"center"
/>
<el-table-column
prop=
"companyName"
label=
"公司名称"
/>
<el-table-column
prop=
"contacts"
label=
"联系人"
/>
...
...
@@ -52,9 +52,9 @@
<el-form
:inline=
"true"
:model=
"channelParams"
class=
"demo-form-inline"
>
<el-form-item
label=
"渠道查询:"
>
<el-input
v-model=
"channelParams.channelName"
clearable
size=
"mini"
placeholder=
"输入渠道名称"
@
keyup
.
enter
.
native=
"
get
ChannelPage"
/>
@
keyup
.
enter
.
native=
"
search
ChannelPage"
/>
</el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"
get
ChannelPage"
class=
"mt7 mr15 r mb10"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"
search
ChannelPage"
class=
"mt7 mr15 r mb10"
>
查询
</el-button>
</el-form>
...
...
@@ -78,14 +78,14 @@
<el-table-column
prop=
"maxWeight"
label=
"最大重量"
/>
<el-table-column
label=
"是否启用"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
isEnabled
?
'是'
:
'否'
}}
</div>
<div>
{{
scope
.
row
.
isEnabled
?
'是'
:
'否'
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"agentCode"
label=
"代理编码"
/>
<el-table-column
prop=
"warehouseCode"
label=
"分仓代码"
/>
<el-table-column
label=
"结账方式"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
isOnline
?
'线上'
:
'线下'
}}
</div>
<div>
{{
scope
.
row
.
isOnline
?
'线上'
:
'线下'
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
...
...
@@ -116,7 +116,7 @@
center
>
<el-row>
<el-form
label-position=
"right"
label-width=
"110px"
:model=
"insertChannelParams"
>
<el-form-item
prop=
"
account
"
label-width=
"100px"
:required=
"true"
>
<el-form-item
prop=
"
companyId
"
label-width=
"100px"
:required=
"true"
>
<span
slot=
"label"
>
物流公司:
</span>
<el-select
size=
"small"
v-model=
"insertChannelParams.companyId"
clearable
placeholder=
"请选择"
>
<el-option
...
...
@@ -205,7 +205,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
prop=
"
bizTag
"
label-width=
"100px"
:required=
"true"
>
<el-form-item
prop=
"
position
"
label-width=
"100px"
:required=
"true"
>
<span
slot=
"label"
>
货物类型:
</span>
<el-checkbox
v-model=
"checkAllBizTag"
...
...
@@ -213,7 +213,7 @@
>
全选
</el-checkbox>
<el-checkbox-group
v-model=
"insertChannelParams.
bizTag
"
v-model=
"insertChannelParams.
position
"
@
change=
"(val)=>{handleCheckedAgentChange(val)}"
>
<el-checkbox
...
...
@@ -281,10 +281,10 @@ export default {
maxWeight
:
''
,
agentCode
:
''
,
warehouseCode
:
''
,
labelExpired
:
''
,
labelExpired
:
0
,
labelSize
:
''
,
isEnabled
:
''
,
bizTag
:
[
1
],
position
:
[
1
],
isOnline
:
''
,
channelType
:
''
,
},
...
...
@@ -302,7 +302,7 @@ export default {
{
name
:
'液体'
,
id
:
3
},
{
name
:
'粉尘'
,
id
:
4
},
{
name
:
'口罩'
,
id
:
5
}],
companyList
:
[{
name
:
'请选择'
,
id
:
''
},
{
name
:
'燕文物流'
,
id
:
'yanwen'
},
{
name
:
'某物流'
,
id
:
'mouwuliu'
}
],
companyList
:
[{
name
:
'请选择'
,
id
:
''
},],
channelTypeList
:
[{
name
:
'请选择'
,
id
:
''
},
{
name
:
'境内'
,
id
:
'1'
},
{
name
:
'境外'
,
id
:
'0'
}],
isOnlineList
:
[{
name
:
'请选择'
,
id
:
''
},
{
name
:
'线下'
,
id
:
'0'
},
{
name
:
'线上'
,
id
:
'1'
}],
labelSizeList
:
[{
name
:
'请选择'
,
id
:
''
},
{
name
:
'10*10'
,
id
:
'Lbl10*10'
},
{
name
:
'10*15'
,
id
:
'Lbl10*15'
}],
...
...
@@ -313,6 +313,19 @@ export default {
}
},
methods
:
{
getCompanyList
()
{
this
.
axios
({
data
:
null
,
url
:
'logisticsConfig/logisticsCompany/getCompanyList'
,
method
:
'post'
}).
then
(
res
=>
{
if
(
res
.
success
)
{
res
.
module
.
forEach
(
x
=>
{
this
.
companyList
.
push
({
name
:
x
.
companyName
,
id
:
x
.
id
})
})
}
})
},
getCompanyPage
()
{
this
.
axios
({
data
:
this
.
companyParams
,
...
...
@@ -325,6 +338,23 @@ export default {
}
})
},
searchCompanyPage
()
{
this
.
companyParams
.
pageNo
=
1
;
this
.
getCompanyPage
();
},
searchChannelPage
()
{
this
.
channelParams
.
pageNo
=
1
;
this
.
getChannelPage
();
},
companySearchChannel
(
val
)
{
this
.
channelParams
.
companyIds
=
[];
if
(
val
.
length
>
0
)
{
val
.
forEach
(
x
=>
{
this
.
channelParams
.
companyIds
.
push
(
x
.
id
)
})
}
this
.
searchChannelPage
();
},
getChannelPage
()
{
this
.
axios
({
data
:
this
.
channelParams
,
...
...
@@ -345,6 +375,7 @@ export default {
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$message
(
"录入成功"
)
this
.
insertCompanyVisible
=
false
;
this
.
getCompanyPage
();
}
})
...
...
@@ -357,6 +388,7 @@ export default {
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$message
(
"录入成功"
)
this
.
insertChannelVisible
=
false
;
this
.
getChannelPage
();
}
})
...
...
@@ -395,7 +427,8 @@ export default {
}
})
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
});
},
removeChannel
(
item
)
{
this
.
$confirm
(
'确定删除该渠道?'
,
'删除'
,
{
...
...
@@ -419,7 +452,8 @@ export default {
}
})
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
});
},
openInsertCompany
()
{
this
.
insertCompanyVisible
=
true
;
...
...
@@ -428,7 +462,7 @@ export default {
this
.
insertChannelVisible
=
true
;
},
handleAllAgentChange
(
val
)
{
this
.
insertChannelParams
.
bizTag
=
val
?
this
.
bizTagList
.
map
(
x
=>
x
.
id
)
:
[];
this
.
insertChannelParams
.
position
=
val
?
this
.
bizTagList
.
map
(
x
=>
x
.
id
)
:
[];
},
handleCheckedAgentChange
(
value
)
{
let
checkedCount
=
value
.
length
;
...
...
@@ -462,8 +496,9 @@ export default {
that
.
tableMaxHeight
=
window
.
innerHeight
-
263
})();
};
this
.
getCompanyPage
();
this
.
getChannelPage
();
this
.
searchCompanyPage
();
this
.
searchChannelPage
();
this
.
getCompanyList
();
},
activated
()
{
this
.
tableMaxHeight
=
window
.
innerHeight
-
263
;
...
...
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