给部分出库的单据增加序列号的扫描支持
This commit is contained in:
@@ -736,12 +736,12 @@ export const BillModalMixin = {
|
|||||||
if(!hasFinished) {
|
if(!hasFinished) {
|
||||||
//将扫码的条码对应的商品加入列表
|
//将扫码的条码对应的商品加入列表
|
||||||
let item = {}
|
let item = {}
|
||||||
item.barCode = this.scanBarCode
|
|
||||||
let mList = res.data
|
let mList = res.data
|
||||||
if(mList && mList.length>0) {
|
if(mList && mList.length>0) {
|
||||||
let mInfo = mList[0]
|
let mInfo = mList[0]
|
||||||
this.changeColumnShow(mInfo)
|
this.changeColumnShow(mInfo)
|
||||||
item.depotId = mInfo.depotId
|
item.depotId = mInfo.depotId
|
||||||
|
item.barCode = mInfo.mBarCode
|
||||||
item.name = mInfo.name
|
item.name = mInfo.name
|
||||||
item.standard = mInfo.standard
|
item.standard = mInfo.standard
|
||||||
item.model = mInfo.model
|
item.model = mInfo.model
|
||||||
@@ -750,6 +750,12 @@ export const BillModalMixin = {
|
|||||||
item.stock = mInfo.stock
|
item.stock = mInfo.stock
|
||||||
item.unit = mInfo.commodityUnit
|
item.unit = mInfo.commodityUnit
|
||||||
item.sku = mInfo.sku
|
item.sku = mInfo.sku
|
||||||
|
if(mInfo.mBarCode !== this.scanBarCode) {
|
||||||
|
if(this.prefixNo ==='LSCK' || this.prefixNo ==='CGTH' || this.prefixNo ==='XSCK' || this.prefixNo ==='QTCK') {
|
||||||
|
//此时给序列号赋值
|
||||||
|
item.snList = this.scanBarCode
|
||||||
|
}
|
||||||
|
}
|
||||||
item.operNumber = 1
|
item.operNumber = 1
|
||||||
item.unitPrice = mInfo.billPrice
|
item.unitPrice = mInfo.billPrice
|
||||||
item.allPrice = mInfo.billPrice
|
item.allPrice = mInfo.billPrice
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
|
|||||||
@@ -67,9 +67,9 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -67,9 +67,9 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫条码或序列号并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫条码或序列号并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 12px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 12px 0 0">
|
||||||
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
||||||
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 12px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 12px 0 0">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 18px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 18px 0 0">
|
||||||
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 6px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫条码或序列号并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 18px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 18px 0 0">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
||||||
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<a-button @click="scanEnter">扫码录入</a-button>
|
<a-button @click="scanEnter">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫描商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 18px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 18px 0 0">
|
||||||
<a-button @click="stopScan">收起扫码</a-button>
|
<a-button @click="stopScan">收起扫码</a-button>
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
<a-button @click="scanEnter" style="margin-right: 8px">扫码录入</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
<a-col v-if="!scanStatus" :md="16" :sm="24" style="padding: 0 8px 0 12px">
|
||||||
<a-input placeholder="请扫码商品条码并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
<a-input placeholder="请扫条码或序列号并回车" v-model="scanBarCode" @pressEnter="scanPressEnter" ref="scanBarCode"/>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
<a-col v-if="!scanStatus" :md="6" :sm="24" style="padding: 0px 24px 0 0">
|
||||||
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
<a-button @click="stopScan" style="margin-right: 8px">收起扫码</a-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user