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
1c34f423
Commit
1c34f423
authored
Jul 09, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ordermaterial
parent
ae72e548
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
30 deletions
+57
-30
orderMaterialNew.vue
.../processManage/setProcess/components/orderMaterialNew.vue
+48
-25
index.vue
pages/processManage/setProcess/index.vue
+9
-5
No files found.
pages/processManage/setProcess/components/orderMaterialNew.vue
View file @
1c34f423
...
...
@@ -4,7 +4,7 @@
<
template
>
<div
class=
"new_box"
>
<span
class=
"mr10"
>
订单编号:
{{
mescodes
}}
</span>
<Button
v-if=
"materialbillStatuss
==-
1"
type=
"primary"
@
click=
"saveBill"
>
生成料单
</Button>
<Button
v-if=
"materialbillStatuss
!=
1"
type=
"primary"
@
click=
"saveBill"
>
生成料单
</Button>
<Table
stripe
ref=
"table"
border
:columns=
"columns"
:data=
"datas"
class=
"tableCommon mt5"
></Table>
</div>
</
template
>
...
...
@@ -17,10 +17,10 @@ export default {
return
{
isview
:
false
,
mescodes
:
this
.
mesCode
,
materialbillStatuss
:
this
.
material
bill
Status
,
routingHeaderId
:
this
.
mainRoutingID
,
orderId
:
this
.
id
,
orderCount
:
this
.
quantity
,
materialbillStatuss
:
this
.
material
BillSet
Status
,
routingHeaderId
:
this
.
mainRoutingID
,
orderId
:
this
.
id
,
orderCount
:
this
.
quantity
,
datas
:
[],
columns
:
[
{
...
...
@@ -52,7 +52,7 @@ export default {
align
:
"left"
},
{
key
:
"
quantity
"
,
key
:
"
totalCount
"
,
title
:
this
.
l
(
"quantity"
),
align
:
"right"
,
width
:
80
...
...
@@ -99,28 +99,44 @@ export default {
};
},
props
:
{
mesCode
:
String
,
material
bill
Status
:
Number
,
material
BillSet
Status
:
Number
,
mainRoutingID
:
Number
,
id
:
Number
,
quantity
:
Number
,
},
mounted
()
{
quantity
:
Number
},
mounted
()
{},
created
()
{},
methods
:
{
saveBill
()
{},
loaddata
()
{
saveBill
()
{
let
params
=
{
routingHeaderId
:
this
.
routingHeaderId
,
orderId
:
this
.
orderId
,
orderCount
:
this
.
orderCount
};
Api
.
post
(
`
${
technologyUrl
}
materiallist/createnew`
,
params
).
then
(
res
=>
{});
Api
.
post
(
`
${
technologyUrl
}
materiallist/createnew`
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
materialbillStatuss
=
1
;
this
.
$emit
(
"on-ok"
);
this
.
loaddata
(
this
.
orderId
);
}
});
},
loaddata
(
ids
)
{
let
condtions
=
{
conditions
:
[
{
fieldName
:
"orderId"
,
fieldValue
:
ids
,
conditionalType
:
"In"
}
]
};
Api
.
post
(
`
${
technologyUrl
}
materiallist/list`
,
condtions
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
datas
=
res
.
result
;
}
});
},
l
(
key
)
{
key
=
"routingsupporting"
+
"."
+
key
;
...
...
@@ -135,16 +151,23 @@ export default {
mesCode
(
v
)
{
this
.
mescodes
=
v
;
},
materialbillStatus
(
v
)
{
this
.
materialbillStatuss
=
v
;
materialBillSetStatus
(
v
)
{
if
(
v
==
1
)
{
this
.
materialbillStatuss
=
v
;
}
else
{
this
.
materialbillStatuss
=
-
1
;
}
},
id
(
v
)
{
this
.
orderId
=
v
id
(
v
)
{
this
.
orderId
=
v
;
if
(
this
.
materialBillSetStatus
==
1
)
{
this
.
loaddata
(
v
);
}
else
{
this
.
datas
=
[];
}
},
quantity
(
v
)
{
this
.
orderCount
=
v
quantity
(
v
)
{
this
.
orderCount
=
v
;
}
}
};
...
...
pages/processManage/setProcess/index.vue
View file @
1c34f423
...
...
@@ -295,17 +295,18 @@
v-model=
"modalliao"
title=
"料单"
class=
"model_tabel"
fullscreen
=
"true"
fullscreen
:mask-closable=
"false"
:loading=
"myloading"
>
<orderMaterial
ref=
"orderMaterial"
:mesCode=
"mesCode"
:material
billStatus=
"materialbill
Status"
:material
BillSetStatus=
"materialBillSet
Status"
:mainRoutingID=
"mainRoutingID"
:id=
"id"
:quantity=
"quantity"
@
on-ok=
"ok"
></orderMaterial>
<div
slot=
"footer"
>
<Button
type=
"text"
size=
"large"
@
click=
"saveCancelModel"
>
关闭
</Button>
...
...
@@ -647,7 +648,7 @@ export default {
content1
=
gh
[
0
].
name
;
editColor1
=
gh
[
0
].
color
;
}
if
(
params
.
row
.
material
billStatus
>
1
)
{
if
(
params
.
row
.
material
BillSetStatus
==
1
)
{
content1
=
"查看"
;
}
return
h
(
"div"
,
[
...
...
@@ -685,7 +686,7 @@ export default {
//料单设置
mainRoutingID
:
null
,
mesCode
:
""
,
material
bill
Status
:
null
,
material
BillSet
Status
:
null
,
id
:
null
,
quantity
:
null
};
...
...
@@ -779,6 +780,9 @@ export default {
},
search
()
{
this
.
easySearch
(
this
.
orderSearchForm
);
},
ok
()
{
this
.
easySearch
(
this
.
orderSearchForm
);
},
//搜索查询
easySearch
(
params
)
{
...
...
@@ -1592,7 +1596,7 @@ export default {
savematerialbillNew
(
params
)
{
this
.
modalliao
=
true
;
this
.
mesCode
=
params
.
row
.
mesCode
;
this
.
material
billStatus
=
params
.
row
.
materialbill
Status
;
this
.
material
BillSetStatus
=
params
.
row
.
materialBillSet
Status
;
this
.
mainRoutingID
=
params
.
row
.
mainRoutingID
;
this
.
id
=
params
.
row
.
id
;
this
.
quantity
=
params
.
row
.
quantity
;
...
...
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