|
@@ -75,7 +75,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="币制:" name="currency">
|
|
|
- <a-input v-model:value="formData.currency" :disabled="isView" placeholder="请输入币制" allow-clear />
|
|
|
+ <a-select v-model:value="formData.currency" :disabled="isView" placeholder="请选择币制" :options="currencyOptions" show-search allow-clear option-filter-prop="label" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
@@ -207,6 +207,7 @@
|
|
|
import { cloneDeep } from 'lodash-es'
|
|
|
import { required } from '@/utils/formRules'
|
|
|
import qyRecardBodyApi from '@/api/yqyc/qyRecardBodyApi'
|
|
|
+ import tool from "@/utils/tool";
|
|
|
// 抽屉状态
|
|
|
const emit = defineEmits({ successful: null })
|
|
|
const formRef = ref()
|
|
@@ -214,6 +215,8 @@
|
|
|
const formData = ref({})
|
|
|
const submitLoading = ref(false)
|
|
|
const isView = ref(false)
|
|
|
+ const currencyOptions = ref([])
|
|
|
+
|
|
|
|
|
|
// 打开抽屉
|
|
|
const onOpen = (record, view = false) => {
|
|
@@ -222,6 +225,8 @@
|
|
|
let recordData = cloneDeep(record)
|
|
|
formData.value = Object.assign({}, recordData)
|
|
|
}
|
|
|
+ currencyOptions.value = tool.dictList('hbdm')
|
|
|
+
|
|
|
}
|
|
|
// 关闭抽屉
|
|
|
const onClose = () => {
|