#
whycq
2024-07-24 6b7ac97344c89df64b87cafb2203bf55f8506eb7
pages/order/zlOrderPakin.vue
@@ -1,5 +1,19 @@
<template>
   <view>
      <view class="status_bar">
         <!-- 这里是状态栏 -->
      </view>
      <uni-nav-bar left-icon="left" background-color="#f8f8f8" title="制令入库" @clickLeft="back"  :fixed="true"
         :border="false" rightWidth="160rpx" leftWidth="160rpx"
         >
         <block slot="right">
            <view class="city">
               <view>
                  <text class="uni-nav-bar-text">{{store}}</text>
               </view>
            </view>
         </block>
       </uni-nav-bar>
      <view class="code">
         <view class="item">
            <view class="code-decs">制令号:</view>
@@ -14,6 +28,7 @@
         <view class="item">
            <view class="code-decs">物料码:</view>
            <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="checkBom()">
            <uni-icons type="close" color="#c1c1c1" @click="clearMatnr"></uni-icons>
            <view class="item-right">
               <button></button>
               <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text>
@@ -160,6 +175,8 @@
         return {
            baseUrl: '',
            token: '',
            storeId: 0,
            store: '',
            barcode: '',
            dataList: [],
            count: 0,
@@ -179,8 +196,8 @@
            bomCode: '',
            bomCodeFocus: true,
            maxAn: 0,
            ck1: true,
            ck2: false,
            ck1: false,
            ck2: true,
            fullPlt: 'N',
            decrees_a: {
               locNo: '',
@@ -196,11 +213,20 @@
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         // setTimeout(()=>{
         //    this.$refs.decrees.open('center')
         // },300)
         this.storeId = uni.getStorageSync('store')
         if (this.storeId == 1) {
            this.store = '宁波仓'
         }
         if (this.storeId == 2) {
            this.store = '新昌仓'
         }
      },
      methods: {
         back() { uni.navigateBack({}) },
         clearMatnr() {
            // this.matnr = ''
            this.focuss()
         },
         // 是否满板
         isFullPlt() {
            var temp = this.ck1
@@ -533,6 +559,7 @@
               url: that.baseUrl + '/mobile/comb/auth',
               data: JSON.stringify({
                  fullPlt: that.fullPlt,
                  owner: that.storeId,
                  barcode: that.barcode,
                  combMats: that.dataList
               }),