#
whycq
2023-12-13 7d39b1a68266a289f66e3126473d5ebb5bd488d1
pages/tzsk/order/orderPutOn.vue
@@ -191,6 +191,7 @@
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.recommendLoc()
      },
      onLoad() {
         // #ifdef APP
@@ -255,16 +256,17 @@
            that.recommendLocs = []
            uni.request({
               url: that.baseUrl + '/mobile/node/recommend/loc',
               data: {barcode: that.barcode},
               data: {zpallet: that.barcode},
               header: {'token': uni.getStorageSync('token')},
               method: 'POST',
               success(res) {
                  res = res.data
                  console.log(res);
                  that.recommendLocs.push('DT-C-010202')
                  return
                  res = res.data
                  // that.recommendLocs.push('DT-C-010202')
                  if (res.code == 200 && res.data) {
                     that.recommendLocs = res.data
                     that.recommendLocs.push(res.msg)
                     that.dataList = res.data
                  } 
               }
               
@@ -317,11 +319,11 @@
         comb() {
            uni.vibrateShort();
            let that = this;
            if (that.barcode === '') {
               this.messageText = "请添加库位码"
               this.messageToggle('error')
               return;
            }
            // if (that.barcode === '') {
            //    this.messageText = "请添加库位码"
            //    this.messageToggle('error')
            //    return;
            // }
            // if (that.dataList.length === 0) {
            //    this.messageText = "请添加商品列表"
            //    this.messageToggle('error')
@@ -460,9 +462,10 @@
      display: flex;
      min-height: 80rpx;
      background-color: #FFF;
      margin: auto 20rpx;
      /* margin: 20rpx 20rpx; */
      border-radius: 20rpx;
      box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.2);
      margin: 20rpx;
   }
   .list:first-child {
      margin-top: 280rpx;