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
e3f03878
Commit
e3f03878
authored
May 07, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程新增
parent
26eb1c60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
14 deletions
+40
-14
index.vue
pages/order/quotation/index.vue
+6
-2
index.vue
pages/processDesign/setProcess/index.vue
+25
-3
add.vue
pages/technology/add.vue
+9
-9
No files found.
pages/order/quotation/index.vue
View file @
e3f03878
...
...
@@ -397,13 +397,17 @@ export default {
this
.
showMenu
=
true
;
},
productSearch
(
id
,
item
,
ids
)
{
let
where
=
{
productId
:
{
op
:
"In"
,
value
:
ids
}
};
this
.
$refs
.
grid
.
reload
(
where
);
console
.
log
(
item
)
// this.productId = data.join(",");
// this.tableTata(this.selectName);
// let where = { productId: { op: "In", value: ids } };
// this.$refs.grid.reload(where);
},
update
()
{
this
.
tableTata
(
this
.
selectName
);
},
getMsgFormSon
(
data
)
{
console
.
log
(
data
)
this
.
productId
=
data
.
join
(
","
);
this
.
tableTata
(
this
.
selectName
);
},
...
...
pages/processDesign/setProcess/index.vue
View file @
e3f03878
<
template
>
<div>
<!-- 左侧树 -->
<div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}">
<
!--
<
div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}">
<h3
class=
"zh-title"
>
产品结构
</h3>
<div
class=
"zh-box"
>
<Input
search
placeholder=
"请输入查询条件"
v-model=
"treeInputSearch"
/>
...
...
@@ -13,6 +14,14 @@
@on-select-change="selectTreeNode"
>
</Tree>
</div>
</div>
-->
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<ProductTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
</Sider>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
<a
class=
"menu_play fr"
@
click=
"showMenuFn"
title=
"展开"
>
<Icon
type=
"ios-arrow-forward"
size=
"24"
/>
</a>
</div>
<!-- 右侧内容 -->
<div
class=
"content-right"
>
...
...
@@ -377,7 +386,7 @@ import orderData from './components/orderData.vue' //数据审查
import
modelTable
from
'../Process/model.vue'
import
processNew
from
'../Process/processNew.vue'
import
service
from
'@/plugins/request'
import
ProductTree
from
"@/components/page/productTree.vue"
;
//左侧树列表
import
OrderSendReview
from
'./components/orderSendReview'
//送审页面
import
processview
from
'../Process/processview.vue'
import
sendAudit
from
'../Process/sendAudit.vue'
...
...
@@ -389,7 +398,7 @@ export default {
modelTable
,
processNew
,
orderMaterial
,
OrderSendReview
,
OrderSendReview
,
ProductTree
,
processview
,
sendAudit
,
orderData
...
...
@@ -398,6 +407,7 @@ export default {
return
{
isview
:
false
,
isdview
:
false
,
showMenu
:
true
,
ismview
:
false
,
issendAudit
:
false
,
createtype
:
1
,
...
...
@@ -927,6 +937,18 @@ export default {
}
},
methods
:
{
onHide
()
{
// this.$Message.info("收起左侧树")
this
.
showMenu
=
false
;
},
showMenuFn
()
{
//this.$Message.info("展开左侧树")
this
.
showMenu
=
true
;
},
productSearch
(
id
,
item
,
ids
)
{
let
where
=
{
productId
:
{
op
:
"In"
,
value
:
ids
}
};
this
.
$refs
.
grid
.
reload
(
where
);
},
// tab切换
tabChange
(
name
)
{
this
.
tabstatus
=
name
...
...
pages/technology/add.vue
View file @
e3f03878
...
...
@@ -17,10 +17,10 @@
</FormItem>
</Col>
<Col
:span=
"8"
>
<FormItem
v-if=
"title=='新增'"
:label=
"l('code')"
prop=
"code"
>
<
!--
<
FormItem
v-if=
"title=='新增'"
:label=
"l('code')"
prop=
"code"
>
<Input
v-model=
"entity.code"
></Input>
</FormItem>
<FormItem
v-else-if=
"title=='克隆'"
:label=
"l('code')"
prop=
"code"
>
</FormItem>
v-else-if="title=='克隆'"-->
<FormItem
:label=
"l('code')"
prop=
"code"
>
<Input
disabled
v-model=
"entity.code"
></Input>
</FormItem>
</Col>
...
...
@@ -201,10 +201,10 @@ export default {
mounted
()
{
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
$refs
.
refFile
.
intFiles
();
// console.log(this.title)
// console.log(this.eid)
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
else
{
this
.
getCodNumber
();
}
},
methods
:
{
...
...
@@ -212,7 +212,7 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
if
(
this
.
title
==
'克隆'
){
if
(
this
.
title
==
'克隆'
){
this
.
$Message
.
success
(
"克隆"
);
this
.
getcloneData
()
}
else
{
...
...
@@ -290,16 +290,16 @@ export default {
this
.
entity
.
isEffect
=
parseInt
(
r
.
result
.
isEffect
);
this
.
entity
.
id
=
0
;
});
if
(
this
.
title
==
'克隆'
){
this
.
getCodNumber
();
},
getCodNumber
(){
Api
.
getCodeNumber
({
code
:
'GY'
,
count
:
'1'
}).
then
(
r
=>
{
// console.log(r)
if
(
r
.
success
){
this
.
entity
.
code
=
r
.
result
[
0
]
}
else
{
this
.
$Message
.
error
(
"生成编号失败"
);
}
})
}
},
l
(
key
)
{
key
=
"routingHeader"
+
"."
+
key
;
...
...
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