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
1aba94d5
Commit
1aba94d5
authored
May 07, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
a061cbed
1b718964
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
30 deletions
+65
-30
files.vue
components/page/files.vue
+9
-4
index.vue
pages/order/quotation/index.vue
+9
-6
index.vue
pages/processManage/setProcess/index.vue
+36
-9
add.vue
pages/technology/add.vue
+10
-10
edit.vue
pages/technology/edit.vue
+1
-1
No files found.
components/page/files.vue
View file @
1aba94d5
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<p>
将文件拖到此处,或点击上传
</p>
<p>
将文件拖到此处,或点击上传
</p>
</div>
</div>
<Button
icon=
"ios-cloud-upload-outline"
v-if=
"!cloudIco"
>
上传文件
</Button>
<Button
icon=
"ios-cloud-upload-outline"
v-if=
"!cloudIco"
>
上传文件
</Button>
<span
style=
"font-size:10px;color:#aaa"
v-if=
"fileFormat"
>
文件格式:
{{
JSON
.
stringify
(
formatList
).
replace
(
'['
,
''
).
replace
(
']'
,
''
).
replace
(
/
\"
/g
,
''
)
}}
;文件最大:
{{
maxSize
}}
k
</span>
</Upload>
</Upload>
<Progress
:percent=
"per"
:stroke-width=
"5"
v-show=
"vshowPro"
/>
<Progress
:percent=
"per"
:stroke-width=
"5"
v-show=
"vshowPro"
/>
<Tag
<Tag
...
@@ -47,7 +48,7 @@ export default {
...
@@ -47,7 +48,7 @@ export default {
fileUrlPath
:
""
,
fileUrlPath
:
""
,
nameList
:
[],
nameList
:
[],
hbaseFileListNew
:
[],
hbaseFileListNew
:
[],
formatList
:
[
"
png"
,
"jpg"
,
"gif
"
],
formatList
:
[
"
jpg"
,
"gif"
,
"png
"
],
multiple
:
true
,
multiple
:
true
,
postUrl
:
""
,
postUrl
:
""
,
style
:
""
,
style
:
""
,
...
@@ -81,6 +82,10 @@ export default {
...
@@ -81,6 +82,10 @@ export default {
cloudIco
:
{
cloudIco
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
fileFormat
:{
type
:
Boolean
,
default
:
false
}
}
},
},
methods
:
{
methods
:
{
...
@@ -155,15 +160,15 @@ export default {
...
@@ -155,15 +160,15 @@ export default {
formatL
()
{
formatL
()
{
if
(
this
.
files
)
{
if
(
this
.
files
)
{
this
.
formatList
=
[
this
.
formatList
=
[
"jpg"
,
"gif"
,
"png"
,
"pdf"
,
"pdf"
,
"docx"
,
"docx"
,
"doc"
,
"doc"
,
"xls"
,
"xls"
,
"xlsx"
,
"xlsx"
,
"txt"
,
"txt"
,
"png"
,
"jpg"
,
"gif"
];
];
}
}
return
this
.
formatList
;
return
this
.
formatList
;
...
...
pages/order/quotation/index.vue
View file @
1aba94d5
<
template
>
<
template
>
<Layout
class=
"quotation"
>
<Layout
class=
"quotation"
>
<!-- 左侧树 -->
<!-- 左侧树 -->
<Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260">
<
!--
<
Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260">
<Tree-Type
@
func=
"getMsgFormSon"
:style=
"
{ height: treeHeight + 'px' }">
</Tree-Type>
<Tree-Type
@
func=
"getMsgFormSon"
:style=
"
{ height: treeHeight + 'px' }">
</Tree-Type>
</Sider>
</Sider>
-->
<
!--
<
Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<ProductTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
<ProductTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
</Sider>
</Sider>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
<a
class=
"menu_play fr"
@
click=
"showMenuFn"
title=
"展开"
>
<a
class=
"menu_play fr"
@
click=
"showMenuFn"
title=
"展开"
>
<Icon
type=
"ios-arrow-forward"
size=
"24"
/>
<Icon
type=
"ios-arrow-forward"
size=
"24"
/>
</a>
</a>
</div>
-->
</div>
<!-- 右侧内容 -->
<!-- 右侧内容 -->
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<Tabs
v-model=
"selectName"
@
on-click=
"handleClick"
>
<Tabs
v-model=
"selectName"
@
on-click=
"handleClick"
>
...
@@ -397,13 +397,16 @@ export default {
...
@@ -397,13 +397,16 @@ export default {
this
.
showMenu
=
true
;
this
.
showMenu
=
true
;
},
},
productSearch
(
id
,
item
,
ids
)
{
productSearch
(
id
,
item
,
ids
)
{
let
where
=
{
productId
:
{
op
:
"In"
,
value
:
ids
}
};
// console.log(item)
this
.
$refs
.
grid
.
reload
(
where
);
this
.
getMsgFormSon
(
ids
)
// let where = { productId: { op: "In", value: ids } };
// this.$refs.grid.reload(where);
},
},
update
()
{
update
()
{
this
.
tableTata
(
this
.
selectName
);
this
.
tableTata
(
this
.
selectName
);
},
},
getMsgFormSon
(
data
)
{
getMsgFormSon
(
data
)
{
// console.log(data)
this
.
productId
=
data
.
join
(
","
);
this
.
productId
=
data
.
join
(
","
);
this
.
tableTata
(
this
.
selectName
);
this
.
tableTata
(
this
.
selectName
);
},
},
...
...
pages/processManage/setProcess/index.vue
View file @
1aba94d5
<
template
>
<
template
>
<div>
<Layout
class=
"lay100"
>
<!--
<div>
-->
<!-- 左侧树 -->
<!-- 左侧树 -->
<div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}">
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<!--
<div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}"> -->
<h3
class=
"zh-title"
>
产品结构
</h3>
<h3
class=
"zh-title"
>
产品结构
</h3>
<div
class=
"zh-box"
>
<div
class=
"zh-box"
>
<Input
search
placeholder=
"请输入查询条件"
v-model=
"treeInputSearch"
/>
<Input
search
placeholder=
"请输入查询条件"
v-model=
"treeInputSearch"
/>
...
@@ -13,9 +15,18 @@
...
@@ -13,9 +15,18 @@
@on-select-change="selectTreeNode"
@on-select-change="selectTreeNode"
>
</Tree>
>
</Tree>
</div>
</div>
</Sider>
<!--
</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>
<!-- 右侧内容 -->
<!-- 右侧内容 -->
<
div
class=
"content-right
"
>
<
Content
class=
"con"
:class=
"!showMenu?'con_bord':''
"
>
<div
class=
"title_box"
>
<div
class=
"title_box"
>
<div
class=
"table_title"
>
<div
class=
"table_title"
>
<div
style=
"width:100px; float:left"
>
<div
style=
"width:100px; float:left"
>
...
@@ -235,7 +246,7 @@
...
@@ -235,7 +246,7 @@
@
on-page-size-change=
"pageSizeChange"
@
on-page-size-change=
"pageSizeChange"
/>
/>
</div>
</div>
</
div
>
</
Content
>
<Modal
<Modal
v-model=
"modal1"
v-model=
"modal1"
:title=
"gymodaltitle"
:title=
"gymodaltitle"
...
@@ -339,19 +350,18 @@
...
@@ -339,19 +350,18 @@
>
>
<processview
ref=
"processview"
></processview>
<processview
ref=
"processview"
></processview>
</Modal>
</Modal>
</
div
>
</
Layout
>
</template>
</template>
<
script
>
<
script
>
import
DrawerSet
from
"./components/drawerSet.vue"
;
//抽屉列表
import
DrawerSet
from
"./components/drawerSet.vue"
;
//抽屉列表
import
TreeType
from
"./components/treeType.vue"
;
//左侧树列表
import
orderMaterial
from
"./components/orderMaterial.vue"
;
//料单
import
orderMaterial
from
"./components/orderMaterial.vue"
;
//料单
import
processMain
from
"./processMain.vue"
;
import
processMain
from
"./processMain.vue"
;
import
processNew
from
"../Process/processNew.vue"
;
import
processNew
from
"../Process/processNew.vue"
;
import
service
from
"@/plugins/request"
;
import
service
from
"@/plugins/request"
;
import
ProductTree
from
"@/components/page/productTree.vue"
;
//左侧树列表
import
OrderSendReview
from
"./components/orderSendReview"
;
//送审页面
import
OrderSendReview
from
"./components/orderSendReview"
;
//送审页面
import
processview
from
"../Process/processview.vue"
;
import
processview
from
"../Process/processview.vue"
;
import
sendAudit
from
"../Process/sendAudit.vue"
;
import
sendAudit
from
"../Process/sendAudit.vue"
;
...
@@ -359,7 +369,7 @@ import QS from "querystring";
...
@@ -359,7 +369,7 @@ import QS from "querystring";
export
default
{
export
default
{
components
:
{
components
:
{
DrawerSet
,
DrawerSet
,
TreeTyp
e
,
ProductTre
e
,
processMain
,
processMain
,
processNew
,
processNew
,
orderMaterial
,
orderMaterial
,
...
@@ -369,6 +379,7 @@ export default {
...
@@ -369,6 +379,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
showMenu
:
true
,
isview
:
false
,
isview
:
false
,
isdview
:
false
,
isdview
:
false
,
ismview
:
false
,
ismview
:
false
,
...
@@ -698,7 +709,7 @@ export default {
...
@@ -698,7 +709,7 @@ export default {
};
};
},
},
computed
:
{
computed
:
{
searchList
()
{
searchList
()
{
//产品树左侧
let
nodeList
=
this
.
treeData
;
let
nodeList
=
this
.
treeData
;
var
text
=
this
.
treeInputSearch
;
var
text
=
this
.
treeInputSearch
;
var
newNodeList
=
[];
var
newNodeList
=
[];
...
@@ -720,6 +731,21 @@ export default {
...
@@ -720,6 +731,21 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
onHide
()
{
this
.
showMenu
=
false
;
},
showMenuFn
()
{
this
.
showMenu
=
true
;
},
productSearch
(
id
,
item
,
ids
)
{
console
.
log
(
id
)
console
.
log
(
item
)
console
.
log
(
ids
)
// this.productId = data.join(",");
// this.tableTata(this.selectName);
// let where = { productId: { op: "In", value: ids } };
// this.$refs.grid.reload(where);
},
// tab切换
// tab切换
tabChange
(
name
)
{
tabChange
(
name
)
{
this
.
tabstatus
=
name
;
this
.
tabstatus
=
name
;
...
@@ -862,6 +888,7 @@ console.log(this.orderSearchForm.SkipCount);
...
@@ -862,6 +888,7 @@ console.log(this.orderSearchForm.SkipCount);
});
});
},
},
selectTreeNode
(
value
)
{
selectTreeNode
(
value
)
{
console
.
log
(
value
)
if
(
value
.
length
>
0
)
{
if
(
value
.
length
>
0
)
{
this
.
ids
=
[];
this
.
ids
=
[];
this
.
getAllIds
(
value
);
this
.
getAllIds
(
value
);
...
...
pages/technology/add.vue
View file @
1aba94d5
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"8"
>
<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>
<Input
v-model=
"entity.code"
></Input>
</FormItem>
</FormItem>
v-else-if="title=='克隆'"-->
<FormItem
v-else-if=
"title=='克隆'"
:label=
"l('code')"
prop=
"code"
>
<FormItem
:label=
"l('code')"
prop=
"code"
>
<Input
disabled
v-model=
"entity.code"
></Input>
<Input
disabled
v-model=
"entity.code"
></Input>
</FormItem>
</FormItem>
</Col>
</Col>
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<files
ref=
"refFile"
:parms=
"parms"
file
s
/>
<files
ref=
"refFile"
:parms=
"parms"
file
Format
/>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
@@ -201,10 +201,10 @@ export default {
...
@@ -201,10 +201,10 @@ export default {
mounted
()
{
mounted
()
{
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
$refs
.
refFile
.
intFiles
();
this
.
$refs
.
refFile
.
intFiles
();
// console.log(this.title)
// console.log(this.eid)
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
else
{
this
.
getCodNumber
();
}
}
},
},
methods
:
{
methods
:
{
...
@@ -290,16 +290,16 @@ export default {
...
@@ -290,16 +290,16 @@ export default {
this
.
entity
.
isEffect
=
parseInt
(
r
.
result
.
isEffect
);
this
.
entity
.
isEffect
=
parseInt
(
r
.
result
.
isEffect
);
this
.
entity
.
id
=
0
;
this
.
entity
.
id
=
0
;
});
});
if
(
this
.
title
==
'克隆'
){
this
.
getCodNumber
();
},
getCodNumber
(){
Api
.
getCodeNumber
({
code
:
'GY'
,
count
:
'1'
}).
then
(
r
=>
{
Api
.
getCodeNumber
({
code
:
'GY'
,
count
:
'1'
}).
then
(
r
=>
{
// console.log(r)
if
(
r
.
success
){
if
(
r
.
success
){
this
.
entity
.
code
=
r
.
result
[
0
]
this
.
entity
.
code
=
r
.
result
[
0
]
}
else
{
}
else
{
this
.
$Message
.
error
(
"生成编号失败"
);
this
.
$Message
.
error
(
"生成编号失败"
);
}
}
})
})
}
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"routingHeader"
+
"."
+
key
;
key
=
"routingHeader"
+
"."
+
key
;
...
...
pages/technology/edit.vue
View file @
1aba94d5
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<files
ref=
"refFile"
:parms=
"parms"
file
s
/>
<files
ref=
"refFile"
:parms=
"parms"
file
Format
/>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
...
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