#
whycq
2022-10-12 7195780847f34630364b22796dae7ed40cfff90e
pages/basics/order.vue
@@ -9,7 +9,7 @@
            <view class="square-content">
               <view class="content-input">
                  <input  v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="10"
                  :focus="barcodeFocus" @input="barcodeInput">
                  :focus="barcodeFocus" @input="barcodeInput" placeholder-style="line-height:  85rpx;">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
               </view>
            </view>
@@ -23,7 +23,7 @@
            <view class="square-content">
               <view class="content-input">
                  <input v-model="order" type="text" placeholder="扫码 / 输入" @input="findOrder()"
                  :focus="focus">
                  :focus="focus" placeholder-style="line-height:  85rpx;">
                  <uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons>
               </view>
            </view>
@@ -33,17 +33,6 @@
            <view class="square-title">
               <view class="title-sign"><view class="sign"></view></view>
               <view class="title-text"><text>商品列表</text></view>
               <view v-show="matList.length != 0" class="lable">
                  <label class="label-btn" style="width: 170rpx;line-height: 95rpx;"  >
                     <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
                  </label>
                  <label class="label-btn"  >
                     <text  @click="reChecked()">反选</text>
                  </label>
                  <label >
                     <uni-icons type="trash" size="25" color="#a5a5a5" @click="remove()"></uni-icons>
                  </label>
               </view>
            </view>
            
         </view>
@@ -125,6 +114,7 @@
   export default {
      data() {
         return {
            commonUrl:null,
            barcode: '',
            barcodeFocus:true,
            focus:false,
@@ -150,8 +140,15 @@
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
         },
         // barcode input 事件
         barcodeInput() {
            var len = this.barcode.length
@@ -283,7 +280,7 @@
            }
            uni.showLoading();
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/comb/auth',
                url: that.commonUrl + '/mobile/comb/auth',
                data: JSON.stringify({
                  orderNo: that.orderNo,
                  barcode: that.barcode,
@@ -291,7 +288,7 @@
               }),
               method: 'POST',
                header: {
                  'token':uni.getStorageSync('token')
                  'token':uni.getStorageSync('token'),
                },
               success(result) {
                  uni.showLoading();
@@ -319,7 +316,7 @@
         findOrder() {
            let that = this
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/order/search/orderNo/auth',
                url: that.commonUrl + '/mobile/order/search/orderNo/auth',
                data: {
                  orderNo: that.order
                },