12
zhang
4 天以前 ff97e4b3acbfbc626db1856aeada0c441bf4b257
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="order" type="text" disabled="true"
                     placeholder-style="line-height:  85rpx;">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons>
               </view>
@@ -446,14 +446,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 +460,18 @@
                  console.log(result)
                  let res = result.data
                  if (res.code === 200 && res.data) {
                     that.checkMat(res.data)
                     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({