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
24852c90
Commit
24852c90
authored
Mar 20, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商1.6
parent
172c8b4f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1179 additions
and
21 deletions
+1179
-21
supplier.js
src/api/ecw/supplier.js
+27
-0
index.vue
src/components/SuppliersSelector/index.vue
+79
-0
detail.vue
src/views/ecw/supplier/detail.vue
+649
-0
edit.vue
src/views/ecw/supplier/edit.vue
+417
-21
index.vue
src/views/ecw/supplier/index.vue
+7
-0
No files found.
src/api/ecw/supplier.js
View file @
24852c90
...
@@ -26,6 +26,15 @@ export function deleteSupplier(id) {
...
@@ -26,6 +26,15 @@ export function deleteSupplier(id) {
})
})
}
}
// 获得供应商列表
export
function
getSupplierList
(
query
)
{
return
request
({
url
:
'
/ecw/supplier/list
'
,
method
:
'
get
'
,
params
:
query
})
}
// 获得供应商
// 获得供应商
export
function
getSupplier
(
id
)
{
export
function
getSupplier
(
id
)
{
return
request
({
return
request
({
...
@@ -52,3 +61,21 @@ export function exportSupplierExcel(query) {
...
@@ -52,3 +61,21 @@ export function exportSupplierExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
// 创建清关文件号码
export
function
createFileNo
(
data
)
{
return
request
({
url
:
'
/ecw/clearance-file-no/create
'
,
method
:
'
post
'
,
data
:
data
})
}
// 获得清关文件号码
export
function
getFileNoPage
(
query
)
{
return
request
({
url
:
'
/ecw/clearance-file-no/page
'
,
method
:
'
get
'
,
params
:
query
})
}
\ No newline at end of file
src/components/SuppliersSelector/index.vue
0 → 100644
View file @
24852c90
<
template
>
<el-select
v-model=
"valueSync"
multiple
filterable
clearable
remote
reserve-keyword
:disabled=
"disabled"
placeholder=
"请输入关键词"
@
focus=
"remoteMethod('')"
:remote-method=
"remoteMethod"
:loading=
"loading"
>
<el-option
v-for=
"(item) in list"
:key=
"item.id"
:label=
"$l(item, 'company') + '('+item.companyCode+')'"
:value=
"item.id"
>
</el-option>
</el-select>
</
template
>
<
script
>
import
{
getSupplierList
,
getSupplierPage
}
from
'
@/api/ecw/supplier
'
export
default
{
props
:{
companyType
:
[
String
,
Number
],
value
:
[
Array
],
disabled
:
{
type
:
Boolean
,
default
:
false
}
},
data
(){
return
{
valueSync
:
[],
list
:[],
loading
:
false
}
},
computed
:{
},
watch
:{
valueSync
(
val
){
this
.
$emit
(
'
input
'
,
val
)
},
value
(
val
){
this
.
valueSync
=
this
.
value
this
.
init
(
val
)
}
},
created
(){
this
.
valueSync
=
this
.
value
this
.
init
(
this
.
value
)
},
methods
:{
init
(
val
){
if
(
val
===
null
||
val
==
undefined
||
val
==
''
)
return
let
params
=
{
ids
:
val
.
toString
()
}
getSupplierList
(
params
).
then
(
res
=>
{
this
.
list
=
res
.
data
})
},
remoteMethod
(
keyword
){
let
params
=
{
pageSize
:
500
,
companyType
:
this
.
companyType
}
params
.
keyword
=
keyword
this
.
loading
=
true
getSupplierPage
(
params
)
.
then
(
res
=>
this
.
list
=
res
.
data
.
list
)
.
finally
(()
=>
this
.
loading
=
false
)
}
}
}
</
script
>
\ No newline at end of file
src/views/ecw/supplier/detail.vue
0 → 100644
View file @
24852c90
This diff is collapsed.
Click to expand it.
src/views/ecw/supplier/edit.vue
View file @
24852c90
This diff is collapsed.
Click to expand it.
src/views/ecw/supplier/index.vue
View file @
24852c90
...
@@ -66,6 +66,8 @@
...
@@ -66,6 +66,8 @@
</el-table-column>
</el-table-column>
<el-table-column
fixed=
"right"
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
fixed=
"right"
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleDetail(scope.row)"
v-hasPermi=
"['ecw:supplier:query']"
>
{{
$t
(
'
详情
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:supplier:update']"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
v-hasPermi=
"['ecw:supplier:update']"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
...
@@ -198,6 +200,11 @@ export default {
...
@@ -198,6 +200,11 @@ export default {
handleAdd
()
{
handleAdd
()
{
return
this
.
$router
.
push
(
'
/supplier/edit
'
)
return
this
.
$router
.
push
(
'
/supplier/edit
'
)
},
},
/** 详情按钮操作 */
handleDetail
(
row
)
{
return
this
.
$router
.
push
(
'
detail?id=
'
+
row
.
id
)
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
...
...
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