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
76a8a0b3
Commit
76a8a0b3
authored
May 21, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第三步
parent
4ed171f3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
19 deletions
+119
-19
outcomeWmsApply.js
src/api/outcomeWmsApply.js
+1
-0
cjlist.js
src/data/cjlist.js
+15
-0
enterboundTwo.vue
src/views/template/enterboundTwo.vue
+57
-14
incomeWmsBox.vue
src/views/template/incomeWmsBox.vue
+27
-0
outcomeWmsJbapplyTemp.vue
src/views/template/outcomeWmsJbapplyTemp.vue
+19
-5
No files found.
src/api/outcomeWmsApply.js
View file @
76a8a0b3
...
@@ -76,3 +76,4 @@ export function sureStatus(data) {
...
@@ -76,3 +76,4 @@ export function sureStatus(data) {
})
})
}
}
src/data/cjlist.js
0 → 100644
View file @
76a8a0b3
const
manufacturer
=
[
{
value
:
'1'
,
label
:
'baidu'
},
{
value
:
'2'
,
label
:
'ali'
},
{
value
:
'3'
,
label
:
'taobao'
}
]
export
default
manufacturer
src/views/template/enterboundTwo.vue
View file @
76a8a0b3
...
@@ -50,13 +50,15 @@
...
@@ -50,13 +50,15 @@
:icon=
"commonField.queryIcon"
:icon=
"commonField.queryIcon"
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"handleQuery"
@
click=
"handleQuery"
>
查询
</el-button>
>
查询
</el-button>
<el-button
<el-button
:class=
"commonField.resetClass"
:class=
"commonField.resetClass"
:icon=
"commonField.resetIcon"
:icon=
"commonField.resetIcon"
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
@
click=
"resetQuery"
>
重置
</el-button>
>
重置
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
...
@@ -73,7 +75,8 @@
...
@@ -73,7 +75,8 @@
:icon=
"commonField.exportIcon"
:icon=
"commonField.exportIcon"
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"handleExport"
@
click=
"handleExport"
>
导出
</el-button>
>
导出
</el-button>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -88,6 +91,12 @@
...
@@ -88,6 +91,12 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"cj"
prop=
"cj"
:show-overflow-tooltip=
"true"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.cj "
>
{{
getManufacturerLabel
(
scope
.
row
.
cj
)
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"code"
prop=
"orderCode"
:show-overflow-tooltip=
"true"
min-width=
"150"
>
<el-table-column
label=
"code"
prop=
"orderCode"
:show-overflow-tooltip=
"true"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderCode
||
'-'
}}
{{
scope
.
row
.
orderCode
||
'-'
}}
...
@@ -175,12 +184,21 @@
...
@@ -175,12 +184,21 @@
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
<!--详情-->
<!--详情-->
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"700px"
append-to-body
:close-on-click-modal=
"false"
>
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"700px"
append-to-body
:close-on-click-modal=
"false"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"仓库:"
prop=
"whId"
>
<el-form-item
label=
"仓库:"
prop=
"whId"
>
<span
v-if=
"singleDetails.whId && getDataDictLabel(singleDetails.whId)"
>
{{ getDataDictLabel(singleDetails.whId) }}
</span>
<span
v-if=
"singleDetails.whId && getDataDictLabel(singleDetails.whId)"
>
{{
getDataDictLabel(singleDetails.whId)
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
<!-- <el-input v-model.trim="singleDetails.whId" :readonly="true" />-->
<!-- <el-input v-model.trim="singleDetails.whId" :readonly="true" />-->
</el-form-item>
</el-form-item>
...
@@ -214,10 +232,15 @@
...
@@ -214,10 +232,15 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"rank:"
prop=
"rank"
>
<el-form-item
label=
"rank:"
prop=
"rank"
>
<span>
{{
singleDetails.rank || '-'
}}
</span>
<span>
{{
singleDetails.rank || '-'
}}
</span>
<!-- <el-input v-model.trim="singleDetails.ioType" :readonly="true" />-->
<!-- <el-input v-model.trim="singleDetails.ioType" :readonly="true" />-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"cj:"
prop=
"cj"
>
<span>
{{ getManufacturerLabel(singleDetails.cj) || '-' }}
</span>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -279,20 +302,25 @@
...
@@ -279,20 +302,25 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
manufacturer
from
'@/data/cjlist'
import
{
import
{
delOutcomeWmsApply
,
delOutcomeWmsApply
,
addOutcomeWmsApply
,
addOutcomeWmsApply
,
updateOutcomeWmsApply
,
updateOutcomeWmsApply
,
exportOutcomeWmsApply
}
from
'@/api/outcomeWmsApply'
exportOutcomeWmsApply
}
from
'@/api/outcomeWmsApply'
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
{
exportIncomeInoutWmsLog
,
getIncomeInoutWmsLog
,
listIncomeInoutWmsLog
}
from
'@/api/incomeInoutWmsLog'
import
{
exportIncomeInoutWmsLog
,
getIncomeInoutWmsLog
,
listIncomeInoutWmsLog
}
from
'@/api/incomeInoutWmsLog'
// import manufacturer from "@/api/outcomeWmsJbapplyTemp";
export
default
{
export
default
{
name
:
'EnterboundTwo'
,
name
:
'EnterboundTwo'
,
data
()
{
data
()
{
...
@@ -301,6 +329,8 @@ export default {
...
@@ -301,6 +329,8 @@ export default {
loading
:
true
,
loading
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
manufacturer
:
{},
// 入库记录表格数据
// 入库记录表格数据
incomeInoutWmsLogList
:
[],
incomeInoutWmsLogList
:
[],
warehouseList
:
[],
warehouseList
:
[],
...
@@ -308,6 +338,7 @@ export default {
...
@@ -308,6 +338,7 @@ export default {
apply_create_date
:
''
,
apply_create_date
:
''
,
income_create_date
:
''
,
income_create_date
:
''
,
whId
:
''
,
whId
:
''
,
cj
:
''
,
affirmName
:
''
,
affirmName
:
''
,
orderCode
:
''
,
orderCode
:
''
,
ptype
:
''
,
ptype
:
''
,
...
@@ -324,6 +355,7 @@ export default {
...
@@ -324,6 +355,7 @@ export default {
affirmBy
:
''
,
affirmBy
:
''
,
affirmDate
:
''
affirmDate
:
''
},
},
// 是否显示弹出层(数据详情)
// 是否显示弹出层(数据详情)
openDetails
:
false
,
openDetails
:
false
,
// 弹出层标题
// 弹出层标题
...
@@ -422,6 +454,7 @@ export default {
...
@@ -422,6 +454,7 @@ export default {
],
],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
cj
:
'1'
,
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
pn
:
null
,
pn
:
null
,
...
@@ -434,6 +467,7 @@ export default {
...
@@ -434,6 +467,7 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{
form
:
{
cj
:
''
,
whId
:
''
,
whId
:
''
,
pn
:
null
,
pn
:
null
,
qty
:
null
,
qty
:
null
,
...
@@ -442,8 +476,7 @@ export default {
...
@@ -442,8 +476,7 @@ export default {
ptype
:
'2'
ptype
:
'2'
},
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{}
}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -462,11 +495,15 @@ export default {
...
@@ -462,11 +495,15 @@ export default {
next
()
next
()
},
},
created
()
{
created
()
{
console
.
log
(
'manufacturer'
,
manufacturer
)
this
.
manufacturer
=
manufacturer
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
{
searchParams
}
=
this
.
$store
.
getters
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
this
.
queryParams
=
{
...
param
}
}
}
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
this
.
getwareHouse
()
},
},
...
@@ -476,6 +513,10 @@ export default {
...
@@ -476,6 +513,10 @@ export default {
const
dictItem
=
this
.
warehouseList
.
find
(
item
=>
item
.
dictValue
===
whId
)
const
dictItem
=
this
.
warehouseList
.
find
(
item
=>
item
.
dictValue
===
whId
)
return
dictItem
?
dictItem
.
dictLabel
:
null
return
dictItem
?
dictItem
.
dictLabel
:
null
},
},
getManufacturerLabel
(
cj
)
{
const
manufacturer
=
this
.
manufacturer
.
find
(
item
=>
item
.
value
===
cj
)
return
manufacturer
?
manufacturer
.
label
:
null
},
/** 查询????列表 */
/** 查询????列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
...
@@ -503,6 +544,7 @@ export default {
...
@@ -503,6 +544,7 @@ export default {
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
cj
:
'1'
,
businessId
:
undefined
,
businessId
:
undefined
,
remarks
:
undefined
,
remarks
:
undefined
,
pn
:
undefined
,
pn
:
undefined
,
...
@@ -530,6 +572,7 @@ export default {
...
@@ -530,6 +572,7 @@ export default {
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
queryParams
=
{
this
.
queryParams
=
{
cj
:
'1'
,
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
pn
:
undefined
,
pn
:
undefined
,
...
@@ -610,14 +653,14 @@ export default {
...
@@ -610,14 +653,14 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.app-container
{
.app-container
{
font-size
:
18px
;
font-size
:
18px
;
padding
:
0
;
padding
:
0
;
.placeholder
{
.placeholder
{
height
:
1
.3vh
;
height
:
1
.3vh
;
background-color
:
#F4F4F4
;
background-color
:
#F4F4F4
;
margin-bottom
:
10px
margin-bottom
:
10px
}
}
}
}
</
style
>
</
style
>
src/views/template/incomeWmsBox.vue
View file @
76a8a0b3
...
@@ -11,6 +11,20 @@
...
@@ -11,6 +11,20 @@
style=
"width: 150px"
style=
"width: 150px"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"cj"
prop=
"cj"
>
<el-select
v-model=
"queryParams.cj"
class=
"normalSelect"
placeholder=
"请选择厂家"
>
<el-option
v-for=
"item in manufacturer"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</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"
...
@@ -95,6 +109,11 @@
...
@@ -95,6 +109,11 @@
{{
scope
.
row
.
orderCode
||
'-'
}}
{{
scope
.
row
.
orderCode
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"cj"
prop=
"cj"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
getManufacturerLabel
(
scope
.
row
.
cj
)
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
:show-overflow-tooltip=
"true"
width=
"100"
>
<el-table-column
label=
"ptype"
prop=
"ptype"
:show-overflow-tooltip=
"true"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.ptype === '1'"
>
jb
</span>
<span
v-if=
"scope.row.ptype === '1'"
>
jb
</span>
...
@@ -207,6 +226,7 @@ import {
...
@@ -207,6 +226,7 @@ import {
updateIncomeWmsBox
,
updateIncomeWmsBox
,
exportIncomeWmsBox
}
from
'@/api/incomeWmsBox'
exportIncomeWmsBox
}
from
'@/api/incomeWmsBox'
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
import
manufacturer
from
'@/data/cjlist'
export
default
{
export
default
{
name
:
'IncomeWmsBox'
,
name
:
'IncomeWmsBox'
,
data
()
{
data
()
{
...
@@ -215,6 +235,7 @@ export default {
...
@@ -215,6 +235,7 @@ export default {
loading
:
true
,
loading
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
manufacturer
:
{},
// 库存管理表格数据
// 库存管理表格数据
incomeWmsBoxList
:
[],
incomeWmsBoxList
:
[],
// 弹出层标题
// 弹出层标题
...
@@ -294,6 +315,8 @@ export default {
...
@@ -294,6 +315,8 @@ export default {
next
()
next
()
},
},
created
()
{
created
()
{
console
.
log
(
'manufacturer'
,
manufacturer
)
this
.
manufacturer
=
manufacturer
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
...
@@ -302,6 +325,10 @@ export default {
...
@@ -302,6 +325,10 @@ export default {
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
},
},
methods
:
{
methods
:
{
getManufacturerLabel
(
cj
)
{
const
manufacturer
=
this
.
manufacturer
.
find
(
item
=>
item
.
value
===
cj
)
return
manufacturer
?
manufacturer
.
label
:
null
},
/** 查询库存管理列表 */
/** 查询库存管理列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
...
...
src/views/template/outcomeWmsJbapplyTemp.vue
View file @
76a8a0b3
...
@@ -18,6 +18,20 @@
...
@@ -18,6 +18,20 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"cj"
prop=
"cj"
>
<el-select
v-model=
"queryParams.cj"
class=
"normalSelect"
placeholder=
"请选择厂家"
>
<el-option
v-for=
"item in manufacturer"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</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"
...
@@ -117,11 +131,6 @@
...
@@ -117,11 +131,6 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"cj"
prop=
"cj"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
getManufacturerLabel
(
scope
.
row
.
cj
)
||
'-'
}}
</
template
>
</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"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.ptype=== '1'"
>
jb
</span>
<span
v-if=
"scope.row.ptype=== '1'"
>
jb
</span>
...
@@ -129,6 +138,11 @@
...
@@ -129,6 +138,11 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"cj"
prop=
"cj"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
getManufacturerLabel
(
scope
.
row
.
cj
)
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"code"
prop=
"orderCode"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"code"
prop=
"orderCode"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderCode
||
'-'
}}
{{
scope
.
row
.
orderCode
||
'-'
}}
...
...
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