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
89576c5b
Commit
89576c5b
authored
Oct 23, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改出库,再利用逻辑
parent
8475e486
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
465 additions
and
431 deletions
+465
-431
outbound.js
src/api/outbound.js
+10
-10
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+9
-1
index.vue
src/views/processManagement/deviceReuse/index.vue
+35
-8
index.vue
src/views/processManagement/equipmentOut/index.vue
+411
-412
No files found.
src/api/outbound.js
View file @
89576c5b
...
@@ -36,13 +36,13 @@ export function add(data) {
...
@@ -36,13 +36,13 @@ export function add(data) {
}
}
// 出库操作接口
// 出库操作接口
export
function
performOutbound
(
params
)
{
export
function
performOutbound
(
params
)
{
return
request
({
return
request
({
url
:
'/wbwarehouse/Outbound'
,
url
:
'/wbwarehouse/Outbound'
,
method
:
'post'
,
method
:
'post'
,
params
,
params
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
,
'Content-Type'
:
'application/json;charset=UTF-8'
},
}
});
})
}
}
src/api/processMangement/InventoryRecord.js
View file @
89576c5b
...
@@ -35,10 +35,18 @@ export function exportInventoryRecord(params) {
...
@@ -35,10 +35,18 @@ export function exportInventoryRecord(params) {
})
})
}
}
// 测试导出数据
// 测试导出数据
export
function
exportTest
(){
export
function
exportTest
()
{
return
request
({
return
request
({
url
:
'/wbapply/exportTest'
,
url
:
'/wbapply/exportTest'
,
method
:
'get'
,
method
:
'get'
,
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
// WbWarehouseByLot
export
function
getWbWarehouseByLot
(
params
)
{
return
request
({
url
:
'/wbwarehouse/selectWbWarehouseByLot'
,
method
:
'get'
,
params
})
}
src/views/processManagement/deviceReuse/index.vue
View file @
89576c5b
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<!-- 表单区域-->
<!-- 表单区域-->
<el-form
ref=
"form"
:model=
"form"
:rules=
"rule"
label-width=
"80px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rule"
label-width=
"80px"
:inline=
"true"
>
<!-- 标题-->
<!-- 标题-->
<div
class=
"info"
><span
class=
"title"
>
再利用
</span></div>
<div
class=
"info"
><span
class=
"title"
>
再利用
</span></div>
<el-row
:gutter=
"40"
>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"
pn:"
style=
"flex-basis: 50%;"
prop=
"pn
"
>
<el-form-item
label=
"
lot:"
style=
"flex-basis: 50%;"
prop=
"lot
"
>
<el-input
ref=
"input
1"
v-model=
"form.pn"
placeholder=
"请输入pn"
clearable
style=
"width: 400px"
:maxlength=
"100"
@
keyup
.
enter
.
native=
"handelTab(1
,$event)"
/>
<el-input
ref=
"input
2"
v-model=
"form.lot"
placeholder=
"请输入lot"
clearable
style=
"width: 400px"
:maxlength=
"100"
@
blur=
"handleBlur"
@
keyup
.
enter
.
native=
"handelTab(2
,$event)"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"lot:"
style=
"flex-basis: 50%;"
prop=
"lot"
>
<el-form-item
label=
"pn:"
style=
"flex-basis: 50%;"
prop=
"pn"
>
<el-input
ref=
"input2"
v-model=
"form.lot"
placeholder=
"请输入lot"
clearable
style=
"width: 400px"
:maxlength=
"100"
@
keyup
.
enter
.
native=
"handelTab(2,$event)"
/>
<span>
{{
form
.
pn
}}
</span>
<!--
<el-input
ref=
"input1"
v-model=
"form.pn"
placeholder=
"请输入pn"
clearable
style=
"width: 400px"
:maxlength=
"100"
@
keyup
.
enter
.
native=
"handelTab(1,$event)"
/>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -34,10 +35,20 @@
...
@@ -34,10 +35,20 @@
<el-input
ref=
"input5"
v-model=
"form.psm"
placeholder=
"请输入psm"
clearable
style=
"width: 400px"
:maxlength=
"8"
@
keyup
.
enter
.
native=
"handelTab(5,$event)"
/>
<el-input
ref=
"input5"
v-model=
"form.psm"
placeholder=
"请输入psm"
clearable
style=
"width: 400px"
:maxlength=
"8"
@
keyup
.
enter
.
native=
"handelTab(5,$event)"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<!--
<el-col
:span=
"12"
>
-->
<!--
<el-form-item
label=
"pzl:"
style=
"flex-basis: 50%;"
prop=
"pzl"
>
-->
<!--
<el-input
ref=
"input6"
v-model=
"form.pzl"
placeholder=
"请输入pzl"
clearable
style=
"width: 400px"
:maxlength=
"8"
@
keyup
.
enter
.
native=
"handelTab(6,$event)"
/>
-->
<!--
</el-form-item>
-->
<!--
</el-col>
-->
</el-row>
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 9%;"
>
<el-form-item
label=
"pzl:"
style=
"flex-basis: 50%;"
prop=
"pzl"
>
<el-form-item
label=
"pzl:"
style=
"flex-basis: 50%;"
prop=
"pzl"
>
<el-input
ref=
"input6"
v-model=
"form.pzl"
placeholder=
"请输入pzl"
clearable
style=
"width: 400px"
:maxlength=
"8"
@
keyup
.
enter
.
native=
"handelTab(6,$event)"
/>
<el-input
ref=
"input6"
v-model=
"form.pzl"
placeholder=
"请输入pzl"
clearable
style=
"width: 400px"
:maxlength=
"8"
@
keyup
.
enter
.
native=
"handelTab(6,$event)"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"当前pzl:"
>
<span>
{{
form
.
currentPzl
}}
</span>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"40"
>
<el-row
:gutter=
"40"
>
...
@@ -68,6 +79,7 @@
...
@@ -68,6 +79,7 @@
<
script
>
<
script
>
import
{
recycle
}
from
'@/api/magnagement'
import
{
recycle
}
from
'@/api/magnagement'
import
{
getWbWarehouseByLot
}
from
'@/api/processMangement/InventoryRecord'
export
default
{
export
default
{
name
:
'Role'
,
name
:
'Role'
,
...
@@ -78,10 +90,11 @@ export default {
...
@@ -78,10 +90,11 @@ export default {
form
:
{
form
:
{
pn
:
''
,
pn
:
''
,
lot
:
''
,
lot
:
''
,
plocation
:
''
,
plocation
:
'
工序网板库
'
,
phd
:
''
,
phd
:
''
,
psm
:
''
,
psm
:
''
,
pzl
:
''
,
pzl
:
''
,
currentPzl
:
''
,
prank
:
''
,
prank
:
''
,
fq_ys
:
''
,
fq_ys
:
''
,
flag
:
1
,
flag
:
1
,
...
@@ -135,17 +148,31 @@ export default {
...
@@ -135,17 +148,31 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleBlur
()
{
if
(
this
.
form
.
lot
!==
null
&&
this
.
form
.
lot
!==
''
&&
this
.
form
.
lot
!==
undefined
)
{
const
obj
=
{
lot
:
this
.
form
.
lot
}
getWbWarehouseByLot
(
obj
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
form
.
pn
=
res
.
data
.
pn
this
.
form
.
plocation
=
'工序网板库'
this
.
form
.
currentPzl
=
res
.
data
.
pzl
})
}
},
resetQuery
()
{
resetQuery
()
{
this
.
form
=
{
this
.
form
=
{
pn
:
''
,
pn
:
''
,
lot
:
''
,
lot
:
''
,
plocation
:
''
,
plocation
:
'
工序网板库
'
,
phd
:
''
,
phd
:
''
,
psm
:
''
,
psm
:
''
,
pzl
:
''
,
pzl
:
''
,
prank
:
''
,
prank
:
''
,
flag
:
1
,
flag
:
1
,
ptype
:
''
,
ptype
:
''
,
currentPzl
:
''
,
pstatus
:
0
pstatus
:
0
}
}
sessionStorage
.
setItem
(
'recycleform'
,
JSON
.
stringify
(
this
.
form
))
sessionStorage
.
setItem
(
'recycleform'
,
JSON
.
stringify
(
this
.
form
))
...
...
src/views/processManagement/equipmentOut/index.vue
View file @
89576c5b
This diff is collapsed.
Click to expand it.
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