|
@@ -45,24 +45,22 @@ const formOption = reactive({
|
|
|
// hiddenSubmitBtn: true,
|
|
|
})
|
|
|
const formConfig = reactive([
|
|
|
+ {
|
|
|
+ type:"title",
|
|
|
+ title:"基本信息"
|
|
|
+ },
|
|
|
{
|
|
|
type: 'input',
|
|
|
itemType: 'text',
|
|
|
- label: '公司名称',
|
|
|
- prop: 'name',
|
|
|
- clearable: true,
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'input',
|
|
|
- itemType: 'text',
|
|
|
- label: '英文名',
|
|
|
- prop: 'nameEn',
|
|
|
+ label: '模板名称',
|
|
|
+ prop: 'templateName',
|
|
|
clearable: true,
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
type: 'picker',
|
|
|
- label: '企业类型',
|
|
|
- prop: 'type',
|
|
|
+ label: '公司名称',
|
|
|
+ prop: 'corporationId',
|
|
|
itemType: 'onePicker',
|
|
|
showPicker: false,
|
|
|
fieldNames: {
|
|
@@ -71,117 +69,96 @@ const formConfig = reactive([
|
|
|
},
|
|
|
data:[],
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
+ {
|
|
|
+ type:"title",
|
|
|
+ title:"联系信息"
|
|
|
+ },
|
|
|
+ {
|
|
|
type: 'input',
|
|
|
itemType: 'text',
|
|
|
- label: '统一社会信用代码',
|
|
|
- prop: 'uscCode',
|
|
|
+ label: '业务联系人',
|
|
|
+ prop: 'contactName',
|
|
|
clearable: true,
|
|
|
},
|
|
|
{
|
|
|
type: 'input',
|
|
|
- itemType: 'text',
|
|
|
- label: '法定代表人',
|
|
|
- prop: 'legalPersonName',
|
|
|
+ itemType: 'number',
|
|
|
+ label: '业务联系人电话',
|
|
|
+ prop: 'contactNumber',
|
|
|
clearable: true,
|
|
|
},
|
|
|
{
|
|
|
type: 'input',
|
|
|
- itemType: 'text',
|
|
|
- label: '注册资本',
|
|
|
- prop: 'registeredCapital',
|
|
|
+ itemType: 'number',
|
|
|
+ label: '公司电话',
|
|
|
+ prop: 'corporationNumber',
|
|
|
clearable: true,
|
|
|
},
|
|
|
- {
|
|
|
- type: 'picker',
|
|
|
- label: '营业时间(开始)',
|
|
|
- prop: 'startDate',
|
|
|
- itemType: 'datePicker',
|
|
|
- showPicker: false,
|
|
|
- split: '-',
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'picker',
|
|
|
- label: '营业时间(结束)',
|
|
|
- prop: 'stopDate',
|
|
|
- itemType: 'datePicker',
|
|
|
- showPicker: false,
|
|
|
- split: '-',
|
|
|
- },
|
|
|
- {
|
|
|
+ {
|
|
|
type: 'cascader',
|
|
|
- label: '注册地址',
|
|
|
- prop: 'city',
|
|
|
+ label: '公司地址',
|
|
|
+ prop: 'cityObj',
|
|
|
itemType: 'city',
|
|
|
showPicker: false,
|
|
|
+ style:'border-top:6px solid #f7f8fa;'
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
type: 'input',
|
|
|
itemType: 'textarea',
|
|
|
label: '详细地址',
|
|
|
- prop: 'detailedAddress',
|
|
|
+ prop: 'address',
|
|
|
},
|
|
|
{
|
|
|
- type: 'picker',
|
|
|
- label: '纳税人资质',
|
|
|
- prop: 'taxpayerQualification',
|
|
|
+ type: 'input',
|
|
|
+ itemType: 'text',
|
|
|
+ label: '公司地址(英文/国家)',
|
|
|
+ prop: 'countryEnStr',
|
|
|
clearable: true,
|
|
|
- itemType: 'onePicker',
|
|
|
- showPicker: false,
|
|
|
- fieldNames: {
|
|
|
- text: 'dictValue',
|
|
|
- value: 'dictKey',
|
|
|
- },
|
|
|
+ style:'border-top:6px solid #f7f8fa;'
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
type: 'input',
|
|
|
itemType: 'text',
|
|
|
- label: '海关注册代码',
|
|
|
- prop: 'crCode',
|
|
|
+ label: '公司地址(英文/省/州)',
|
|
|
+ prop: 'provinceEnStr',
|
|
|
clearable: true,
|
|
|
},
|
|
|
- {
|
|
|
- type: 'upload',
|
|
|
- label: '企业logo',
|
|
|
- prop: 'enterpriseLogoList',
|
|
|
- },
|
|
|
- {
|
|
|
- type: 'upload',
|
|
|
- label: '法人签名',
|
|
|
- prop: 'larSignList',
|
|
|
+ {
|
|
|
+ type: 'input',
|
|
|
+ itemType: 'text',
|
|
|
+ label: '公司地址(英文/城市)',
|
|
|
+ prop: 'cityEnStr',
|
|
|
+ clearable: true,
|
|
|
},
|
|
|
{
|
|
|
- type: 'upload',
|
|
|
- label: '公章',
|
|
|
- prop: 'officialSealList',
|
|
|
+ type: 'input',
|
|
|
+ itemType: 'textarea',
|
|
|
+ label: '详细地址(英文)',
|
|
|
+ prop: 'addressEn',
|
|
|
},
|
|
|
- {
|
|
|
- type: 'upload',
|
|
|
- label: '合同章',
|
|
|
- prop: 'contractSealList',
|
|
|
+ {
|
|
|
+ type: 'input',
|
|
|
+ itemType: 'textarea',
|
|
|
+ label: '合同模板',
|
|
|
+ prop: 'templateContent',
|
|
|
},
|
|
|
])
|
|
|
const rules = {
|
|
|
- name: [{ required: true, message: '公司名称不能为空' }],
|
|
|
+ templateName: [{ required: true, message: "请输入模板名称", trigger: "blur" }],
|
|
|
+ corporationId: [{ required: true, message: "请选择公司", trigger: "change" }],
|
|
|
+ countryId: [{ required: true, message: "请选择国家", trigger: "change" }],
|
|
|
+ countryEnStr: [{ required: true, message: "请输入国家 (英文)", trigger: "blur" }],
|
|
|
+ provinceEnStr: [{ required: true, message: "请输入省/洲 (英文)", trigger: "blur" }],
|
|
|
}
|
|
|
const unitList = ref([])
|
|
|
|
|
|
const getDict = () => {
|
|
|
proxy
|
|
|
- .post('/tenantDict/getDict', {
|
|
|
- dictCode: 'enterprise_type',
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- formConfig[2].data = res.data
|
|
|
- })
|
|
|
- proxy
|
|
|
- .post('/tenantDict/getDict', {
|
|
|
- dictCode: 'taxpayer_qualification',
|
|
|
- })
|
|
|
+ .post('/corporation/page', { pageNum: 1, pageSize: 999 })
|
|
|
.then((res) => {
|
|
|
- formConfig[10].data = res.data
|
|
|
+ formConfig[2].data = res.data.rows
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
getDict()
|
|
|
const fileList = ref([])
|
|
@@ -206,7 +183,7 @@ const onSubmit = () => {
|
|
|
formData.data.cityObj.selectedOptions[2].value
|
|
|
}
|
|
|
}
|
|
|
- proxy.post('/corporation/' + route.query.type, formData.data).then(() => {
|
|
|
+ proxy.post('/contractTemplate/' + route.query.type, formData.data).then(() => {
|
|
|
showSuccessToast('添加成功')
|
|
|
setTimeout(() => {
|
|
|
history.back()
|
|
@@ -228,7 +205,7 @@ const treeToList = (arr) => {
|
|
|
onMounted(() => {
|
|
|
if (route.query.id) {
|
|
|
proxy
|
|
|
- .post('/corporation/detail', { id: route.query.id })
|
|
|
+ .post('/contractTemplate/detail', { id: route.query.id })
|
|
|
.then((resDetail) => {
|
|
|
formData.data = resDetail.data
|
|
|
})
|