1
skyouc
2025-11-18 928e30463fc7e6e88fa3f3c1bdd3f4f94c518011
pages/listing/matnrPalletising.vue
@@ -14,8 +14,8 @@
            </view>
            <view class="cu-form-group">
               <view class="title">票号</view>
               <input placeholder="请扫描现品票号" v-model="fieldsIndex"></input>
               <text class='cuIcon-search text-blue' @click="search"></text>
               <input placeholder="请扫描现品票号" v-model="fieldsIndex" @input="search()" focus></input>
               <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
            </view>
            <view class="cu-form-group">
               <view class="title">ASN单号</view>
@@ -98,6 +98,10 @@
                     <text class="text-black">可组盘数量:<text
                           class="text-grey ">{{item.anfme - item.workQty - item.qty}}</text></text>
                  </view>
                  <view class="content">
                     <uni-data-checkbox mode="button" multiple v-model="isHalf"
                        :localdata="boxs"></uni-data-checkbox>
                  </view>
               </view>
               <view class="cu-item">
                  <view class="content">
@@ -136,6 +140,11 @@
            barcode: '',
            container: '',
            megreQty: '',
            isHalf: 0,
            boxs: [{
               text: '半箱',
               value: 1
            }],
            list: [],
            range: [],
            asnCode: '',
@@ -149,12 +158,15 @@
      computed: {
         ...mapState('user', ['dynamicFields']),
         allCount() {
            return this.list.reduce((acc, row) => + (row.anfme + acc).toFixed(2), 0) || 0
            return this.list.reduce((acc, row) => +(row.anfme + acc).toFixed(2), 0) || 0
         }
      },
      mounted() {},
      methods: {
         async search() {
            if (this.fieldsIndex.length < 30) {
               return;
            }
            const find = this.list.find(el => el.trackCode === this.barcode);
            find ? this.scrollTo() : this.getDet();
         },
@@ -173,7 +185,11 @@
            // uni.showLoading({
            //    title: '加载中...'
            // })
            const { code, data, msg } = await request('/asnOrderItem/trackCode', {
            const {
               code,
               data,
               msg
            } = await request('/asnOrderItem/trackCode', {
               matnrCode: that.matnrCode,
               asnCode: that.asnCode,
               code: that.asnCode,
@@ -199,6 +215,7 @@
         },
         async getList() {
            let that = this
            if (this.container === '' || this.container === null) {
               uni.showToast({
                  title: "容器码为空",
@@ -207,7 +224,11 @@
               })
               return;
            }
            const {   code, data,   msg   } = await request('/asnOrderItem/container', {
            const {
               code,
               data,
               msg
            } = await request('/asnOrderItem/container', {
               barcode: this.container
            })
            if (code === 200) {
@@ -216,6 +237,9 @@
                  icon: "success",
                  position: 'top'
               })
               that.list.push(...data)
            } else {
               uni.showToast({
                  title: msg,
@@ -227,6 +251,7 @@
         showBackData(data) {
            let status;
            data.map(item => {
               item.isHalf = 0;
               this.list.push(item)
            })
            let oldLength = this.list.length