| | |
| | | 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, |
| | |
| | | </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, |
| | |
| | | <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"> |
| | |
| | | <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> |
| | |
| | | } from "@/api/system/history"; |
| | | import { |
| | | bindPhone, |
| | | getIdCardByPhone |
| | | } from "@/api/login"; |
| | | import { |
| | | getDicts |
| | |
| | | tjCustomers: [], |
| | | marryOptions: [], |
| | | NationalOptions: [], |
| | | curuser:{}, |
| | | curuser: {}, |
| | | cusId: "", |
| | | cusName: "", |
| | | show:false, |
| | | show: false, |
| | | id: "", |
| | | index1: 0, |
| | | index: 0, |
| | |
| | | onLoad(option) { |
| | | console.log(option) |
| | | this.id = option.id |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | getList() { |
| | |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | 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 |
| | |
| | | }) |
| | | }, |
| | | 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; |
| | |
| | | overflow: hidden; |
| | | padding-left: 15rpx; |
| | | } |
| | | |
| | | .card{ |
| | | |
| | | .card { |
| | | margin-left: 10rpx; |
| | | font-weight: 500; |
| | | font-size: 28rpx; |
| | |
| | | // margin-top: 8rpx; |
| | | margin-left: 40rpx; |
| | | } |
| | | |
| | | |
| | | .qh { |
| | | width: 107rpx; |
| | | height: 124rpx; |