| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <template>
- <view class="page">
- <uni-section title='调拨物品条形码' type='line' :strong="true" class="bg-white"/>
- <template v-for="(item,index) in list">
- <list-item class="my-2" :key="index" @delete='onDelete(index)'>
- <item-row title='物品号'>{{item.itemno}}</item-row>
- <item-row title='数量'>{{item.itemnum}}</item-row>
- </list-item>
- </template>
- <btn-scan @scan="onScan($event,{uniqueItemid:true})" @submit="onSubmit('transfer-lineEdge-edit',urlparams)" :type='barCodeTypeList'></btn-scan>
- <!-- 这里的onScan和扫码的onScan 是两个函数 -->
- </view>
- </template>
- <script>
- import listItem from "@/components/warehousing-item/list-item.vue"
- import uniSection from "@/components/uni-ui/uni-section/uni-section.vue"
- import btnScan from "@/components/common/btn-scan.vue"
- import itemRow from "@/components/common/item-row.vue"
- import {BARCODE_CAIGOU_KEY,BARCODE_FINISHEDGOOD_KEY,BARCODE_CAIGOU,BARCODE_FINISHEDGOOD} from "@/common/utils/barCode.js"
- import {formateScanData,onErrorBarCodeType} from "@/common/utils/common.js"
- import {scanProductMixin} from "@/common/utils/mixins.js"
-
- export default {
- mixins:[scanProductMixin],
- components:{
- listItem,
- uniSection,
- btnScan,
- itemRow
- },
- data () {
- return {
- type:null, // 调入类型
- }
- },
- computed:{
- urlparams () {
- let str=`&type=${this.type}`
- return str
- }
- },
- onLoad (e) {
- /*
- type:类型关键字(调入,调出)
- */
- this.type=e.type
- },
- }
-
- </script>
- <style>
- </style>
|