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
70d98170
Commit
70d98170
authored
Jun 20, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重货线路
parent
bf7a33d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
edit.vue
src/views/ecw/customer/edit.vue
+23
-3
index.vue
src/views/ecw/customer/index.vue
+2
-2
No files found.
src/views/ecw/customer/edit.vue
View file @
70d98170
...
...
@@ -168,15 +168,26 @@
<el-table
v-show=
"showLine"
border
:data=
"
form.customerLines
"
:data=
"
warehouseList
"
style=
"width: 500px"
>
<el-table-column
prop=
"departureId"
label=
"始发地"
>
<template
v-slot=
"
{row}">
<el-checkbox>
{{
row
.
titleZh
}}
</el-checkbox>
</
template
>
</el-table-column>
<el-table-column
prop=
"objectiveId"
label=
"目的地"
>
<el-select
multiple
placeholder=
"请选择"
>
<el-option
v-for=
"item in importCityList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
>
</el-option>
</el-select>
</el-table-column>
</el-table>
</el-form-item>
...
...
@@ -360,6 +371,8 @@ import {createCustomer, getCustomer, updateCustomer} from '@/api/ecw/customer'
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductList
}
from
'
@/api/ecw/product
'
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
import
{
getWarehouseList
}
from
"
@/api/ecw/warehouse
"
export
default
{
name
:
"
edit
"
,
...
...
@@ -380,10 +393,15 @@ export default {
getProductTypeList
().
then
(
r
=>
{
this
.
productTypeList
=
r
.
data
})
getProductList
().
then
(
r
=>
{
this
.
productList
=
r
.
data
})
getTradeCityList
({
type
:
1
}).
then
(
r
=>
{
this
.
importCityList
=
r
.
data
.
filter
(
item
=>
item
.
type
===
'
1
'
)
})
getWarehouseList
().
then
(
r
=>
{
this
.
warehouseList
=
r
.
data
})
},
data
(){
return
{
...
...
@@ -408,7 +426,9 @@ export default {
nodeList
:
[],
productTypeList
:
[],
productList
:
[],
showLine
:
false
showLine
:
false
,
warehouseList
:
[],
importCityList
:
[]
}
},
methods
:
{
...
...
src/views/ecw/customer/index.vue
View file @
70d98170
...
...
@@ -91,7 +91,7 @@
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"handle
Query
(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"handle
View
(scope.row)"
v-hasPermi=
"['ecw:customer:query']"
>
查看
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:customer:update']"
>
修改
</el-button>
...
...
@@ -603,7 +603,7 @@ export default {
// this.title = "添加客户";
},
/** 查看按钮操作 */
handle
Query
(
row
)
{
handle
View
(
row
)
{
this
.
$router
.
push
(
'
/customer/query/
'
+
row
.
id
)
},
/** 修改按钮操作 */
...
...
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