|
@@ -14,7 +14,7 @@
|
|
|
<div class="form-line">
|
|
|
<t-form-item label="所属区域" name="areaType">
|
|
|
<t-radio-group v-model:modelValue="firstFormData.areaType"
|
|
|
- :disabled="currentRoute !== 'businessDetail'">
|
|
|
+ :disabled="currentRoute !== 'addBusiness'">
|
|
|
<t-radio label="国内" value="国内">国内</t-radio>
|
|
|
<t-radio label="海外" value="海外">海外</t-radio>
|
|
|
</t-radio-group>
|
|
@@ -301,6 +301,7 @@ const getCurrentState = () => {
|
|
|
fetchBusinessData()
|
|
|
getChartPermission(businessId.value)
|
|
|
} else if (currentRoute.value === 'businessDetail') { // 查看详情
|
|
|
+ fetchChosenData()
|
|
|
fetchBusinessData()
|
|
|
getChartPermission(businessId.value)
|
|
|
}
|
|
@@ -337,7 +338,7 @@ const fetchBusinessData = async () => {
|
|
|
try {
|
|
|
const res = await businessCustomInterence.getBusinessDetail({ EtaBusinessId: businessId.value });
|
|
|
if (res.Ret !== 200) return;
|
|
|
- const { RegionType, BusinessName, CreditCode, Nation, Leader, ResearchTeamSize, CapitalScale, IndustryId, UserMax, SellerId, SigningTime, ExpiredTime } = res.Data;
|
|
|
+ const { RegionType, BusinessName, CreditCode, Nation, Leader, ResearchTeamSize, CapitalScale, IndustryId, UserMax, SellerId, SigningTime, ExpiredTime, City } = res.Data;
|
|
|
Object.assign(firstFormData, {
|
|
|
areaType: RegionType,
|
|
|
name: BusinessName,
|
|
@@ -349,7 +350,7 @@ const fetchBusinessData = async () => {
|
|
|
industry: IndustryId,
|
|
|
userMax: UserMax,
|
|
|
saller: SellerId,
|
|
|
- address: [res.Data.Province || '', res.Data.City || '']
|
|
|
+ address: City
|
|
|
});
|
|
|
Object.assign(secondFormData, {
|
|
|
expirationDate: ExpiredTime,
|
|
@@ -488,10 +489,8 @@ const changeActiveStep = (index) => {
|
|
|
|
|
|
// 编辑
|
|
|
const editEtaBusiness = async () => {
|
|
|
- const {creditCode, address,decisionMaker,industry,nation,teamSize,userMax} = firstFormData;
|
|
|
+ const {creditCode, province, city, decisionMaker,industry,nation,teamSize,userMax} = firstFormData;
|
|
|
const IndustryName = tradeArr.value.find(item => item.IndustryId === industry)?.IndustryName || '';
|
|
|
- console.log(firstFormData);
|
|
|
-
|
|
|
const query = {
|
|
|
EtaBusinessId: businessId.value,
|
|
|
Leader: decisionMaker,
|
|
@@ -501,8 +500,8 @@ const editEtaBusiness = async () => {
|
|
|
Nation: nation,
|
|
|
IndustryId:Number(industry),
|
|
|
UserMax:Number(userMax),
|
|
|
- Province:address[0],
|
|
|
- City:address[1]
|
|
|
+ Province:province,
|
|
|
+ City:city,
|
|
|
}
|
|
|
const res = await businessCustomInterence.editBusiness(query);
|
|
|
if (res.Ret !== 200) return;
|