wangxinhui
4 天以前 a0a0df2e824b6fe7e5a3c0afce78127fecf84fc9
ÏîÄ¿´úÂë/ÁúÀûµÃPDA/pages/stash/OutBound.vue
@@ -1,24 +1,30 @@
<template>
   <view>
      <view class="itemstyle">
         <uni-forms label-width="180">
            <uni-forms-item label="物料编码">
               <uni-easyinput type="text" v-model="materialCode" placeholder="请输入物料编码" ref='midInput' />
            </uni-forms-item>
            <uni-forms-item label="物料幅宽:">
               <uni-easyinput type="text"  v-model="wide" placeholder="请输入物料幅宽" ref='midInput'/>
            </uni-forms-item>
            <uni-forms-item label="物料数量:">
               <uni-easyinput type="text" v-model="qty" placeholder="请输入物料数量" ref='midInput'/>
            </uni-forms-item>
            <uni-forms-item label="出库点位">
               <uni-data-select placeholder="请选择" v-model="address"
                  :localdata="startPointRange"></uni-data-select>
            </uni-forms-item>
            <uni-forms-item>
               <button @click="OutEmpty" type="primary" size="default" style="margin-top: 2%;">出库</button>
            </uni-forms-item>
         </uni-forms>
      <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem">
      </uni-segmented-control>
      <view class="content">
         <view v-if="current === 0" class="headerstyle">
            <view class="itemstyle">
               <uni-forms label-width="180">
                  <uni-forms-item label="物料编码">
                     <uni-easyinput type="text" v-model="materialCode" placeholder="请输入物料编码" ref='midInput' />
                  </uni-forms-item>
                  <uni-forms-item label="物料幅宽:">
                     <uni-easyinput type="text"  v-model="wide" placeholder="请输入物料幅宽" ref='midInput'/>
                  </uni-forms-item>
                  <uni-forms-item label="物料数量:">
                     <uni-easyinput type="text" v-model="qty" placeholder="请输入物料数量" ref='midInput'/>
                  </uni-forms-item>
                  <uni-forms-item label="出库点位">
                     <uni-data-select placeholder="请选择" v-model="address"
                        :localdata="startPointRange"></uni-data-select>
                  </uni-forms-item>
                  <uni-forms-item>
                     <button @click="OutEmpty" type="primary" size="default" style="margin-top: 2%;">出库</button>
                  </uni-forms-item>
               </uni-forms>
            </view>
         </view>
      </view>
      <u-toast ref="uToast" />
   </view>
@@ -29,6 +35,8 @@
   export default {
      data() {
         return {
            items: ['印刷出库'],
            current: 0,
            focus: false,
            wide: "",
            materialCode: "",
@@ -50,6 +58,14 @@
         //    innerAudioContext.src = src; // '../../static/success.mp3';
         //    innerAudioContext.play();
         // },
         onClickItem(e) {
            this.barcodeFo = true;
            this.focus = false;
            this.addressFocus = false;
            if (this.current !== e.currentIndex) {
               this.current = e.currentIndex;
            }
         },
         barcodeInput() {
            // this.$nextTick(function(x) {
            //    if (this.barcode.length > 0) {