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
a25dc3f1
Commit
a25dc3f1
authored
May 07, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt
parents
ebee90b0
0152898e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
215 additions
and
121 deletions
+215
-121
base.less
assets/css/base.less
+45
-1
userSelect.vue
components/page/userSelect.vue
+92
-32
product.vue
layouts/basic-layout/product.vue
+1
-0
index.vue
pages/aps/dispatch/index.vue
+22
-64
index.vue
pages/mesPlan/index.vue
+26
-4
index.vue
pages/order/quotation/index.vue
+22
-3
index.vue
pages/technology/index.vue
+2
-13
test.vue
pages/test.vue
+3
-3
user.vue
pages/test/user.vue
+2
-1
No files found.
assets/css/base.less
View file @
a25dc3f1
...
@@ -60,6 +60,9 @@ div::-webkit-scrollbar{
...
@@ -60,6 +60,9 @@ div::-webkit-scrollbar{
.fg{
.fg{
flex-grow: 1;
flex-grow: 1;
}
}
.fs{
flex-shrink: 0;
}
.fg2{
.fg2{
flex-grow: 2;
flex-grow: 2;
}
}
...
@@ -1292,4 +1295,45 @@ html [type=button] {
...
@@ -1292,4 +1295,45 @@ html [type=button] {
//显示富文本框样式
//显示富文本框样式
.detail .ivu-row .filed-col p .html p{
.detail .ivu-row .filed-col p .html p{
margin: 0 10px 0 0;
margin: 0 10px 0 0;
}
}
\ No newline at end of file
.lay100 {
height: calc(100vh - 105px);
background-color: #f5f6fa;
.con {
padding: 5px 5px 0px 10px;
}
.con_bord {
// margin: 15px 32px;
box-shadow: #c7c7c7 1px 2px 7px 3px;
}
background: rgba(245, 246, 250, 1);
}
.menu_side{
background: #fff!important;
margin: 5px 0 0 0!important;
border: 1px solid #dcdee2!important;
}
.show_menu{
width: 30px;
height: 30px;
position: fixed;
top: 100px;
left: 0;
z-index: 9;
.menu_play{
width: 30px;
height: 30px;
line-height: 34px;
font-size: 14px;
text-align: center;
color: #515A6E;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
background: #ffffff;
box-shadow: #ccc 2px 2px 4px 1px;
}
.menu_play:hover{
background-color: #2d8cf0;
color: white;
}
}
\ No newline at end of file
components/page/userSelect.vue
View file @
a25dc3f1
...
@@ -24,22 +24,22 @@
...
@@ -24,22 +24,22 @@
</dl>
</dl>
</div>
</div>
<div
class=
"footer flex"
>
<div
class=
"footer flex"
>
<div
v-width=
"50"
class=
"f
lex fa-m
"
>
<div
v-width=
"50"
class=
"f
a-m fs
"
>
<span>
已选项
</span>
<span>
已选项
</span>
</div>
</div>
<dl
class=
"fg"
>
<div
class=
"fg"
>
<dl>
<dd
v-for=
"(li,i) in checkedItems"
>
<dd
v-for=
"(li,i) in checkedItems"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<span
class=
"fg"
>
<span
class=
"fg"
>
{{
li
.
userName
}}
</span>
{{
li
.
userName
}}
<a
@
click=
"removeItem(li)"
>
</span>
<Icon
type=
"md-close"
size=
"16"
/>
<a>
X
</a>
</a>
</div>
</div>
</dd>
</dd>
</dl>
</dl>
</div>
</div>
</div>
</div>
</div>
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
default
:
""
default
:
""
}
}
},
},
methods
:
{
methods
:
{
change
(
event
)
{
change
(
event
)
{
// console.log(event)
// console.log(event)
this
.
$emit
(
"on-change"
,
event
);
this
.
$emit
(
"on-change"
,
event
);
...
@@ -131,18 +131,27 @@ export default {
...
@@ -131,18 +131,27 @@ export default {
})
})
.
then
(
r
=>
{
.
then
(
r
=>
{
this
.
data
=
r
.
result
;
this
.
data
=
r
.
result
;
if
(
this
.
theme
==
"list"
){
this
.
departmentGroup
();
this
.
departmentGroup
();
}
});
});
},
},
departmentGroup
()
{
departmentGroup
()
{
var
group
=
[];
var
group
=
[];
group
=
this
.
$u
.
group
(
this
.
data
,
u
=>
{
var
users
=
this
.
$u
.
clone
(
this
.
data
);
if
(
this
.
name
&&
this
.
name
.
length
>
0
){
users
.
map
(
u
=>
{
u
.
checked
=
this
.
name
.
indexOf
(
u
.
id
)
>-
1
;
})
}
group
=
this
.
$u
.
group
(
users
,
u
=>
{
return
u
.
departmentId
;
return
u
.
departmentId
;
});
});
var
deps
=
[];
var
deps
=
[];
group
.
map
((
u
,
i
)
=>
{
group
.
map
((
u
,
i
)
=>
{
deps
.
push
({
deps
.
push
({
departmentTitle
:
u
[
0
].
departmentTitle
,
departmentTitle
:
u
[
0
].
departmentTitle
,
departmentId
:
u
[
0
].
departmentId
,
children
:
u
,
children
:
u
,
opened
:
(
i
=
0
),
opened
:
(
i
=
0
),
checked
:
false
checked
:
false
...
@@ -158,39 +167,75 @@ export default {
...
@@ -158,39 +167,75 @@ export default {
item
.
checked
=
!
item
.
checked
;
item
.
checked
=
!
item
.
checked
;
this
.
group
[
i
][
j
]
=
item
;
this
.
group
[
i
][
j
]
=
item
;
this
.
$set
(
this
.
group
,
i
,
this
.
group
[
i
]);
this
.
$set
(
this
.
group
,
i
,
this
.
group
[
i
]);
this
.
listSetValue
();
},
removeItem
(
item
)
{
this
.
group
.
map
((
u
,
i
)
=>
{
if
(
u
.
departmentId
==
item
.
departmentId
)
{
u
.
children
.
map
(
p
=>
{
if
(
p
.
id
==
item
.
id
)
{
p
.
checked
=
false
;
}
});
this
.
$set
(
this
.
group
,
i
,
u
);
}
});
this
.
listSetValue
();
},
},
checkAll
(
item
,
i
){
//list 时,设置值。
item
.
children
.
map
(
u
=>
{
listSetValue
(){
u
.
checked
=
item
.
checked
;
var
ids
=
[];
this
.
checkedItems
.
map
(
u
=>
{
ids
.
push
(
u
.
id
)
})
})
this
.
$set
(
this
.
group
,
i
,
this
.
group
[
i
]);
this
.
$emit
(
"on-change"
,
ids
);
},
checkAll
(
item
,
i
)
{
item
.
children
.
map
(
u
=>
{
u
.
checked
=
item
.
checked
;
});
this
.
$set
(
this
.
group
,
i
,
this
.
group
[
i
]);
this
.
listSetValue
();
},
},
//获取所有的选中项
//获取所有的选中项
getSelectItems
()
{
getSelectItems
()
{
var
items
=
[];
var
items
=
[];
if
(
!
this
.
multiple
)
{
if
(
this
.
theme
==
"list"
)
{
//单选时返回信息
this
.
checkedItems
.
map
(
u
=>
{
var
item1
=
this
.
dic
.
filter
(
u
=>
u
.
value
==
this
.
value
);
items
.
push
(
u
);
if
(
item1
&&
item1
[
0
])
{
});
items
.
push
(
item1
[
0
]);
}
}
else
{
}
else
{
//复选时返回
if
(
!
this
.
multiple
)
{
this
.
value
.
forEach
(
v
=>
{
//单选时返回信息
var
item
=
this
.
dic
.
filter
(
u
=>
u
.
value
==
v
);
var
item
1
=
this
.
dic
.
filter
(
u
=>
u
.
value
==
this
.
value
);
if
(
item
&&
item
[
0
])
{
if
(
item
1
&&
item1
[
0
])
{
items
.
push
(
item
[
0
]);
items
.
push
(
item
1
[
0
]);
}
}
});
}
else
{
//复选时返回
this
.
value
.
forEach
(
v
=>
{
var
item
=
this
.
dic
.
filter
(
u
=>
u
.
value
==
v
);
if
(
item
&&
item
[
0
])
{
items
.
push
(
item
[
0
]);
}
});
}
}
}
return
items
;
return
items
;
},
},
//获取所有选中项的名称
//获取所有选中项的名称
getSelectNames
()
{
getSelectNames
()
{
var
names
=
[];
var
names
=
[];
this
.
getSelectItems
().
forEach
(
v
=>
{
if
(
this
.
theme
==
"list"
)
{
names
.
push
(
v
.
label
);
this
.
checkedItems
.
map
(
u
=>
{
});
items
.
push
(
u
.
userName
);
});
}
else
{
this
.
getSelectItems
().
forEach
(
v
=>
{
names
.
push
(
v
.
label
);
});
}
return
names
;
return
names
;
}
}
},
},
...
@@ -253,6 +298,7 @@ export default {
...
@@ -253,6 +298,7 @@ export default {
font-size: 14px;
font-size: 14px;
}
}
dl {
dl {
width: 100%;
margin-bottom: 2px;
margin-bottom: 2px;
dt,
dt,
dd {
dd {
...
@@ -302,6 +348,20 @@ export default {
...
@@ -302,6 +348,20 @@ export default {
border: 2px solid transparent;
border: 2px solid transparent;
color: #515a6e;
color: #515a6e;
margin: 10px;
margin: 10px;
a {
display: inline-flex;
width: 20px;
height: 20px;
border-radius: 4px;
border: 1px solid transparent;
justify-items: center;
align-items: center;
margin-top: 5px;
}
a:hover {
background: rgb(241, 14, 14);
color: white;
}
}
}
dd:hover {
dd:hover {
// background: rgba(38, 128, 235, 1);
// background: rgba(38, 128, 235, 1);
...
@@ -324,7 +384,7 @@ export default {
...
@@ -324,7 +384,7 @@ export default {
opacity: 1;
opacity: 1;
border-radius: 4px;
border-radius: 4px;
min-height: 48px;
min-height: 48px;
flex-wrap:wrap;
flex-wrap:
wrap;
}
}
}
}
}
}
...
...
layouts/basic-layout/product.vue
View file @
a25dc3f1
...
@@ -400,6 +400,7 @@ export default {
...
@@ -400,6 +400,7 @@ export default {
left: 56%;
left: 56%;
top: 57%;
top: 57%;
min-width: 1084px;
min-width: 1084px;
// min-width: 777px;
min-height: 300px;
min-height: 300px;
box-shadow: 0px 5px 17px 5px rgba(0, 0, 0, 0.28);
box-shadow: 0px 5px 17px 5px rgba(0, 0, 0, 0.28);
background: #f5f6fa;
background: #f5f6fa;
...
...
pages/aps/dispatch/index.vue
View file @
a25dc3f1
...
@@ -66,7 +66,6 @@
...
@@ -66,7 +66,6 @@
</p>
</p>
<p>
{{
li
.
beginTime
}}
--
{{
li
.
endTime
}}
</p>
<p>
{{
li
.
beginTime
}}
--
{{
li
.
endTime
}}
</p>
<p>
人员 :
{{
li
.
userNames
}}
</p>
<p>
人员 :
{{
li
.
userNames
}}
</p>
<!--
<p>
设备 :
{{
item
.
equipCode
}}
</p>
-->
</div>
</div>
</Card>
</Card>
</Col>
</Col>
...
@@ -105,7 +104,6 @@
...
@@ -105,7 +104,6 @@
v-else-if=
"item.dispatchStatus!=2 && item.pid != 0"
v-else-if=
"item.dispatchStatus!=2 && item.pid != 0"
@
click=
"removeDetail(item,index)"
@
click=
"removeDetail(item,index)"
></op>
></op>
<!-- -->
</p>
</p>
<p>
{{
item
.
beginTime
}}
--
{{
item
.
endTime
}}
</p>
<p>
{{
item
.
beginTime
}}
--
{{
item
.
endTime
}}
</p>
<p>
人员 :
{{
item
.
userNames
}}
</p>
<p>
人员 :
{{
item
.
userNames
}}
</p>
...
@@ -135,7 +133,8 @@
...
@@ -135,7 +133,8 @@
</span>
</span>
</p>
</p>
<div
class=
"dispatch_part_body"
:style=
"
{height:byheight}">
<div
class=
"dispatch_part_body"
:style=
"
{height:byheight}">
<h4
class=
"tc"
v-if=
"listMan.length==0 || listSheBei.length==0"
>
暂无数据
</h4>
<h4
class=
"tc"
v-if=
"listSheBei.length==0 && button2 == '设备'"
>
暂无数据
</h4>
<h4
class=
"tc"
v-else-if=
"listMan.length==0 && button2 == '人员'"
>
暂无数据
</h4>
<div
class=
"shebei"
v-if=
"button2 == '设备'"
>
<div
class=
"shebei"
v-if=
"button2 == '设备'"
>
<Row
:gutter=
"15"
>
<Row
:gutter=
"15"
>
<!--
{{
shebeiId
}}
-->
<!--
{{
shebeiId
}}
-->
...
@@ -200,8 +199,7 @@
...
@@ -200,8 +199,7 @@
:mask-closable=
"false"
:mask-closable=
"false"
ok-text=
"拆分"
ok-text=
"拆分"
@
on-ok=
"okChai()"
@
on-ok=
"okChai()"
>
>
拆分数量:
拆分数量:
<Tag>
{{
chaiNum
}}
</Tag>
<Tag>
{{
chaiNum
}}
</Tag>
<Slider
v-model=
"chaiNum"
:max=
"maxnum"
show-stops
:min=
"1"
></Slider>
<Slider
v-model=
"chaiNum"
:max=
"maxnum"
show-stops
:min=
"1"
></Slider>
</Modal>
</Modal>
...
@@ -232,8 +230,7 @@
...
@@ -232,8 +230,7 @@
v-model=
"entity.userIds"
v-model=
"entity.userIds"
:multiple=
"true"
:multiple=
"true"
style=
"width: 500px"
style=
"width: 500px"
/>
/>
<!-- :type="3" -->
<!-- :type="3" -->
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"24"
class=
"drawer_midell"
>
<Col
span=
"24"
class=
"drawer_midell"
>
...
@@ -268,12 +265,9 @@
...
@@ -268,12 +265,9 @@
<FormItem
label=
"工时"
prop=
"taskTime"
>
<FormItem
label=
"工时"
prop=
"taskTime"
>
<DatePicker
<DatePicker
v-model=
"pentity.taskTime"
v-model=
"pentity.taskTime"
type=
"datetimerange"
type=
"datetimerange"
placement=
"bottom-start"
placement=
"bottom-start"
:options=
"dateRange"
@
on-change=
"handleChange"
:options=
"dateRange"
placeholder=
"请选择时间段"
style=
"width: 330px"
@
on-change=
"handleChange"
placeholder=
"请选择时间段"
style=
"width: 330px"
></DatePicker>
></DatePicker>
</FormItem>
</FormItem>
</Col>
</Col>
...
@@ -285,13 +279,9 @@
...
@@ -285,13 +279,9 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<FormItem
label=
"备注"
style=
"width:100%"
>
<FormItem
label=
"备注"
style=
"width:100%"
>
<Input
<Input
maxlength=
"200"
maxlength=
"200"
v-model=
"pentity.remark"
v-model=
"pentity.remark"
type=
"textarea"
:autosize=
"
{minRows: 3,maxRows: 5}"
type=
"textarea"
show-word-limit class="drawer_row_textarea"/>
:autosize=
"
{minRows: 3,maxRows: 5}"
show-word-limit
class="drawer_row_textarea"
/>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
@@ -317,8 +307,7 @@ export default {
...
@@ -317,8 +307,7 @@ export default {
listShow
:
"订单"
,
listShow
:
"订单"
,
shebei
:
""
,
shebei
:
""
,
curTask
:
null
,
curTask
:
null
,
dateRange
:
{
dateRange
:
{
//禁选工时时间区间
//禁选工时时间区间
disabledDate
(
date
)
{
disabledDate
(
date
)
{
return
date
&&
date
.
valueOf
()
<
Date
.
now
()
-
86400000
;
return
date
&&
date
.
valueOf
()
<
Date
.
now
()
-
86400000
;
}
}
...
@@ -454,9 +443,7 @@ export default {
...
@@ -454,9 +443,7 @@ export default {
res
.
result
.
map
(
u
=>
{
res
.
result
.
map
(
u
=>
{
if
(
u
.
pid
)
{
if
(
u
.
pid
)
{
pid
=
u
.
pid
;
pid
=
u
.
pid
;
}
else
{
}
else
{
pid
=
0
;}
pid
=
0
;
}
let
detailnew
=
{
let
detailnew
=
{
beginTime
:
u
.
beginTime
,
//开始时间
beginTime
:
u
.
beginTime
,
//开始时间
dispatchStatus
:
u
.
dispatchStatus
,
//
dispatchStatus
:
u
.
dispatchStatus
,
//
...
@@ -499,7 +486,6 @@ export default {
...
@@ -499,7 +486,6 @@ export default {
},
},
// 过滤条件
// 过滤条件
changeStatus
(
a
)
{
changeStatus
(
a
)
{
// console.log(a)
this
.
getUserInfoFn
();
this
.
getUserInfoFn
();
},
},
// 打开抽屉
// 打开抽屉
...
@@ -509,7 +495,6 @@ export default {
...
@@ -509,7 +495,6 @@ export default {
let
timebegin
=
formData
[
0
].
beginTime
;
let
timebegin
=
formData
[
0
].
beginTime
;
let
timend
=
formData
[
0
].
endTime
;
let
timend
=
formData
[
0
].
endTime
;
this
.
newList
=
[];
this
.
newList
=
[];
// console.log("选中的id",chekids)
chekids
.
forEach
(
v
=>
{
chekids
.
forEach
(
v
=>
{
var
item
=
formData
.
filter
(
u
=>
{
var
item
=
formData
.
filter
(
u
=>
{
return
u
.
id
==
v
;
return
u
.
id
==
v
;
...
@@ -523,24 +508,12 @@ export default {
...
@@ -523,24 +508,12 @@ export default {
this
.
facilityModal
=
true
;
this
.
facilityModal
=
true
;
}
else
{
}
else
{
this
.
pentity
.
taskTime
=
[
timebegin
,
timend
];
this
.
pentity
.
taskTime
=
[
timebegin
,
timend
];
// if (
// formData.map(t => {
// this.newList.filter(m => {
// if ((m.id = t.id)) {
// console.log(m.checked);
// }
// });
// })
// ) {
// }
this
.
manModal
=
true
;
this
.
manModal
=
true
;
}
}
// console.log("选中的数据", this.newList);
// console.log("选中的数据", this.newList);
},
},
// 设备派工
// 设备派工
sendSheBei
()
{
sendSheBei
()
{
let
item
=
this
.
newList
;
let
item
=
this
.
newList
;
// console.log(item)
item
.
map
(
u
=>
{
item
.
map
(
u
=>
{
u
.
userIds
=
this
.
entity
.
userIds
;
u
.
userIds
=
this
.
entity
.
userIds
;
u
.
remark
=
this
.
entity
.
remark
;
u
.
remark
=
this
.
entity
.
remark
;
...
@@ -569,7 +542,6 @@ export default {
...
@@ -569,7 +542,6 @@ export default {
// 人员派工
// 人员派工
sendUser
()
{
sendUser
()
{
let
item
=
this
.
newList
;
let
item
=
this
.
newList
;
// console.log("派工的数据",item)
item
.
map
(
u
=>
{
item
.
map
(
u
=>
{
u
.
userIds
=
this
.
peploeId
;
u
.
userIds
=
this
.
peploeId
;
u
.
remark
=
this
.
pentity
.
remark
;
u
.
remark
=
this
.
pentity
.
remark
;
...
@@ -596,22 +568,20 @@ export default {
...
@@ -596,22 +568,20 @@ export default {
},
},
// 拆分方法
// 拆分方法
setChai
(
item
,
index
)
{
setChai
(
item
,
index
)
{
// console.log(item, index)
this
.
curTask
=
item
;
this
.
curTask
=
item
;
this
.
chaiModal
=
true
;
this
.
chaiModal
=
true
;
this
.
chaiNum
=
1
;
this
.
chaiNum
=
1
;
this
.
maxnum
=
item
.
quantity
-
1
;
this
.
maxnum
=
item
.
quantity
-
1
;
this
.
rowIndex
=
index
;
this
.
rowIndex
=
index
;
},
},
// 拆分保存
// 拆分保存
okChai
()
{
okChai
()
{
var
old
=
this
.
$u
.
clone
(
this
.
curTask
);
var
old
=
this
.
$u
.
clone
(
this
.
curTask
);
var
add
=
this
.
$u
.
clone
(
this
.
curTask
);
var
add
=
this
.
$u
.
clone
(
this
.
curTask
);
old
.
quantity
-=
this
.
chaiNum
;
old
.
quantity
-=
this
.
chaiNum
;
add
.
quantity
=
this
.
chaiNum
;
add
.
quantity
=
this
.
chaiNum
;
add
.
id
=
0
;
add
.
id
=
0
;
add
.
pid
=
old
.
id
;
add
.
pid
=
old
.
id
;
let
params
=
{
let
params
=
{
isDispatch
:
0
,
//派工是1,保存是0
isDispatch
:
0
,
//派工是1,保存是0
entryList
:
[
old
,
add
]
entryList
:
[
old
,
add
]
...
@@ -636,14 +606,9 @@ export default {
...
@@ -636,14 +606,9 @@ export default {
this
.
$Message
.
error
(
"拆分项删除失败!"
);
this
.
$Message
.
error
(
"拆分项删除失败!"
);
}
}
});
});
// let oldList = this.listTask;
// let clickRow = oldList.filter(listRow=>listRow.process_name===item.process_name)[0];
// clickRow.quantity += this.chaiNum
// this.listTask.splice(index, 1)
// this.$Message.success('拆分项已删除。')
},
},
//取消
cancle
()
{
cancle
()
{
//取消
this
.
facilityModal
=
false
;
this
.
facilityModal
=
false
;
this
.
manModal
=
false
;
this
.
manModal
=
false
;
this
.
footerToolbar
=
false
;
this
.
footerToolbar
=
false
;
...
@@ -653,20 +618,15 @@ export default {
...
@@ -653,20 +618,15 @@ export default {
ids
()
{
ids
()
{
let
ids
=
[];
let
ids
=
[];
this
.
listTask
.
map
(
u
=>
{
this
.
listTask
.
map
(
u
=>
{
if
(
u
.
checked
)
{
if
(
u
.
checked
)
{
ids
.
push
(
u
.
id
);}
ids
.
push
(
u
.
id
);
}
});
});
if
(
ids
.
length
>
0
)
{
if
(
ids
.
length
>
0
)
{
this
.
footerToolbar
=
true
;}
this
.
footerToolbar
=
true
;
}
return
ids
;
return
ids
;
},
},
listOrder
()
{
listOrder
()
{
let
orders
=
this
.
$u
.
group
(
this
.
listTask
,
u
=>
{
let
orders
=
this
.
$u
.
group
(
this
.
listTask
,
u
=>
{
return
u
.
mesCode
;
return
u
.
mesCode
;
});
});
// console.warn("listOrder", orders);
// console.warn("listOrder", orders);
return
orders
;
return
orders
;
},
},
peploeId
()
{
peploeId
()
{
...
@@ -687,6 +647,4 @@ export default {
...
@@ -687,6 +647,4 @@ export default {
},
},
watch
:
{}
watch
:
{}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
\ No newline at end of file
</
style
>
\ No newline at end of file
pages/mesPlan/index.vue
View file @
a25dc3f1
<
template
>
<
template
>
<Layout
class=
"full"
>
<Layout
class=
"full"
>
<Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260">
<
!--
<
Sider
hide-trigger
:style=
"
{background: '#fff'}" width="260">
<div
class=
"zh-tree"
:style=
"
{height:treeHeight+'px'}">
<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"
>
...
@@ -13,8 +13,16 @@
...
@@ -13,8 +13,16 @@
>
</Tree>
>
</Tree>
</div>
</div>
</div>
</div>
</Sider>
-->
<Sider
hide-trigger
v-if=
"showMenu"
class=
"menu_side"
width=
"300"
>
<ProductTree
@
on-hide=
"onHide"
@
on-select=
"productSearch"
/>
</Sider>
</Sider>
<Content
class=
"content"
>
<div
v-if=
"!showMenu"
class=
"show_menu"
>
<a
class=
"menu_play fr"
@
click=
"showMenuFn"
title=
"展开"
>
<Icon
type=
"ios-arrow-forward"
size=
"24"
/>
</a>
</div>
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<!--:data="dataT"-->
<!--:data="dataT"-->
<DataGrid
<DataGrid
:action=
"action"
:action=
"action"
...
@@ -100,19 +108,21 @@ import Detail from "./detail";
...
@@ -100,19 +108,21 @@ import Detail from "./detail";
import
Search
from
"./search"
;
import
Search
from
"./search"
;
import
Split
from
"./split"
;
import
Split
from
"./split"
;
import
Send
from
"./send"
;
import
Send
from
"./send"
;
import
ProductTree
from
"@/components/page/productTree.vue"
;
export
default
{
export
default
{
name
:
"list"
,
name
:
"list"
,
components
:
{
components
:
{
Add
,
Add
,
Edit
,
Edit
,
Detail
,
Detail
,
Search
,
Search
,
Split
,
Split
,
Send
Send
,
ProductTree
,
},
},
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
showMenu
:
true
,
easySearch
:
{
easySearch
:
{
keys
:
{
keys
:
{
op
:
"mesCode,productName"
,
op
:
"mesCode,productName"
,
...
@@ -763,6 +773,18 @@ export default {
...
@@ -763,6 +773,18 @@ export default {
this
.
$Message
.
error
(
"数量为1,不能进行分解"
);
this
.
$Message
.
error
(
"数量为1,不能进行分解"
);
}
}
},
},
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
);
},
//确定分解
//确定分解
orderSplitOk
()
{
orderSplitOk
()
{
let
returnDatalist
=
this
.
$refs
.
orderSplit
.
returnDataList
();
let
returnDatalist
=
this
.
$refs
.
orderSplit
.
returnDataList
();
...
...
pages/order/quotation/index.vue
View file @
a25dc3f1
...
@@ -4,8 +4,16 @@
...
@@ -4,8 +4,16 @@
<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"
>
<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>
-->
<!-- 右侧内容 -->
<!-- 右侧内容 -->
<Content
class=
"content"
>
<Content
class=
"content"
:class=
"!showMenu?'con_bord':''"
>
<Tabs
v-model=
"selectName"
@
on-click=
"handleClick"
>
<Tabs
v-model=
"selectName"
@
on-click=
"handleClick"
>
<TabPane
label=
"订单报价"
key=
"offer"
name=
"offer"
>
<TabPane
label=
"订单报价"
key=
"offer"
name=
"offer"
>
<div
class=
"search-form"
>
<div
class=
"search-form"
>
...
@@ -140,7 +148,7 @@ import MetalQuotation from "./components/metalQuotation.vue"; //订单报价弹
...
@@ -140,7 +148,7 @@ import MetalQuotation from "./components/metalQuotation.vue"; //订单报价弹
import
Photosensitive
from
"./components/photosensitive.vue"
;
//订单报价弹框光敏
import
Photosensitive
from
"./components/photosensitive.vue"
;
//订单报价弹框光敏
import
MetalDetails
from
"./components/metalDetails.vue"
;
//报价历史记录铺粉详情弹框
import
MetalDetails
from
"./components/metalDetails.vue"
;
//报价历史记录铺粉详情弹框
import
PhotosensitiveDetails
from
"./components/photosensitiveDetails.vue"
;
//报价历史记录光敏详情弹框
import
PhotosensitiveDetails
from
"./components/photosensitiveDetails.vue"
;
//报价历史记录光敏详情弹框
import
ProductTree
from
"@/components/page/productTree.vue"
;
//左侧树列表
import
MetalQuotationGeneration
from
"./components/metalQuotationGeneration.vue"
;
//生成报价单弹框
import
MetalQuotationGeneration
from
"./components/metalQuotationGeneration.vue"
;
//生成报价单弹框
import
PhotosensitiveGeneration
from
"./components/photosensitiveGeneration.vue"
;
//生成报价单弹框
import
PhotosensitiveGeneration
from
"./components/photosensitiveGeneration.vue"
;
//生成报价单弹框
export
default
{
export
default
{
...
@@ -152,7 +160,7 @@ export default {
...
@@ -152,7 +160,7 @@ export default {
MetalQuotation
,
MetalQuotation
,
Photosensitive
,
Photosensitive
,
MetalDetails
,
MetalDetails
,
PhotosensitiveDetails
,
PhotosensitiveDetails
,
ProductTree
,
MetalQuotationGeneration
,
MetalQuotationGeneration
,
PhotosensitiveGeneration
PhotosensitiveGeneration
},
},
...
@@ -162,6 +170,7 @@ export default {
...
@@ -162,6 +170,7 @@ export default {
result
:
[]
result
:
[]
},
},
userId
:
0
,
userId
:
0
,
showMenu
:
true
,
model1
:
""
,
model1
:
""
,
rows
:
{},
rows
:
{},
modalDai
:
false
,
//待审核
modalDai
:
false
,
//待审核
...
@@ -381,6 +390,16 @@ export default {
...
@@ -381,6 +390,16 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
onHide
()
{
this
.
showMenu
=
false
;
},
showMenuFn
()
{
this
.
showMenu
=
true
;
},
productSearch
(
id
,
item
,
ids
)
{
let
where
=
{
productId
:
{
op
:
"In"
,
value
:
ids
}
};
this
.
$refs
.
grid
.
reload
(
where
);
},
update
()
{
update
()
{
this
.
tableTata
(
this
.
selectName
);
this
.
tableTata
(
this
.
selectName
);
},
},
...
...
pages/technology/index.vue
View file @
a25dc3f1
<
style
lang=
"less"
>
<
style
lang=
"less"
>
@import "./technolog.less";
@import "./technolog.less";
.lay100 {
height: calc(100vh - 105px);
background-color: #f5f6fa;
.con {
padding: 5px 5px 0px 10px;
}
.con_bord {
// margin: 15px 32px;
box-shadow: #c7c7c7 1px 2px 7px 3px;
}
background: rgba(245, 246, 250, 1);
}
.fullWindow {
.fullWindow {
position: fixed;
position: fixed;
width: 100%;
width: 100%;
...
@@ -20,7 +9,7 @@
...
@@ -20,7 +9,7 @@
bottom: 0;
bottom: 0;
right: 0;
right: 0;
// bottom:100%;
// bottom:100%;
// right: 100%;
// right: 100%;
z-index: 898;
z-index: 898;
background-color: white;
background-color: white;
// background: red;
// background: red;
...
...
pages/test.vue
View file @
a25dc3f1
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
.bg1{
.bg1{
background:#fefefe ;
background:#fefefe ;
}
}
.fg {
// &
.fg {
overflow: auto;
// //
overflow: auto;
}
//
}
}
}
.layout-copy {
.layout-copy {
text-align: center;
text-align: center;
...
...
pages/test/user.vue
View file @
a25dc3f1
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
<div
style=
"padding:50px;"
>
<div
style=
"padding:50px;"
>
<UserSelect
v-model=
"user"
:multiple=
"true"
theme=
"list"
/>
<UserSelect
v-model=
"user"
:multiple=
"true"
theme=
"list"
/>
<!--
<DepartmentSelect
v-model=
"dep"
/>
<!--
<DepartmentSelect
v-model=
"dep"
/>
{{
user
}}
<Button
@
click=
"setUser"
>
Set
</Button>
{{
dep
}}
-->
<Button
@
click=
"setUser"
>
Set
</Button>
{{
dep
}}
-->
{{
user
}}
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
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