|
|
@@ -43,8 +43,9 @@
|
|
|
<span class="text">特别约定</span>
|
|
|
</div>
|
|
|
<el-table
|
|
|
- ref="clauseRefs"
|
|
|
+ ref="ClauseRefs"
|
|
|
:data="tableData"
|
|
|
+ row-key="id"
|
|
|
@selection-change="selectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="50" align="center" :selectable="selectable"></el-table-column>
|
|
|
@@ -149,7 +150,7 @@ const downloadImage = (item) => {
|
|
|
|
|
|
// 特别约定
|
|
|
let tableData = ref([])
|
|
|
-let clauseRefs = ref()
|
|
|
+let ClauseRefs = ref()
|
|
|
let clauseList = ref([])
|
|
|
const queryClauseData = () => {
|
|
|
api.insurancePolicyApi.queryClauseData({
|
|
|
@@ -164,11 +165,14 @@ const queryClauseData = () => {
|
|
|
edit: false
|
|
|
}
|
|
|
})
|
|
|
- clauseRefs.value.clearSelection()
|
|
|
- tableData.value?.forEach(item => {
|
|
|
- if(item.clientStatus === '1') {
|
|
|
- clauseRefs.value.toggleRowSelection(item, true)
|
|
|
- }
|
|
|
+ clauseList.value = tableData.value?.filter(item => item.clientStatus != '2')
|
|
|
+ nextTick(() => {
|
|
|
+ tableData.value?.forEach(item => {
|
|
|
+ if(item.clientStatus != '2') {
|
|
|
+ console.log(123123123123213123123213)
|
|
|
+ ClauseRefs.value.toggleRowSelection(item, true)
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
@@ -180,7 +184,7 @@ const queryClauseData = () => {
|
|
|
}
|
|
|
const selectable = (row) => !['1'].includes(row.clientStatus)
|
|
|
const selectionChange = (val) => {
|
|
|
-
|
|
|
+ clauseList.value = val
|
|
|
}
|
|
|
|
|
|
// 提交核保
|
|
|
@@ -190,7 +194,7 @@ const handleSubmit = (bool) => {
|
|
|
order: {
|
|
|
ordersNo: ordersNo.value
|
|
|
},
|
|
|
- specialAppointmentsVos: [...tableData.value]
|
|
|
+ specialAppointmentsVos: [...clauseList.value]
|
|
|
}).then((res: any) => {
|
|
|
if(res.code === 200) {
|
|
|
ElMessage({
|