This commit is contained in:
qsh
2024-08-02 18:03:21 +08:00
parent 605151c5c8
commit 925887f4c9
13 changed files with 251 additions and 60 deletions

View File

@@ -28,9 +28,9 @@
>
<el-option
v-for="item in extraPayOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.extraPayName"
:value="item.id"
/>
</el-select>
</template>
@@ -73,9 +73,9 @@
<script setup name="DialogExtraPay">
import { signAddPay, getSignExtraPayList } from '@/api/clue/sign'
import { getDictOptions } from '@/utils/dict'
import * as ExtraFeeApi from '@/api/clue/extraFee'
const extraPayOptions = getDictOptions('extra_pay_type')
const extraPayOptions = ref([])
const message = useMessage() // 消息弹窗
const show = ref(false)
@@ -83,6 +83,7 @@ function open(id) {
show.value = true
resetForm(id)
getFormList()
getOptions()
}
defineExpose({
open
@@ -135,6 +136,12 @@ async function onSubmit() {
function handleRemove(type, index) {
form.value[type].splice(index, 1)
}
function getOptions() {
ExtraFeeApi.getExtraFeeSimpleList().then((data) => {
extraPayOptions.value = data
})
}
</script>
<style lang="scss" scoped></style>