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
89977b59
Commit
89977b59
authored
Jul 09, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工藝設置
parent
1c34f423
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
orderMaterialNew.vue
.../processManage/setProcess/components/orderMaterialNew.vue
+10
-6
index.vue
pages/processManage/setProcess/index.vue
+7
-1
No files found.
pages/processManage/setProcess/components/orderMaterialNew.vue
View file @
89977b59
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<
template
>
<
template
>
<div
class=
"new_box"
>
<div
class=
"new_box"
>
<span
class=
"mr10"
>
订单编号:
{{
mescodes
}}
</span>
<span
class=
"mr10"
>
订单编号:
{{
mescodes
}}
</span>
<Button
v-if=
"material
billStatus
s!=1"
type=
"primary"
@
click=
"saveBill"
>
生成料单
</Button>
<Button
v-if=
"material
BillSetStatu
s!=1"
type=
"primary"
@
click=
"saveBill"
>
生成料单
</Button>
<Table
stripe
ref=
"table"
border
:columns=
"columns"
:data=
"datas"
class=
"tableCommon mt5"
></Table>
<Table
stripe
ref=
"table"
border
:columns=
"columns"
:data=
"datas"
class=
"tableCommon mt5"
></Table>
</div>
</div>
</
template
>
</
template
>
...
@@ -100,7 +100,10 @@ export default {
...
@@ -100,7 +100,10 @@ export default {
},
},
props
:
{
props
:
{
mesCode
:
String
,
mesCode
:
String
,
materialBillSetStatus
:
Number
,
materialBillSetStatus
:
{
type
:
Number
,
default
:
-
1
},
mainRoutingID
:
Number
,
mainRoutingID
:
Number
,
id
:
Number
,
id
:
Number
,
quantity
:
Number
quantity
:
Number
...
@@ -116,9 +119,9 @@ export default {
...
@@ -116,9 +119,9 @@ export default {
};
};
Api
.
post
(
`
${
technologyUrl
}
materiallist/createnew`
,
params
).
then
(
res
=>
{
Api
.
post
(
`
${
technologyUrl
}
materiallist/createnew`
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
materialbillStatuss
=
1
;
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
this
.
loaddata
(
this
.
orderId
);
this
.
loaddata
(
this
.
orderId
);
this
.
materialBillSetStatus
=
1
;
}
}
});
});
},
},
...
@@ -146,16 +149,16 @@ export default {
...
@@ -146,16 +149,16 @@ export default {
watch
:
{
watch
:
{
mainRoutingID
(
v
)
{
mainRoutingID
(
v
)
{
this
.
routingHeaderId
=
v
;
this
.
routingHeaderId
=
v
;
this
.
loaddata
();
this
.
loaddata
(
this
.
orderId
);
},
},
mesCode
(
v
)
{
mesCode
(
v
)
{
this
.
mescodes
=
v
;
this
.
mescodes
=
v
;
},
},
materialBillSetStatus
(
v
)
{
materialBillSetStatus
(
v
)
{
if
(
v
==
1
)
{
if
(
v
==
1
)
{
this
.
materialbillStatuss
=
v
;
this
.
materialBillSetStatus
=
v
;
}
else
{
}
else
{
this
.
material
billStatus
s
=
-
1
;
this
.
material
BillSetStatu
s
=
-
1
;
}
}
},
},
id
(
v
)
{
id
(
v
)
{
...
@@ -164,6 +167,7 @@ export default {
...
@@ -164,6 +167,7 @@ export default {
this
.
loaddata
(
v
);
this
.
loaddata
(
v
);
}
else
{
}
else
{
this
.
datas
=
[];
this
.
datas
=
[];
this
.
materialBillSetStatus
=
-
1
;
}
}
},
},
quantity
(
v
)
{
quantity
(
v
)
{
...
...
pages/processManage/setProcess/index.vue
View file @
89977b59
...
@@ -298,6 +298,7 @@
...
@@ -298,6 +298,7 @@
fullscreen
fullscreen
:mask-closable=
"false"
:mask-closable=
"false"
:loading=
"myloading"
:loading=
"myloading"
:closable=
"false"
>
>
<orderMaterial
<orderMaterial
ref=
"orderMaterial"
ref=
"orderMaterial"
...
@@ -309,7 +310,7 @@
...
@@ -309,7 +310,7 @@
@
on-ok=
"ok"
@
on-ok=
"ok"
></orderMaterial>
></orderMaterial>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<Button
type=
"
text"
size=
"large"
@
click=
"saveCancelModel"
>
关闭
</Button>
<Button
type=
"
primary"
size=
"large"
@
click=
"saveCancelModel"
>
关闭窗口
</Button>
</div>
</div>
</Modal>
</Modal>
...
@@ -1003,6 +1004,11 @@ export default {
...
@@ -1003,6 +1004,11 @@ export default {
this
.
modalliao
=
false
;
this
.
modalliao
=
false
;
// this.$refs.orderMaterial.cleardata()
// this.$refs.orderMaterial.cleardata()
this
.
dataListRetrunNew
.
idList
=
[];
this
.
dataListRetrunNew
.
idList
=
[];
this
.
mainRoutingID
=
null
;
this
.
id
=
null
;
this
.
materialBillSetStatus
=
null
this
.
mesCode
=
""
;
this
.
quantity
=
null
;
},
},
modalOk
()
{
modalOk
()
{
if
(
this
.
createtype
==
2
&&
this
.
headerid
==
0
)
{
if
(
this
.
createtype
==
2
&&
this
.
headerid
==
0
)
{
...
...
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