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
9f691aef
Commit
9f691aef
authored
Aug 07, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配套
parent
5bbb1b8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
55 deletions
+6
-55
addAccessory.vue
pages/aps/plan/addAccessory.vue
+2
-31
editAccessory.vue
pages/aps/plan/editAccessory.vue
+4
-24
No files found.
pages/aps/plan/addAccessory.vue
View file @
9f691aef
...
...
@@ -158,11 +158,10 @@ export default {
el
.
count
=
el
.
totalCount
;
el
.
_checked
=
true
;
el
.
_index
=
i
++
;
//el._disabled=true
});
});
this
.
datas
=
r
.
result
;
//----测试多个工艺start
//----测试多个工艺start
----
// let temre = this.$u.clone(r.result);
// temre.forEach((ele) => {
// ele.routingHeaderId = 281;
...
...
@@ -173,7 +172,7 @@ export default {
// });
// });
// this.datas = r.result.concat(temre);
//----测试多个工艺end
//----测试多个工艺end
----
}
});
},
...
...
@@ -222,44 +221,16 @@ export default {
this
.
$set
(
this
.
datas
[
v
].
suport
,
index
,
ele
);
});
}
// if (this.curArr.length == 0) {
// //取消全部时
// let temc = this.$u.clone(this.selectItems);
// let temb = this.delByHeadId(temc, v);
// this.selectItems = [];
// this.selectItems = temb;
// this.footerToolbar = this.selectItems.length > 0;
// //alert("this.selectAllCancel___" + JSON.stringify(this.selectItems));
// }
},
selectList
(
items
,
row
)
{
this
.
curArr
=
1
;
//this.selectItems.push(row);
// alert("this.selectItems___" + JSON.stringify(this.selectItems));
//this.footerToolbar = this.selectItems.length > 0;
this
.
cRow
=
row
;
},
selectListAll
(
items
)
{
this
.
curArr
=
2
;
// let tema = this.selectItems.concat(items);
// let temo = this.delSame(tema);
// this.selectItems = [];
// this.selectItems = temo;
//alert("this.selectListAlls___" + JSON.stringify(this.selectItems));
// this.footerToolbar = this.selectItems.length > 0;
},
selectListCancel
(
items
,
row
)
{
this
.
curArr
=
3
;
// let tempSelectItems = this.$u.clone(this.selectItems);
//let delId = row.id;
// let arrs = this.delById(tempSelectItems, delId);
// this.selectItems = [];
// this.selectItems = arrs;
//alert("this.selectListCancel___" + JSON.stringify(this.selectItems));
//this.footerToolbar = this.selectItems.length > 0;
// this.$set(this.datas[i].suport, index, row);
this
.
cRow
=
row
;
},
selectAllCancel
(
items
)
{
...
...
pages/aps/plan/editAccessory.vue
View file @
9f691aef
...
...
@@ -61,7 +61,6 @@
</FormItem>
</Form>
<Button
type=
"primary"
class=
"mr10 ml10"
@
click=
"application"
>
申请配套
</Button>
<Button
@
click=
"cancelBatch"
v-show=
"false"
>
取消
</Button>
</FooterToolbar>
<Modal
v-model=
"modalAccessoryList"
:title=
"title"
fullscreen
footer-hide
>
...
...
@@ -320,11 +319,6 @@ export default {
}
});
},
l
(
key
)
{
let
vkey
=
"plan_resource"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
getTimeQuotationFD
(
value
)
{
this
.
orderForm
.
QuotationFinishDate
=
value
!=
""
?
this
.
getFormatDateEnd
(
value
)
:
value
;
...
...
@@ -348,6 +342,7 @@ export default {
return
s
<
10
?
"0"
+
s
:
s
;
},
selectionChange
(
v
)
{
//根据状态修改this.datas数组数据
if
(
this
.
curArr
==
3
)
{
//单条取消选择
this
.
cRow
.
_checked
=
false
;
...
...
@@ -383,7 +378,6 @@ export default {
},
selectListCancel
(
items
,
row
)
{
this
.
curArr
=
3
;
this
.
cRow
=
row
;
},
selectAllCancel
(
items
)
{
...
...
@@ -436,7 +430,6 @@ export default {
Api
.
supportmainCreate
(
parms
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
"申请成功"
);
//this.$emit("cancel");
this
.
$emit
(
"on-ok"
);
}
});
...
...
@@ -494,31 +487,18 @@ export default {
this
.
entity
=
row
;
this
.
modalAccSet
=
true
;
},
cancelBatch
()
{
//取消选择
this
.
selectItems
=
[];
let
temd
=
this
.
$u
.
clone
(
this
.
datas
);
temd
.
forEach
((
res
)
=>
{
this
.
$refs
[
"table"
+
res
.
routingHeaderId
][
0
].
selectAll
(
false
);
});
this
.
footerToolbar
=
false
;
},
openAcc
()
{
openAcc
()
{
//打开申请单页面
this
.
title
=
"申请单"
;
this
.
detailAcc
=
()
=>
import
(
"./detailAccessory"
);
this
.
modalAccessoryList
=
true
;
},
ok
()
{
this
.
modalAccessory
=
false
;
this
.
curId
=
0
;
},
cancel
()
{
this
.
modalAccessoryList
=
false
;
},
canelSet
()
{
canelSet
()
{
//临时设置取消
this
.
modalAccSet
=
false
;
},
onOk
()
{
onOk
()
{
//重新加载页面数据
this
.
load
(
this
.
eid
);
},
},
...
...
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