MrShi
2025-09-03 a377521310f5f9a39b71e7c7ce4623d5a13ea185
small-program/pages/packaging-worker/packaging-worker.vue
@@ -9,7 +9,7 @@
            <view class="list-item-row" @click="show = true">
               <view class="list-item-row-label">用工时间<b>*</b></view>
               <view class="list-item-row-val">
                  <text>{{form.startDate ? form.startDate + ' 至 ' + form.endDate + ' (' + form.priceNum1 + '天) ' : '请选择'}}</text>
                  <text>{{form.startDate ? form.startDate + ' 至 ' + form.endDate + ' (' + workDays + '天) ' : '请选择'}}</text>
                  <u-icon name="arrow-right" color="#111111" size="16"></u-icon>
               </view>
            </view>
@@ -18,7 +18,7 @@
               <view class="list-item-row" @click="selectAddress()">
                  <view class="list-item-row-label">用工地点<b>*</b></view>
                  <view class="list-item-row-val">
                     <text>{{form.location ? form.location : '请选择'}}</text>
                     <text style="width:80%;">{{form.location ? form.location : '请选择'}}</text>
                     <u-icon name="arrow-right" color="#111111" size="16"></u-icon>
                  </view>
               </view>
@@ -84,9 +84,9 @@
                  <view :class="form.carType === item.id ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in settlementType" :key="index" @click="clickType(item.id)">{{item.name}}</view>
               </view>
               <view class="list-item-row">
                  <view class="list-item-row-label" v-if="form.carType === 0">天数</view>
                  <view class="list-item-row-label" v-if="form.carType === 1">小时数</view>
                  <view class="list-item-row-label" v-if="form.carType === 2">重量</view>
                  <view class="list-item-row-label" v-if="form.carType === 0">用工天数</view>
                  <view class="list-item-row-label" v-if="form.carType === 1">工作时长</view>
                  <view class="list-item-row-label" v-if="form.carType === 2">包装重量</view>
                  <view class="list-item-row-val">
                     <input v-model="form.priceNum1" :disabled="form.carType === 0" @blur="getPrice" type="number" placeholder="请输入" />
                     <text v-if="form.carType === 0">天</text>
@@ -240,6 +240,8 @@
            this.form.lgt = option.longitude
            this.form.location = option.address
            this.form.workType = option.workType
            this.form.days = option.days
            this.workDays = option.days
         }
         this.getCateList()
      },
@@ -315,7 +317,7 @@
               success: (res) => {
                  this.form.lat = res.latitude
                  this.form.lgt = res.longitude
                  this.form.address = res.address
                  this.form.address =res.name ||  res.address
               }
            });
         },