MrShi
2025-08-21 63e62f860958716da9ebb34ce07c8d616b305b8e
small-program/pages/freight/freight.vue
@@ -92,8 +92,10 @@
                  <view class="list-item-row-label">运输重量/数量<b>*</b></view>
                  <view class="list-item-row-val">
                     <input type="text" v-model="form.transportNum" placeholder="请输入" />
                     <text @click="show4 = true">{{form.transportUnit}}</text>
                     <view @click="show4 = true" style="width: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end;">
                        <text>{{form.transportUnit}}</text>
                     <u-icon name="arrow-down" color="#111111" size="16"></u-icon>
                     </view>
                  </view>
               </view>
               <view class="list-item-row" v-if="viewStatus">
@@ -342,6 +344,9 @@
         },
         // 提交订单
         submit() {
            if (!this.form.carUnit) {
               return uni.showToast({ title: '请选择货车型号', icon: 'none' })
            }
            if (!this.form.transportTypeName) {
               return uni.showToast({ title: '请选择运输品种', icon: 'none' })
            }
@@ -419,10 +424,10 @@
            var that = this;
            uni.chooseImage({
               success: (chooseImageRes) => {
                  const tempFilePaths = chooseImageRes.tempFilePaths;
                  for (let i = 0; i < chooseImageRes.tempFilePaths.length; i++) {
                  uni.uploadFile({
                     url: this.$baseUrl + '/web/public/upload',
                     filePath: tempFilePaths[0],
                        filePath: chooseImageRes.tempFilePaths[i],
                     name: 'file',
                     formData: {
                        'folder': 'orders'
@@ -438,6 +443,7 @@
                     }
                  });
               }
               }
            });
         },
         // 计算金额