|
@@ -1,7 +1,6 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { ref, watch } from 'vue'
|
|
import { ref, watch } from 'vue'
|
|
|
import IconDropDown from '@/components/IconDropDown'
|
|
import IconDropDown from '@/components/IconDropDown'
|
|
|
-import VerrifyInformation from '@/components/VerrifyInformation'
|
|
|
|
|
interface TypeItem {
|
|
interface TypeItem {
|
|
|
partyType: ''
|
|
partyType: ''
|
|
|
partyname: []
|
|
partyname: []
|
|
@@ -19,18 +18,20 @@ interface Props {
|
|
|
AddDateType: TypeItem[]
|
|
AddDateType: TypeItem[]
|
|
|
ASPlaceholder: string
|
|
ASPlaceholder: string
|
|
|
DateTypeoptions: dateoptions[]
|
|
DateTypeoptions: dateoptions[]
|
|
|
- Verification: string
|
|
|
|
|
selectedPartyTypeoptions: Array<string>
|
|
selectedPartyTypeoptions: Array<string>
|
|
|
|
|
+ ASErrorList: Object
|
|
|
}
|
|
}
|
|
|
interface optionsItem {
|
|
interface optionsItem {
|
|
|
value: string
|
|
value: string
|
|
|
label: string
|
|
label: string
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
const list = ref<ListItem[]>([])
|
|
const list = ref<ListItem[]>([])
|
|
|
const options = ref<ListItem[]>([])
|
|
const options = ref<ListItem[]>([])
|
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
|
const props = withDefaults(defineProps<Props>(), {})
|
|
const props = withDefaults(defineProps<Props>(), {})
|
|
|
const AddType = ref(props.AddDateType)
|
|
const AddType = ref(props.AddDateType)
|
|
|
|
|
+const errorList = ref(props.ASErrorList)
|
|
|
const value = ref()
|
|
const value = ref()
|
|
|
const dataTypeoptions = ref<optionsItem[]>([])
|
|
const dataTypeoptions = ref<optionsItem[]>([])
|
|
|
const typeSelectIndex = ref(-1)
|
|
const typeSelectIndex = ref(-1)
|
|
@@ -198,12 +199,17 @@ const typeSelectClick = (index: any, val: any) => {
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin-top: 16px">
|
|
<div style="margin-top: 16px">
|
|
|
<div class="ETD_title">Party Details</div>
|
|
<div class="ETD_title">Party Details</div>
|
|
|
|
|
+ {{ AddType[index].partyname }}
|
|
|
|
|
+ {{ AddType[index].partyType }}
|
|
|
<el-select
|
|
<el-select
|
|
|
v-model="AddType[index].partyname"
|
|
v-model="AddType[index].partyname"
|
|
|
multiple
|
|
multiple
|
|
|
filterable
|
|
filterable
|
|
|
remote
|
|
remote
|
|
|
class="input_change"
|
|
class="input_change"
|
|
|
|
|
+ :class="{
|
|
|
|
|
+ is_error: AddType[index].partyType != '' && AddType[index].partyname.length == 0
|
|
|
|
|
+ }"
|
|
|
:reserve-keyword="false"
|
|
:reserve-keyword="false"
|
|
|
:placeholder="props.ASPlaceholder"
|
|
:placeholder="props.ASPlaceholder"
|
|
|
collapse-tags
|
|
collapse-tags
|
|
@@ -226,10 +232,6 @@ const typeSelectClick = (index: any, val: any) => {
|
|
|
<div class="label">{{ item.value }}</div>
|
|
<div class="label">{{ item.value }}</div>
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <VerrifyInformation
|
|
|
|
|
- :isshowVerfication="AddDateType[index].isshowVerfication"
|
|
|
|
|
- :verification="props.Verification"
|
|
|
|
|
- ></VerrifyInformation>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -285,4 +287,9 @@ const typeSelectClick = (index: any, val: any) => {
|
|
|
.AlertInput :deep(.el-select__wrapper) {
|
|
.AlertInput :deep(.el-select__wrapper) {
|
|
|
box-shadow: 0 0 0 0.5px var(--color-danger);
|
|
box-shadow: 0 0 0 0.5px var(--color-danger);
|
|
|
}
|
|
}
|
|
|
|
|
+.is-error {
|
|
|
|
|
+ :deep(.el-input__wrapper) {
|
|
|
|
|
+ box-shadow: 0 0 0 1px var(--color-danger) inset;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|