Commit aad39b27 authored by 李苏's avatar 李苏 💬

改良

parent 082f3e8a
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
.maintab { .maintab {
height: 100%; height: 100%;
width: 100%; width: 100%;
overflow: auto; overflow: hidden;
border: 0.5px solid #EEEEEE; border: 0.5px solid #EEEEEE;
} }
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<div class="cpif"> <div class="cpif">
<!-- top --> <!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;"> <div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input style="width: 84%;" class="easyuitext" name="xlh" @keydown="scanxlh()" v-model="xlh" /> <span>序列号</span><input style="width: 84%;" class="easyuitext" name="xlh" @keydown="scanxlh()" v-model="xlh" placeholder="请扫码条码" />
</div> </div>
<!-- bot --> <!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;"> <div class="cpifbot" style="display: flex;flex-wrap: wrap;">
...@@ -202,6 +202,7 @@ ...@@ -202,6 +202,7 @@
this.sivpdf = e this.sivpdf = e
}) })
this.gettime() this.gettime()
this.isFocus()
this.appdestory() this.appdestory()
}, },
destroyed() { destroyed() {
...@@ -225,6 +226,111 @@ ...@@ -225,6 +226,111 @@
sl: 13, sl: 13,
zpsl: 12 zpsl: 12
}, },
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{
ph: 10,
pm: "GT-RBZ6",
ggxh: "RBG-AK",
sl: 13,
zpsl: 12
},
{ {
ph: 10, ph: 10,
pm: "GT-RBZ6", pm: "GT-RBZ6",
...@@ -239,6 +345,10 @@ ...@@ -239,6 +345,10 @@
} }
}, },
methods: { methods: {
isFocus(){
let $xlh=$("#kwrkb01").find('input[name="xlh"]')
$xlh.focus()
},
// 扫码事件 // 扫码事件
scanxlh(e){ scanxlh(e){
var evt = window.event || e; var evt = window.event || e;
...@@ -257,57 +367,38 @@ ...@@ -257,57 +367,38 @@
this.$tab=$tab this.$tab=$tab
this.taboptions = { this.taboptions = {
height: '100%', height: '100%',
fitColumns: true, width:"100%",
fitColumns: false,
rowStyler:function(index,row){
if(index<2){
return 'background-color:#6293BB;color:#fff;';
}
},
columns: [ columns: [
[{ [{
field: 'ph', field: 'ph',
title: '品号', title: '品号',
width: '21%', width: '20%',
styler: function(value, row, index) {
if (index < 3) {
return 'background-color:mediumturquoise;color:#fff;';
}
},
}, },
{ {
field: 'pm', field: 'pm',
title: '品名', title: '品名',
width: '21%', width: '23%',
styler: function(value, row, index) {
if (index < 3) {
return 'background-color:mediumturquoise;color:#fff;';
}
},
}, },
{ {
field: 'ggxh', field: 'ggxh',
title: '规格型号', title: '规格型号',
width: '21.5%', width: '20%',
styler: function(value, row, index) {
if (index < 3) {
return 'background-color:mediumturquoise;color:#fff;';
}
},
}, },
{ {
field: 'sl', field: 'sl',
title: '数量', title: '数量',
width: '20%', width: '20%',
styler: function(value, row, index) {
if (index < 3) {
return 'background-color:mediumturquoise;color:#fff;';
}
},
}, },
{ {
field: 'zpsl', field: 'zpsl',
title: '装配数量', title: '装配数量',
width: '20%', width: '20%',
styler: function(value, row, index) {
if (index < 3) {
return 'background-color:mediumturquoise;color:#fff;';
}
},
}, },
] ]
], ],
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<div class="cpif"> <div class="cpif">
<!-- top --> <!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;"> <div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext " style="width: 84%;" v-model="xlh" @keydown="scanxlh()" name="xlh" /> <span>序列号</span><input class="easyuitext " style="width: 84%;" v-model="xlh" @keydown="scanxlh()" name="xlh" placeholder="请扫码条码" />
</div> </div>
<!-- bot --> <!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;"> <div class="cpifbot" style="display: flex;flex-wrap: wrap;">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
let Vgpjykb= new Vue({ let Vgpjykb= new Vue({
el:"#gpjykb", el:"#gpjykb",
mounted() { mounted() {
dbenlarge('gpjykb',1) dbenlarge('gpjykb',1,this.isFocus())
pdfshow("pdf/dcAcess.pdf","gpjypdf",5000).then(e=>{ pdfshow("pdf/dcAcess.pdf","gpjypdf",5000).then(e=>{
this.sivpdf=e this.sivpdf=e
}) })
...@@ -218,6 +218,10 @@ ...@@ -218,6 +218,10 @@
} }
}, },
methods:{ methods:{
isFocus(){
let $xlh=$("#gpjykb").find('input[name="xlh"]')
$xlh.focus()
},
// 扫码事件 // 扫码事件
scanxlh(e){ scanxlh(e){
var evt = window.event || e; var evt = window.event || e;
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<div class="cpif"> <div class="cpif">
<!-- top --> <!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;"> <div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext " style="width: 84%;" v-model="xlh" @keydown="scanxlh()" name="xlh" /> <span>序列号</span><input class="easyuitext " style="width: 84%;" v-model="xlh" @keydown="scanxlh()" name="xlh" placeholder="请扫码条码" />
</div> </div>
<!-- bot --> <!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;"> <div class="cpifbot" style="display: flex;flex-wrap: wrap;">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
let Vgpwxkb= new Vue({ let Vgpwxkb= new Vue({
el:"#gpwxkb", el:"#gpwxkb",
mounted() { mounted() {
dbenlarge('gpwxkb',1) dbenlarge('gpwxkb',1,this.isFocus)
pdfshow("pdf/dcAcess.pdf","gpwxpdf",5000).then(e=>{ pdfshow("pdf/dcAcess.pdf","gpwxpdf",5000).then(e=>{
this.sivpdf=e this.sivpdf=e
}) })
...@@ -218,6 +218,10 @@ ...@@ -218,6 +218,10 @@
} }
}, },
methods:{ methods:{
isFocus(){
let $xlh=$("#gpwxkb").find('input[name="xlh"]')
$xlh.focus()
},
// 扫码事件 // 扫码事件
scanxlh(e){ scanxlh(e){
var evt = window.event || e; var evt = window.event || e;
......
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