Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
955680d7
Commit
955680d7
authored
Aug 08, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accessory
parent
54934631
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
6 deletions
+69
-6
accessory.vue
pages/aps/supprotMain/accessory.vue
+65
-5
api.js
pages/aps/supprotMain/api.js
+4
-1
No files found.
pages/aps/supprotMain/accessory.vue
View file @
955680d7
...
...
@@ -26,16 +26,23 @@
<p
class=
"mt10 mb10"
>
<Button
type=
"primary"
>
出库
</Button>
</p>
<Table
:columns=
"cols"
:data=
"data
s
"
:columns=
"cols
Out
"
:data=
"data
Out
"
class=
"tableCommon"
border
highlight-row
@
on-current-change=
"curChange"
:height=
"tableHeight-40"
></Table>
>
<template
slot-scope=
"
{ row, index }" slot="outSup">
<InputNumber
:max=
"row.totalCount-row.applicationNumber"
:min=
"0"
v-model=
"row.count"
/>
</
template
>
</Table>
</div>
</Split>
</div>
...
...
@@ -94,6 +101,50 @@ export default {
],
datas
:
[],
tableHeight
:
""
,
colsOut
:
[
{
key
:
"materialName"
,
title
:
this
.
l
(
"materialName"
),
align
:
"left"
,
},
{
key
:
"materialNumber"
,
title
:
this
.
l
(
"materialNumber"
),
align
:
"left"
,
},
{
key
:
""
,
title
:
"产品合格证号"
,
align
:
"right"
,
},
{
key
:
""
,
title
:
"库位"
,
align
:
"right"
,
},
{
key
:
""
,
title
:
"入库时间"
,
align
:
"right"
,
},
{
key
:
""
,
title
:
"入库人"
,
align
:
"right"
,
},
{
key
:
""
,
title
:
"库存"
,
align
:
"right"
,
},
{
key
:
""
,
title
:
"出库数"
,
align
:
"right"
,
slot
:
"outSup"
,
},
],
datasOut
:
[],
};
},
props
:
{
...
...
@@ -152,7 +203,16 @@ export default {
},
curChange
(
curRow
,
oldRow
)
{
//点击物料行
alert
(
JSON
.
stringify
(
curRow
));
//alert(JSON.stringify(curRow));
Api
.
supportmateriallistone
({
materialId
:
curRow
.
materialId
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
let
temData
=
[];
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
temData
=
temData
.
concat
(
r
.
result
);
}
this
.
datasOut
=
temData
;
}
});
},
l
(
key
)
{
key
=
"support_main"
+
"."
+
key
;
...
...
pages/aps/supprotMain/api.js
View file @
955680d7
...
...
@@ -26,9 +26,12 @@ export default {
getitemlist
(
params
)
{
//根据id获取单个配套
return
Api
.
get
(
`
${
technologyUrl
}
supportmain/getitemlist`
,
params
);
},
supportmateriallist
(
params
)
{
//
点击物料获取
对应的库房信息
supportmateriallist
(
params
)
{
//
查询所有物料
对应的库房信息
return
Api
.
post
(
`
${
resourceUrl
}
/stock/supportmateriallist`
,
params
);
},
supportmateriallistone
(
params
)
{
//点击物料根据物料ID获取对应的库房信息
return
Api
.
post
(
`
${
resourceUrl
}
/stock/supportmateriallistone`
,
params
);
},
outmainCreate
(
params
)
{
//批量出库
return
Api
.
post
(
`
${
resourceUrl
}
/outmain/create`
,
params
);
},
...
...
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