Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
杨硕
template_vue
Commits
a38b0767
Commit
a38b0767
authored
May 21, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第三步
parent
d94b9b67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
25 deletions
+33
-25
outcomeWmsJbapplyTemp.js
src/api/outcomeWmsJbapplyTemp.js
+16
-0
outcomeWmsJbapplyTemp.vue
src/views/template/outcomeWmsJbapplyTemp.vue
+17
-25
No files found.
src/api/outcomeWmsJbapplyTemp.js
View file @
a38b0767
...
@@ -104,3 +104,19 @@ export function acquireOrderByCode() {
...
@@ -104,3 +104,19 @@ export function acquireOrderByCode() {
method
:
'get'
method
:
'get'
})
})
}
}
const
manufacturer
=
[
{
value
:
'1'
,
label
:
'baidu'
},
{
value
:
'2'
,
label
:
'ali'
},
{
value
:
'3'
,
label
:
'taobao'
}
]
export
default
manufacturer
src/views/template/outcomeWmsJbapplyTemp.vue
View file @
a38b0767
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"ptype"
prop=
"ptype"
>
<el-form-item
label=
"ptype"
prop=
"ptype"
>
<el-select
<el-select
v-model=
"queryParams.ptype"
v-model=
"queryParams.ptype"
...
@@ -118,7 +119,7 @@
...
@@ -118,7 +119,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"cj"
prop=
"cj"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"cj"
prop=
"cj"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
cj
||
'-'
}}
{{
getManufacturerLabel
(
scope
.
row
.
cj
)
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"ptype"
prop=
"ptype"
:show-overflow-tooltip=
"true"
>
...
@@ -134,7 +135,9 @@
...
@@ -134,7 +135,9 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"pn"
prop=
"pn"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -258,8 +261,8 @@
...
@@ -258,8 +261,8 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"code"
prop=
"orderCode"
>
<el-form-item
label=
"code"
prop=
"orderCode"
>
<el-input
<el-input
disabled
v-model
.
trim=
"form.orderCode"
v-model
.
trim=
"form.orderCode"
disabled
show-word-limit
show-word-limit
:maxlength=
"100"
:maxlength=
"100"
placeholder=
"请输入code"
placeholder=
"请输入code"
...
@@ -458,7 +461,7 @@
...
@@ -458,7 +461,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"cj:"
prop=
"cj"
>
<el-form-item
label=
"cj:"
prop=
"cj"
>
<span>
{{
singleDetails.cj
|| '-' }}
</span>
<span>
{{
getManufacturerLabel( singleDetails.cj)
|| '-' }}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -480,7 +483,7 @@ import {
...
@@ -480,7 +483,7 @@ import {
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
import
{
getDicts
}
from
'@/api/system/dict/data'
import
{
getDicts
}
from
'@/api/system/dict/data'
import
{
getToken
}
from
'@/utils/auth'
import
{
getToken
}
from
'@/utils/auth'
import
manufacturer
from
'@/api/outcomeWmsJbapplyTemp'
export
default
{
export
default
{
name
:
'OutcomeWmsJbapplyTemp'
,
name
:
'OutcomeWmsJbapplyTemp'
,
data
()
{
data
()
{
...
@@ -500,19 +503,7 @@ export default {
...
@@ -500,19 +503,7 @@ export default {
value
:
'2'
value
:
'2'
}
}
],
],
manufacturer
:
[{
manufacturer
:
{},
value
:
'1'
,
label
:
'baidu'
},
{
value
:
'2'
,
label
:
'ali'
},
{
value
:
'3'
,
label
:
'taobao'
}],
// 导入列表
// 导入列表
files
:
[],
files
:
[],
// 下载模板loading
// 下载模板loading
...
@@ -668,13 +659,17 @@ export default {
...
@@ -668,13 +659,17 @@ export default {
},
},
created
()
{
created
()
{
console
.
log
(
'manufacturer'
,
manufacturer
)
this
.
manufacturer
=
manufacturer
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
// 查询数据字典
this
.
getwareHouse
()
// 查询数据字典
// this.form.cj = this.manufacturer[0].value
// this.form.cj = this.manufacturer[0].value
},
},
mounted
()
{
this
.
form
.
cj
=
this
.
manufacturer
[
0
].
value
},
methods
:
{
methods
:
{
// 输入值发生变化时触发查询操作
// 输入值发生变化时触发查询操作
handleInputChange
()
{
handleInputChange
()
{
this
.
queryQty
()
this
.
queryQty
()
...
@@ -810,7 +805,7 @@ export default {
...
@@ -810,7 +805,7 @@ export default {
},
},
getManufacturerLabel
(
cj
)
{
getManufacturerLabel
(
cj
)
{
const
manufacturer
=
this
.
manufacturer
.
find
(
item
=>
item
.
value
===
cj
)
const
manufacturer
=
this
.
manufacturer
.
find
(
item
=>
item
.
value
===
cj
)
return
manufacturer
?
manufacturer
.
dictL
abel
:
null
return
manufacturer
?
manufacturer
.
l
abel
:
null
},
},
/** 查询数据字典*/
/** 查询数据字典*/
getwareHouse
()
{
getwareHouse
()
{
...
@@ -884,7 +879,7 @@ export default {
...
@@ -884,7 +879,7 @@ export default {
this
.
reset
()
this
.
reset
()
this
.
warehousedata
.
qty
=
''
this
.
warehousedata
.
qty
=
''
acquireOrderByCode
().
then
(
res
=>
{
acquireOrderByCode
().
then
(
res
=>
{
console
.
log
(
'单号'
,
res
)
console
.
log
(
'单号'
,
res
)
this
.
form
.
orderCode
=
res
.
data
this
.
form
.
orderCode
=
res
.
data
this
.
open
=
true
this
.
open
=
true
this
.
title
=
'添加检查申请'
this
.
title
=
'添加检查申请'
...
@@ -996,10 +991,7 @@ export default {
...
@@ -996,10 +991,7 @@ export default {
})
})
})
})
}
}
},
}
mounted
()
{
this
.
form
.
cj
=
this
.
manufacturer
[
0
].
value
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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