|
@@ -40,11 +40,13 @@ import { getDict } from '@/hooks/web/useDictionaries'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
import industryTypeCard from '@/components/industryTypeCard'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
+import { useUserStore } from '@/store/user'
|
|
|
const emit = defineEmits(['complete'])
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
const CtFormRef = ref()
|
|
|
const query = reactive({})
|
|
|
+const user = useUserStore()
|
|
|
const formItems = ref({
|
|
|
options: [
|
|
|
{
|
|
@@ -105,7 +107,7 @@ const formItems = ref({
|
|
|
type: 'autocomplete',
|
|
|
key: 'financingStatus',
|
|
|
value: null,
|
|
|
- label: '融资阶段 *',
|
|
|
+ label: '融资阶段',
|
|
|
outlined: true,
|
|
|
clearable: false,
|
|
|
itemText: 'label',
|
|
@@ -113,7 +115,7 @@ const formItems = ref({
|
|
|
col: 6,
|
|
|
flexStyle: 'mr-3',
|
|
|
dictTypeName: 'menduner_financing_status',
|
|
|
- rules: [v => !!v || '请选择融资阶段'],
|
|
|
+ // rules: [v => !!v || '请选择融资阶段'],
|
|
|
items: []
|
|
|
},
|
|
|
{
|
|
@@ -134,9 +136,10 @@ const formItems = ref({
|
|
|
type: 'datePicker',
|
|
|
key: 'openTime',
|
|
|
value: null,
|
|
|
- default: '2000-01-01',
|
|
|
- defaultValue: new Date(2000, 1, 1),
|
|
|
- format: 'YYYY-MM-DD',
|
|
|
+ mode: 'month',
|
|
|
+ default: '2010-01',
|
|
|
+ defaultValue: new Date(2010, 1),
|
|
|
+ format: 'YYYY-MM',
|
|
|
label: '开业时间',
|
|
|
labelWidth: 120,
|
|
|
col: 6,
|
|
@@ -237,6 +240,7 @@ const handleSave = async () => {
|
|
|
})
|
|
|
await updateEnterpriseBaseInfo(query)
|
|
|
Snackbar.success(t('common.saveMsg'))
|
|
|
+ await user.getEnterpriseInfo()
|
|
|
getBaseInfo()
|
|
|
}
|
|
|
|