MrShi
2024-04-07 9a819fa35464df79a1a8a56e132b3463fac520a7
wx/pages/addPersonnel/addPersonnel.vue
@@ -19,7 +19,13 @@
               </view>
               <view class="box_head_info_list_item" v-if="info.type !== 1">
                  <view class="label">费用:</view>
                  <view class="value">{{info.price}}元</view>
                  <view class="value">
                     {{info.price}}元
                     <text v-if="info.timeUnit === 0">/天</text>
                     <text v-if="info.timeUnit === 1">/半月</text>
                     <text v-if="info.timeUnit === 2">/月</text>
                     <text v-if="info.timeUnit === 3">/年</text>
                  </view>
               </view>
            </view>
         </view>
@@ -126,6 +132,7 @@
            </view>
         </view>
      </u-popup>
      <u-toast ref="uToast"></u-toast>
   </view>
</template>
@@ -156,7 +163,14 @@
            this.getDetails()
         }
         uni.$on('add', (data) => {
            if (JSON.stringify(this.list).indexOf(data.model.idCard) !== -1) {
               this.$refs.uToast.show({
                  type: 'default',
                  message: `[${data.model.name}]人员身份证重复`
               })
            } else {
            this.list.unshift(data.model)
            }
         })
      },
      methods: {