xuxueyang
2024-08-29 b37bca8f7a6cdae798e74f14b51936e3a6a9637c
pages/order/order-detail.vue
@@ -168,7 +168,8 @@
                           tmp.$message.showLoading()
                           const {
                              code
                           } = await tmp.$http.request('get', '/api/customer/order/receive/confirm', {
                           } = await tmp.$http.request('get',
                              '/api/customer/order/receive/confirm', {
                              params: {
                                 id: tmp.id,
                              }
@@ -392,12 +393,13 @@
            })
            this.$message.hideLoading()
            if (code == 0) {
               this.$message.showToast('提交成功')
               this.showSales = false
               this.$forceUpdate()
               setTimeout(() => {
               await this.$message.showToast('提交成功')
                  uni.navigateBack()
               }, 1200)
               // this.showSales = false
               // this.$forceUpdate()
               // setTimeout(() => {
                  // uni.navigateBack()
               // }, 1200)
            }
         },
      },
@@ -432,13 +434,16 @@
            </view>
         </view>
      </view>
      <view class="flower-info m-b-20 m-t-12 br-4" v-for="(item,index) of list" :key="index">
      <view v-for="(item,index) of list" :key="index">
         <view class="flower-info m-b-20 m-t-12 br-4" v-if="!showSales||showSales&&(submitForm.orderItemId == item.id)">
         <view class="supplier-name ">
            <image class="icon-dp" src="/static/common/icon-dp.png"></image>
            {{ item.supplierName || ''}}
         </view>
            <!-- submitForm.orderItemId:{{submitForm.orderItemId}} -->
            <!-- itemId:{{item.id}} -->
         <view class="flex m-t-12">
            <radio v-if="showSales" disabled :checked="submitForm.orderItemId == item.id"></radio>
               <!-- <radio v-if="showSales" disabled :checked="submitForm.orderItemId == item.id"></radio> -->
            <!-- @click="changeSalesOrderItem(item)" -->
            <!-- :checked="submitForm.orderItems.indexOf(item.id)>=0" -->
@@ -454,7 +459,8 @@
               <view class="each-list">
                  <view class="each-item">
                     <view class="label">货位号</view>
                     <view class="value">{{ item.warehouseLocationCode || dto.warehouseLocationCode  || '-' }}
                        <view class="value">
                           {{ item.warehouseLocationCode || dto.warehouseLocationCode  || '-' }}
                     </view>
                  </view>
@@ -486,6 +492,7 @@
         </view>
      </view>
      </view>
      <view class="info-container bg-white br-4" v-if="!showSales">
         <view class="form-item">
            <view class="label">订单编号:</view>