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
34cca976
Commit
34cca976
authored
Jul 08, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
545536fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
29 deletions
+33
-29
outcomeWmsApply.js
src/api/outcomeWmsApply.js
+9
-9
incomeWmsBox.vue
src/views/template/incomeWmsBox.vue
+14
-5
outcomeWmsApply.vue
src/views/template/outcomeWmsApply.vue
+10
-15
No files found.
src/api/outcomeWmsApply.js
View file @
34cca976
...
@@ -30,16 +30,16 @@ export function getOutcomeWmsApply(businessId) {
...
@@ -30,16 +30,16 @@ export function getOutcomeWmsApply(businessId) {
}
}
// 3. 新增????
// 3. 新增????
// export function addOutcomeWmsApply(data) {
// data = Qs.stringify(data)
// return request({
// url: '/outcomewmsapply/addList',
// method: 'post',
// data: data
// })
// }
export
function
addOutcomeWmsApply
(
data
)
{
export
function
addOutcomeWmsApply
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/outcomewmsapply/add'
,
method
:
'post'
,
data
:
data
})
}
export
function
addOutcomeWmsApplyPtype
(
data
)
{
return
request
({
return
request
({
url
:
'/outcomewmsapply/addList'
,
url
:
'/outcomewmsapply/addList'
,
method
:
'post'
,
method
:
'post'
,
...
...
src/views/template/incomeWmsBox.vue
View file @
34cca976
...
@@ -242,11 +242,7 @@
...
@@ -242,11 +242,7 @@
<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 === '001'"
>
仓库1
</span>
<span
v-if=
"singleDetails.whId && getDataDictLabel(singleDetails.whId)"
>
{{ getDataDictLabel(singleDetails.whId) }}
</span>
<span
v-else-if=
"singleDetails.whId === '002'"
>
仓库2
</span>
<span
v-else-if=
"singleDetails.whId === '002'"
>
仓库3
</span>
<span
v-else-if=
"singleDetails.whId === '002'"
>
仓库4
</span>
<span
v-else-if=
"singleDetails.whId === '002'"
>
仓库5
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -347,6 +343,7 @@ import {
...
@@ -347,6 +343,7 @@ import {
}
from
'@/api/incomeWmsBox'
}
from
'@/api/incomeWmsBox'
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
import
manufacturer
from
'@/data/cjlist'
import
manufacturer
from
'@/data/cjlist'
import
{
getDicts
}
from
'@/api/system/dict/data'
export
default
{
export
default
{
name
:
'IncomeWmsBox'
,
name
:
'IncomeWmsBox'
,
...
@@ -479,12 +476,24 @@ export default {
...
@@ -479,12 +476,24 @@ export default {
this
.
queryParams
=
{
...
param
}
this
.
queryParams
=
{
...
param
}
}
}
this
.
getList
()
// 列表查询
this
.
getList
()
// 列表查询
this
.
getwareHouse
()
},
},
methods
:
{
methods
:
{
getwareHouse
()
{
getDicts
(
'WAREHOUSE'
).
then
(
res
=>
{
this
.
warehouseList
=
res
.
data
const
whId
=
res
.
data
[
0
].
dictValue
this
.
form
.
whId
=
whId
})
},
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
.
label
:
null
return
manufacturer
?
manufacturer
.
label
:
null
},
},
getDataDictLabel
(
whId
)
{
const
dictItem
=
this
.
warehouseList
.
find
(
item
=>
item
.
dictValue
===
whId
)
return
dictItem
?
dictItem
.
dictLabel
:
null
},
/** 查询库存管理列表 */
/** 查询库存管理列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
...
...
src/views/template/outcomeWmsApply.vue
View file @
34cca976
...
@@ -395,7 +395,7 @@
...
@@ -395,7 +395,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
v-if=
"isShow"
v-loading=
"loading"
border
:data=
"
t
empList"
>
<el-table
v-if=
"isShow"
v-loading=
"loading"
border
:data=
"
outT
empList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"location"
prop=
"location"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"location"
prop=
"location"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -412,13 +412,6 @@
...
@@ -412,13 +412,6 @@
{{
scope
.
row
.
qty
||
'-'
}}
{{
scope
.
row
.
qty
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column label="创建时间" prop="createDate" :show-overflow-tooltip="true">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table></el-form>
</el-table></el-form>
</el-dialog>
</el-dialog>
...
@@ -431,7 +424,7 @@ import {
...
@@ -431,7 +424,7 @@ import {
getOutcomeWmsApply
,
getOutcomeWmsApply
,
delOutcomeWmsApply
,
delOutcomeWmsApply
,
addOutcomeWmsApply
,
addOutcomeWmsApply
,
updateOutcomeWmsApply
,
exportOutcomeWmsApply
updateOutcomeWmsApply
,
exportOutcomeWmsApply
,
addOutcomeWmsApplyPtype
}
from
'@/api/outcomeWmsApply'
}
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'
...
@@ -449,7 +442,7 @@ export default {
...
@@ -449,7 +442,7 @@ export default {
manufacturer
:
[],
manufacturer
:
[],
dateRange
:
[],
dateRange
:
[],
isShow
:
false
,
isShow
:
false
,
t
empList
:
[],
outT
empList
:
[],
location
:
''
,
location
:
''
,
lot
:
''
,
lot
:
''
,
// 弹出层标题
// 弹出层标题
...
@@ -683,6 +676,8 @@ export default {
...
@@ -683,6 +676,8 @@ export default {
},
},
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
isShow
=
false
this
.
outTempList
=
[]
this
.
form
=
{
this
.
form
=
{
businessId
:
undefined
,
businessId
:
undefined
,
remarks
:
undefined
,
remarks
:
undefined
,
...
@@ -931,7 +926,7 @@ export default {
...
@@ -931,7 +926,7 @@ export default {
boxList
:
itemQty
boxList
:
itemQty
}
}
console
.
log
(
'this.boxList:'
,
obj
)
console
.
log
(
'this.boxList:'
,
obj
)
addOutcomeWmsApply
(
obj
).
then
(
response
=>
{
addOutcomeWmsApply
Ptype
(
obj
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
open
=
false
this
.
openGain
=
false
this
.
openGain
=
false
...
@@ -979,7 +974,7 @@ export default {
...
@@ -979,7 +974,7 @@ export default {
const
downloadElement
=
document
.
createElement
(
'a'
)
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
href
=
href
downloadElement
.
download
=
'
领用
申请信息'
+
'.xls'
// 下载后文件名
downloadElement
.
download
=
'申请信息'
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
...
@@ -993,15 +988,15 @@ export default {
...
@@ -993,15 +988,15 @@ export default {
const
id
=
row
.
businessId
const
id
=
row
.
businessId
getOutcomeWmsApply
(
id
).
then
(
response
=>
{
getOutcomeWmsApply
(
id
).
then
(
response
=>
{
if
(
response
.
data
.
length
>
0
)
{
if
(
response
.
data
.
length
>
0
)
{
this
.
t
empList
=
response
.
data
this
.
outT
empList
=
response
.
data
this
.
isShow
=
true
this
.
isShow
=
true
}
}
})
})
this
.
singleDetails
=
row
this
.
singleDetails
=
row
console
.
log
(
row
)
console
.
log
(
'row'
,
row
)
this
.
title
=
'详情信息'
this
.
title
=
'详情信息'
this
.
openDetails
=
!
this
.
openDetails
this
.
openDetails
=
!
this
.
openDetails
this
.
isShow
=
false
this
.
isShow
=
!
this
.
isShow
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