-
zhangwei
2025-03-06 02ad32582e3a3b0e6f4b2d1b50593eff1d0558e3
src/pages/delivergoods/arrange.vue
@@ -17,7 +17,7 @@
   </up-sticky>
   <view class="c-p-b-100">
      <view class="c-p-l-20 c-p-r-20" v-if="orderList&&orderList.length>0">
         <view class="listrecord c-p-t-20" v-for="(item,index) in orderList" :key="item.keyid">
         <view class="listrecord c-p-t-20" v-for="(item,index) in orderList" :key="item.keyid" @click='goDetail(item)'>
            <view class="coreshop-ff chuany-bradius20">
               <view class="chuany-font26">
                  <view class="chuany-flex chuany-justify-between">
@@ -29,8 +29,8 @@
                        <u-text size='14' :text="item.remark" lines="1">
                        </u-text>
                     </view>
                     <view class="chuany-width5">
                        <up-icon name="edit-pen" @click='editOrder(item)'></up-icon>
                     <view class="chuany-width5" @tap.stop='editOrder(item)'>
                        <up-icon name="edit-pen" ></up-icon>
                     </view>
                  </view>
               </view>
@@ -59,7 +59,7 @@
                  placeholder="请选择司机"></up-input>
            </up-form-item>
            <up-form-item label="收货单位" prop="buyerId" required :borderBottom='false' ref="item1">
               <up-input v-model="buyerName" placeholder="请选择收货单位" border="none">
               <up-input v-model="arrangeInfo.companyName" placeholder="请选择收货单位" border="none">
                  <template #suffix>
                     <up-button @tap="clickAction" text="点击选择" type="primary" size="mini"></up-button>
                  </template>
@@ -81,7 +81,7 @@
      </up-modal>
      <fui-date-picker range :show="datePickerShow" :value="getFirstDayOfMonth()" type="3" zIndex="10000"
         @change="changePicker" :minDate='minDate' :maxDate='maxDate' @cancel="clickTime"></fui-date-picker>
      <up-action-sheet :show="showActions" :actions="actions" title="请选择" @close="showActions = false"
      <up-action-sheet :show="showActions" :actions="actions" title="请选择" @close="showActions = false" wrapMaxHeight='500px'
         @select="selectItem">
      </up-action-sheet>
   </view>
@@ -124,6 +124,7 @@
               remark: '',
               lianxiren: '',
               dizhi: '',
               companyName:''
            },
            rules: {
               'deliverTime': {
@@ -197,6 +198,11 @@
         uni.stopPullDownRefresh();
      },
      methods: {
         goDetail(item){
            uni.navigateTo({
               url: `/pages/delivergoods/arrangedetail?KeyId=${item.keyid}`
            });
         },
         GetDriversOfWithin7days() {
            this.$api.GetDriversOfWithin7days().then(res => {
               if (res.code == 1) {
@@ -241,6 +247,7 @@
               this.arrangeInfo.dizhi = item.adder
               this.arrangeInfo.dianhua = item.companyPhone
               this.arrangeInfo.lianxiren = item.businessManagers
               this.arrangeInfo.companyName = item.companyName
            }
            this.selectAc = ''
         },
@@ -281,14 +288,15 @@
               remark: item.remark,
               lianxiren: item.lianxiren,
               dizhi: item.dizhi,
               keyid: item.keyid
               keyid: item.keyid,
               companyName:item.companyName
            }
            this.show7 = true
            this.driverName = item.driver.name
            let obj = this.customerList.find(ite => {
               return ite.keyid == item.buyerId
            })
            this.buyerName = obj.companyName
            // let obj = this.customerList.find(ite => {
            //    return ite.keyid == item.buyerId
            // })
            // this.buyerName = obj.companyName
         },
         delOrder(item) {
            let that = this