#
whycq
2024-03-18 6c36127f806ffb9c22be30e8736d8298ed18ab29
pages/basics/orderSelect.vue
@@ -11,7 +11,7 @@
         </view>
         <checkbox-group @change="checkbox">
            <label v-for="(item,index) in tag" :key="index" class="demo-list bg-false"
               @click="showTag(item.id)">
               @click="showTag(item.orderNo)">
               <view class="demo-list-right">
                  <view class="tag">
                     <view class="cu-tag bg-blue ">订单</view>
@@ -30,7 +30,7 @@
                  <view class="tag">
                     <view class="cu-tag bg-cyan ">订单明细</view>
                  </view>
                  <view class="matnr" style="font-size: 16px;"><text style="min-width: 500rpx;font-size: 12px;">{{item.supp}}</text></view>
                  <view class="matnr" style="font-size: 16px;"><text style="min-width: 500rpx;font-size: 12px;">{{item.color}}</text></view>
                  <view class="matnr" style="font-size: 16px;"><text style="min-width: 500rpx;font-size: 12px;">{{item.maktx}}</text></view>
                  <view class="matnr" style="font-size: 16px;"><text style="min-width: 500rpx;font-size: 12px;">{{item.specs}}</text></view>
                  <view class="matnr" style="font-size: 16px;"><text style="min-width: 500rpx;font-size: 12px;">{{item.xh}}</text></view>
@@ -148,26 +148,23 @@
            let that = this
            uni.showLoading();
            uni.request({
                url: that.commonUrl + '/orderDetl/list/auth',
                url: that.commonUrl + '/mobile/order/search/orderNo/auth',
               header: {
                  'token':uni.getStorageSync('token'),
                   'content-type': 'application/x-www-form-urlencoded',
               },
                data: {
                  curr: 1,
                  limit: 100000,
                  order_id: parentId
                   orderNo: parentId
                },
               header: {
                  'token':uni.getStorageSync('token'),
               },
                method: 'POST',
               success(result) {
                  console.log(result)
                  that.tag = null
                  that.data = null
                  var res = result.data
                  if (res.code === 200) {
                     if (res.data != null && res.data.records.length > 0) {
                        that.data = res.data.records
                     if (res.data != null && res.data[0].combMats.length > 0) {
                        that.data = res.data[0].combMats
                     } else {
                        that.showMat(parentId)
                     }