123
zhang
2025-06-05 0226ca479457073e3b4fdbdc20ceccdae790453b
pages/basics/order.vue
@@ -26,7 +26,7 @@
            </view>
            <view class="square-content">
               <view class="content-input">
                  <input v-model="order" type="text" placeholder="扫码 / 输入" @input="findOrder()" :focus="focus"
                  <input v-model="orderNo" type="text" disabled="true"
                     placeholder-style="line-height:  85rpx;">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons>
               </view>
@@ -396,11 +396,13 @@
            });
         },
         findOrder() {
            console.info("!23")
            console.info(that.orderNo)
            let that = this
            uni.request({
               url: that.commonUrl + '/mobile/order/search/orderNo/auth',
               data: {
                  orderNo: that.order
                  orderNo: that.orderNo
               },
               header: {
                  'token': uni.getStorageSync('token')
@@ -446,14 +448,7 @@
         },
         findTiaoMa() {
            let that = this
            if (!that.orderNo) {
               uni.showToast({
                  title: '请扫描单据号',
                  icon: "none",
                  position: 'top'
               });
               return;
            }
            uni.request({
               url: that.commonUrl + '/mobile/mat/search/auth',
               data: {
@@ -467,7 +462,23 @@
                  console.log(result)
                  let res = result.data
                  if (res.code === 200 && res.data) {
                     that.checkMat(res.data)
                     console.info("!234345454")
                     console.info(res.data.orderNo)
                      if (!that.orderNo){
                         that.orderNo = res.data.orderNo
                     }
                     if (that.orderNo == res.data.orderNo){
                        that.findOrder()
                        that.checkMat(res.data)
                     }else if (that.orderNo){
                        if (that.orderNo != res.data.orderNo){
                           uni.showToast({
                              title: '不同单据不能混合组托',
                              icon: "none",
                              position: 'top'
                           });
                        }
                     }
                     //this.tiaomas.unshift(that.tiaoma)
                  } else if (res.code == 403) {
                     uni.showToast({