路泰科技体检小程序UI设计新版本
1
wwl
5 天以前 a6cdbcfe28fcc40ebb4919f57d60fb20122e8e57
pagesA/Examiner/Examiner.vue
@@ -6,8 +6,7 @@
            confirmColor="#EF0000" cancelColor="#9496A2" showCancelButton="true" @cancel="show = false">
            <div class="txt">是否确认解绑当前就诊卡?</div>
         </u-modal>
         <view class="item" :data-address-id="item.id" v-for="(item, index) in list" :key="index"
            >
         <view class="item" :data-address-id="item.id" v-for="(item, index) in list" :key="index">
            <!-- @tap.native.stop.prevent="xiugai($event, 
               { cusName: item.cusName, 
               cusPhone: item.cusPhone, 
@@ -33,7 +32,7 @@
                     </view>
                  </view>
                  <!-- <view class="rz">已认证</view> -->
                  <view class="mr"  v-show="item.isDefault">默认</view>
                  <view class="mr" v-show="item.isDefault">默认</view>
               </view>
               <view class="qh" @click="jiebang(item)">解绑</view>
               <!-- <view class="qh" @tap.native.stop.prevent="xuanze($event, { cusName: item.cusName, 
@@ -90,7 +89,7 @@
                  <picker @change="NationalTypeChange" mode="selector" :range="NationalOptions"
                     :value="NationalOptions.dictValue" range-key="dictLabel">
                     <!-- <input class="input" :value="inspect.tjPacType" placeholder="请选择体检类型" disabled /> -->
                     <view class="input">{{NationalOptions[index].dictLabel}}</view>
                     <view class="input">  {{ NationalOptions[index] ? NationalOptions[index].dictLabel : '' }}</view>
                  </picker>
               </view>
               <view class="form-item">
@@ -98,7 +97,7 @@
                  <picker @change="marryTypeChange" mode="selector" :range="marryOptions"
                     :value="marryOptions.dictValue" range-key="dictLabel">
                     <!-- <input class="input" :value="inspect.tjPacType" placeholder="请选择体检类型" disabled /> -->
                     <view class="input">{{marryOptions[index1].dictLabel}}</view>
                     <view class="input"> {{ marryOptions[index1] ? marryOptions[index1].dictLabel : '' }}</view>
                  </picker>
               </view>
            </view>
@@ -142,10 +141,10 @@
            tjCustomers: [],
            marryOptions: [],
            NationalOptions: [],
            curuser:{},
            curuser: {},
            cusId: "",
            cusName: "",
            show:false,
            show: false,
            id: "",
            index1: 0,
            index: 0,
@@ -165,9 +164,6 @@
      onLoad(option) {
         console.log(option)
         this.id = option.id
      },
      created() {
         this.getList();
      },
      methods: {
         getList() {
@@ -221,14 +217,14 @@
         },
         jiebang(item) {
            this.curuser = item
            this.show = true
         },
         confirm() {
            let tjCustomer=this.curuser
            let tjCustomer = this.curuser
            delCustomer(tjCustomer).then(res => {
               if (res.code == 200) {
                  this.show = false
@@ -245,30 +241,36 @@
            })
         },
         xuanze(event, _dataset) {
            let cusName = _dataset.cusName;
            let cusIdCard = _dataset.cusIdcard;
            // getInfoById(cusIdCard).then(res => {
            //    if (res.msg == "0") {
            //       this.$modal.showToast('暂无体检号!');
            //    } else {
            let cusIdCard = _dataset.cusIdcard; // 保持与 _dataset 属性一致
            console.log('xuanze 参数:', {
               cusName,
               cusIdCard,
               id: this.id
            });
            if (this.id == "1") {
               console.log('跳转到 history,传递:', {
                  cusName,
                  cusIdCard
               });
               uni.navigateTo({
                  url: `/pages/history/history?cusName=${cusName}&cusIdCard=${cusIdCard}`
               })
                  url: `/pages/history/history?cusName=${encodeURIComponent(cusName)}&cusIdCard=${encodeURIComponent(cusIdCard)}`
               });
            } else if (this.id == "2") {
               uni.navigateTo({
                  url: `/pages/tjrecord/tjrecord?cusIdCard=${cusIdCard}`
               })
            } else {
                  url: `/pages/tjrecord/tjrecord?cusIdCard=${encodeURIComponent(cusIdCard)}`
               });
            } else if (this.id == "3") {
               uni.navigateTo({
                  url: `/pagesA/ReportOverview/ReportOverview?cusIdCard=${encodeURIComponent(cusIdCard)}`
               });
            }else {
               uni.$emit('updateNote', _dataset);
               uni.navigateBack({
                  delta: 1
               })
               });
            }
            //    }
            // })
         },
         NationalTypeChange(e) {
            this.index = e.detail.value;
@@ -379,8 +381,8 @@
      overflow: hidden;
      padding-left: 15rpx;
   }
   .card{
   .card {
      margin-left: 10rpx;
      font-weight: 500;
      font-size: 28rpx;
@@ -507,7 +509,7 @@
      // margin-top: 8rpx;
      margin-left: 40rpx;
   }
   .qh {
      width: 107rpx;
      height: 124rpx;