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

改良

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