Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MES_PAD
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
Administrator
MES_PAD
Commits
6f87e2a8
Commit
6f87e2a8
authored
Apr 08, 2019
by
王文琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youhua
parent
04b66a86
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
131 deletions
+154
-131
NeedleDispatch.js
dest/js/mes/NeedleDispatch.js
+120
-105
NeedlecarHandover.js
dest/js/mes/NeedlecarHandover.js
+5
-5
Cutting.html
html/Cutting.html
+0
-1
NeedleDispatch.html
html/NeedleDispatch.html
+24
-16
work.html
html/work.html
+4
-3
manifest.json
manifest.json
+1
-1
No files found.
dest/js/mes/NeedleDispatch.js
View file @
6f87e2a8
...
...
@@ -86,101 +86,100 @@ var app = new Vue({
PersonList
:
[],
all
:
false
,
//全选
WorkTeamID
:
0
,
//班组
//
isAward: 0, //是否发包
Sure
isAward
:
0
,
//是否发包
Workers
:
[],
ReportType
:
1
,
ReportType
:
1
,
isData
:
false
,
//是否显示搜索
dateTime2
:
0
,
workTimeData
:[],
currentWorkTime
:
''
,
//班组
isWorkTeam
:
false
,
workTimeData
:
[],
currentWorkTime
:
''
,
//班组
isWorkTeam
:
false
,
},
computed
:
{
isAward
:
function
()
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Update'
))
{
if
(
this
.
itemsData2
.
length
!=
0
)
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Update'
))
{
if
(
!
this
.
SureisAward
)
{
return
"disabled"
}
else
{
}
else
{
return
null
}
}
else
{
if
(
this
.
itemsData2
.
length
!=
0
)
{
return
"disabled"
}
}
else
{
return
"disabled"
}
},
isAward1
:
function
()
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Delete'
))
{
if
(
this
.
itemsData2
.
length
==
0
)
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Delete'
))
{
if
(
this
.
SureisAward
)
{
return
"disabled"
}
else
{
}
else
{
return
null
}
}
else
{
if
(
this
.
itemsData2
.
length
!=
0
)
{
return
"disabled"
}
}
else
{
return
"disabled"
}
},
selectPL
:
function
()
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Update'
))
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Update'
))
{
if
(
this
.
selectList
.
length
>
1
)
{
return
null
}
else
{
return
"disabled"
}
}
else
{
}
else
{
return
"disabled"
}
},
saveChange
:
function
()
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Update'
))
{
if
(
MenuAction
.
checkAction
(
'90037'
,
'Update'
))
{
return
null
}
else
{
}
else
{
return
"disabled"
}
},
},
created
:
function
()
{
//如果没有这句代码,select中初始化会是空白的,默认选中就无法实现
this
.
current
=
(
JSON
.
parse
(
localStorage
.
getItem
(
'NeedDispatchSelect'
))
==
null
||
''
)
?
this
.
searchData
[
0
].
id
:
JSON
.
parse
(
localStorage
.
getItem
(
'NeedDispatchSelect'
));
this
.
current
=
(
JSON
.
parse
(
localStorage
.
getItem
(
'NeedDispatchSelect'
))
==
null
||
''
)
?
this
.
searchData
[
0
].
id
:
JSON
.
parse
(
localStorage
.
getItem
(
'NeedDispatchSelect'
));
this
.
dateTime
=
moment
().
format
(
"YYYY-MM"
);
this
.
dateTime1
=
moment
().
format
(
"YYYY-MM-DD"
);
this
.
dateTime2
=
moment
().
format
(
"YYYY-MM-DD"
);
if
(
this
.
current
==
'3'
||
this
.
current
==
'4'
)
{
if
(
this
.
current
==
'3'
||
this
.
current
==
'4'
)
{
this
.
isData
=
true
;
this
.
isWorkTeam
=
false
;
}
else
if
(
this
.
current
==
'5'
)
{
}
else
if
(
this
.
current
==
'5'
)
{
this
.
isWorkTeam
=
true
;
this
.
isData
=
false
;
}
else
{
}
else
{
this
.
isWorkTeam
=
false
;
this
.
isData
=
false
;
}
this
.
getWorkTime
();
},
mounted
:
function
()
{
if
(
localStorage
.
getItem
(
'data'
))
{
console
.
log
(
localStorage
.
getItem
(
'data'
));
this
.
showStyleName
=
JSON
.
parse
(
localStorage
.
getItem
(
'
data'
)).
showIndexNo
;
this
.
showIndexNo
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showIndexNo
;
this
.
showCustomPO
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showCustomPO
;
this
.
showStyleCode
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showStyleCode
;
this
.
showColor
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showColor
;
this
.
showTotalCount
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showTotalCount
;
this
.
showPrice
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showPrice
;
this
.
showTotalMoney
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showTotalMoney
;
this
.
showMatchDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showMatchDate
;
this
.
showConfirmDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showConfirmDate
;
this
.
showZCPlanBeginDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showZCPlanBeginDate
;
this
.
showZCPlanDeliveryDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showZCPlanDeliveryDate
;
this
.
showPlanDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showPlanDate
;
this
.
showFinishDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'data'
)).
showFinishDate
;
if
(
localStorage
.
getItem
(
'
ZC
data'
))
{
console
.
log
(
localStorage
.
getItem
(
'
ZC
data'
));
this
.
showStyleName
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZCdata'
)).
showStyleName
;
this
.
showIndexNo
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showIndexNo
;
this
.
showCustomPO
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showCustomPO
;
this
.
showStyleCode
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showStyleCode
;
this
.
showColor
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showColor
;
this
.
showTotalCount
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showTotalCount
;
this
.
showPrice
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showPrice
;
this
.
showTotalMoney
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showTotalMoney
;
this
.
showMatchDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showMatchDate
;
this
.
showConfirmDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showConfirmDate
;
this
.
showZCPlanBeginDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showZCPlanBeginDate
;
this
.
showZCPlanDeliveryDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showZCPlanDeliveryDate
;
this
.
showPlanDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showPlanDate
;
this
.
showFinishDate
=
JSON
.
parse
(
localStorage
.
getItem
(
'
ZC
data'
)).
showFinishDate
;
}
},
...
...
@@ -196,16 +195,16 @@ var app = new Vue({
callback
:
function
()
{
var
Url
=
'/api/vMES/ZCProductionPlan/List'
;
var
dataList
=
app
.
itemsList
;
if
(
app
.
current
==
'4'
||
app
.
current
==
'3'
||
app
.
current
==
'5'
)
{
if
(
app
.
current
==
'4'
||
app
.
current
==
'3'
||
app
.
current
==
'5'
)
{
searchPull
(
Url
,
dataList
,
app
.
paramSearch
);
}
else
{
}
else
{
if
(
app
.
searchText
!=
""
)
{
searchPull
(
Url
,
dataList
,
app
.
paramSearch
);
}
else
{
pullupRefresh
(
Url
,
dataList
,
app
.
paramList
);
}
}
}
},
}
...
...
@@ -254,12 +253,12 @@ var app = new Vue({
indicators
:
true
,
//是否显示滚动条,默认是true
});
},
1000
);
app
.
changefontsize
();
}
function
searchPull
(
url
,
arr
,
params
)
{
setTimeout
(
function
()
{
if
(
app
.
current
==
'4'
||
app
.
current
==
'3'
)
{
if
(
app
.
current
==
'4'
||
app
.
current
==
'3'
)
{
var
para
=
{
searchText
:
app
.
dateTime2
,
PageSize
:
params
.
pageSize
,
...
...
@@ -267,7 +266,7 @@ var app = new Vue({
Date
:
app
.
dateTime
,
SearchType
:
app
.
current
,
};
}
else
if
(
app
.
current
==
'5'
)
{
}
else
if
(
app
.
current
==
'5'
)
{
var
para
=
{
searchText
:
app
.
currentWorkTime
,
PageSize
:
params
.
pageSize
,
...
...
@@ -275,7 +274,7 @@ var app = new Vue({
Date
:
app
.
dateTime
,
SearchType
:
app
.
current
,
};
}
else
{
}
else
{
var
para
=
{
searchText
:
app
.
searchText
,
PageSize
:
params
.
pageSize
,
...
...
@@ -284,7 +283,7 @@ var app = new Vue({
SearchType
:
app
.
current
,
};
}
Api
.
post
(
url
,
para
,
function
(
e
)
{
if
(
e
.
success
)
{
...
...
@@ -312,18 +311,18 @@ var app = new Vue({
mui
(
'#pullrefresh'
).
pullRefresh
().
endPullupToRefresh
();
mui
(
'#pullrefresh'
).
pullRefresh
().
refresh
(
true
);
},
1000
);
app
.
changefontsize
();
}
mui
(
'.mui-scroll-wrapper'
).
scroll
({
bounce
:
false
,
indicators
:
true
,
//是否显示滚动条
});
this
.
getData
();
this
.
dateTime
=
moment
().
format
(
"YYYY-MM"
);
this
.
dateTime1
=
moment
().
format
(
"YYYY-MM-DD"
);
this
.
dateTime2
=
moment
().
format
(
"YYYY-MM-DD"
);
console
.
log
(
"shijian"
+
this
.
dateTime2
);
mui
(
"
mui-search"
).
on
(
'tap'
,
'.mui-icon-clear
'
,
function
()
{
mui
(
"
.mui-icon-clear"
)[
0
].
addEventListener
(
'tap
'
,
function
()
{
document
.
activeElement
.
blur
();
//收起虚拟键盘
app
.
searchText
=
''
;
app
.
getData
(
0
);
...
...
@@ -331,7 +330,8 @@ var app = new Vue({
document
.
getElementsByClassName
(
'mui-inner-wrap'
)[
0
].
addEventListener
(
'drag'
,
function
(
event
)
{
event
.
stopPropagation
();
});
if
(
app
.
current
==
'4'
||
app
.
current
==
'3'
){
this
.
getData
();
if
(
app
.
current
==
'4'
||
app
.
current
==
'3'
)
{
var
para
=
{
SearchText
:
this
.
dateTime2
,
PageSize
:
20
,
...
...
@@ -340,7 +340,7 @@ var app = new Vue({
Date
:
this
.
dateTime
,
};
this
.
searchDetail
(
para
);
}
else
if
(
app
.
current
==
'5'
)
{
}
else
if
(
app
.
current
==
'5'
)
{
var
para
=
{
SearchText
:
this
.
currentWorkTime
,
PageSize
:
20
,
...
...
@@ -348,9 +348,9 @@ var app = new Vue({
SearchType
:
this
.
current
,
Date
:
this
.
dateTime
,
};
console
.
log
(
"vvvvvvvvvvvvvvv:"
+
JSON
.
stringify
(
para
))
console
.
log
(
"vvvvvvvvvvvvvvv:"
+
JSON
.
stringify
(
para
))
this
.
searchDetail
(
para
);
}
else
{
}
else
{
this
.
getData
();
}
},
...
...
@@ -373,10 +373,10 @@ var app = new Vue({
that
.
Summary
=
e
.
data
.
Summary
;
that
.
itemsList
=
e
.
data
.
items
;
that
.
tittle
=
e
.
data
.
Title
;
//console.log(JSON.stringify(e.data
.Title
));
//console.log(JSON.stringify(e.data));
that
.
changecolor
();
that
.
changefontsize
();
}
},
function
(
xhr
,
type
,
res
)
{
mui
.
toast
(
JSON
.
stringify
(
res
.
message
))
...
...
@@ -393,16 +393,35 @@ var app = new Vue({
}
}
}
},
changefontsize
:
function
()
{
var
len
=
document
.
getElementsByClassName
(
"changeFontSize"
);
var
size
=
16
;
for
(
var
i
=
0
;
i
<
len
.
length
;
i
++
)
{
var
fontLen
=
len
[
i
].
innerHTML
.
length
;
for
(
size
=
16
;
size
>
10
;
size
--
)
{
if
(
size
*
fontLen
<
len
[
i
].
offsetWidth
||
size
==
11
)
{
len
[
i
].
style
.
fontSize
=
size
+
"px"
;
break
}
}
}
},
closeRight
:
function
()
{
var
offCanvasWrapper
=
mui
(
'#app'
);
offCanvasWrapper
.
offCanvas
(
'close'
);
//location.reload();
this
.
getData
();
mui
(
'#pullrefresh'
).
scroll
().
scrollTo
(
0
,
1000
,
10
);
},
showColumn
:
function
()
{
this
.
show
=
true
;
},
change
:
function
(
n
)
{
//alert(n)
this
.
changefontsize
();
switch
(
n
)
{
case
0
:
this
.
showStyleName
=
!
this
.
showStyleName
;
...
...
@@ -453,8 +472,8 @@ var app = new Vue({
escChange
:
function
()
{
var
that
=
this
;
this
.
show
=
false
;
if
(
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"data"
)))
{
window
.
localStorage
.
removeItem
(
"data"
);
if
(
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"
ZC
data"
)))
{
window
.
localStorage
.
removeItem
(
"
ZC
data"
);
console
.
log
(
111111111111
)
}
if
(
!
window
.
localStorage
)
{
...
...
@@ -480,16 +499,16 @@ var app = new Vue({
var
d
=
JSON
.
stringify
(
data
);
console
.
log
(
d
);
storage
.
setItem
(
"data"
,
d
);
console
.
log
(
"ssssss"
+
storage
.
data
);
storage
.
setItem
(
"
ZC
data"
,
d
);
console
.
log
(
"ssssss"
+
storage
.
ZC
data
);
//console.log( JSON.parse(window.localStorage.getItem("data")).showIndexNo );
}
},
getWorkTime
:
function
()
{
getWorkTime
:
function
()
{
var
that
=
this
;
var
para
=
{
ReportType
:
that
.
ReportType
,
var
para
=
{
ReportType
:
that
.
ReportType
,
}
Api
.
post
(
'/api/vMES/ProductionReportV2/ListWorkTeam'
,
para
,
function
(
e
)
{
//console.log("eee::" + JSON.stringify(e.items))
...
...
@@ -498,7 +517,7 @@ var app = new Vue({
console
.
log
(
"搜索::"
+
e
.
items
.
length
)
if
(
data
>
0
)
{
that
.
workTimeData
=
e
.
items
;
that
.
currentWorkTime
=
that
.
workTimeData
[
0
];
that
.
currentWorkTime
=
that
.
workTimeData
[
0
];
console
.
log
(
"eee::"
+
JSON
.
stringify
(
that
.
workTimeData
[
0
]))
}
}
...
...
@@ -507,7 +526,7 @@ var app = new Vue({
});
},
goSearch
:
function
(
event
)
{
var
that
=
this
;
var
para
=
{
Date
:
that
.
dateTime
,
...
...
@@ -540,18 +559,18 @@ var app = new Vue({
SearchText
:
this
.
dateTime2
,
};
}
else
if
(
this
.
current
==
'5'
)
{
}
else
if
(
this
.
current
==
'5'
)
{
this
.
isData
=
false
;
this
.
isWorkTeam
=
true
;
var
para
=
{
Date
:
this
.
dateTime
,
PageSize
:
this
.
PageSize
,
PageSize
:
this
.
PageSize
,
PageIndex
:
this
.
PageIndex
,
SearchType
:
this
.
current
,
SearchText
:
this
.
searchText
,
SearchText
:
this
.
currentWorkTime
,
};
}
else
{
}
else
{
this
.
isData
=
false
;
this
.
isWorkTeam
=
false
;
var
para
=
{
...
...
@@ -565,32 +584,32 @@ var app = new Vue({
window
.
localStorage
.
setItem
(
"NeedDispatchSelect"
,
JSON
.
stringify
(
this
.
current
));
this
.
searchDetail
(
para
);
},
changeWorkTime
:
function
()
{
changeWorkTime
:
function
()
{
var
para
=
{
Date
:
this
.
dateTime
,
PageSize
:
this
.
PageSize
,
PageIndex
:
this
.
PageIndex
,
SearchType
:
this
.
current
,
SearchText
:
this
.
currentWorkTime
,
};
this
.
searchDetail
(
para
);
},
searchDetail
:
function
(
para
)
{
console
.
log
(
"搜索参数::"
+
JSON
.
stringify
(
para
));
var
that
=
this
;
that
.
paramSearch
=
{
that
.
paramSearch
=
{
pageIndex
:
2
,
pageSize
:
20
}
that
.
paramList
=
{
that
.
paramList
=
{
pageIndex
:
2
,
pageSize
:
20
}
console
.
log
(
JSON
.
stringify
(
that
.
paramSearch
));
// var s=document.getElementById("sDetail");
// s.scrollTo(0, 0);
// var s=document.getElementById("sDetail");
// s.scrollTo(0, 0);
//console.log(s.innerHTML);
//location.reload() ;
//that.itemsList=[];
...
...
@@ -599,11 +618,12 @@ var app = new Vue({
Api
.
post
(
'/api/vMES/ZCProductionPlan/List'
,
para
,
function
(
e
)
{
if
(
e
.
success
)
{
var
data
=
e
.
data
.
items
.
length
;
console
.
log
(
"搜索::"
+
JSON
.
stringify
(
e
.
data
.
items
)
)
console
.
log
(
"搜索::"
+
data
)
if
(
data
>
0
)
{
that
.
Summary
=
e
.
data
.
Summary
;
that
.
itemsList
=
e
.
data
.
items
;
that
.
changecolor
();
that
.
changefontsize
();
}
else
{
that
.
itemsList
=
[];
mui
.
toast
(
"没有对应的数据哦!"
);
...
...
@@ -767,22 +787,13 @@ var app = new Vue({
console
.
log
(
JSON
.
stringify
(
para
));
Api
.
post
(
'/api/vMES/ZCProductionPlan/Save'
,
para
,
function
(
e
)
{
if
(
e
.
success
)
{
//that.
isAward = false;
that
.
Sure
isAward
=
false
;
that
.
IndexID
=
e
.
data
.
IndexID
;
console
.
log
(
JSON
.
stringify
(
that
.
IndexID
));
that
.
getDetailList
(
that
.
IndexID
);
that
.
playVoice
(
"cg.mp3"
);
var
url_
=
"blank.html"
;
var
id_
=
"blank.html"
;
mui
.
openWindow
({
url
:
url_
,
id
:
id_
,
extras
:
{
parentPage
:
"NeedleDispatch.html"
},
});
window
.
location
.
reload
();
}
},
function
(
xhr
,
type
,
res
)
{
mui
.
toast
(
JSON
.
stringify
(
res
.
message
))
...
...
@@ -805,9 +816,9 @@ var app = new Vue({
that
.
IndexID
=
item
.
IndexID
;
console
.
log
(
item
.
IndexID
)
that
.
getDetailList
(
that
.
IndexID
);
//that.
isAward = false;
that
.
Sure
isAward
=
false
;
}
else
{
//that.
isAward = true;
that
.
Sure
isAward
=
true
;
mui
.
toast
(
"该订单未发包!"
);
that
.
itemsData2
=
[];
}
...
...
@@ -823,9 +834,9 @@ var app = new Vue({
if
(
e
.
success
)
{
if
(
e
.
data
.
Main
&&
e
.
data
.
Main
!=
''
)
{
that
.
WorkTeamID
=
e
.
data
.
Main
.
WorkTeamID
;
}
if
(
e
.
data
.
IETask
.
length
>
0
)
{
that
.
itemsData2
=
e
.
data
.
IETask
;
console
.
log
(
"详细信息::"
+
JSON
.
stringify
(
e
.
data
))
...
...
@@ -833,7 +844,7 @@ var app = new Vue({
that
.
$set
(
item
,
"status"
,
false
)
})
console
.
log
(
JSON
.
stringify
(
that
.
itemsData2
));
}
}
},
function
(
xhr
,
type
,
res
)
{
...
...
@@ -853,12 +864,13 @@ var app = new Vue({
Api
.
post
(
'/api/vMES/ZCProductionPlan/Revoke'
,
para
,
function
(
e
)
{
if
(
e
.
success
)
{
mui
.
toast
(
"撤销成功!"
);
//that.
isAward = true;
that
.
Sure
isAward
=
true
;
that
.
itemsData2
=
[];
that
.
playVoice
(
"cg.mp3"
);
}
},
function
(
xhr
,
type
,
res
)
{
mui
.
toast
(
JSON
.
stringify
(
res
.
message
))
console
.
log
(
JSON
.
stringify
(
res
.
message
))
that
.
playVoice
(
"sb.mp3"
);
})
}
...
...
@@ -985,7 +997,7 @@ var app = new Vue({
var
that
=
this
;
var
para
=
{
ReportType
:
0
,
ReportType
:
that
.
ReportType
,
StyleCode
:
this
.
StyleCode
}
console
.
log
(
JSON
.
stringify
(
para
))
...
...
@@ -1000,7 +1012,7 @@ var app = new Vue({
id
:
id_
,
extras
:
{
style
:
that
.
selectDetail
.
StyleCode
,
ReportType
:
2
,
ReportType
:
that
.
ReportType
,
link
:
that
.
link
,
parentPage
:
"NeedleDispatch.html"
},
...
...
@@ -1022,6 +1034,7 @@ var app = new Vue({
var
para
=
{
IndexID
:
this
.
IndexID
,
}
Api
.
post
(
'/api/vMES/TaskWork/Submit'
,
para
,
function
(
e
)
{
if
(
e
.
success
)
{
that
.
playVoice
(
"cg.mp3"
);
...
...
@@ -1031,6 +1044,8 @@ var app = new Vue({
that
.
itemsData2
.
forEach
(
function
(
item
)
{
item
.
status
=
false
;
})
window
.
location
.
reload
();
}
else
{
that
.
playVoice
(
"sb.mp3"
);
mui
.
toast
(
"提交失败: "
+
e
.
message
);
...
...
dest/js/mes/NeedlecarHandover.js
View file @
6f87e2a8
...
...
@@ -301,11 +301,11 @@ var app = new Vue({
this
.
dateTime
=
moment
().
format
().
substring
(
0
,
10
);
//
mui(".mui-icon-clear")[0].addEventListener('tap', function() {
//
document.activeElement.blur(); //收起虚拟键盘
//
app.searchText = '';
//
app.getData(0);
//
});
mui
(
".mui-icon-clear"
)[
0
].
addEventListener
(
'tap'
,
function
()
{
document
.
activeElement
.
blur
();
//收起虚拟键盘
app
.
searchText
=
''
;
app
.
getData
(
0
);
});
mui
(
'body'
).
on
(
'tap'
,
'.mui-dtpicker #queding'
,
function
(){
var
para
=
{
ReportType
:
app
.
ReportType
,
...
...
html/Cutting.html
View file @
6f87e2a8
...
...
@@ -12,7 +12,6 @@
<body>
<div
id=
"app"
style=
" display:block"
v-cloak
>
<div
class=
"mui-content"
>
<div
id=
"left"
class=
"left"
>
<div
id=
"left-1"
class=
"left-1"
>
<a
class=
"mui-action-back mui-icon mui-icon-left-nav mui-pull-left"
@
click=
"back"
></a>
...
...
html/NeedleDispatch.html
View file @
6f87e2a8
...
...
@@ -77,38 +77,46 @@
<tbody
class=
" sDetail "
id=
"sDetail"
>
<tr
v-for=
"(item,index) in itemsList"
:key=
"index"
@
tap=
"showDetail(item)"
>
<td
:style=
"{color:'rgb('+item.StyleName_1+')',background:'rgb('+ item.StyleName_2 +')' }"
v-show=
"showStyleName"
class=
"bwidth text-overflow"
>
{{item.StyleName}}
</td>
v-show=
"showStyleName"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.StyleName}}
</td>
<td
:style=
"{color:'rgb('+item.CustomPO_1+')',background:'rgb('+ item.CustomPO_2 +')' }"
v-show=
"showCustomPO"
class=
"bwidth text-overflow"
>
{{item.CustomPO}}
</td>
v-show=
"showCustomPO"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.CustomPO}}
</td>
<td
:style=
"{color:'rgb('+item.IndexNo_1+')',background:'rgb('+ item.IndexNo_2 +')' }"
v-show=
"showIndexNo"
class=
"bwidth text-overflow"
>
{{item.IndexNo}}
</td>
v-show=
"showIndexNo"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.IndexNo}}
</td>
<td
:style=
"{color:'rgb('+item.StyleCode_1+')',background:'rgb('+ item.StyleCode_2 +')' }"
v-show=
"showStyleCode"
class=
"bwidth text-overflow"
>
{{item.StyleCode}}
</td>
v-show=
"showStyleCode"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.StyleCode}}
</td>
<td
:style=
"{color:'rgb('+item.ColorName_1+')',background:'rgb('+ item.ColorName_2 +')' }"
v-show=
"showColor"
class=
"swidth text-overflow"
>
{{item.ColorName}}
</td>
v-show=
"showColor"
class=
"swidth text-overflow
changeFontSize
"
>
{{item.ColorName}}
</td>
<td
:style=
"{color:'rgb('+item.TotalCount_1+')',background:'rgb('+ item.TotalCount_2 +')' }"
v-show=
"showTotalCount"
class=
"swidth text-overflow"
>
{{item.TotalCount}}
</td>
v-show=
"showTotalCount"
class=
"swidth text-overflow
changeFontSize
"
>
{{item.TotalCount}}
</td>
<td
:style=
"{color:'rgb('+item.Price_1+')',background:'rgb('+ item.Price_2 +')' }"
v-show=
"showPrice"
class=
"swidth text-overflow"
>
{{item.Price}}
</td>
v-show=
"showPrice"
class=
"swidth text-overflow
changeFontSize
"
>
{{item.Price}}
</td>
<td
:style=
"{color:'rgb('+item.TotalMoney_1+')',background:'rgb('+ item.TotalMoney_2 +')' }"
v-show=
"showTotalMoney"
class=
"swidth text-overflow"
>
{{item.TotalMoney}}
</td>
v-show=
"showTotalMoney"
class=
"swidth text-overflow
changeFontSize
"
>
{{item.TotalMoney}}
</td>
<td
:style=
"{color:'rgb('+item.MatchDate_1+')',background:'rgb('+ item.MatchDate_2 +')' }"
v-show=
"showMatchDate"
class=
"bwidth text-overflow"
>
{{item.MatchDate}}
</td>
v-show=
"showMatchDate"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.MatchDate}}
</td>
<td
:style=
"{color:'rgb('+item.ConfirmDate_1+')',background:'rgb('+ item.ConfirmDate_2 +')' }"
v-show=
"showConfirmDate"
class=
"bwidth text-overflow"
>
{{item.ConfirmDate}}
</td>
v-show=
"showConfirmDate"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.ConfirmDate}}
</td>
<td
:style=
"{color:'rgb('+item.ZCPlanBeginDate_1+')',background:'rgb('+ item.ZCPlanBeginDate_2 +')' }"
v-show=
"showZCPlanBeginDate"
class=
"bwidth text-overflow"
>
{{item.ZCPlanBeginDate}}
</td>
v-show=
"showZCPlanBeginDate"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.ZCPlanBeginDate}}
</td>
<td
:style=
"{color:'rgb('+item.ZCPlanDeliveryDate_1+')',background:'rgb('+ item.ZCPlanDeliveryDate_2 +')' }"
v-show=
"showZCPlanDeliveryDate"
class=
"bwidth text-overflow"
>
{{item.ZCPlanDeliveryDate}}
</td>
v-show=
"showZCPlanDeliveryDate"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.ZCPlanDeliveryDate}}
</td>
<td
:style=
"{color:'rgb('+item.PlanDate_1+')',background:'rgb('+ item.PlanDate_2 +')' }"
v-show=
"showPlanDate"
class=
"bwidth text-overflow"
>
{{item.PlanDate}}
</td>
v-show=
"showPlanDate"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.PlanDate}}
</td>
<td
:style=
"{color:'rgb('+item.FinishDate_1+')',background:'rgb('+ item.FinishDate_2 +')' }"
v-show=
"showFinishDate"
class=
"bwidth text-overflow"
>
{{item.FinishDate}}
</td>
v-show=
"showFinishDate"
class=
"bwidth text-overflow
changeFontSize
"
>
{{item.FinishDate}}
</td>
</tr>
<!-- <tr @tap="showDetail(item)">
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
<td class="bwidth text-overflow">bbbbbbbbbbb</td>
</tr> -->
</tbody>
</table>
</div>
...
...
@@ -209,7 +217,7 @@
<div
class=
"top-btn"
>
<!-- <span @tap="getDetailData" >发包</span>
<span @tap="revokeData" >撤销</span> -->
<button
:disabled=
"isAward"
type=
"button"
class=
"mui-btn mui-btn-blue "
@
tap=
"getDetailData"
>
发包
</button>
<button
:disabled=
"isAward"
type=
"button"
class=
"mui-btn mui-btn-blue "
@
tap=
"getDetailData"
>
上线
</button>
<button
:disabled=
"isAward1"
type=
"button"
class=
"mui-btn mui-btn-blue "
@
tap=
"revokeData"
>
撤销
</button>
</div>
</div>
...
...
html/work.html
View file @
6f87e2a8
...
...
@@ -51,7 +51,6 @@
} */
</style>
</head>
<body>
<div
class=
"application"
id=
"lialist"
v-cloak
>
<div
class=
"application-box"
...
...
@@ -65,7 +64,7 @@
<h3
class=
"application-tit"
:title=
"list.Name"
>
{{list.Name}}
</h3>
</a>
</div>
<!-- <div class="application-box" types="设置">
<a ids="999" href="javascript:;">
<div class="application-img"><img src="../dest/img/sz.png" alt="设置" /></div>
...
...
@@ -127,10 +126,12 @@
{
code
:
'90030'
,
name
:
'MyWork'
},
{
code
:
'90031'
,
name
:
'NeedlecarPBB'
},
{
code
:
'90037'
,
name
:
'NeedleDispatch'
},
{
code
:
'90038'
,
name
:
'CuttingDispatch'
},
{
code
:
'90039'
,
name
:
'FormingDispatch'
},
],
},
computed
:
{
...
...
manifest.json
View file @
6f87e2a8
...
...
@@ -3,7 +3,7 @@
"id"
:
"H544710A8"
,
/*应用的标识,创建应用时自动生成,勿手动修改*/
"name"
:
"飞天兔MES"
,
/*应用名称,程序桌面图标名称*/
"version"
:
{
"name"
:
"1.0.
1.21
"
,
/*应用版本名称*/
"name"
:
"1.0.
9
"
,
/*应用版本名称*/
"code"
:
338
},
"description"
:
"飞天兔MES平板版"
,
/*应用描述信息*/
...
...
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