Commit b8fa5a5a authored by 上官's avatar 上官

1.MES_PAD 打开界面的飞天兔图片被拉伸 调整

2.MES_PAD 提交成功和失败分别作了音效提示
3.MES_PAD 我的任务界面 明细选中变色 调整
4.MES_PAD主界面 间隔2秒内后退返回桌面
parent 00a09019
......@@ -369,6 +369,22 @@
this.today = this.dateTime;
this.getData();
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
getData: function() {
var that = this;
var tempdate = this.dateTime + " 00:00:00";
......@@ -634,6 +650,7 @@
},
submit: function() {
if (!this.checkValue()) {
this.playVoice("sb.mp3");
return;
}
var para = {
......@@ -654,12 +671,14 @@
that.getDataDetail2(1); //获取左边列表明细 今日实报
that.getDataDetail2(2); //获取左边列表明细 单款实报
that.getCompleteRatio(that.IndexID) //订单进度
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
......@@ -690,12 +709,15 @@
that.getTatolNum(); //获取今日完成数量
that.getDataDetail2(1); //获取左边列表明细
that.getCompleteRatio(that.IndexID) //订单进度
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
......@@ -859,6 +881,7 @@
},
selectDisplay:function(n){
var opt = document.getElementById("item1" )
var opt2 = document.getElementById("item2" )
var n1 = document.getElementById("n1" )
......
......@@ -528,15 +528,22 @@
that.getTatolNum(); //获取今日完成数量
that.getDataDetail2(1); //获取左边列表明细
that.getDataDetail2(2); //获取左边列表明细
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
mui.toast("提交失败: " + e.success.message);
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
});
},function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
},
submit: function() {
var that =this;
if (!this.checkValue()) {
this.playVoice("sb.mp3");
return;
}
for (var i = 0; i < this.sizeNum.length; i++) {
......@@ -792,7 +799,22 @@
this.size = n;
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
......
......@@ -636,6 +636,7 @@
},
submit: function() {
if (!this.checkValue()) {
this.playVoice("sb.mp3");
return;
}
var para = {
......@@ -656,12 +657,14 @@
that.getDataDetail2(1); //获取左边列表明细 今日实报
that.getDataDetail2(2); //获取左边列表明细 单款实报
that.getCompleteRatio(that.IndexID) //订单进度
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
......@@ -692,12 +695,14 @@
that.getTatolNum(); //获取今日完成数量
that.getDataDetail2(1); //获取左边列表明细
that.getCompleteRatio(that.IndexID) //订单进度
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
......@@ -1067,6 +1072,22 @@
mui('.scroll3').scroll().scrollTo(0,0,100);
mui('.scroll4').scroll().scrollTo(0,0,100);
}, //selecttime
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back()
// plus.screen.lockOrientation("portrait-primary") //横屏
......
......@@ -316,6 +316,7 @@
Api.post(html, para, function(e) {
if (e.success) {
that.playVoice("cg.mp3");
mui.toast("操作成功");
that.selectLeftBack(0);
that.IndexID = 0;
......@@ -325,17 +326,34 @@
that.getData(1);
} else {
that.playVoice("sb.mp3");
mui.toast("操作失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast("操作失败" + JSON.stringify(bbb.message))
})
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back();
},
......
......@@ -534,15 +534,22 @@
that.getTatolNum(); //获取今日完成数量
that.getDataDetail2(1); //获取左边列表明细
that.getDataDetail2(2); //获取左边列表明细
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.success.message);
}
},function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
},
submit: function() {
var that = this;
if (!this.checkValue()) {
this.playVoice("sb.mp3");
return;
}
for (var i = 0; i < this.sizeNum.length; i++) {
......@@ -820,7 +827,23 @@
// }
//
// },
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back();
// plus.screen.lockOrientation("portrait-primary") //横屏
......
......@@ -47,7 +47,7 @@
<ul class="mui-table-view" style="margin-top: 5px;" v-if="itemsLeft.length == 0">
<li class="mui-table-view-cell">无明细数据.请选择其他日期</li>
</ul>
<ul class="mui-table-view" style="margin-top: 5px;" v-for=" itemsDetail ,n in itemsLeft" @click="nextPage(itemsDetail)">
<ul :id="itemsDetail.IndexID" class="mui-table-view bg" style="margin-top: 5px;" v-for=" itemsDetail ,n in itemsLeft" @click="nextPage(itemsDetail)">
<li style=" padding: 0px 15px;">
<p style="float: left;width: 16%; color: #060606; padding: 0; margin: 0;"> 指令号: </p>
<p style="float: left;width: 40%; color: #060606; padding: 0; margin: 0;">&nbsp;{{itemsDetail.IndexNo}} </p>
......@@ -238,7 +238,21 @@
that.itemsLeft = e.items
})
},
select_background: function(n) {
var bg = document.getElementsByClassName("bg");
var bgc = document.getElementById(n)
for (var i = 0; i < bg.length; i++) {
bg[i].style.background = ""
}
if (n != 0) {
bgc.style.background = "#02C1ED"
}
},
nextday: function(n) {
......@@ -258,6 +272,7 @@
// mui('.scroll4').scroll().scrollTo(0, 0, 100);
},
nextPage: function(o) {
this.select_background(o.IndexID);
var that = this;
this.IndexID = o.IndexID;
this.selectDetail = o;
......@@ -429,19 +444,37 @@
Api.post('/api/vMES/MyTask/Save', para, function(e) {
if (e.success) {
that.playVoice("cg.mp3");
mui.toast("提交成功");
that.nextPage(that.selectDetail);
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
})
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back()
},
......
......@@ -316,6 +316,7 @@
Api.post(html, para, function(e) {
if (e.success) {
that.playVoice("cg.mp3");
mui.toast("操作成功");
that.selectLeftBack(0);
that.IndexID = 0;
......@@ -325,17 +326,34 @@
that.getData(1);
} else {
that.playVoice("sb.mp3");
mui.toast("操作失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast("操作失败" + JSON.stringify(bbb.message))
})
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back();
},
......
......@@ -472,10 +472,12 @@
submit_2:function(){
this.searchPersonListAfter
if( this.searchPersonListAfter.length == 0){
this.playVoice("sb.mp3");
mui.toast("请勾选人员");
return;
}
if(this.PersonList.length == 0){
this.playVoice("sb.mp3");
mui.toast("请先进入人员选择界面");
return;
}
......@@ -711,6 +713,7 @@
}
}
if (tempPara.length == 0) {
this.playVoice("sb.mp3");
mui.toast("请选择派工人员");
return;
}
......@@ -722,6 +725,7 @@
}
Api.post('/api/vMES/TaskWork/Save', para, function(e) {
if (e.success) {
that.playVoice("cg.mp3");
mui.toast("保存成功");
var che = document.getElementsByClassName("che");
for (var j = 0; j < che.length; j++) {
......@@ -732,10 +736,11 @@
that.nextPage(that.selectDetail, 1);
} else {
that.playVoice("sb.mp3");
mui.toast("保存失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
})
......@@ -862,14 +867,16 @@
Api.post('/api/vMES/TaskWork/Submit', para, function(e) {
if (e.success) {
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
})
......@@ -877,6 +884,22 @@
}
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back();
},
......
This diff is collapsed.
......@@ -527,15 +527,22 @@
that.getTatolNum(); //获取今日完成数量
that.getDataDetail2(1); //获取左边列表明细
that.getDataDetail2(2); //获取左边列表明细
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.success.message);
}
});
},function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
},
submit: function() {
var that = this;
if (!this.checkValue()) {
this.playVoice("sb.mp3");
return;
}
for (var i = 0; i < this.sizeNum.length; i++) {
......@@ -789,7 +796,22 @@
},
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back();
// plus.screen.lockOrientation("portrait-primary") //横屏
......
This diff is collapsed.
......@@ -631,6 +631,7 @@
},
submit: function() {
if (!this.checkValue()) {
this.playVoice("sb.mp3");
return;
}
var para = {
......@@ -651,12 +652,14 @@
that.getDataDetail2(1); //获取左边列表明细 今日实报
that.getDataDetail2(2); //获取左边列表明细 单款实报
that.getCompleteRatio(that.IndexID) //订单进度
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
......@@ -687,12 +690,14 @@
that.getTatolNum(); //获取今日完成数量
that.getDataDetail2(1); //获取左边列表明细
that.getCompleteRatio(that.IndexID) //订单进度
that.playVoice("cg.mp3");
mui.toast("提交成功");
} else {
that.playVoice("sb.mp3");
mui.toast("提交失败: " + e.message);
}
}, function(b, bb, bbb) {
that.playVoice("sb.mp3");
mui.toast(JSON.stringify(bbb.message))
});
......@@ -1060,6 +1065,22 @@
mui('.scroll3').scroll().scrollTo(0,0,100);
mui('.scroll4').scroll().scrollTo(0,0,100);
}, //selecttime
playVoice:function(filename){
if ( plus.audio == undefined ) {
} else{
// 播放操作
var p = plus.audio.createPlayer("_www/dest/voice/"+ filename);
p.play( function () {
//alert( "Audio play success!" );
}, function ( e ) {
//alert( "Audio play failed: " + e.message );
});
}
},
back: function() {
mui.back()
// plus.screen.lockOrientation("portrait-primary") //横屏
......
......@@ -148,7 +148,7 @@
var pages = ['Needlecarreport_new','Cutting',"Forming","FormingHandover","NeedlecarHandover","MyWork","NeedlecarPBB"];
//var tits = ['色卡档案', '样品企划', '样品客户意见', '款式图片档案', '下单管理', '生产进度表', '消息提醒', '业务审批', '订货主场','针车实报','设置'];
var lab1 = document.getElementsByTagName("a");
var back__first = null;
function onGetDataSuccess(e){
......@@ -222,8 +222,9 @@
openSettingWindow()
});
}
var back__first = null;
mui.back = function() {
if(!back__first) {
back__first = new Date().getTime();
mui.toast('再按一次退出应用');
......
......@@ -3,7 +3,7 @@
"id" : "H544710A8", /*应用的标识,创建应用时自动生成,勿手动修改*/
"name" : "飞天兔MES", /*应用名称,程序桌面图标名称*/
"version" : {
"name" : "1.0.0.3", /*应用版本名称*/
"name" : "1.0.0.5", /*应用版本名称*/
"code" : "338"
},
"description" : "飞天兔MES平板版", /*应用描述信息*/
......@@ -252,8 +252,8 @@
"mdpi" : "", /*普通屏启动图片,分辨率:240x282*/
"ldpi" : "",
"hdpi" : "unpackage/splash/640X1136.png",
"xhdpi" : "unpackage/splash/750X1334.png",
"xxhdpi" : "unpackage/splash/1242X2208.png"
"xhdpi" : "unpackage/splash/1024x748.png",
"xxhdpi" : "unpackage/splash/2048x1496.png"
}
},
"debug" : false
......
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