Commit db4c8148 authored by 王文琼's avatar 王文琼

实报,配套,搜索栏优化,增加异常说明编辑框

parent 7a8a27d5
...@@ -62,6 +62,7 @@ body { ...@@ -62,6 +62,7 @@ body {
width: 30%; width: 30%;
height: 100%; height: 100%;
display: block; display: block;
} }
.left-1 { .left-1 {
...@@ -85,6 +86,32 @@ body { ...@@ -85,6 +86,32 @@ body {
padding-top: 35px; padding-top: 35px;
} }
.select{
height: 36px;
width: 100%;
clear: both;
overflow: hidden;
}
.select-left{
width: 80px;
height: 33px;
float: left;
border: 1px solid #c8c7cc;
}
.select-left select{
background-color: rgba(0,0,0,.1);
padding: 0;
padding-left:5px;
text-align: center;
height: 33px;
margin: 0;
border-radius:0 ;
}
.mui-search{
width: calc(100% - 80px);
float: right;
}
.mui-search input[type=search] { .mui-search input[type=search] {
border-radius: 0; border-radius: 0;
} }
...@@ -95,9 +122,11 @@ body { ...@@ -95,9 +122,11 @@ body {
background: #fff; background: #fff;
position: relative; position: relative;
/* display: none; */ /* display: none; */
margin-top: -18px; /* margin-top: -18px;
overflow-y: scroll; overflow-y: scroll;
*/
width: 100%;
clear: both;
} }
.Text1 { .Text1 {
...@@ -114,10 +143,6 @@ body { ...@@ -114,10 +143,6 @@ body {
height: 481px; height: 481px;
} }
.mui-scroll {
overflow-y: scroll;
}
.complet-detail { .complet-detail {
padding: 5px 0; padding: 5px 0;
height: 93px; height: 93px;
...@@ -337,7 +362,7 @@ body { ...@@ -337,7 +362,7 @@ body {
/*********/ /*********/
#pullrefresh { #pullrefresh {
width: 100%; width: 100%;
overflow-y: scroll;
} }
/**整单完工弹出样式**/ /**整单完工弹出样式**/
.mui-popup{ .mui-popup{
......
...@@ -44,8 +44,8 @@ body, ...@@ -44,8 +44,8 @@ body,
#left-2 { #left-2 {
position: relative; position: relative;
width: 100%; width: 100%;
height: 482px; height: 492px;
margin-top: -15px; margin-top: -3px;
border: 1px solid rgb(218, 230, 239); border: 1px solid rgb(218, 230, 239);
background: #FFF; background: #FFF;
} }
...@@ -65,10 +65,58 @@ body, ...@@ -65,10 +65,58 @@ body,
overflow-y: scroll; overflow-y: scroll;
} }
.select{
height: 36px;
width: 100%;
clear: both;
overflow: hidden;
}
.select-left{
width: 80px;
height: 33px;
float: left;
border: 1px solid #c8c7cc;
}
.select-left select{
background-color: rgba(0,0,0,.1);
padding: 0;
padding-left:5px;
text-align: center;
height: 33px;
margin: 0;
border-radius:0 ;
}
.mui-search{
width: calc(100% - 80px);
float: right;
}
.mui-search #search { .mui-search #search {
border-radius: 0; border-radius: 0;
} }
.pickerData {
width: calc(100% - 80px);
float: right;
border-radius: 3px;
text-align: center;
}
.pickerData .mui-icon {
border: 0px;
color: royalblue;
}
.pickerData .mui-icon:last-of-type {
float: right;
}
#selectdate {
border: 0;
width: calc(100% - 105px);
height: 36px;
}
.needLeftList { .needLeftList {
padding: 5px 10px; padding: 5px 10px;
height: 93px; height: 93px;
...@@ -236,3 +284,12 @@ body, ...@@ -236,3 +284,12 @@ body,
#right-1 .mui-table-view-cell p:nth-of-type(4) { #right-1 .mui-table-view-cell p:nth-of-type(4) {
width: 32%; width: 32%;
} }
.mui-table-view-cell{
padding: 9px 15px;
}
.mui-table-view-cell textarea{
width: 82%;
float: left;
}
...@@ -24,7 +24,7 @@ var app = new Vue({ ...@@ -24,7 +24,7 @@ var app = new Vue({
paramUnDo: { paramUnDo: {
pageIndex: 2, pageIndex: 2,
pageSize: 10, pageSize: 10,
ReportType:2 ReportType: 2
}, },
paramDone: { paramDone: {
pageIndex: 2, pageIndex: 2,
...@@ -69,6 +69,24 @@ var app = new Vue({ ...@@ -69,6 +69,24 @@ var app = new Vue({
return false; return false;
}), }),
appdis: 0, appdis: 0,
searchData: [{
id: '0',
name: '指令号'
},
{
id: '1',
name: '订单号'
},
{
id: '2',
name: '货号'
},
{
id: '3',
name: '班组'
}
],
current: '', //搜索选中
}, },
computed: { computed: {
...@@ -92,14 +110,10 @@ var app = new Vue({ ...@@ -92,14 +110,10 @@ var app = new Vue({
} }
}, },
}, },
// mounted:function(){ created() {
// this.$nextTick(function(){ //如果没有这句代码,select中初始化会是空白的,默认选中就无法实现
// mui('#progress .mui-text-center').each(function() { this.current = this.searchData[0].id;
// console.log(this.getAttribute("data-progress")); },
// mui(this).progressbar({progress:this.getAttribute("data-progress")}).show()
// })
// })
// },
methods: { methods: {
init: function() { //初始化 init: function() { //初始化
mui.init({ mui.init({
...@@ -112,8 +126,8 @@ var app = new Vue({ ...@@ -112,8 +126,8 @@ var app = new Vue({
callback: function() { callback: function() {
var reUnfinished = document.getElementById("theOne").getAttribute("state"); var reUnfinished = document.getElementById("theOne").getAttribute("state");
var reFinished = document.getElementById("theTow").getAttribute("state"); var reFinished = document.getElementById("theTow").getAttribute("state");
var UnfinishedUrl = '/api/vMES/ProductionReportV2/ToDo'; // var UnfinishedUrl = '/api/vMES/ProductionReportV2/ToDo';
var FinishedUrl = '/api/vMES/ProductionReportV2/Done'; // var FinishedUrl = '/api/vMES/ProductionReportV2/Done';
var searchUrl = '/api/vMES/ProductionReportV2/Search'; var searchUrl = '/api/vMES/ProductionReportV2/Search';
var searchDoneUrl = '/api/vMES/ProductionReportV2/SearchDone'; var searchDoneUrl = '/api/vMES/ProductionReportV2/SearchDone';
//console.log("未完成" + reUnfinished) //console.log("未完成" + reUnfinished)
...@@ -124,7 +138,7 @@ var app = new Vue({ ...@@ -124,7 +138,7 @@ var app = new Vue({
if (app.searchText != "") { if (app.searchText != "") {
searchPull(searchUrl, UnfinishedData, app.paramUnDoSeach); searchPull(searchUrl, UnfinishedData, app.paramUnDoSeach);
} else { } else {
pullupRefresh(UnfinishedUrl, UnfinishedData, app.paramUnDo); pullupRefresh(searchUrl, UnfinishedData, app.paramUnDo);
} }
...@@ -132,7 +146,7 @@ var app = new Vue({ ...@@ -132,7 +146,7 @@ var app = new Vue({
if (app.searchText != "") { if (app.searchText != "") {
searchPull(searchDoneUrl, FinishedUrlData, app.paramDoneSeach); searchPull(searchDoneUrl, FinishedUrlData, app.paramDoneSeach);
} else { } else {
pullupRefresh(FinishedUrl, FinishedUrlData, app.paramDone); pullupRefresh(searchDoneUrl, FinishedUrlData, app.paramDone);
} }
...@@ -142,77 +156,12 @@ var app = new Vue({ ...@@ -142,77 +156,12 @@ var app = new Vue({
} }
}); });
function pullupRefresh(url, arr, params) {
//console.log("加载前1" + arr);
setTimeout(function() {
var para = {
PageSize: params.pageSize,
PageIndex: params.pageIndex,
ReportType: params.ReportType,
};
//console.log("canshu:" + JSON.stringify(para));
//console.log("之前的数据:" + arr);
Api.post(url, para, function(e) { //2.没数据 提示 但是可以一直发请求只不过传回来是空
if (e.success) {
//console.log("111:" + JSON.stringify(e.items));
var data = e.items;
if (e.items.length > 0) {
params.pageIndex++;
}
for (var i = 0; i < data.length; i++) {
arr.push(data[i]);
//console.log("changdu2222222:" + arr.length);
}
}
}, function(b, bb, bbb) {
mui.toast(JSON.stringify(bbb.message))
});
mui('#pullrefresh').pullRefresh().endPullupToRefresh(); //参数为true代表没有更多数据了。
mui('#pullrefresh').pullRefresh().refresh(true);
//mui('#pullrefresh').pullRefresh().disablePullupToRefresh();
}, 1000);
}
function searchPull(url, arr, params) {
setTimeout(function() {
var para = {
searchText: app.searchText,
PageSize: params.pageSize,
PageIndex: params.pageIndex,
ReportType: params.ReportType,
};
Api.post(url, para, function(e) {
if (e.success) {
//console.log("111:" + JSON.stringify(e.items));
var data = e.items;
if (e.items.length > 0) {
params.pageIndex++;
}
for (var i = 0; i < data.length; i++) {
arr.push(data[i]);
}
//console.log("canshuqq:" + JSON.stringify(para));
}
}, function(b, bb, bbb) {
mui.toast(JSON.stringify(bbb.message))
});
mui('#pullrefresh').pullRefresh().endPullupToRefresh();
mui('#pullrefresh').pullRefresh().refresh(true);
}, 1000);
}
window.addEventListener('back', function(e) { window.addEventListener('back', function(e) {
var that = this; var that = this;
app.getData(); app.getData();
app.ChangeState(1); app.ChangeState(1);
}); });
mui(".mui-icon-clear")[0].addEventListener('tap', function() { mui(".mui-icon-clear")[0].addEventListener('tap', function() {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
app.searchText = ''; app.searchText = '';
...@@ -230,8 +179,8 @@ var app = new Vue({ ...@@ -230,8 +179,8 @@ var app = new Vue({
indicators: true, //是否显示滚动条 indicators: true, //是否显示滚动条
}); });
this.dateTime = moment().format().substring(0, 10) this.dateTime = moment().format().substring(0, 10)
// this.today = this.dateTime; // this.today = this.dateTime;
// this.getData(); this.getData();
}, },
getData: function() { getData: function() {
var that = this; var that = this;
...@@ -239,11 +188,13 @@ var app = new Vue({ ...@@ -239,11 +188,13 @@ var app = new Vue({
var para = { var para = {
ReportType: that.ReportType, ReportType: that.ReportType,
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.unPagenum PageIndex: that.unPagenum,
SearchType: '0',
SearchText: '',
}; };
//console.log("lalla" + JSON.stringify(para)); //console.log("lalla" + JSON.stringify(para));
that.cur = 0; that.cur = 0;
Api.post('/api/vMES/ProductionReportV2/ToDo', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("one :::;" + JSON.stringify(e.items.length)) console.log("one :::;" + JSON.stringify(e.items.length))
console.log("getData:" + JSON.stringify(e.items[0])) console.log("getData:" + JSON.stringify(e.items[0]))
//console.log("点击之前"+JSON.stringify(that.rightInfor)) //console.log("点击之前"+JSON.stringify(that.rightInfor))
...@@ -298,13 +249,13 @@ var app = new Vue({ ...@@ -298,13 +249,13 @@ var app = new Vue({
mui.toast(JSON.stringify(res.message)) mui.toast(JSON.stringify(res.message))
}); });
}, },
sizeArr:function(){ sizeArr: function() {
var that= this ; var that = this;
that.itemsSize=[]; that.itemsSize = [];
that.itemsDetail.ReportDetail.forEach(function(item,index){ that.itemsDetail.ReportDetail.forEach(function(item, index) {
that.itemsSize.push(item.SizeName); that.itemsSize.push(item.SizeName);
}) })
console.log("size::"+JSON.stringify(that.itemsSize)); console.log("size::" + JSON.stringify(that.itemsSize));
}, },
selectDisplay: function(n) { selectDisplay: function(n) {
//console.log("selectDisplay:" + n) //console.log("selectDisplay:" + n)
...@@ -321,11 +272,13 @@ var app = new Vue({ ...@@ -321,11 +272,13 @@ var app = new Vue({
var para = { var para = {
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.unPagenum, PageIndex: that.unPagenum,
ReportType: that.ReportType ReportType: that.ReportType,
SearchType: '0',
SearchText: '',
}; };
that.searchText = ''; that.searchText = '';
that.disable_reportDelete = "disabled"; that.disable_reportDelete = "disabled";
Api.post('/api/vMES/ProductionReportV2/ToDo', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
that.cur = 0; that.cur = 0;
if (e.items.length > 0) { if (e.items.length > 0) {
that.itemsHead = e.items; that.itemsHead = e.items;
...@@ -347,12 +300,14 @@ var app = new Vue({ ...@@ -347,12 +300,14 @@ var app = new Vue({
var para = { var para = {
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.pagenum, PageIndex: that.pagenum,
ReportType: that.ReportType ReportType: that.ReportType,
SearchType: '0',
SearchText: '',
}; };
//console.log("do para " + JSON.stringify(para)) //console.log("do para " + JSON.stringify(para))
that.disable_reportDelete = null; that.disable_reportDelete = null;
that.searchText = ''; that.searchText = '';
Api.post('/api/vMES/ProductionReportV2/Done', para, function(e) { Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("已完成" + JSON.stringify(para)) console.log("已完成" + JSON.stringify(para))
var data = e.items.length; var data = e.items.length;
if (data > 0) { if (data > 0) {
...@@ -381,54 +336,70 @@ var app = new Vue({ ...@@ -381,54 +336,70 @@ var app = new Vue({
SearchText: that.searchText, SearchText: that.searchText,
PageSize: 20, PageSize: 20,
PageIndex: that.pagenum, PageIndex: that.pagenum,
ReportType: that.ReportType ReportType: that.ReportType,
SearchType: that.current,
}; };
if (event.keyCode == "13") { if (event.keyCode == "13") {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
if (that.searchText == '') return; if (that.searchText == '') return;
console.log(this.completeState); console.log(this.completeState);
if (this.completeState) { //true 是未完成的搜索 false是已完成的搜索 this.searchDetail(para);
Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("现在是未完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsHead = e.items;
console.log("未完成的搜索111");
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsHead = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("现在是以111111完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsLeft2 = e.items;
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
event.preventDefault(); // 阻止默认事件---阻止页面刷新 event.preventDefault(); // 阻止默认事件---阻止页面刷新
//that.searchText = ''; //that.searchText = '';
} }
}, },
changeSearchType: function() {
var that = this;
var para = {
SearchText: that.searchText,
PageSize: 20,
PageIndex: that.pagenum,
ReportType: that.ReportType,
SearchType: that.current,
};
this.searchDetail(para);
},
searchDetail:function(para){
var that = this;
if (this.completeState) { //true 是未完成的搜索 false是已完成的搜索
Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("现在是未完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsHead = e.items;
console.log("未完成的搜索111");
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsHead = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("现在是以111111完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsLeft2 = e.items;
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
},
getTatolNum: function() { //今日产量 getTatolNum: function() { //今日产量
var that = this; var that = this;
var para = { var para = {
...@@ -504,19 +475,19 @@ var app = new Vue({ ...@@ -504,19 +475,19 @@ var app = new Vue({
that.itemsDetail = doneIndexArr[delIndexNoIndx]; that.itemsDetail = doneIndexArr[delIndexNoIndx];
that.IndexID = doneIndexArr[delIndexNoIndx].IndexID; that.IndexID = doneIndexArr[delIndexNoIndx].IndexID;
} else { } else {
that.cur = doneIndexArr.length-1; that.cur = doneIndexArr.length - 1;
that.rightInfor = doneIndexArr[delIndexNoIndx - 1]; that.rightInfor = doneIndexArr[delIndexNoIndx - 1];
that.itemsDetail = doneIndexArr[delIndexNoIndx - 1]; that.itemsDetail = doneIndexArr[delIndexNoIndx - 1];
that.IndexID = doneIndexArr[doneIndexArr.length-1].IndexID; that.IndexID = doneIndexArr[doneIndexArr.length - 1].IndexID;
} }
that.getDetailInfor(that.IndexID,that.cur); that.getDetailInfor(that.IndexID, that.cur);
} }
} else { } else {
mui.toast("撤回失败" + e.message) mui.toast("撤回失败" + e.message)
} }
}, function(xhr, type, res) { }, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message)) mui.toast(JSON.stringify(res.message))
playVoice("sb.mp3"); playVoice("sb.mp3");
}); });
}, },
getLink: function() { getLink: function() {
...@@ -627,12 +598,12 @@ var app = new Vue({ ...@@ -627,12 +598,12 @@ var app = new Vue({
that.itemsDetail = todoIndexArr[delIndexNoIndx] that.itemsDetail = todoIndexArr[delIndexNoIndx]
that.IndexID = todoIndexArr[delIndexNoIndx].IndexID; that.IndexID = todoIndexArr[delIndexNoIndx].IndexID;
} else { } else {
that.cur = todoIndexArr.length-1; that.cur = todoIndexArr.length - 1;
that.rightInfor = todoIndexArr[delIndexNoIndx - 1]; that.rightInfor = todoIndexArr[delIndexNoIndx - 1];
that.itemsDetail = todoIndexArr[delIndexNoIndx - 1]; that.itemsDetail = todoIndexArr[delIndexNoIndx - 1];
that.IndexID = todoIndexArr[todoIndexArr.length-1].IndexID; that.IndexID = todoIndexArr[todoIndexArr.length - 1].IndexID;
} }
that.getDetailInfor(that.IndexID,that.cur); that.getDetailInfor(that.IndexID, that.cur);
} }
} else { } else {
...@@ -821,7 +792,7 @@ var app = new Vue({ ...@@ -821,7 +792,7 @@ var app = new Vue({
type: n, // n =2 点击不合格进去 , type: n, // n =2 点击不合格进去 ,
parentSize: k, parentSize: k,
sizeNum: this.itemsDetail1, //尺码和数量 sizeNum: this.itemsDetail1, //尺码和数量
ReportType:this.ReportType ReportType: this.ReportType
}, },
}); });
......
...@@ -51,6 +51,31 @@ var app = new Vue({ ...@@ -51,6 +51,31 @@ var app = new Vue({
cur: '0', cur: '0',
currentObj: -1, currentObj: -1,
listType: 0, // 0 未交接 1已交接 listType: 0, // 0 未交接 1已交接
descript: '', //异常描述
searchData: [{
id: '0',
name: '指令号'
},
{
id: '1',
name: '订单号'
},
{
id: '2',
name: '货号'
},
{
id: '3',
name: '班组'
},
{
id: '4',
name: '计划配送'
}
],
current: '', //搜索选中
dateTime: "", //日期
isData: false, //搜索的时候 是否选中了日期
}, },
computed: { computed: {
display_: function() { display_: function() {
...@@ -81,6 +106,10 @@ var app = new Vue({ ...@@ -81,6 +106,10 @@ var app = new Vue({
}, },
}, },
created() {
//如果没有这句代码,select中初始化会是空白的,默认选中就无法实现
this.current = this.searchData[0].id;
},
methods: { methods: {
init: function() { init: function() {
mui.init({ mui.init({
...@@ -130,7 +159,8 @@ var app = new Vue({ ...@@ -130,7 +159,8 @@ var app = new Vue({
PageSize: params.pageSize, PageSize: params.pageSize,
PageIndex: params.pageIndex, PageIndex: params.pageIndex,
ReportType: params.ReportType, ReportType: params.ReportType,
State: params.State State: params.State,
SearchType: app.current
}; };
//console.log("canshu:" + JSON.stringify(para)); //console.log("canshu:" + JSON.stringify(para));
//console.log("之前的数据:" + arr); //console.log("之前的数据:" + arr);
...@@ -163,7 +193,8 @@ var app = new Vue({ ...@@ -163,7 +193,8 @@ var app = new Vue({
SearchText: app.searchText, SearchText: app.searchText,
PageSize: params.pageSize, PageSize: params.pageSize,
PageIndex: params.pageIndex, PageIndex: params.pageIndex,
ReportType: params.ReportType ReportType: params.ReportType,
SearchType: app.current
}; };
Api.post(url, para, function(e) { Api.post(url, para, function(e) {
...@@ -197,6 +228,17 @@ var app = new Vue({ ...@@ -197,6 +228,17 @@ var app = new Vue({
app.searchText = ''; app.searchText = '';
app.getData(0); app.getData(0);
}); });
this.dateTime = moment().format().substring(0, 10);
mui('body').on('tap','.mui-dtpicker #queding' ,function(){
var para = {
ReportType: app.ReportType,
SearchText: app.dateTime,
PageSize: 20,
PageIndex: 1,
SearchType: app.current
};
app.searchDetail(para);
})
}, },
getData: function(n) { getData: function(n) {
var that = this; var that = this;
...@@ -204,10 +246,12 @@ var app = new Vue({ ...@@ -204,10 +246,12 @@ var app = new Vue({
ReportType: this.ReportType, ReportType: this.ReportType,
State: n, State: n,
PageSize: 20, PageSize: 20,
PageIndex: 1 PageIndex: 1,
SearchType: 0
} }
// console.log(JSON.stringify(para)); // console.log(JSON.stringify(para));
that.searchText = ''; that.searchText = '';
Api.post('/api/vMES/Handover/List', para, function(e) { Api.post('/api/vMES/Handover/List', para, function(e) {
//console.log("TTTTTTTTTTTTTTTTTT List::" + JSON.stringify(para)) //console.log("TTTTTTTTTTTTTTTTTT List::" + JSON.stringify(para))
if (n == 0) { if (n == 0) {
...@@ -274,60 +318,89 @@ var app = new Vue({ ...@@ -274,60 +318,89 @@ var app = new Vue({
var para = { var para = {
ReportType: this.ReportType, ReportType: this.ReportType,
SearchText: that.searchText, SearchText: that.searchText,
PageSize: 10, PageSize: 20,
PageIndex: 1 PageIndex: 1,
SearchType: this.current
}; };
//console.log("搜索文本:" + JSON.stringify(para)); console.log("搜索文本:" + JSON.stringify(para));
if (event.keyCode == "13") { if (event.keyCode == "13") {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
if (that.searchText == '') return; if (that.searchText == '') return;
this.searchDetail(para);
if (that.completeState) {
Api.post('/api/vMES/Handover/Search', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索未完成::" + e.items.length)
if (data > 0) {
that.itemsLeft = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/Handover/SearchDone', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索已完成::" + e.items.length)
if (data > 0) {
that.itemsLeft2 = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
event.preventDefault(); // 阻止默认事件---阻止页面刷新 event.preventDefault(); // 阻止默认事件---阻止页面刷新
//that.searchText = ''; //that.searchText = '';
} }
}, },
changeSearchType: function() {
console.log("11111111111111111111:" + this.current);
if (this.current == '4') {
this.isData = true;
var para = {
ReportType: this.ReportType,
SearchText: this.dateTime,
PageSize: 20,
PageIndex: 1,
SearchType: this.current
};console.log("eee::" + JSON.stringify(para))
} else {
this.isData = false;
var para = {
ReportType: this.ReportType,
SearchText: this.searchText,
PageSize: 20,
PageIndex: 1,
SearchType: this.current
};console.log("vvvv::" + JSON.stringify(para))
}
this.searchDetail(para);
},
searchDetail: function(para) {
console.log("搜索参数::" + JSON.stringify(para));
var that = this;
if (that.completeState) {
Api.post('/api/vMES/Handover/Search', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索未完成::" + e.items.length)
if (data > 0) {
that.itemsLeft = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/Handover/SearchDone', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索已完成::" + e.items.length)
if (data > 0) {
that.itemsLeft2 = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
},
selectDisplay: function(n) { selectDisplay: function(n) {
this.listType = n; this.listType = n;
var opt = document.getElementById("item1"); var opt = document.getElementById("item1");
...@@ -350,13 +423,15 @@ var app = new Vue({ ...@@ -350,13 +423,15 @@ var app = new Vue({
matched: function() { matched: function() {
var that = this; var that = this;
var para = { var para = {
IndexID: this.IndexID IndexID: this.IndexID,
ExceptionDes: this.descript
} }
console.log("111111111:" + this.IndexID); console.log("111111111:" + this.IndexID);
Api.post('/api/vMES/Handover/Match', para, function(e) { Api.post('/api/vMES/Handover/Match', para, function(e) {
if (e.success) { if (e.success) {
mui.toast("配套成功! "); mui.toast("配套成功! ");
//that.getData(0); //that.getData(0);
that.descript = '';
console.log(JSON.stringify(e.data)) console.log(JSON.stringify(e.data))
playVoice("cg.mp3"); playVoice("cg.mp3");
console.log("配套suoyi:" + that.cur); console.log("配套suoyi:" + that.cur);
...@@ -376,12 +451,14 @@ var app = new Vue({ ...@@ -376,12 +451,14 @@ var app = new Vue({
cutConfirm: function() { cutConfirm: function() {
var that = this; var that = this;
var para = { var para = {
IndexID: this.IndexID IndexID: this.IndexID,
ExceptionDes: this.descript,
} }
console.log("2222:" + this.IndexID); console.log("2222:" + this.IndexID);
Api.post('/api/vMES/Handover/Confirm', para, function(e) { Api.post('/api/vMES/Handover/Confirm', para, function(e) {
if (e.success) { if (e.success) {
mui.toast("确认成功! "); mui.toast("确认成功! ");
that.descript = '';
//that.getData(0); //that.getData(0);
playVoice("cg.mp3"); playVoice("cg.mp3");
console.log("裁断确认索引:" + that.cur); console.log("裁断确认索引:" + that.cur);
...@@ -402,17 +479,21 @@ var app = new Vue({ ...@@ -402,17 +479,21 @@ var app = new Vue({
}, },
submit: function() { submit: function() {
var that = this; var that = this;
var para = {
IndexID: this.IndexID,
}
console.log(JSON.stringify(para)) console.log(JSON.stringify(para))
var html = ''; var html = '';
if (this.submitModel == 1) { if (this.submitModel == 1) {
html = '/api/vMES/Handover/UnCheck'; html = '/api/vMES/Handover/UnCheck';
var para = {
IndexID: this.IndexID,
}
} else { } else {
html = '/api/vMES/Handover/Check' html = '/api/vMES/Handover/Check'
var para = {
IndexID: this.IndexID,
ExceptionDes: this.descript
}
} }
Api.post(html, para, function(e) { Api.post(html, para, function(e) {
...@@ -425,8 +506,9 @@ var app = new Vue({ ...@@ -425,8 +506,9 @@ var app = new Vue({
if (html == '/api/vMES/Handover/Check') { if (html == '/api/vMES/Handover/Check') {
var ReceiveArr = that.itemsLeft; var ReceiveArr = that.itemsLeft;
console.log("长度111111111:" + JSON.stringify(ReceiveArr[ReceiveArr.length - 1]) + ":::" + ReceiveArr[ console.log("长度111111111:" + JSON.stringify(ReceiveArr[ReceiveArr.length - 1]) + ":::" + ReceiveArr[
ReceiveArr.length - 1].IsConfirm + that.cur + ":::" + that.currentObj); ReceiveArr.length - 1].IsConfirm + that.cur + ":::" + that.currentObj);
refresh(ReceiveArr); refresh(ReceiveArr);
that.descript = '';
} else { } else {
var UnReceiveArr = that.itemsLeft2; var UnReceiveArr = that.itemsLeft2;
refresh(UnReceiveArr); refresh(UnReceiveArr);
...@@ -449,18 +531,18 @@ var app = new Vue({ ...@@ -449,18 +531,18 @@ var app = new Vue({
that.itemsDetail = leftArr[delIndexNoIndx]; that.itemsDetail = leftArr[delIndexNoIndx];
that.IndexID = leftArr[delIndexNoIndx].IndexID; that.IndexID = leftArr[delIndexNoIndx].IndexID;
console.log("ssss之后:" + that.IndexID); console.log("ssss之后:" + that.IndexID);
} else { } else {
that.cur = leftArr.length - 1; that.cur = leftArr.length - 1;
that.itemsDetail = leftArr[leftArr.length - 1]; that.itemsDetail = leftArr[leftArr.length - 1];
that.IndexID = leftArr[leftArr.length - 1].IndexID; that.IndexID = leftArr[leftArr.length - 1].IndexID;
} }
that.selectLeft(that.itemsDetail,that.cur); that.selectLeft(that.itemsDetail, that.cur);
} }
} }
playVoice("cg.mp3"); playVoice("cg.mp3");
mui.toast("操作成功"); mui.toast("操作成功");
} else { } else {
playVoice("sb.mp3"); playVoice("sb.mp3");
...@@ -511,7 +593,56 @@ var app = new Vue({ ...@@ -511,7 +593,56 @@ var app = new Vue({
btn2.style.display = "none"; btn2.style.display = "none";
} }
} }
} },
selecttime: function() {
var that = this;
var _self = document.getElementById("selectdate")
if (_self.picker) {
_self.picker.show(function(rs) {
_self.innerText = rs.text
_self.picker.dispose();
_self.picker = null;
});
} else {
var optionsJson = _self.getAttribute('data-options') || '{}';
var options = JSON.parse(optionsJson);
var id = _self.getAttribute('id');
/*
* 首次显示时实例化组件
* 示例为了简洁,将 options 放在了按钮的 dom 上
* 也可以直接通过代码声明 optinos 用于实例化 DtPicker
*/
_self.picker = new mui.DtPicker(options);
_self.picker.show(function(rs) {
_self.innerText = rs.text;
that.dateTime = rs.text;
_self.picker.dispose();
_self.picker = null;
});
}
},
nextday: function(n) {
var d = new Date(this.dateTime);
d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * n);
if (d.getDate().toString().length == 1) {
this.dateTime = d.getFullYear() + "-" + (d.getMonth() + 1) + "-0" + d.getDate();
} else {
this.dateTime = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
}
var para = {
ReportType: this.ReportType,
SearchText: this.dateTime,
PageSize: 20,
PageIndex: 1,
SearchType: this.current
};
this.searchDetail(para);
},
}, },
}) })
...@@ -51,6 +51,32 @@ var app = new Vue({ ...@@ -51,6 +51,32 @@ var app = new Vue({
cur: '0', cur: '0',
currentObj: -1, currentObj: -1,
listType: 0, // 0 未交接 1已交接 listType: 0, // 0 未交接 1已交接
descript: '', //异常描述
descript: '', //异常描述
searchData: [{
id: '0',
name: '指令号'
},
{
id: '1',
name: '订单号'
},
{
id: '2',
name: '货号'
},
{
id: '3',
name: '班组'
},
{
id: '4',
name: '计划配送'
}
],
current: '', //搜索选中
dateTime: "", //日期
isData: false, //搜索的时候 是否选中了日期
}, },
computed: { computed: {
display_: function() { display_: function() {
...@@ -81,6 +107,10 @@ var app = new Vue({ ...@@ -81,6 +107,10 @@ var app = new Vue({
}, },
}, },
created() {
//如果没有这句代码,select中初始化会是空白的,默认选中就无法实现
this.current = this.searchData[0].id;
},
methods: { methods: {
init: function() { init: function() {
mui.init({ mui.init({
...@@ -130,7 +160,8 @@ var app = new Vue({ ...@@ -130,7 +160,8 @@ var app = new Vue({
PageSize: params.pageSize, PageSize: params.pageSize,
PageIndex: params.pageIndex, PageIndex: params.pageIndex,
ReportType: params.ReportType, ReportType: params.ReportType,
State: params.State State: params.State,
SearchType: app.current
}; };
//console.log("canshu:" + JSON.stringify(para)); //console.log("canshu:" + JSON.stringify(para));
//console.log("之前的数据:" + arr); //console.log("之前的数据:" + arr);
...@@ -163,7 +194,8 @@ var app = new Vue({ ...@@ -163,7 +194,8 @@ var app = new Vue({
SearchText: app.searchText, SearchText: app.searchText,
PageSize: params.pageSize, PageSize: params.pageSize,
PageIndex: params.pageIndex, PageIndex: params.pageIndex,
ReportType: params.ReportType ReportType: params.ReportType,
SearchType: app.current
}; };
Api.post(url, para, function(e) { Api.post(url, para, function(e) {
...@@ -192,11 +224,22 @@ var app = new Vue({ ...@@ -192,11 +224,22 @@ var app = new Vue({
indicators: true, //是否显示滚动条 indicators: true, //是否显示滚动条
}); });
this.getData(0); this.getData(0);
this.dateTime = moment().format().substring(0, 10);
mui(".mui-icon-clear")[0].addEventListener('tap', function() { mui(".mui-icon-clear")[0].addEventListener('tap', function() {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
app.searchText = ''; app.searchText = '';
app.getData(0); app.getData(0);
}); });
mui('body').on('tap','.mui-dtpicker #queding' ,function(){
var para = {
ReportType: app.ReportType,
SearchText: app.dateTime,
PageSize: 20,
PageIndex: 1,
SearchType: app.current
};
app.searchDetail(para);
})
}, },
getData: function(n) { getData: function(n) {
var that = this; var that = this;
...@@ -204,7 +247,8 @@ var app = new Vue({ ...@@ -204,7 +247,8 @@ var app = new Vue({
ReportType: this.ReportType, ReportType: this.ReportType,
State: n, State: n,
PageSize: 20, PageSize: 20,
PageIndex: 1 PageIndex: 1,
SearchType: 0
} }
// console.log(JSON.stringify(para)); // console.log(JSON.stringify(para));
that.searchText = ''; that.searchText = '';
...@@ -215,7 +259,7 @@ var app = new Vue({ ...@@ -215,7 +259,7 @@ var app = new Vue({
that.itemsLeft = e.items; that.itemsLeft = e.items;
that.itemsDetail = e.items[0]; that.itemsDetail = e.items[0];
that.IndexID = e.items[0].IndexID; that.IndexID = e.items[0].IndexID;
console.log("getData:未交接:" + JSON.stringify(that.itemsLeft)); console.log("getData:未交接:" + JSON.stringify(that.itemsDetail));
} else { } else {
that.itemsLeft = [] that.itemsLeft = []
that.itemsDetail = []; that.itemsDetail = [];
...@@ -274,60 +318,91 @@ var app = new Vue({ ...@@ -274,60 +318,91 @@ var app = new Vue({
var para = { var para = {
ReportType: this.ReportType, ReportType: this.ReportType,
SearchText: that.searchText, SearchText: that.searchText,
PageSize: 10, PageSize: 20,
PageIndex: 1 PageIndex: 1,
SearchType: this.current
}; };
//console.log("搜索文本:" + JSON.stringify(para)); console.log("搜索文本:" + JSON.stringify(para));
if (event.keyCode == "13") { if (event.keyCode == "13") {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
if (that.searchText == '') return; if (that.searchText == '') return;
this.searchDetail(para);
if (that.completeState) {
Api.post('/api/vMES/Handover/Search', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索未完成::" + e.items.length)
if (data > 0) {
that.itemsLeft = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/Handover/SearchDone', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索已完成::" + e.items.length)
if (data > 0) {
that.itemsLeft2 = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
event.preventDefault(); // 阻止默认事件---阻止页面刷新 event.preventDefault(); // 阻止默认事件---阻止页面刷新
//that.searchText = ''; //that.searchText = '';
} }
}, },
changeSearchType: function() {
console.log("11111111111111111111:" + this.current);
if (this.current == '4') {
this.isData = true;
var para = {
ReportType: this.ReportType,
SearchText: this.dateTime,
PageSize: 20,
PageIndex: 1,
SearchType: this.current
};
console.log("eee::" + JSON.stringify(para))
} else {
this.isData = false;
var para = {
ReportType: this.ReportType,
SearchText: this.searchText,
PageSize: 20,
PageIndex: 1,
SearchType: this.current
};
console.log("vvvv::" + JSON.stringify(para))
}
this.searchDetail(para);
},
searchDetail: function(para) {
console.log("搜索参数::" + JSON.stringify(para));
var that = this;
if (that.completeState) {
Api.post('/api/vMES/Handover/Search', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索::" + e.items.length)
if (data > 0) {
that.itemsLeft = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/Handover/SearchDone', para, function(e) {
//console.log("eee::" + JSON.stringify(e))
if (e.success) {
var data = e.items.length;
console.log("搜索已完成::" + e.items.length)
if (data > 0) {
that.itemsLeft2 = e.items;
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.itemsDetail = [];
that.cur = 0;
}
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
},
selectDisplay: function(n) { selectDisplay: function(n) {
this.listType = n; this.listType = n;
var opt = document.getElementById("item1"); var opt = document.getElementById("item1");
...@@ -350,13 +425,16 @@ var app = new Vue({ ...@@ -350,13 +425,16 @@ var app = new Vue({
matched: function() { matched: function() {
var that = this; var that = this;
var para = { var para = {
IndexID: this.IndexID IndexID: this.IndexID,
ExceptionDes: this.descript
} }
console.log("111111111:" + this.IndexID);
Api.post('/api/vMES/Handover/Match', para, function(e) { Api.post('/api/vMES/Handover/Match', para, function(e) {
console.log("111111111:" + JSON.stringify(para));
if (e.success) { if (e.success) {
mui.toast("配套成功! "); mui.toast("配套成功! ");
//that.getData(0); //that.getData(0);
that.descript = '';
console.log(JSON.stringify(e.data)) console.log(JSON.stringify(e.data))
playVoice("cg.mp3"); playVoice("cg.mp3");
console.log("配套suoyi:" + that.cur); console.log("配套suoyi:" + that.cur);
...@@ -376,14 +454,17 @@ var app = new Vue({ ...@@ -376,14 +454,17 @@ var app = new Vue({
cutConfirm: function() { cutConfirm: function() {
var that = this; var that = this;
var para = { var para = {
IndexID: this.IndexID IndexID: this.IndexID,
ExceptionDes: this.descript
} }
console.log("2222:" + this.IndexID);
Api.post('/api/vMES/Handover/Confirm', para, function(e) { Api.post('/api/vMES/Handover/Confirm', para, function(e) {
console.log("2222:" + JSON.stringify(para));
if (e.success) { if (e.success) {
mui.toast("确认成功! "); mui.toast("确认成功! ");
//that.getData(0); //that.getData(0);
playVoice("cg.mp3"); playVoice("cg.mp3");
that.descript = '';
console.log("裁断确认索引:" + that.cur); console.log("裁断确认索引:" + that.cur);
console.log(JSON.stringify(e.data.ConfirmDate)); console.log(JSON.stringify(e.data.ConfirmDate));
that.itemsDetail.ConfirmUserName = e.data.ConfirmUserName; that.itemsDetail.ConfirmUserName = e.data.ConfirmUserName;
...@@ -402,20 +483,25 @@ var app = new Vue({ ...@@ -402,20 +483,25 @@ var app = new Vue({
}, },
submit: function() { submit: function() {
var that = this; var that = this;
var para = {
IndexID: this.IndexID,
}
console.log(JSON.stringify(para)) console.log(JSON.stringify(para))
var html = ''; var html = '';
if (this.submitModel == 1) { if (this.submitModel == 1) {
html = '/api/vMES/Handover/UnCheck'; html = '/api/vMES/Handover/UnCheck';
var para = {
IndexID: this.IndexID,
}
} else { } else {
html = '/api/vMES/Handover/Check' html = '/api/vMES/Handover/Check'
var para = {
IndexID: this.IndexID,
ExceptionDes: this.descript
}
} }
console.log("sssssss22:" + JSON.stringify(para));
Api.post(html, para, function(e) { Api.post(html, para, function(e) {
console.log(JSON.stringify(para));
if (e.success) { if (e.success) {
//that.selectLeftBack(0); //that.selectLeftBack(0);
//that.IndexID = 0; //that.IndexID = 0;
...@@ -425,10 +511,12 @@ var app = new Vue({ ...@@ -425,10 +511,12 @@ var app = new Vue({
if (html == '/api/vMES/Handover/Check') { if (html == '/api/vMES/Handover/Check') {
var ReceiveArr = that.itemsLeft; var ReceiveArr = that.itemsLeft;
console.log("长度111111111:" + JSON.stringify(ReceiveArr[ReceiveArr.length - 1]) + ":::" + ReceiveArr[ console.log("长度111111111:" + JSON.stringify(ReceiveArr[ReceiveArr.length - 1]) + ":::" + ReceiveArr[
ReceiveArr.length - 1].IsConfirm + that.cur + ":::" + that.currentObj); ReceiveArr.length - 1].IsConfirm + that.cur + ":::" + that.currentObj);
refresh(ReceiveArr); refresh(ReceiveArr);
that.descript = '';
} else { } else {
var UnReceiveArr = that.itemsLeft2; var UnReceiveArr = that.itemsLeft2;
refresh(UnReceiveArr); refresh(UnReceiveArr);
console.log("长度22222222:" + JSON.stringify(UnReceiveArr[UnReceiveArr.length - 1])); console.log("长度22222222:" + JSON.stringify(UnReceiveArr[UnReceiveArr.length - 1]));
...@@ -449,18 +537,18 @@ var app = new Vue({ ...@@ -449,18 +537,18 @@ var app = new Vue({
that.itemsDetail = leftArr[delIndexNoIndx]; that.itemsDetail = leftArr[delIndexNoIndx];
that.IndexID = leftArr[delIndexNoIndx].IndexID; that.IndexID = leftArr[delIndexNoIndx].IndexID;
console.log("ssss之后:" + that.IndexID); console.log("ssss之后:" + that.IndexID);
} else { } else {
that.cur = leftArr.length - 1; that.cur = leftArr.length - 1;
that.itemsDetail = leftArr[leftArr.length - 1]; that.itemsDetail = leftArr[leftArr.length - 1];
that.IndexID = leftArr[leftArr.length - 1].IndexID; that.IndexID = leftArr[leftArr.length - 1].IndexID;
} }
that.selectLeft(that.itemsDetail,that.cur); that.selectLeft(that.itemsDetail, that.cur);
} }
} }
playVoice("cg.mp3"); playVoice("cg.mp3");
mui.toast("操作成功"); mui.toast("操作成功");
} else { } else {
playVoice("sb.mp3"); playVoice("sb.mp3");
...@@ -511,7 +599,63 @@ var app = new Vue({ ...@@ -511,7 +599,63 @@ var app = new Vue({
btn2.style.display = "none"; btn2.style.display = "none";
} }
} }
} },
selecttime: function() {
var that = this;
var _self = document.getElementById("selectdate");
var oldData = this.dateTime;
var newData;
if (_self.picker) {
_self.picker.show(function(rs) {
_self.innerText = rs.text;
_self.picker.dispose();
_self.picker = null;
newData = rs.text;
});
} else {
var optionsJson = _self.getAttribute('data-options') || '{}';
var options = JSON.parse(optionsJson);
var id = _self.getAttribute('id');
/*
* 首次显示时实例化组件
* 示例为了简洁,将 options 放在了按钮的 dom 上
* 也可以直接通过代码声明 optinos 用于实例化 DtPicker
*/
_self.picker = new mui.DtPicker(options);
_self.picker.show(function(rs) {
_self.innerText = rs.text;
that.dateTime = rs.text;
_self.picker.dispose();
_self.picker = null;
newData = rs.text;
});
}
console.log("之前日期:"+oldData +"之后日期:"+newData);
},
nextday: function(n) {
var d = new Date(this.dateTime);
d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * n);
if (d.getDate().toString().length == 1) {
this.dateTime = d.getFullYear() + "-" + (d.getMonth() + 1) + "-0" + d.getDate();
} else {
this.dateTime = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
}
var para = {
ReportType: this.ReportType,
SearchText: this.dateTime,
PageSize: 20,
PageIndex: 1,
SearchType: this.current
};
this.searchDetail(para);
},
}, },
}) })
...@@ -69,6 +69,24 @@ var app = new Vue({ ...@@ -69,6 +69,24 @@ var app = new Vue({
return false; return false;
}), }),
appdis: 0, appdis: 0,
searchData: [{
id: '0',
name: '指令号'
},
{
id: '1',
name: '订单号'
},
{
id: '2',
name: '货号'
},
{
id: '3',
name: '班组'
}
],
current: '', //搜索选中
}, },
computed: { computed: {
...@@ -92,14 +110,10 @@ var app = new Vue({ ...@@ -92,14 +110,10 @@ var app = new Vue({
} }
}, },
}, },
// mounted:function(){ created() {
// this.$nextTick(function(){ //如果没有这句代码,select中初始化会是空白的,默认选中就无法实现
// mui('#progress .mui-text-center').each(function() { this.current = this.searchData[0].id;
// console.log(this.getAttribute("data-progress")); },
// mui(this).progressbar({progress:this.getAttribute("data-progress")}).show()
// })
// })
// },
methods: { methods: {
init: function() { //初始化 init: function() { //初始化
mui.init({ mui.init({
...@@ -112,8 +126,8 @@ var app = new Vue({ ...@@ -112,8 +126,8 @@ var app = new Vue({
callback: function() { callback: function() {
var reUnfinished = document.getElementById("theOne").getAttribute("state"); var reUnfinished = document.getElementById("theOne").getAttribute("state");
var reFinished = document.getElementById("theTow").getAttribute("state"); var reFinished = document.getElementById("theTow").getAttribute("state");
var UnfinishedUrl = '/api/vMES/ProductionReportV2/ToDo'; // var UnfinishedUrl = '/api/vMES/ProductionReportV2/ToDo';
var FinishedUrl = '/api/vMES/ProductionReportV2/Done'; // var FinishedUrl = '/api/vMES/ProductionReportV2/Done';
var searchUrl = '/api/vMES/ProductionReportV2/Search'; var searchUrl = '/api/vMES/ProductionReportV2/Search';
var searchDoneUrl = '/api/vMES/ProductionReportV2/SearchDone'; var searchDoneUrl = '/api/vMES/ProductionReportV2/SearchDone';
//console.log("未完成" + reUnfinished) //console.log("未完成" + reUnfinished)
...@@ -124,88 +138,21 @@ var app = new Vue({ ...@@ -124,88 +138,21 @@ var app = new Vue({
if (app.searchText != "") { if (app.searchText != "") {
searchPull(searchUrl, UnfinishedData, app.paramUnDoSeach); searchPull(searchUrl, UnfinishedData, app.paramUnDoSeach);
} else { } else {
pullupRefresh(UnfinishedUrl, UnfinishedData, app.paramUnDo); pullupRefresh(searchUrl, UnfinishedData, app.paramUnDo);
} }
} else if (reFinished) { //已完成 } else if (reFinished) { //已完成
if (app.searchText != "") { if (app.searchText != "") {
searchPull(searchDoneUrl, FinishedUrlData, app.paramDoneSeach); searchPull(searchDoneUrl, FinishedUrlData, app.paramDoneSeach);
} else { } else {
pullupRefresh(FinishedUrl, FinishedUrlData, app.paramDone); pullupRefresh(searchDoneUrl, FinishedUrlData, app.paramDone);
} }
} }
} }
}, },
} }
}); });
function pullupRefresh(url, arr, params) {
//console.log("加载前1" + arr);
setTimeout(function() {
var para = {
PageSize: params.pageSize,
PageIndex: params.pageIndex,
ReportType: params.ReportType,
};
//console.log("canshu:" + JSON.stringify(para));
//console.log("之前的数据:" + arr);
Api.post(url, para, function(e) { //2.没数据 提示 但是可以一直发请求只不过传回来是空
if (e.success) {
//console.log("111:" + JSON.stringify(e.items));
var data = e.items;
if (e.items.length > 0) {
params.pageIndex++;
}
for (var i = 0; i < data.length; i++) {
arr.push(data[i]);
console.log("changdu2222222:" + arr.length);
}
}
}, function(b, bb, bbb) {
mui.toast(JSON.stringify(bbb.message))
});
mui('#pullrefresh').pullRefresh().endPullupToRefresh(); //参数为true代表没有更多数据了。
mui('#pullrefresh').pullRefresh().refresh(true);
//mui('#pullrefresh').pullRefresh().disablePullupToRefresh();
}, 1000);
}
function searchPull(url, arr, params) {
setTimeout(function() {
var para = {
searchText: app.searchText,
PageSize: params.pageSize,
PageIndex: params.pageIndex,
ReportType: params.ReportType,
};
Api.post(url, para, function(e) {
if (e.success) {
//console.log("111:" + JSON.stringify(e.items));
var data = e.items;
if (e.items.length > 0) {
params.pageIndex++;
}
for (var i = 0; i < data.length; i++) {
arr.push(data[i]);
}
//console.log("canshuqq:" + JSON.stringify(para));
}
}, function(b, bb, bbb) {
mui.toast(JSON.stringify(bbb.message))
});
mui('#pullrefresh').pullRefresh().endPullupToRefresh();
mui('#pullrefresh').pullRefresh().refresh(true);
}, 1000);
}
window.addEventListener('back', function(e) { window.addEventListener('back', function(e) {
var that = this; var that = this;
// app.getData(); // app.getData();
...@@ -238,11 +185,13 @@ var app = new Vue({ ...@@ -238,11 +185,13 @@ var app = new Vue({
var para = { var para = {
ReportType: that.ReportType, ReportType: that.ReportType,
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.unPagenum PageIndex: that.unPagenum,
SearchType:'0',
SearchText:'',
}; };
//console.log("lalla" + JSON.stringify(para)); //console.log("lalla" + JSON.stringify(para));
that.cur = 0; that.cur = 0;
Api.post('/api/vMES/ProductionReportV2/ToDo', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("one :::;" + JSON.stringify(e.items.length)) console.log("one :::;" + JSON.stringify(e.items.length))
console.log("getData:" + JSON.stringify(e.items[0])) console.log("getData:" + JSON.stringify(e.items[0]))
//console.log("点击之前"+JSON.stringify(that.rightInfor)) //console.log("点击之前"+JSON.stringify(that.rightInfor))
...@@ -320,11 +269,13 @@ var app = new Vue({ ...@@ -320,11 +269,13 @@ var app = new Vue({
var para = { var para = {
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.unPagenum, PageIndex: that.unPagenum,
ReportType: that.ReportType ReportType: that.ReportType,
SearchType:'0',
SearchText:'',
}; };
that.searchText = ''; that.searchText = '';
that.disable_reportDelete = "disabled"; that.disable_reportDelete = "disabled";
Api.post('/api/vMES/ProductionReportV2/ToDo', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
that.cur = 0; that.cur = 0;
if (e.items.length > 0) { if (e.items.length > 0) {
that.itemsHead = e.items; that.itemsHead = e.items;
...@@ -346,12 +297,14 @@ var app = new Vue({ ...@@ -346,12 +297,14 @@ var app = new Vue({
var para = { var para = {
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.pagenum, PageIndex: that.pagenum,
ReportType: that.ReportType ReportType: that.ReportType,
SearchType:'0',
SearchText:'',
}; };
//console.log("do para " + JSON.stringify(para)) //console.log("do para " + JSON.stringify(para))
that.disable_reportDelete = null; that.disable_reportDelete = null;
that.searchText = ''; that.searchText = '';
Api.post('/api/vMES/ProductionReportV2/Done', para, function(e) { Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("已完成" + JSON.stringify(para)) console.log("已完成" + JSON.stringify(para))
var data = e.items.length; var data = e.items.length;
if (data > 0) { if (data > 0) {
...@@ -380,54 +333,72 @@ var app = new Vue({ ...@@ -380,54 +333,72 @@ var app = new Vue({
SearchText: that.searchText, SearchText: that.searchText,
PageSize: 20, PageSize: 20,
PageIndex: that.pagenum, PageIndex: that.pagenum,
ReportType: that.ReportType ReportType: that.ReportType,
SearchType:that.current,
}; };
if (event.keyCode == "13") { if (event.keyCode == "13") {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
if (that.searchText == '') return; if (that.searchText == '') return;
console.log(this.completeState); console.log(this.completeState + JSON.stringify(para));
if (this.completeState) { //true 是未完成的搜索 false是已完成的搜索 this.searchDetail(para);
Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("现在是未完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsHead = e.items;
console.log("未完成的搜索111");
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsHead = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("现在是以111111完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsLeft2 = e.items;
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
event.preventDefault(); // 阻止默认事件---阻止页面刷新 event.preventDefault(); // 阻止默认事件---阻止页面刷新
//that.searchText = ''; //that.searchText = '';
} }
}, },
changeSearchType:function(){
var that = this;
var para = {
SearchText: that.searchText,
PageSize: 20,
PageIndex: that.pagenum,
ReportType: that.ReportType,
SearchType:that.current,
};
this.searchDetail(para);
},
searchDetail:function(para){
var that = this;
if (this.completeState) { //true 是未完成的搜索 false是已完成的搜索
Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("现在是未完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsHead = e.items;
console.log("未完成的搜索111");
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsHead = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
} else {
Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("现在是以111111完成的搜索!");
var data = e.items.length;
if (data > 0) {
that.itemsLeft2 = e.items;
that.rightInfor = e.items[0];
that.itemsDetail = e.items[0];
that.cur = 0;
} else {
that.itemsLeft2 = [];
that.rightInfor = [];
that.itemsDetail = [];
that.cur = 0;
}
}, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message))
});
}
},
getTatolNum: function() { //今日产量 getTatolNum: function() { //今日产量
var that = this; var that = this;
var para = { var para = {
......
...@@ -23,19 +23,23 @@ var app = new Vue({ ...@@ -23,19 +23,23 @@ var app = new Vue({
itemsDetail2: [], // itemsDetail2: [], //
paramUnDo: { paramUnDo: {
pageIndex: 2, pageIndex: 2,
pageSize: 10 pageSize: 10,
ReportType:0
}, },
paramDone: { paramDone: {
pageIndex: 2, pageIndex: 2,
pageSize: 10 pageSize: 10,
ReportType: 0
}, },
paramUnDoSeach: { paramUnDoSeach: {
pageIndex: 2, pageIndex: 2,
pageSize: 10 pageSize: 10,
ReportType: 0
}, },
paramDoneSeach: { paramDoneSeach: {
pageIndex: 2, pageIndex: 2,
pageSize: 10 pageSize: 10,
ReportType:0
}, },
itemsHead: [], //未完成和搜索左侧数组 itemsHead: [], //未完成和搜索左侧数组
itemsLeft: [], itemsLeft: [],
...@@ -65,7 +69,25 @@ var app = new Vue({ ...@@ -65,7 +69,25 @@ var app = new Vue({
return false; return false;
}), }),
appdis: 0, appdis: 0,
searchData: [{
id: '0',
name: '指令号'
},
{
id: '1',
name: '订单号'
},
{
id: '2',
name: '货号'
},
{
id: '3',
name: '班组'
}
],
current: '', //搜索选中
}, },
computed: { computed: {
disable_save_button_C: function() { disable_save_button_C: function() {
...@@ -88,14 +110,10 @@ var app = new Vue({ ...@@ -88,14 +110,10 @@ var app = new Vue({
} }
}, },
}, },
// mounted:function(){ created() {
// this.$nextTick(function(){ //如果没有这句代码,select中初始化会是空白的,默认选中就无法实现
// mui('#progress .mui-text-center').each(function() { this.current = this.searchData[0].id;
// console.log(this.getAttribute("data-progress")); },
// mui(this).progressbar({progress:this.getAttribute("data-progress")}).show()
// })
// })
// },
methods: { methods: {
init: function() { //初始化 init: function() { //初始化
mui.init({ mui.init({
...@@ -108,110 +126,45 @@ var app = new Vue({ ...@@ -108,110 +126,45 @@ var app = new Vue({
callback: function() { callback: function() {
var reUnfinished = document.getElementById("theOne").getAttribute("state"); var reUnfinished = document.getElementById("theOne").getAttribute("state");
var reFinished = document.getElementById("theTow").getAttribute("state"); var reFinished = document.getElementById("theTow").getAttribute("state");
var UnfinishedUrl = '/api/vMES/CutOffProductionReport/ToDo'; // var UnfinishedUrl = '/api/vMES/ProductionReportV2/ToDo';
var FinishedUrl = '/api/vMES/CutOffProductionReport/Done'; // var FinishedUrl = '/api/vMES/ProductionReportV2/Done';
var searchUrl = '/api/vMES/CutOffProductionReport/Search'; var searchUrl = '/api/vMES/ProductionReportV2/Search';
var searchDoneUrl = '/api/vMES/CutOffProductionReport/SearchDone'; var searchDoneUrl = '/api/vMES/ProductionReportV2/SearchDone';
//console.log("未完成" + reUnfinished) //console.log("未完成" + reUnfinished)
//console.log("已完成" + reFinished) //console.log("已完成" + reFinished)
var UnfinishedData = app.itemsHead; var UnfinishedData = app.itemsHead;
var FinishedUrlData = app.itemsLeft2; var FinishedUrlData = app.itemsLeft2;
if (reUnfinished) {//未完成 if (reUnfinished) { //未完成
if (app.searchText != "") { if (app.searchText != "") {
searchPull(searchUrl, UnfinishedData, app.paramUnDoSeach); searchPull(searchUrl, UnfinishedData, app.paramUnDoSeach);
}else{ } else {
pullupRefresh(UnfinishedUrl, UnfinishedData, app.paramUnDo); pullupRefresh(searchUrl, UnfinishedData, app.paramUnDo);
} }
} else if (reFinished) {//已完成 } else if (reFinished) { //已完成
if (app.searchText != "") { if (app.searchText != "") {
searchPull(searchDoneUrl, FinishedUrlData, app.paramDoneSeach); searchPull(searchDoneUrl, FinishedUrlData, app.paramDoneSeach);
}else{ } else {
pullupRefresh(FinishedUrl, FinishedUrlData, app.paramDone); pullupRefresh(searchDoneUrl, FinishedUrlData, app.paramDone);
} }
} }
} }
}, },
} }
}); });
function pullupRefresh(url, arr, params) {
//console.log("加载前1" + arr);
setTimeout(function() {
var para = {
PageSize: params.pageSize,
PageIndex: params.pageIndex
};
//console.log("canshu:" + JSON.stringify(para));
//console.log("之前的数据:" + arr);
Api.post(url, para, function(e) { //2.没数据 提示 但是可以一直发请求只不过传回来是空
if (e.success) {
//console.log("111:" + JSON.stringify(e.items));
var data = e.items;
if (e.items.length > 0) {
params.pageIndex++;
}
for (var i = 0; i < data.length; i++) {
arr.push(data[i]);
//console.log("changdu2222222:"+arr.length);
}
}
}, function(b, bb, bbb) {
mui.toast(JSON.stringify(bbb.message))
});
mui('#pullrefresh').pullRefresh().endPullupToRefresh(); //参数为true代表没有更多数据了。
mui('#pullrefresh').pullRefresh().refresh(true);
//mui('#pullrefresh').pullRefresh().disablePullupToRefresh();
}, 1000);
}
function searchPull(url, arr, params) {
setTimeout(function() {
var para = {
searchText: app.searchText,
PageSize: params.pageSize,
PageIndex: params.pageIndex
};
Api.post(url, para, function(e) {
if (e.success) {
//console.log("111:" + JSON.stringify(e.items));
var data = e.items;
if (e.items.length > 0) {
params.pageIndex++;
}
for (var i = 0; i < data.length; i++) {
arr.push(data[i]);
}
//console.log("canshuqq:" + JSON.stringify(para));
}
}, function(b, bb, bbb) {
mui.toast(JSON.stringify(bbb.message))
});
mui('#pullrefresh').pullRefresh().endPullupToRefresh();
mui('#pullrefresh').pullRefresh().refresh(true);
}, 1000);
}
window.addEventListener('back', function(e) { window.addEventListener('back', function(e) {
var that = this; var that = this;
//app.getData(); app.getData();
//app.ChangeState(1); app.ChangeState(1);
}); });
mui(".mui-icon-clear")[0].addEventListener('tap', function() { mui(".mui-icon-clear")[0].addEventListener('tap', function() {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
app.searchText = ''; app.searchText = '';
app.completeState ? app.ChangeState(1) :app.ChangeState(2); app.completeState ? app.ChangeState(1) : app.ChangeState(2);
//console.log('1111'); //console.log('1111');
}); });
setTimeout(function() { setTimeout(function() {
...@@ -224,20 +177,23 @@ var app = new Vue({ ...@@ -224,20 +177,23 @@ var app = new Vue({
indicators: true, //是否显示滚动条 indicators: true, //是否显示滚动条
}); });
this.dateTime = moment().format().substring(0, 10) this.dateTime = moment().format().substring(0, 10)
this.today = this.dateTime; // this.today = this.dateTime;
this.getData(); this.getData();
}, },
getData: function() { getData: function() {
var that = this; var that = this;
this.createZhezhao(-1) this.createZhezhao(-1)
var para = { var para = {
ReportType: that.ReportType,
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.unPagenum PageIndex: that.unPagenum,
SearchType:'0',
SearchText:'',
}; };
//console.log("lalla" + JSON.stringify(para)); //console.log("lalla" + JSON.stringify(para));
that.cur = 0; that.cur = 0;
Api.post('/api/vMES/CutOffProductionReport/ToDo', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("one :::;" +JSON.stringify(e.items.length)) console.log("one :::;" + JSON.stringify(e.items.length))
console.log("getData:" + JSON.stringify(e.items[0])) console.log("getData:" + JSON.stringify(e.items[0]))
//console.log("点击之前"+JSON.stringify(that.rightInfor)) //console.log("点击之前"+JSON.stringify(that.rightInfor))
if (e.items.length > 0) { if (e.items.length > 0) {
...@@ -276,12 +232,12 @@ var app = new Vue({ ...@@ -276,12 +232,12 @@ var app = new Vue({
that.cur = index; that.cur = index;
//that.searchText = ''; //that.searchText = '';
var para = { var para = {
"IndexID": idInfor "IndexID": idInfor,
ReportType: that.ReportType
}; };
that.ReportID = idInfor; that.ReportID = idInfor;
Api.post('/api/vMES/CutOffProductionReport/Detail', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Detail', para, function(e) {
if (e.success) { if (e.success) {
that.rightInfor = e.data; that.rightInfor = e.data;
console.log("点击之后" + JSON.stringify(that.rightInfor)) console.log("点击之后" + JSON.stringify(that.rightInfor))
that.itemsDetail = e.data; that.itemsDetail = e.data;
...@@ -302,28 +258,31 @@ var app = new Vue({ ...@@ -302,28 +258,31 @@ var app = new Vue({
selectDisplay: function(n) { selectDisplay: function(n) {
//console.log("selectDisplay:" + n) //console.log("selectDisplay:" + n)
this.ChangeState(n); //n=1 未完成 ,2已完成 this.ChangeState(n); //n=1 未完成 ,2已完成
n == 1 ? this.completeState = true : this.completeState = false; n == 1 ? this.completeState = true : this.completeState = false;
}, },
ChangeState: function(n) { //改变状态,切换已完成和未完成 ChangeState: function(n) { //改变状态,切换已完成和未完成
//n= 1 未完成 n=2 已完成 //n= 1 未完成 n=2 已完成
var that = this; var that = this;
// console.log(JSON.stringify(para)) // console.log(JSON.stringify(para))
if (n == 1) { if (n == 1) {
var para = { var para = {
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.unPagenum PageIndex: that.unPagenum,
ReportType: that.ReportType,
SearchType:'0',
SearchText:'',
}; };
that.searchText = ''; that.searchText = '';
that.disable_reportDelete = "disabled"; that.disable_reportDelete = "disabled";
Api.post('/api/vMES/CutOffProductionReport/ToDo', para, function(e) { Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
that.cur = 0; that.cur = 0;
if (e.items.length > 0) { if (e.items.length > 0) {
that.itemsHead = e.items; that.itemsHead = e.items;
that.rightInfor = e.items[0]; that.rightInfor = e.items[0];
that.itemsDetail = e.items[0]; that.itemsDetail = e.items[0];
console.log("weiwancheng111"+JSON.stringify(that.itemsHead)); console.log("weiwancheng111" + JSON.stringify(that.itemsHead));
that.IndexID = that.itemsHead[0].IndexID; that.IndexID = that.itemsHead[0].IndexID;
that.sizeArr(); that.sizeArr();
} else { } else {
...@@ -338,12 +297,15 @@ var app = new Vue({ ...@@ -338,12 +297,15 @@ var app = new Vue({
} else if (n == 2) { } else if (n == 2) {
var para = { var para = {
PageSize: that.datalen, PageSize: that.datalen,
PageIndex: that.pagenum PageIndex: that.pagenum,
ReportType: that.ReportType,
SearchType:'0',
SearchText:'',
}; };
//console.log("do para " + JSON.stringify(para)) //console.log("do para " + JSON.stringify(para))
that.disable_reportDelete = null; that.disable_reportDelete = null;
that.searchText = ''; that.searchText = '';
Api.post('/api/vMES/CutOffProductionReport/Done', para, function(e) { Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("已完成" + JSON.stringify(para)) console.log("已完成" + JSON.stringify(para))
var data = e.items.length; var data = e.items.length;
if (data > 0) { if (data > 0) {
...@@ -351,7 +313,7 @@ var app = new Vue({ ...@@ -351,7 +313,7 @@ var app = new Vue({
that.rightInfor = e.items[0]; that.rightInfor = e.items[0];
that.cur = 0; that.cur = 0;
that.itemsDetail = e.items[0]; that.itemsDetail = e.items[0];
that.IndexID = that.itemsLeft2[0].IndexID; that.IndexID = that.itemsLeft2[0].IndexID;
that.sizeArr(); that.sizeArr();
} else { } else {
...@@ -366,23 +328,44 @@ var app = new Vue({ ...@@ -366,23 +328,44 @@ var app = new Vue({
} }
}, },
goSearch: function(event) { goSearch: function(event) {
var that = this; var that = this;
var para = { var para = {
SearchText: that.searchText, SearchText: that.searchText,
PageSize: 20, PageSize: 20,
PageIndex: that.pagenum, PageIndex: that.pagenum,
ReportType: that.ReportType,
SearchType:that.current,
}; };
if (event.keyCode == "13") { if (event.keyCode == "13") {
document.activeElement.blur(); //收起虚拟键盘 document.activeElement.blur(); //收起虚拟键盘
if (that.searchText == '') return; if (that.searchText == '') return;
if(this.completeState){//true 是未完成的搜索 false是已完成的搜索 console.log(this.completeState);
Api.post('/api/vMES/CutOffProductionReport/Search', para, function(e) { this.searchDetail(para);
console.log("现在是未完成的搜索!"); event.preventDefault(); // 阻止默认事件---阻止页面刷新
//that.searchText = '';
}
},
changeSearchType: function() {
var para = {
SearchText: this.searchText,
PageSize: 20,
PageIndex: this.pagenum,
ReportType: this.ReportType,
SearchType:this.current,
};
this.searchDetail(para);
},
searchDetail: function(para) {
var that = this;
if (this.completeState) { //true 是未完成的搜索 false是已完成的搜索
Api.post('/api/vMES/ProductionReportV2/Search', para, function(e) {
console.log("现在是未完成的搜索!"+ JSON.stringify(para));
var data = e.items.length; var data = e.items.length;
if (data > 0) { if (data > 0) {
that.itemsHead = e.items; that.itemsHead = e.items;
console.log("未完成的搜索111"+JSON.stringify(that.itemsHead)); console.log("未完成的搜索111");
that.rightInfor = e.items[0]; that.rightInfor = e.items[0];
that.itemsDetail = e.items[0]; that.itemsDetail = e.items[0];
that.cur = 0; that.cur = 0;
...@@ -395,33 +378,31 @@ var app = new Vue({ ...@@ -395,33 +378,31 @@ var app = new Vue({
}, function(xhr, type, res) { }, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message)) mui.toast(JSON.stringify(res.message))
}); });
}else{ } else {
Api.post('/api/vMES/CutOffProductionReport/SearchDone', para, function(e) { Api.post('/api/vMES/ProductionReportV2/SearchDone', para, function(e) {
console.log("现在是以111111完成的搜索!"); console.log("现在是以111111完成的搜索!"+ JSON.stringify(para));
var data = e.items.length; var data = e.items.length;
if (data > 0) { if (data > 0) {
that.itemsLeft2 = e.items; that.itemsLeft2 = e.items;
that.rightInfor = e.items[0]; that.rightInfor = e.items[0];
that.itemsDetail = e.items[0]; that.itemsDetail = e.items[0];
that.cur = 0; that.cur = 0;
} else { } else {
that.itemsLeft2 = []; that.itemsLeft2 = [];
that.rightInfor = []; that.rightInfor = [];
that.itemsDetail = []; that.itemsDetail = [];
that.cur = 0; that.cur = 0;
} }
}, function(xhr, type, res) { }, function(xhr, type, res) {
mui.toast(JSON.stringify(res.message)) mui.toast(JSON.stringify(res.message))
}); });
}
event.preventDefault(); // 阻止默认事件---阻止页面刷新
//that.searchText = '';
} }
}, },
getTatolNum: function() { //今日产量 getTatolNum: function() { //今日产量
var that = this; var that = this;
var para = { var para = {
ReportType: this.ReportType, ReportType: that.ReportType,
Date: this.dateTime + " 00:00:00", Date: this.dateTime + " 00:00:00",
}; };
Api.post('/api/vMES/ProductionReport/TotalQty', para, function(e) { Api.post('/api/vMES/ProductionReport/TotalQty', para, function(e) {
...@@ -475,7 +456,7 @@ var app = new Vue({ ...@@ -475,7 +456,7 @@ var app = new Vue({
that.Model = 0; that.Model = 0;
mui.toast("撤回成功"); mui.toast("撤回成功");
playVoice("cg.mp3"); playVoice("cg.mp3");
console.log("删除的id11111111111:" + JSON.stringify(para)); console.log("删除的id:" + JSON.stringify(para));
var doneIndexArr = that.itemsLeft2; var doneIndexArr = that.itemsLeft2;
var delIndexNoIndx = -1; var delIndexNoIndx = -1;
for (var i = 0; i < doneIndexArr.length; i++) { for (var i = 0; i < doneIndexArr.length; i++) {
...@@ -487,7 +468,7 @@ var app = new Vue({ ...@@ -487,7 +468,7 @@ var app = new Vue({
} }
doneIndexArr.splice(delIndexNoIndx, 1); doneIndexArr.splice(delIndexNoIndx, 1);
if (doneIndexArr.length > 0) { if (doneIndexArr.length > 0) {
if (doneIndexArr.length - 1 >= delIndexNoIndx) { if (doneIndexArr.length - 1 > delIndexNoIndx) {
that.cur = delIndexNoIndx; that.cur = delIndexNoIndx;
that.rightInfor = doneIndexArr[delIndexNoIndx]; that.rightInfor = doneIndexArr[delIndexNoIndx];
that.itemsDetail = doneIndexArr[delIndexNoIndx]; that.itemsDetail = doneIndexArr[delIndexNoIndx];
...@@ -501,13 +482,11 @@ var app = new Vue({ ...@@ -501,13 +482,11 @@ var app = new Vue({
that.getDetailInfor(that.IndexID,that.cur); that.getDetailInfor(that.IndexID,that.cur);
} }
} else { } else {
mui.toast("撤回失败" + e.message); mui.toast("撤回失败" + e.message)
} }
}, function(xhr, type, res) { }, function(xhr, type, res) {
playVoice("sb.mp3");
mui.toast(JSON.stringify(res.message)) mui.toast(JSON.stringify(res.message))
playVoice("sb.mp3");
}); });
}, },
getLink: function() { getLink: function() {
...@@ -573,7 +552,6 @@ var app = new Vue({ ...@@ -573,7 +552,6 @@ var app = new Vue({
that.getCompleteRatio(that.IndexID) //订单进度 that.getCompleteRatio(that.IndexID) //订单进度
playVoice("cg.mp3"); playVoice("cg.mp3");
that.getDetailInfor(that.IndexID, that.cur) that.getDetailInfor(that.IndexID, that.cur)
//console.log("mmmmmmmmmmmmmmmmmmmmmmmm")
mui.toast("提交成功"); mui.toast("提交成功");
} else { } else {
mui.toast("提交失败: " + e.message); mui.toast("提交失败: " + e.message);
...@@ -780,6 +758,7 @@ var app = new Vue({ ...@@ -780,6 +758,7 @@ var app = new Vue({
mui('.scroll4').scroll().scrollTo(0, 0, 100); mui('.scroll4').scroll().scrollTo(0, 0, 100);
}, },
stylebg: function(n) { stylebg: function(n) {
if (n == 0) { if (n == 0) {
return { return {
"background": "#02C1ED" "background": "#02C1ED"
...@@ -791,16 +770,16 @@ var app = new Vue({ ...@@ -791,16 +770,16 @@ var app = new Vue({
var id_; var id_;
url_ = "CuttingQuality.html"; url_ = "CuttingQuality.html";
id_ = "CuttingQuality.html"; id_ = "CuttingQuality.html";
var detail ={ var detail = {
IndexID: this.IndexID, IndexID: this.IndexID,
dateTime: this.dateTime, dateTime: this.dateTime,
itemsDetail: this.itemsDetail, itemsDetail: this.itemsDetail,
itemsSize: this.itemsSize,// itemsSize: this.itemsSize, //
type: n, // n =2 点击不合格进去 , type: n, // n =2 点击不合格进去 ,
parentSize: k, parentSize: k,
sizeNum: this.rightInfor.ReportDetail //尺码和数量 sizeNum: this.rightInfor.ReportDetail //尺码和数量
} }
console.log("品质问题:"+ JSON.stringify(detail)); console.log("品质问题:" + JSON.stringify(detail));
mui.openWindow({ mui.openWindow({
url: url_, url: url_,
id: id_, id: id_,
...@@ -811,7 +790,7 @@ var app = new Vue({ ...@@ -811,7 +790,7 @@ var app = new Vue({
itemsSize: this.itemsSize, itemsSize: this.itemsSize,
type: n, // n =2 点击不合格进去 , type: n, // n =2 点击不合格进去 ,
parentSize: k, parentSize: k,
sizeNum: this.itemsDetail1 ,//尺码和数量 sizeNum: this.itemsDetail1, //尺码和数量
ReportType:this.ReportType ReportType:this.ReportType
}, },
}); });
......
...@@ -20,16 +20,48 @@ ...@@ -20,16 +20,48 @@
<label>今日产量:{{number}} </label> <label>今日产量:{{number}} </label>
</div> </div>
<div id="left-2" class="left-2"> <div id="left-2" class="left-2">
<div class="mui-input-row mui-search"> <div class="select">
<input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search" <div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索"v-model="searchText" type="search"
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()"
@blur.prevent="changePosition1()"> @blur.prevent="changePosition1()">
</div>
<div class="select-left">
<select v-model="current" @change="changeSearchType" >
<option :value="item.id" v-for="item in searchData">{{item.name}}</option>
</select>
</div>
</div> </div>
<!-- <div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search"
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()"
@blur.prevent="changePosition1()">
</div> -->
<div class="Text"> <div class="Text">
<div class="left" id="pullrefresh" class="mui-content mui-scroll-wrapper"> <div id="pullrefresh" class="mui-content">
<div class="mui-scroll"> <div class="mui-scroll">
<div id="theOne" :state="completeState" v-show="completeState"> <div id="theOne" :state="completeState" v-show="completeState">
<div class="mui-table-view mui-table-view-chevron"> <div class="mui-table-view mui-table-view-chevron">
<!-- <ul class="complet-detail" style="background: red;">
<li>
<p><span>指令号:</span><span>吧吧吧吧吧吧吧v</span></p>
<p><span>订单号:</span><span>橱窗橱窗错错错错错错错</span></p>
</li>
<li>
<p><span>货号:</span><span class="blueColor">反反复复付付付付付</span></p>
<p><span>数量:</span><span class="redColor">男男女女</span></p>
</li>
<li>
<p><span>计划时间:</span><span>版本版本不不</span></p>
<p><span>小组:</span><span>5555</span></p>
</li>
<li>
<p><span>预计交期:</span><span>66666</span></p>
<p><span>计划人:</span><span>77777777</span></p>
</li>
</ul> -->
<ul class="complet-detail" :class="{active:cur==index}" v-for="(list,index) in itemsHead" :key="list.IndexID" <ul class="complet-detail" :class="{active:cur==index}" v-for="(list,index) in itemsHead" :key="list.IndexID"
@click="getDetailInfor(list.IndexID,index)"> @click="getDetailInfor(list.IndexID,index)">
<li> <li>
...@@ -192,6 +224,7 @@ ...@@ -192,6 +224,7 @@
<script src="../dest/js/vue.min.js"> </script> <script src="../dest/js/vue.min.js"> </script>
<script src="../dest/js/moment.js"></script> <script src="../dest/js/moment.js"></script>
<script src="../js/mui.pullToRefresh.js"></script> <script src="../js/mui.pullToRefresh.js"></script>
<script src="../dest/js/mes/pullupRefresh.js"></script>
<script src="../dest/js/mes/playVoice.js"></script> <script src="../dest/js/mes/playVoice.js"></script>
<script src="../dest/js/mes/cutting.js"></script> <script src="../dest/js/mes/cutting.js"></script>
......
...@@ -16,11 +16,8 @@ ...@@ -16,11 +16,8 @@
</div> </div>
<div id="left-2" style="width: 40%"> <div id="left-2" style="width: 40%">
<div class="mui-segmented-control" style=""> <div class="mui-segmented-control" style="">
<a id="n1" class="mui-control-item mui-active" @click="selectDisplay(1)">未交接</a> <a id="n1" class="mui-control-item mui-active" @click="selectDisplay(1)">未交接</a>
<a id="n2" class="mui-control-item " @click="selectDisplay(2)">已交接</a> <a id="n2" class="mui-control-item " @click="selectDisplay(2)">已交接</a>
</div> </div>
<div id="item1" class="mui-scroll-wrapper scroll1" style=" border: solid #DAE6EF 1px ;height: 503px; background: white; display: inline-block; width: 40%; top: 72px;"> <div id="item1" class="mui-scroll-wrapper scroll1" style=" border: solid #DAE6EF 1px ;height: 503px; background: white; display: inline-block; width: 40%; top: 72px;">
<div class="mui-scroll"> <div class="mui-scroll">
......
...@@ -20,11 +20,23 @@ ...@@ -20,11 +20,23 @@
<label>今日产量:{{number}} </label> <label>今日产量:{{number}} </label>
</div> </div>
<div id="left-2" class="left-2"> <div id="left-2" class="left-2">
<div class="mui-input-row mui-search"> <div class="select">
<div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索"v-model="searchText" type="search"
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()"
@blur.prevent="changePosition1()">
</div>
<div class="select-left">
<select v-model="current" @change="changeSearchType">
<option :value="item.id" v-for="item in searchData">{{item.name}}</option>
</select>
</div>
</div>
<!-- <div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search" <input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search"
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()"
@blur.prevent="changePosition1()"> @blur.prevent="changePosition1()">
</div> </div> -->
<div class="Text"> <div class="Text">
<div class="left" id="pullrefresh" class="mui-content mui-scroll-wrapper"> <div class="left" id="pullrefresh" class="mui-content mui-scroll-wrapper">
<div class="mui-scroll"> <div class="mui-scroll">
...@@ -192,6 +204,7 @@ ...@@ -192,6 +204,7 @@
<script src="../dest/js/vue.min.js"> </script> <script src="../dest/js/vue.min.js"> </script>
<script src="../dest/js/moment.js"></script> <script src="../dest/js/moment.js"></script>
<script src="../js/mui.pullToRefresh.js"></script> <script src="../js/mui.pullToRefresh.js"></script>
<script src="../dest/js/mes/pullupRefresh.js"></script>
<script src="../dest/js/mes/playVoice.js"></script> <script src="../dest/js/mes/playVoice.js"></script>
<script src="../dest/js/mes/FormingV2.js"></script> <script src="../dest/js/mes/FormingV2.js"></script>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link href="../dest/css/mui.min.css" rel="stylesheet" /> <link href="../dest/css/mui.min.css" rel="stylesheet" />
<link href="../dest/css/needlecarHand/needlecarHandover.css" rel="stylesheet" /> <link href="../dest/css/needlecarHand/needlecarHandover.css" rel="stylesheet" />
<link href="../dest/css/mui.picker.min.css" rel="stylesheet" />
</head> </head>
<body> <body>
...@@ -16,10 +17,22 @@ ...@@ -16,10 +17,22 @@
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white; width: 60px;" @click="back"></a> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white; width: 60px;" @click="back"></a>
<label style=" text-align: center; margin-left: 70px; color: white;">针车配套确认</label> <label style=" text-align: center; margin-left: 70px; color: white;">针车配套确认</label>
</div> </div>
<div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search" <div class="select">
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" <div class="mui-input-row mui-search" v-show="!isData">
@blur.prevent="changePosition1()"> <input id="search" class="mui-input-clear search" placeholder="搜索" v-model="searchText" type="search" pattern="\d*"
@keyup.enter="goSearch($event)" @focus.prevent="changePosition()" @blur.prevent="changePosition1()">
</div>
<div id="1" class="pickerData" v-show="isData">
<button class="mui-icon mui-icon-arrowleft mui-btn-outlined ;" @click="nextday(-1)"></button>
<button class="mui-btn-outlined" id="selectdate" data-options='{"type":"date"}' name="shipdate" @click="selecttime()">{{dateTime}}</button>
<button class="mui-icon mui-icon-arrowright mui-btn-outlined " @click="nextday(1)"></button>
</div>
<div class="select-left">
<select v-model="current" @change="changeSearchType">
<option :value="item.id" v-for="item in searchData">{{item.name}}</option>
</select>
</div>
</div> </div>
<div id="left-2"> <div id="left-2">
<div id="pullrefresh"> <div id="pullrefresh">
...@@ -28,7 +41,7 @@ ...@@ -28,7 +41,7 @@
<div class="mui-table-view mui-table-view-chevron"> <div class="mui-table-view mui-table-view-chevron">
<ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" (items,n) in itemsLeft" <ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" (items,n) in itemsLeft"
@click="selectLeft(items,n)"> @click="selectLeft(items,n)">
<li> <li>
<p><span>指令号:</span><span>{{items.IndexNo}}</span></p> <p><span>指令号:</span><span>{{items.IndexNo}}</span></p>
<p><span>订单号:</span><span>{{items.CustomPO}}</span></p> <p><span>订单号:</span><span>{{items.CustomPO}}</span></p>
...@@ -45,18 +58,18 @@ ...@@ -45,18 +58,18 @@
<p><span>实报时间:</span><span>{{items.ReportDate}}</span></p> <p><span>实报时间:</span><span>{{items.ReportDate}}</span></p>
<p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p> <p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p>
</li> </li>
<a class="meached" v-show = "items.IsMatch"> <img src="../dest/img/application/meached.png" /></a> <a class="meached" v-show="items.IsMatch"> <img src="../dest/img/application/meached.png" /></a>
<a class="confirm" v-show = "items.IsConfirm"> <img src="../dest/img/application/haveSure.png" /></a> <a class="confirm" v-show="items.IsConfirm"> <img src="../dest/img/application/haveSure.png" /></a>
</ul> </ul>
</div> </div>
</div> </div>
<div id="item2" :state="!completeState" class="scroll2 leftList " :style="display_"> <div id="item2" :state="!completeState" class="scroll2 leftList " :style="display_">
<div class="mui-table-view mui-table-view-chevron"> <div class="mui-table-view mui-table-view-chevron">
<ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" items,n in itemsLeft2" <ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" items,n in itemsLeft2"
@click="selectLeft(items,n )"> @click="selectLeft(items,n )">
<li> <li>
<p><span>指令号:</span><span>{{items.IndexNo}}</span></p> <p><span>指令号:</span><span>{{items.IndexNo}}</span></p>
<p><span>订单号:</span><span>{{items.CustomPO}}</span></p> <p><span>订单号:</span><span>{{items.CustomPO}}</span></p>
...@@ -73,7 +86,7 @@ ...@@ -73,7 +86,7 @@
<p><span>实报时间:</span><span>{{items.ReportDate}}</span></p> <p><span>实报时间:</span><span>{{items.ReportDate}}</span></p>
<p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p> <p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p>
</li> </li>
<a class="meached" v-show = "items.IsMatch"> <img src="../dest/img/application/haveHandover.png" /></a> <a class="meached" v-show="items.IsMatch"> <img src="../dest/img/application/haveHandover.png" /></a>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -90,7 +103,7 @@ ...@@ -90,7 +103,7 @@
<div id="right-1"> <div id="right-1">
<ul class="mui-table-view"> <ul class="mui-table-view">
<li class="mui-table-view-cell"> <li class="mui-table-view-cell">
<p > 指令号: </p> <p> 指令号: </p>
<p style="float: left;width: 40%; color: #060606;white-space:nowrap;text-overflow: ellipsis;overflow: hidden;">&nbsp;{{itemsDetail.IndexNo}} <p style="float: left;width: 40%; color: #060606;white-space:nowrap;text-overflow: ellipsis;overflow: hidden;">&nbsp;{{itemsDetail.IndexNo}}
</p> </p>
</li> </li>
...@@ -145,21 +158,28 @@ ...@@ -145,21 +158,28 @@
<p>交接时间: </p> <p>交接时间: </p>
<p>{{itemsDetail.CheckDate}} </p> <p>{{itemsDetail.CheckDate}} </p>
</li> </li>
<li class="mui-table-view-cell">
<p> 异常说明: </p>
<textarea @focus.prevent="changePosition()" @blur.prevent="changePosition1()" v-model="descript" :disabled="!completeState"
:placeholder="itemsDetail.ExceptionDes"></textarea>
</li>
</ul> </ul>
</div> </div>
</div> </div>
<div id="right-2"> <div id="right-2">
<button type="button" class="mui-btn mui-btn-blue " :disabled="btnConfirm" @click="cutConfirm" >面部确认</button> <button type="button" class="mui-btn mui-btn-blue " :disabled="btnConfirm" @click="cutConfirm">面部确认</button>
<button type="button" class="mui-btn mui-btn-blue " :disabled="btnMatch" @click="matched" >成型配套确认</button> <button type="button" class="mui-btn mui-btn-blue " :disabled="btnMatch" @click="matched">成型配套确认</button>
<button type="button" class="mui-btn mui-btn-blue " :disabled="btnCheck" @click="submit">{{submitText}}</button> <button type="button" class="mui-btn mui-btn-blue " :disabled="btnCheck" @click="submit">{{submitText}}</button>
</div> </div>
</div> </div>
</div> </div>
<script src="../dest/js/mui.min.js"></script> <script src="../dest/js/mui.min.js"></script>
<script src="../dest/js/vue.min.js"></script> <script src="../dest/js/vue.min.js"></script>
<script src="../dest/js/public.min.js"></script> <script src="../dest/js/public.min.js"></script>
<script src="../dest/js/moment.js"></script>
<script src="../dest/js/mes/mui.picker.js"></script>
<script src="../dest/js/mes/playVoice.js"></script> <script src="../dest/js/mes/playVoice.js"></script>
<script src="../dest/js/mes/NeedleMatch.js"></script> <script src="../dest/js/mes/NeedleMatch.js"></script>
</body> </body>
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link href="../dest/css/mui.min.css" rel="stylesheet" /> <link href="../dest/css/mui.min.css" rel="stylesheet" />
<link href="../dest/css/needlecarHand/needlecarHandover.css" rel="stylesheet" /> <link href="../dest/css/needlecarHand/needlecarHandover.css" rel="stylesheet" />
</head> <link href="../dest/css/mui.picker.min.css" rel="stylesheet" />
</head>
<body> <body>
<div id="app" v-cloak> <div id="app" v-cloak>
<div class="need-left"> <div class="need-left">
...@@ -16,10 +17,21 @@ ...@@ -16,10 +17,21 @@
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white; width: 60px;" @click="back"></a> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white; width: 60px;" @click="back"></a>
<label style=" text-align: center; margin-left: 70px; color: white;">裁断配套确认</label> <label style=" text-align: center; margin-left: 70px; color: white;">裁断配套确认</label>
</div> </div>
<div class="mui-input-row mui-search"> <div class="select">
<input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search" <div class="mui-input-row mui-search" v-show="!isData">
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" <input id="search" class="mui-input-clear search" placeholder="搜索" v-model="searchText" type="search" pattern="\d*"
@blur.prevent="changePosition1()"> @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" @blur.prevent="changePosition1()">
</div>
<div id="1" class="pickerData" v-show="isData">
<button class="mui-icon mui-icon-arrowleft mui-btn-outlined ;" @click="nextday(-1)"></button>
<button class="mui-btn-outlined" id="selectdate" data-options='{"type":"date"}' name="shipdate" @click="selecttime()">{{dateTime}}</button>
<button class="mui-icon mui-icon-arrowright mui-btn-outlined " @click="nextday(1)"></button>
</div>
<div class="select-left">
<select v-model="current" @change="changeSearchType">
<option :value="item.id" v-for="item in searchData">{{item.name}}</option>
</select>
</div>
</div> </div>
<div id="left-2"> <div id="left-2">
<div id="pullrefresh"> <div id="pullrefresh">
...@@ -28,7 +40,7 @@ ...@@ -28,7 +40,7 @@
<div class="mui-table-view mui-table-view-chevron"> <div class="mui-table-view mui-table-view-chevron">
<ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" (items,n) in itemsLeft" <ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" (items,n) in itemsLeft"
@click="selectLeft(items,n)"> @click="selectLeft(items,n)">
<li> <li>
<p><span>指令号:</span><span>{{items.IndexNo}}</span></p> <p><span>指令号:</span><span>{{items.IndexNo}}</span></p>
<p><span>订单号:</span><span>{{items.CustomPO}}</span></p> <p><span>订单号:</span><span>{{items.CustomPO}}</span></p>
...@@ -45,17 +57,17 @@ ...@@ -45,17 +57,17 @@
<p><span>实报时间:</span><span>{{items.ReportDate}}</span></p> <p><span>实报时间:</span><span>{{items.ReportDate}}</span></p>
<p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p> <p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p>
</li> </li>
<a class="meached" v-show = "items.IsMatch"> <img src="../dest/img/application/meached.png" /></a> <a class="meached" v-show="items.IsMatch"> <img src="../dest/img/application/meached.png" /></a>
<a class="confirm" v-show = "items.IsConfirm"> <img src="../dest/img/application/haveSure.png" /></a> <a class="confirm" v-show="items.IsConfirm"> <img src="../dest/img/application/haveSure.png" /></a>
</ul> </ul>
</div> </div>
</div> </div>
<div id="item2" :state="!completeState" class="scroll2 leftList " :style="display_"> <div id="item2" :state="!completeState" class="scroll2 leftList " :style="display_">
<div class="mui-table-view mui-table-view-chevron"> <div class="mui-table-view mui-table-view-chevron">
<ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" items,n in itemsLeft2" <ul :id="items.IndexID" :class="{active:cur==n}" class="mui-table-view bg needLeftList" v-for=" items,n in itemsLeft2"
@click="selectLeft(items,n )"> @click="selectLeft(items,n )">
<li> <li>
<p><span>指令号:</span><span>{{items.IndexNo}}</span></p> <p><span>指令号:</span><span>{{items.IndexNo}}</span></p>
<p><span>订单号:</span><span>{{items.CustomPO}}</span></p> <p><span>订单号:</span><span>{{items.CustomPO}}</span></p>
...@@ -72,7 +84,7 @@ ...@@ -72,7 +84,7 @@
<p><span>实报时间:</span><span>{{items.ReportDate}}</span></p> <p><span>实报时间:</span><span>{{items.ReportDate}}</span></p>
<p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p> <p><span>计划配送:</span><span>{{items.PlanDistribution}}</span></p>
</li> </li>
<a class="meached" v-show = "items.IsMatch"> <img src="../dest/img/application/haveHandover.png" /></a> <a class="meached" v-show="items.IsMatch"> <img src="../dest/img/application/haveHandover.png" /></a>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -89,7 +101,7 @@ ...@@ -89,7 +101,7 @@
<div id="right-1"> <div id="right-1">
<ul class="mui-table-view"> <ul class="mui-table-view">
<li class="mui-table-view-cell"> <li class="mui-table-view-cell">
<p > 指令号: </p> <p> 指令号: </p>
<p style="float: left;width: 40%; color: #060606;white-space:nowrap;text-overflow: ellipsis;overflow: hidden;">&nbsp;{{itemsDetail.IndexNo}} <p style="float: left;width: 40%; color: #060606;white-space:nowrap;text-overflow: ellipsis;overflow: hidden;">&nbsp;{{itemsDetail.IndexNo}}
</p> </p>
</li> </li>
...@@ -143,15 +155,19 @@ ...@@ -143,15 +155,19 @@
<p>交接时间: </p> <p>交接时间: </p>
<p>{{itemsDetail.CheckDate}} </p> <p>{{itemsDetail.CheckDate}} </p>
</li> </li>
<li class="mui-table-view-cell">
<p> 异常说明: </p>
<textarea @focus.prevent="changePosition()" @blur.prevent="changePosition1()" v-model="descript" :disabled="!completeState"
:placeholder="itemsDetail.ExceptionDes"></textarea>
</li>
</ul> </ul>
</div> </div>
</div> </div>
<div id="right-2"> <div id="right-2">
<button type="button" class="mui-btn mui-btn-blue " :disabled="btnConfirm" @click="cutConfirm" >裁断确认</button> <button type="button" class="mui-btn mui-btn-blue " :disabled="btnConfirm" @click="cutConfirm">裁断确认</button>
<button type="button" class="mui-btn mui-btn-blue " :disabled="btnMatch" @click="matched" >针车配套</button> <button type="button" class="mui-btn mui-btn-blue " :disabled="btnMatch" @click="matched">针车配套</button>
<button type="button" class="mui-btn mui-btn-blue " :disabled="btnCheck" @click="submit">{{submitText}}</button> <button type="button" class="mui-btn mui-btn-blue " :disabled="btnCheck" @click="submit">{{submitText}}</button>
</div> </div>
</div> </div>
...@@ -160,6 +176,8 @@ ...@@ -160,6 +176,8 @@
<script src="../dest/js/vue.min.js"></script> <script src="../dest/js/vue.min.js"></script>
<script src="../dest/js/public.min.js"></script> <script src="../dest/js/public.min.js"></script>
<script src="../dest/js/mes/playVoice.js"></script> <script src="../dest/js/mes/playVoice.js"></script>
<script src="../dest/js/moment.js"></script>
<script src="../dest/js/mes/mui.picker.js"></script>
<script src="../dest/js/mes/NeedlecarHandover.js"></script> <script src="../dest/js/mes/NeedlecarHandover.js"></script>
......
...@@ -21,9 +21,21 @@ ...@@ -21,9 +21,21 @@
<label>今日产量:{{number}} </label> <label>今日产量:{{number}} </label>
</div> </div>
<div id="left-2" class="left-2"> <div id="left-2" class="left-2">
<div class="mui-input-row mui-search"> <!-- <div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search" <input id="search" class="mui-input-clear search" placeholder="搜索:指令号,货号,订单号" v-model="searchText" type="search"
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" @blur.prevent="changePosition1()"> pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()" @blur.prevent="changePosition1()">
</div> -->
<div class="select">
<div class="mui-input-row mui-search">
<input id="search" class="mui-input-clear search" placeholder="搜索"v-model="searchText" type="search"
pattern="\d*" @keyup.enter="goSearch($event)" @focus.prevent="changePosition()"
@blur.prevent="changePosition1()">
</div>
<div class="select-left">
<select v-model="current" @change="changeSearchType">
<option :value="item.id" v-for="item in searchData">{{item.name}}</option>
</select>
</div>
</div> </div>
<div class="Text"> <div class="Text">
<div class="left" id="pullrefresh" class="mui-content mui-scroll-wrapper"> <div class="left" id="pullrefresh" class="mui-content mui-scroll-wrapper">
...@@ -192,6 +204,7 @@ ...@@ -192,6 +204,7 @@
<script src="../dest/js/vue.min.js"> </script> <script src="../dest/js/vue.min.js"> </script>
<script src="../dest/js/moment.js"></script> <script src="../dest/js/moment.js"></script>
<script src="../js/mui.pullToRefresh.js"></script> <script src="../js/mui.pullToRefresh.js"></script>
<script src="../dest/js/mes/pullupRefresh.js"></script>
<script src="../dest/js/mes/playVoice.js"></script> <script src="../dest/js/mes/playVoice.js"></script>
<script src="../dest/js/mes/NeedlecarreportV2.js"></script> <script src="../dest/js/mes/NeedlecarreportV2.js"></script>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
} }
.application-tit { .application-tit {
overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
font-weight: 400; font-weight: 400;
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
border-radius: 8px; border-radius: 8px;
} }
.application-box { .application-box {
display: none; display: block;
} }
</style> </style>
</head> </head>
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
font-size: 30px; font-size: 30px;
margin:3px 0 -5px; margin:3px 0 -5px;
} }
.mui-bar-tab .mui-tab-item .icon~.mui-tab-label { .mui-bar-tab .mui-tab-item .icon~.mui-tab-label {
font-size: 12px; font-size: 12px;
display: block; display: block;
......
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