Commit 96ea8cd2 authored by 李苏's avatar 李苏 💬

默认查询计数,扫完立马查询数量,hgsl,bhgsl数据源变更

parent 61045403
...@@ -182,10 +182,9 @@ ...@@ -182,10 +182,9 @@
window.location.href ="loginscan_view"; window.location.href ="loginscan_view";
return return
} }
zpfk_apigetjs(that)
zpfk_apizpfk(that).then(function(s){ zpfk_apizpfk(that).then(function(s){
zpfk_queryWoBomByWoid(that,s) zpfk_queryWoBomByWoid(that,s)
zpfk_pdfshow(that,s) zpfk_apigetjs(that)
}) })
// //
} }
...@@ -491,6 +490,7 @@ ...@@ -491,6 +490,7 @@
let Vkwrkb01 = new Vue({ let Vkwrkb01 = new Vue({
el: "#kwrkb01", el: "#kwrkb01",
mounted() { mounted() {
zpfk_apigetjs(this)
zpfk_getgx(this) zpfk_getgx(this)
this.initpage() this.initpage()
dbenlarge('kwrkb01', 1, this.initpage) dbenlarge('kwrkb01', 1, this.initpage)
......
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
gas.post('kmes/gpfk/getDailyInfo',{"bzgxid":window.bzlx}, function(res){ gas.post('kmes/gpfk/getDailyInfo',{"bzgxid":window.bzlx}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
that.fksl=res.data.records.fksl||0 that.fksl=res.data.records.fksl||0
that.hg=res.data.records.hgsl||0
that.ng=res.data.records.bhgsl||0
}else{ }else{
let msg=res.message||"当前计数获取失败" let msg=res.message||"当前计数获取失败"
jyfk_wrz(that,msg,'error') jyfk_wrz(that,msg,'error')
...@@ -106,8 +108,8 @@ ...@@ -106,8 +108,8 @@
gas.post('kmes/gpfk/jyfk ',{"sncode":that.xlh,"bzgxid":window.bzlx||"","wosncode":that.wosncode||""}, function(res){ gas.post('kmes/gpfk/jyfk ',{"sncode":that.xlh,"bzgxid":window.bzlx||"","wosncode":that.wosncode||""}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
/* 赋值操作 */ /* 赋值操作 */
that.hg= res.data.records.hgsl||0; // that.hg= res.data.records.hgsl||0;
that.ng= res.data.records.bhgsl||0; // that.ng= res.data.records.bhgsl||0;
that.gd = res.data.records.woDjid; that.gd = res.data.records.woDjid;
that.cpsn = res.data.records.wosnCode; that.cpsn = res.data.records.wosnCode;
that.ph = res.data.records.wlxxCode; that.ph = res.data.records.wlxxCode;
...@@ -122,12 +124,12 @@ ...@@ -122,12 +124,12 @@
jyfk_wrz(that,msg) jyfk_wrz(that,msg)
}else if(res.data.records.sntype=="OKBZ"){ }else if(res.data.records.sntype=="OKBZ"){
that.isok="OK" that.isok="OK"
that.hg=res.data.records.hgsl||0; // that.hg=res.data.records.hgsl||0;
that.ng=res.data.records.bhgsl||0; // that.ng=res.data.records.bhgsl||0;
}else if(res.data.records.sntype=="NGBZ"){ }else if(res.data.records.sntype=="NGBZ"){
that.isok="NG" that.isok="NG"
that.hg=res.data.records.hgsl||0; // that.hg=res.data.records.hgsl||0;
that.ng=res.data.records.bhgsl||0; // that.ng=res.data.records.bhgsl||0;
} }
that.xlh="" that.xlh=""
/* 日志操作 */ /* 日志操作 */
...@@ -151,10 +153,9 @@ ...@@ -151,10 +153,9 @@
window.location.href ="loginscan_view"; window.location.href ="loginscan_view";
return return
} }
jyfk_apigetjs(that)
jyfk_wrz(that,"正在查询序列号:"+that.xlh) jyfk_wrz(that,"正在查询序列号:"+that.xlh)
jyfk_apijyfk(that).then(function(s){ jyfk_apijyfk(that).then(function(s){
jyfk_pdfshow(that,s) jyfk_apigetjs(that)
}) })
} }
/* jyfk */ /* jyfk */
...@@ -432,6 +433,7 @@ ...@@ -432,6 +433,7 @@
el:"#kwrkb04", el:"#kwrkb04",
mounted() { mounted() {
jyfk_getgx(this) jyfk_getgx(this)
jyfk_apigetjs(this)
dbenlarge('kwrkb04',1,this.isFocus()) dbenlarge('kwrkb04',1,this.isFocus())
// this.sivpdf= // this.sivpdf=
this.initpage() this.initpage()
......
...@@ -109,6 +109,8 @@ ...@@ -109,6 +109,8 @@
gas.post('kmes/gpfk/getDailyInfo',{"bzgxid":window.bzlx}, function(res){ gas.post('kmes/gpfk/getDailyInfo',{"bzgxid":window.bzlx}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
that.fksl=res.data.records.fksl||0 that.fksl=res.data.records.fksl||0
that.hg=res.data.records.hgsl||0
that.ng=res.data.records.bhgsl||0
}else{ }else{
let msg=res.message||"当前计数获取失败" let msg=res.message||"当前计数获取失败"
wxfk_wrz(that,msg,'error') wxfk_wrz(that,msg,'error')
...@@ -122,8 +124,8 @@ ...@@ -122,8 +124,8 @@
gas.post('kmes/gpfk/wxfk ',{"sncode":that.xlh,"bzgxid":window.bzlx||"","wosncode":that.wosncode||""}, function(res){ gas.post('kmes/gpfk/wxfk ',{"sncode":that.xlh,"bzgxid":window.bzlx||"","wosncode":that.wosncode||""}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
/* 赋值操作 */ /* 赋值操作 */
that.hg= res.data.records.hgsl||0; // that.hg= res.data.records.hgsl||0;
that.ng= res.data.records.bhgsl||0; // that.ng= res.data.records.bhgsl||0;
that.gd = res.data.records.woDjid; that.gd = res.data.records.woDjid;
that.cpsn = res.data.records.wosnCode; that.cpsn = res.data.records.wosnCode;
that.ph = res.data.records.wlxxCode; that.ph = res.data.records.wlxxCode;
...@@ -138,12 +140,12 @@ ...@@ -138,12 +140,12 @@
wxfk_wrz(that,msg) wxfk_wrz(that,msg)
}else if(res.data.records.sntype=="OKBZ"){ }else if(res.data.records.sntype=="OKBZ"){
that.isok="OK" that.isok="OK"
that.hg=res.data.records.hgsl||0; // that.hg=res.data.records.hgsl||0;
that.ng=res.data.records.bhgsl||0; // that.ng=res.data.records.bhgsl||0;
}else if(res.data.records.sntype=="NGBZ"){ }else if(res.data.records.sntype=="NGBZ"){
that.isok="NG" that.isok="NG"
that.hg=res.data.records.hgsl||0; // that.hg=res.data.records.hgsl||0;
that.ng=res.data.records.bhgsl||0; // that.ng=res.data.records.bhgsl||0;
} }
that.xlh="" that.xlh=""
/* 日志操作 */ /* 日志操作 */
...@@ -167,10 +169,10 @@ ...@@ -167,10 +169,10 @@
window.location.href ="loginscan_view"; window.location.href ="loginscan_view";
return return
} }
wxfk_apigetjs(that)
wxfk_wrz(that,"正在查询序列号:"+that.xlh) wxfk_wrz(that,"正在查询序列号:"+that.xlh)
wxfk_apiwxfk(that).then(function(s){ wxfk_apiwxfk(that).then(function(s){
wxfk_pdfshow(that,s) wxfk_apigetjs(that)
}) })
} }
/* wxfk */ /* wxfk */
...@@ -440,6 +442,7 @@ ...@@ -440,6 +442,7 @@
el:"#kwrkb07", el:"#kwrkb07",
mounted() { mounted() {
wxfk_getgx(this) wxfk_getgx(this)
wxfk_apigetjs(this)
dbenlarge('kwrkb07',1,this.isFocus()) dbenlarge('kwrkb07',1,this.isFocus())
// this.sivpdf= // this.sivpdf=
this.initpage() this.initpage()
......
...@@ -91,6 +91,8 @@ ...@@ -91,6 +91,8 @@
gas.post('kmes/gpfk/getDailyInfo',{"bzgxid":window.bzlx}, function(res){ gas.post('kmes/gpfk/getDailyInfo',{"bzgxid":window.bzlx}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
that.fksl=res.data.records.fksl||0 that.fksl=res.data.records.fksl||0
that.hg=res.data.records.hgsl||0
that.ng=res.data.records.bhgsl||0
}else{ }else{
let msg=res.message||"当前计数获取失败" let msg=res.message||"当前计数获取失败"
jgfk_wrz(that,msg,'error') jgfk_wrz(that,msg,'error')
...@@ -117,8 +119,8 @@ ...@@ -117,8 +119,8 @@
gas.post('kmes/gpfk/jgfk',{"sncode":that.xlh,"bzgxid":window.bzlx||"","wosncode":that.wosncode||""}, function(res){ gas.post('kmes/gpfk/jgfk',{"sncode":that.xlh,"bzgxid":window.bzlx||"","wosncode":that.wosncode||""}, function(res){
if(res.data&&res.data.records){ if(res.data&&res.data.records){
/* 赋值操作 */ /* 赋值操作 */
that.hg= res.data.records.hgsl||0; // that.hg= res.data.records.hgsl||0;
that.ng= res.data.records.bhgsl||0; // that.ng= res.data.records.bhgsl||0;
that.gd = res.data.records.woDjid; that.gd = res.data.records.woDjid;
that.cpsn = res.data.records.wosnCode; that.cpsn = res.data.records.wosnCode;
that.ph = res.data.records.wlxxCode; that.ph = res.data.records.wlxxCode;
...@@ -133,12 +135,12 @@ ...@@ -133,12 +135,12 @@
jgfk_wrz(that,msg) jgfk_wrz(that,msg)
}else if(res.data.records.sntype=="OKBZ"){ }else if(res.data.records.sntype=="OKBZ"){
that.isok="OK" that.isok="OK"
that.hg=res.data.records.hgsl||0; // that.hg=res.data.records.hgsl||0;
that.ng=res.data.records.bhgsl||0; // that.ng=res.data.records.bhgsl||0;
}else if(res.data.records.sntype=="NGBZ"){ }else if(res.data.records.sntype=="NGBZ"){
that.isok="NG" that.isok="NG"
that.hg=res.data.records.hgsl||0; // that.hg=res.data.records.hgsl||0;
that.ng=res.data.records.bhgsl||0; // that.ng=res.data.records.bhgsl||0;
} }
that.xlh="" that.xlh=""
/* 日志操作 */ /* 日志操作 */
...@@ -163,10 +165,11 @@ ...@@ -163,10 +165,11 @@
window.location.href ="loginscan_view"; window.location.href ="loginscan_view";
return return
} }
jgfk_apigetjs(that)
jgfk_apijgfk(that).then(function(s){ jgfk_apijgfk(that).then(function(s){
jgfk_queryWoBomByWoid(that,s) jgfk_apigetjs(that)
}) jgfk_queryWoBomByWoid(that,s)
})
// //
} }
/* wobom查询 .then(e=>执行) */ /* wobom查询 .then(e=>执行) */
...@@ -339,6 +342,7 @@ ...@@ -339,6 +342,7 @@
el: "#jgfkkb", el: "#jgfkkb",
mounted() { mounted() {
jgfk_getgx(this) jgfk_getgx(this)
jgfk_apigetjs(this)
this.initpage() this.initpage()
dbenlarge('jgfkkb', 1, this.initpage) dbenlarge('jgfkkb', 1, this.initpage)
$(this.el).dblclick() $(this.el).dblclick()
......
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