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