且企业信息维护界面

This commit is contained in:
zhangyue 2026-08-11 14:57:15 +08:00
parent 0fd45a7085
commit 194eaedd34
1 changed files with 83 additions and 18 deletions

View File

@ -7,6 +7,11 @@
<a-input v-model:value="formData.entName" placeholder="请输入企业名称" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="企业短名" v-bind="validateInfos.entShortName">
<a-input v-model:value="formData.entShortName" placeholder="请输入企业短名" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="信用代码" v-bind="validateInfos.entCredit">
<a-input v-model:value="formData.entCredit" placeholder="请输入信用代码" :disabled="disabled"></a-input>
@ -27,6 +32,58 @@
<a-input v-model:value="formData.entPhone" placeholder="请输入联系电话" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="纬度" v-bind="validateInfos.entLonglat">
<mapselect v-model:value="formData.entLonglat" placeholder="请选择经纬度" :disabled="disabled"></mapselect>
</a-form-item>
</a-col>
<!-- <a-col :span="24">-->
<!-- <a-form-item label="纬度" v-bind="validateInfos.entLat">-->
<!-- <a-input v-model:value="formData.entLat" placeholder="请输入纬度" :disabled="disabled"></a-input>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<!-- <a-col :span="24">-->
<!-- <a-form-item label="经度" v-bind="validateInfos.entLong">-->
<!-- <a-input v-model:value="formData.entLong" placeholder="请输入经度" :disabled="disabled"></a-input>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<a-col :span="24">
<a-form-item label="企业地图图标" v-bind="validateInfos.entMapIcon">
<JImageUpload :fileMax="1" v-model:value="formData.entMapIcon" :disabled="disabled"></JImageUpload>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="是否显示" v-bind="validateInfos.isShow">
<JDictSelectTag
type="radio"
v-model:value="formData.isShow"
dictCode="yn"
placeholder="选择状态"
:disabled="disabled"
stringToNumber="true"
/>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="是否启用" v-bind="validateInfos.isEnable">
<JDictSelectTag
type="radio"
v-model:value="formData.isEnable"
dictCode="yn"
placeholder="选择状态"
:disabled="disabled"
stringToNumber="true"
/>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="排序值" v-bind="validateInfos.sortNo">
<a-input-number v-model:value="formData.sortNo" placeholder="请输入排序值" :disabled="disabled"></a-input-number>
</a-form-item>
</a-col>
</a-row>
</a-form>
</a-spin>
@ -39,28 +96,38 @@
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../SurvEnterpriseInfo.api';
import { Form } from 'ant-design-vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
import mapselect from '/@/components/MapSelect/MapSelect.vue';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} },
formBpm: { type: Boolean, default: true }
formData: { type: Object, default: () => {} },
formBpm: { type: Boolean, default: true },
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({
id: '',
entName: '',
entCredit: '',
entCode: '',
entCharge: '',
entPhone: '',
tenantId: '',
entName: '',
entCredit: '',
entCode: '',
entCharge: '',
entPhone: '',
tenantId: '',
reVision: undefined,
createdBy: '',
updatedBy: '',
createdBy: '',
updatedBy: '',
isDel: undefined,
updatedTime: '',
updatedTime: '',
entLat: '',
entLong: '',
entMapIcon: '',
entShortName: '',
isShow: 1,
sortNo: 1,
isEnable: 1,
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
@ -73,18 +140,17 @@
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
//
const disabled = computed(()=>{
if(props.formBpm === true){
if(props.formData.disabled === false){
const disabled = computed(() => {
if (props.formBpm === true) {
if (props.formData.disabled === false) {
return false;
}else{
} else {
return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
@ -141,7 +207,6 @@
});
}
defineExpose({
add,
edit,