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
9e16d7c1
Commit
9e16d7c1
authored
Aug 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请配套
parent
e9e09ba7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
585 additions
and
7 deletions
+585
-7
base.less
assets/css/base.less
+16
-1
addAccessory.vue
pages/aps/plan/addAccessory.vue
+378
-0
api.js
pages/aps/plan/api.js
+4
-0
detailAccessory.vue
pages/aps/plan/detailAccessory.vue
+160
-0
index.vue
pages/aps/plan/index.vue
+12
-6
base.css
src/assets/css/base.css
+15
-0
No files found.
assets/css/base.less
View file @
9e16d7c1
...
...
@@ -314,7 +314,15 @@ div::-webkit-scrollbar-corner {
.pt10 {
padding: 10px 0px 0;
}
.pb5 {
padding-bottom: 5px;
}
.pb10 {
padding-bottom: 10px;
}
.pb20 {
padding-bottom: 20px;
}
.ptb5 {
padding-top: 5px;
padding-bottom: 5px;
...
...
@@ -324,6 +332,7 @@ div::-webkit-scrollbar-corner {
padding: 10px;
}
.p10 {
padding: 10px;
}
...
...
@@ -335,6 +344,12 @@ div::-webkit-scrollbar-corner {
.pl30 {
padding-left: 30px
}
.pl40 {
padding-left: 40px
}
.pl50 {
padding-left: 50px
}
.pl5 {
padding-left: 5px
...
...
pages/aps/plan/addAccessory.vue
0 → 100644
View file @
9e16d7c1
This diff is collapsed.
Click to expand it.
pages/aps/plan/api.js
View file @
9e16d7c1
...
...
@@ -47,4 +47,8 @@ export default {
supportmainCreate
(
params
){
////保存配套
return
Api
.
post
(
`
${
technologyUrl
}
supportmain/create`
,
params
);
},
groupitemlist
(
params
){
//申请单列表
return
Api
.
post
(
`
${
technologyUrl
}
supportmain/groupitemlist`
,
params
);
},
}
\ No newline at end of file
pages/aps/plan/detailAccessory.vue
0 → 100644
View file @
9e16d7c1
<
template
>
<div
class=
"h100 table-content"
>
<p
class=
"mb10"
>
订单编号:
{{
mesCodes
}}
<span
class=
"ml20"
>
产品名称:
{{
productNames
}}
</span>
<span
class=
"ml20"
>
生产数量:
{{
counts
}}
</span>
</p>
<Layout>
<Content>
<div
class=
"mb20"
v-for=
"(item,index) in datas"
:key=
"index"
>
<p
class=
"fwBold"
:id=
"'item'+index"
>
齐套日期:
{{
item
.
finishDate
}}
<span
class=
"ml20"
>
申请人:
{{
item
.
creator
}}
</span>
<span
class=
"ml20"
>
申请时间:
{{
item
.
applyTime
}}
</span>
</p>
<Table
border
:columns=
"cols"
:data=
"item.children"
class=
"tableCommon"
></Table>
<Button
type=
"primary"
class=
"mt10"
@
click=
"application(1,item.children)"
size=
"large"
>
撤回
</Button>
</div>
</Content>
<Sider
hide-trigger
style=
"background:#fff;color:black;"
width=
"300"
>
<Collapse
value=
"1"
class=
"mt20"
style=
"position:fixed;width:260px"
>
<Panel
name=
"1"
>
申请记录
<div
slot=
"content"
class=
"pl30 pb10 lh25"
>
<p
v-for=
"(items,i) in datas"
:key=
"i"
>
<a
:href=
"'#item'+i"
>
<span>
{{
items
.
applyTime
.
substring
(
0
,
10
)
}}
</span>
<span
class=
"fr mr10"
>
{{
items
.
creator
}}
</span>
</a>
</p>
</div>
</Panel>
</Collapse>
</Sider>
</Layout>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
name
:
"detailAccessory"
,
data
()
{
return
{
disabled
:
false
,
deletelModal
:
false
,
curId
:
0
,
editIndex
:
-
1
,
editNum
:
""
,
cols
:
[
{
key
:
"materialName"
,
title
:
"物料名"
,
align
:
"left"
,
},
{
key
:
"materialNumber"
,
title
:
"物料编号"
,
align
:
"left"
,
},
{
key
:
"needCount"
,
title
:
"需求数量"
,
align
:
"right"
,
},
{
key
:
"count"
,
title
:
"申请数量"
,
align
:
"right"
,
width
:
120
,
},
{
key
:
"counts"
,
title
:
"状态"
,
align
:
"center"
,
width
:
120
,
},
{
key
:
"remark"
,
title
:
"备注"
,
align
:
"left"
,
},
{
key
:
"action"
,
title
:
"状态"
,
width
:
120
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
},
on
:
{
click
:
()
=>
this
.
application
(
0
,
params
.
row
),
},
},
"撤回"
),
]);
},
},
],
datas
:
[],
selectItems
:
[],
footerToolbar
:
false
,
orderId
:
this
.
eid
,
mesCodes
:
this
.
mesCode
,
productNames
:
this
.
productName
,
drawnNumbers
:
this
.
drawnNumber
,
counts
:
this
.
count
,
};
},
props
:
{
eid
:
Number
,
mesCode
:
String
,
productName
:
String
,
drawnNumber
:
String
,
count
:
Number
,
},
mounted
()
{
this
.
load
(
this
.
eid
);
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
load
(
v
)
{
Api
.
groupitemlist
({
id
:
v
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
datas
=
r
.
result
;
}
});
},
application
(
type
,
arr
)
{
let
msg
=
""
if
(
type
==
0
)
{
msg
=
"行内数据"
}
else
{
msg
=
"整个申请单数据"
}
alert
(
msg
+
"_____"
+
JSON
.
stringify
(
arr
));
},
},
watch
:
{
eid
(
v
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
},
},
};
</
script
>
pages/aps/plan/index.vue
View file @
9e16d7c1
...
...
@@ -127,7 +127,7 @@
</Modal>
<Modal
v-model=
"modalAccessory"
:title=
"title"
fullscreen
footer-hide
>
<component
:is=
"detail"
:is=
"detail
s
"
:eid=
"orderId"
:mesCode=
"mesCode"
:productName=
"productName"
...
...
@@ -179,11 +179,11 @@ export default {
name
:
""
,
item
:
null
,
title
:
""
,
detail
:
null
,
detail
s
:
null
,
uId
:
""
,
hid
:
0
,
orderId
:
0
,
mesCode
:
""
,
mesCode
:
""
,
productName
:
""
,
drawnNumber
:
""
,
count
:
0
,
...
...
@@ -805,12 +805,18 @@ export default {
},
openAccessory
(
row
)
{
this
.
orderId
=
row
.
id
;
this
.
mesCode
=
row
.
mesCode
;
this
.
mesCode
=
row
.
mesCode
;
this
.
productName
=
row
.
productName
;
this
.
drawnNumber
=
row
.
drawnNumber
;
this
.
count
=
row
.
quantity
;
this
.
title
=
"申请配套"
;
this
.
detail
=
()
=>
import
(
"./addAccessory"
);
if
(
row
.
isSupportingFinish
==
0
)
{
this
.
title
=
"申请配套"
;
this
.
details
=
()
=>
import
(
"./addAccessory"
);
}
else
{
this
.
title
=
"申请单"
;
this
.
details
=
()
=>
import
(
"./detailAccessory"
);
}
this
.
modalAccessory
=
true
;
},
cancel
()
{
...
...
src/assets/css/base.css
View file @
9e16d7c1
...
...
@@ -242,6 +242,15 @@ div::-webkit-scrollbar-corner {
.pt10
{
padding
:
10px
0px
0
;
}
.pb5
{
padding-bottom
:
5px
;
}
.pb10
{
padding-bottom
:
10px
;
}
.pb20
{
padding-bottom
:
20px
;
}
.ptb5
{
padding-top
:
5px
;
padding-bottom
:
5px
;
...
...
@@ -258,6 +267,12 @@ div::-webkit-scrollbar-corner {
.pl30
{
padding-left
:
30px
;
}
.pl40
{
padding-left
:
40px
;
}
.pl50
{
padding-left
:
50px
;
}
.pl5
{
padding-left
:
5px
;
}
...
...
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