skyouc
2025-05-05 6be8b9f43be3670473ddfaebafe18a1be644ca1d
pages/listing/labour.vue
@@ -17,9 +17,6 @@
            <text class='cuIcon-search text-blue' @click="search"></text>
         </view>
      </form>
      <view class="cu-list det menu sm-border  padding">
         <block v-for="(item, index) in list" :key="index">
            <view class="cu-bar bg-white solid-bottom margin-top-sm">
@@ -53,7 +50,6 @@
                  <text class="text-grey ">{{item.barcode}}</text>
               </view>
            </view>
            <view class="cu-item">
               <view class="content">
                  <text class="text-black">供应商批次:</text>
@@ -62,7 +58,6 @@
                  <text class="text-grey ">{{item.splrBatch}}</text>
               </view>
            </view>
            <view class="cu-item">
               <view class="content">
                  <text class="text-black">库存批次:</text>
@@ -71,8 +66,6 @@
                  <text class="text-grey ">{{item.batch}}</text>
               </view>
            </view>
            <view class="cu-item">
               <view class="content">
                  <text class="text-black">收货数量:</text>
@@ -89,13 +82,10 @@
         <view class="title">库位码</view>
         <input placeholder="请扫描库位码" v-model="locCode"></input>
      </view>
      <view class="cu-bar btn-group foot">
         <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
         <button class="cu-btn bg-blue shadow-blur" @click="confirm">上架</button>
      </view>
   </view>
</template>
@@ -135,8 +125,9 @@
               matnrCode: this.barcode
            })
            if (code === 200) {
               const find = this.list.find(el => el.id === data.id);
               !find && this.list.push(data)
               // const find = this.list.find(el => el.id === data.id);
               // !find &&
                this.list.push(data)
            } else {
               uni.showToast({
                  title: msg,