dev
This commit is contained in:
parent
def18c3753
commit
cd30a1d7c0
|
|
@ -164,6 +164,7 @@
|
|||
style="width: 100%;flex: 1"
|
||||
v-if="!isShowCard"
|
||||
highlight-current-row
|
||||
ref="multipleTable"
|
||||
@current-change="handleCurrentChange"
|
||||
>
|
||||
<el-table-column label="险种类型" prop="insutype">
|
||||
|
|
@ -278,6 +279,8 @@ const close = () => {
|
|||
time.value = ''
|
||||
edit_data.value = {
|
||||
timeList: [],
|
||||
insutype: '',
|
||||
appointmentTime: ''
|
||||
}
|
||||
isShowCard.value = true
|
||||
nextTick(() => {
|
||||
|
|
@ -298,15 +301,15 @@ const dateName = defineModel()
|
|||
const save = () => {
|
||||
if (dateName.value == '现在') {
|
||||
edit_data.value.timeList = ''
|
||||
edit_data.value.appointmentTime = ''
|
||||
} else {
|
||||
edit_data.value.timeList.push(edit_data.value.date, time.value)
|
||||
edit_data.value.appointmentTime = edit_data.value.timeList.join(' ')
|
||||
console.log(edit_data.value.appointmentTime)
|
||||
}
|
||||
let data = {
|
||||
...edit_data.value,
|
||||
psnNo: socialCard.value?.data?.baseinfo.psn_no,
|
||||
insutype:edit_data.value.insutype || socialCard.value?.data?.insuinfo[0].insutype,
|
||||
insutype: edit_data.value.insutype || socialCard.value?.data?.insuinfo[0].insutype,
|
||||
insuBalance: socialCard.value?.data?.insuinfo[0].balc,
|
||||
|
||||
}
|
||||
|
|
@ -381,6 +384,7 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => {
|
|||
}
|
||||
const isShowCard = ref<any>(true)
|
||||
const tableData = ref<any>([])
|
||||
const multipleTable=ref<any>()
|
||||
const socialCardUpdate = (e: any) => {
|
||||
isShowCard.value = false
|
||||
if (e) {
|
||||
|
|
@ -409,8 +413,8 @@ const socialCardUpdate = (e: any) => {
|
|||
}
|
||||
nextTick(() => {
|
||||
if (tableData.value.length > 0) {
|
||||
height.value = 870
|
||||
|
||||
height.value = 820
|
||||
multipleTable.value?.setCurrentRow(tableData.value[0])
|
||||
} else {
|
||||
height.value = 570
|
||||
}
|
||||
|
|
@ -460,7 +464,7 @@ const isBtnShow = ref(true)
|
|||
const changeBtn = () => {
|
||||
isBtnShow.value = !isBtnShow.value
|
||||
}
|
||||
const handleCurrentChange=(val:any)=>{
|
||||
const handleCurrentChange = (val: any) => {
|
||||
edit_data.value.insutype = val.insutype
|
||||
}
|
||||
defineExpose({init})
|
||||
|
|
|
|||
Loading…
Reference in New Issue