|
@@ -23,7 +23,7 @@
|
|
<custom-desc v-model="form" :fields="statusFields"></custom-desc>
|
|
<custom-desc v-model="form" :fields="statusFields"></custom-desc>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <custom-form v-if="form.source === 'sector'" v-model="contactsForm" :fields="contactsFields" :rules="contactsRules" style="margin: 10px 0" :useSave="false"></custom-form>
|
|
|
|
|
|
+ <custom-form v-model="contactsForm" :fields="contactsFields" :rules="contactsRules" style="margin: 10px 0" :useSave="false"></custom-form>
|
|
<el-row style="text-align: center; padding-top: 20px" justify="center">
|
|
<el-row style="text-align: center; padding-top: 20px" justify="center">
|
|
<el-col :span="6" style="">
|
|
<el-col :span="6" style="">
|
|
<el-button type="success" @click="exam('1')" :disabled="getAgreeDisabled">{{ $t('common.agree') }}</el-button>
|
|
<el-button type="success" @click="exam('1')" :disabled="getAgreeDisabled">{{ $t('common.agree') }}</el-button>
|
|
@@ -75,9 +75,14 @@ const contactsFields = ref([
|
|
{ label: '联系人', model: 'person' },
|
|
{ label: '联系人', model: 'person' },
|
|
{ label: '联系电话', model: 'phone' }
|
|
{ label: '联系电话', model: 'phone' }
|
|
])
|
|
])
|
|
-const toExam = (data) => {
|
|
|
|
|
|
+const toExam = async (data) => {
|
|
form.value = cloneDeep(data)
|
|
form.value = cloneDeep(data)
|
|
- dialog.value = { type: '2', show: true, title: t('pages.contactApply.examTitle') }
|
|
|
|
|
|
+ const id = get(data, 'id')
|
|
|
|
+ const result = await store.getContacts(id)
|
|
|
|
+ if ($checkRes(result, null, result.errmsg)) {
|
|
|
|
+ contactsForm.value = get(result, 'data', {})
|
|
|
|
+ dialog.value = { type: '2', show: true, title: t('pages.contactApply.examTitle') }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
const toClose = () => {
|
|
const toClose = () => {
|
|
form.value = {}
|
|
form.value = {}
|
|
@@ -86,8 +91,6 @@ const toClose = () => {
|
|
}
|
|
}
|
|
const getAgreeDisabled = computed(() => {
|
|
const getAgreeDisabled = computed(() => {
|
|
const source = get(form.value, 'source')
|
|
const source = get(form.value, 'source')
|
|
- // 非产业集群,不需要限制
|
|
|
|
- if (source !== 'sector') return false
|
|
|
|
const contacts = contactsForm.value
|
|
const contacts = contactsForm.value
|
|
const person = get(contacts, 'person')
|
|
const person = get(contacts, 'person')
|
|
const phone = get(contacts, 'phone')
|
|
const phone = get(contacts, 'phone')
|