Commit 49c805ce authored by 上官's avatar 上官

1.MES_PAD :系统登录界面横排显示 ,调节图片大小 正好一个屏幕,不用下拉点击登录

2.MEs_PAD: 针车品检也增加 今日时报 和 单款时报 查看时报 输入框也做遮罩处理
parent f2b1862a
This diff is collapsed.
...@@ -335,9 +335,9 @@ ...@@ -335,9 +335,9 @@
init: function() { init: function() {
mui.init(); mui.init();
window.addEventListener('back', function(e) { window.addEventListener('back', function(e) {
console.log("back");
var that = this; var that = this;
console.log(that.IndexID)
app.getDataDetail1(); app.getDataDetail1();
}); });
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
PageSize: 200, PageSize: 200,
PageIndex: 1, PageIndex: 1,
}; };
console.log(JSON.stringify(para)) // console.log(JSON.stringify(para))
if( n ==1 ){ if( n ==1 ){
Api.post('/api/vMES/ProductionReport/Report', para, function(e) { Api.post('/api/vMES/ProductionReport/Report', para, function(e) {
...@@ -461,15 +461,15 @@ ...@@ -461,15 +461,15 @@
IndexID: n IndexID: n
}; };
console.log(JSON.stringify(para)) // console.log(JSON.stringify(para))
Api.post('/api/vMES/ProductionReport/IndexNoCompleteRatio', para, function(e) { Api.post('/api/vMES/ProductionReport/IndexNoCompleteRatio', para, function(e) {
that.CompleteRatio = e.data; that.CompleteRatio = e.data;
console.log(JSON.stringify(e)) // console.log(JSON.stringify(e))
for (var i = 0; i < that.itemsHead.length; i++) { for (var i = 0; i < that.itemsHead.length; i++) {
if (that.itemsHead[i].IndexID == n) { if (that.itemsHead[i].IndexID == n) {
that.itemsHead[i].CompleteRatio = that.CompleteRatio; that.itemsHead[i].CompleteRatio = that.CompleteRatio;
console.log(that.CompleteRatio); // console.log(that.CompleteRatio);
} }
} }
}); });
...@@ -538,10 +538,10 @@ ...@@ -538,10 +538,10 @@
StyleCode: this.itemsDetail.StyleCode StyleCode: this.itemsDetail.StyleCode
} }
console.log( JSON.stringify(para)) // console.log( JSON.stringify(para))
Api.post('/api/vMES/Sop/StyleSop', para, function(e) { Api.post('/api/vMES/Sop/StyleSop', para, function(e) {
if(e.success){ if(e.success){
console.log( JSON.stringify(e)) // console.log( JSON.stringify(e))
that.link = e.data.Url ; that.link = e.data.Url ;
var url_ = "sop.html"; var url_ = "sop.html";
...@@ -621,8 +621,8 @@ ...@@ -621,8 +621,8 @@
} }
console.log(JSON.stringify(para)); // console.log(JSON.stringify(para));
console.log(JSON.stringify(para)); // console.log(JSON.stringify(para));
Api.post('/api/vMES/ProductionReport/SingleComplete', para, function(e) { Api.post('/api/vMES/ProductionReport/SingleComplete', para, function(e) {
...@@ -696,14 +696,14 @@ ...@@ -696,14 +696,14 @@
}, },
createZhezhao:function(n){ createZhezhao:function(n){
console.log(n) // console.log(n)
if(n== -1){ if(n== -1){
// var mask = mui.createMask();//callback为用户点击蒙版时自动执行的回调; // var mask = mui.createMask();//callback为用户点击蒙版时自动执行的回调;
// this.mask_.close(); // this.mask_.close();
this.mask_._remove() this.mask_._remove()
this.zhezhao = 1; this.zhezhao = 1;
console.log("n== -1")
} }
else{ else{
if (this.zhezhao == 1 ){ if (this.zhezhao == 1 ){
...@@ -790,8 +790,7 @@ ...@@ -790,8 +790,7 @@
reportele[i].style.background = "" reportele[i].style.background = ""
} }
if (obj != 0) { if (obj != 0) {
console.log("obj:;" + obj )
console.log("IndexID::" + this.IndexID )
if(this.IndexID != 0){ if(this.IndexID != 0){
var Index = document.getElementById("Index_" + this.IndexID) var Index = document.getElementById("Index_" + this.IndexID)
Index.style.background = ""; Index.style.background = "";
...@@ -810,8 +809,7 @@ ...@@ -810,8 +809,7 @@
var n1 = document.getElementById("n1" ) var n1 = document.getElementById("n1" )
var n2 = document.getElementById("n2" ) var n2 = document.getElementById("n2" )
console.log(opt.style.display)
console.log(opt2.style.display)
if( n== 1){ if( n== 1){
n1.style.background ="royalblue" n1.style.background ="royalblue"
n1.style.color = "white" n1.style.color = "white"
...@@ -899,7 +897,7 @@ ...@@ -899,7 +897,7 @@
}, },
nextday: function(n) { nextday: function(n) {
this.createZhezhao(-1) this.createZhezhao(-1)
console.log("next")
var d = new Date(this.dateTime); var d = new Date(this.dateTime);
d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * n); d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * n);
if (d.getDate().toString().length == 1) { if (d.getDate().toString().length == 1) {
...@@ -985,7 +983,7 @@ ...@@ -985,7 +983,7 @@
* rs.h 时,用法同年 * rs.h 时,用法同年
* rs.i 分(minutes 的第二个字母),用法同年 * rs.i 分(minutes 的第二个字母),用法同年
*/ */
console.log(rs.value)
_self.innerText = rs.text; _self.innerText = rs.text;
that.dateTime = rs.text; that.dateTime = rs.text;
that.getData(); that.getData();
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
function onGetDataSuccess(e){ function onGetDataSuccess(e){
console.log(JSON.stringify(e))
var isSuccess = e.success; var isSuccess = e.success;
if(isSuccess) { if(isSuccess) {
var items = e.items; var items = e.items;
......
...@@ -10,14 +10,14 @@ ...@@ -10,14 +10,14 @@
</head> </head>
<body> <body>
<div class="mui-content"> <div class="mui-content">
<div class="app-header"> <div >
<div class="app-logo"> <div class="app-logo">
<img src="../dest/img/applogo.png" /> <img src="../dest/img/applogo.png" />
</div> </div>
<h1 class="app-title ">FetetO&nbsp;Cloud&nbsp;APP</h1> <h1 class="app-title ">FetetO&nbsp;Cloud&nbsp;APP</h1>
</div> </div>
<div class="app-form-bg"> <div style=" margin-top: 0;" class="app-form-bg">
<p>欢迎回来!</p> <p style="padding-bottom: 5px; padding-top: 5px;">欢迎回来!</p>
<form id='login-form' class="mui-input-group"> <form id='login-form' class="mui-input-group">
<div class="mui-input-row"> <div class="mui-input-row">
<label class="mui-code" for="corpid">企业代码</label> <label class="mui-code" for="corpid">企业代码</label>
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
<script src="../dest/js/app.min.js" type="text/javascript" charset="utf-8"></script> <script src="../dest/js/app.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript"> <script type="text/javascript">
(function ($, doc) { (function ($, doc) {
$.init({ $.init({
statusBarBackground: '#72757e' statusBarBackground: '#72757e'
}); });
...@@ -61,7 +63,7 @@ ...@@ -61,7 +63,7 @@
var loginButton = doc.getElementById('login'); var loginButton = doc.getElementById('login');
var autoLoginBtn = doc.getElementById("autoLogin"); var autoLoginBtn = doc.getElementById("autoLogin");
var lastInfo = getLastInfo() var lastInfo = getLastInfo()
corpidBox.value = lastInfo.company_code; corpidBox.value = lastInfo.company_code;
...@@ -73,8 +75,11 @@ ...@@ -73,8 +75,11 @@
plus.runtime.quit(); plus.runtime.quit();
}; };
$.plusReady(function () { $.plusReady(function () {
plus.navigator.closeSplashscreen() plus.navigator.closeSplashscreen()
plus.screen.lockOrientation("portrait-primary")
plus.screen.lockOrientation("landscape-primary") //横屏
// plus.screen.lockOrientation("portrait-primary")
if (mui.os.ios) { if (mui.os.ios) {
plus.navigator.setFullscreen(true); plus.navigator.setFullscreen(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment