|
@@ -30,7 +30,7 @@
|
|
<el-radio label="海外" border>海外</el-radio>
|
|
<el-radio label="海外" border>海外</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="商家地址" prop="address">
|
|
|
|
|
|
+ <el-form-item label="商家地址" prop="address" v-if="firstFormData.RegionType=='国内'">
|
|
<el-cascader
|
|
<el-cascader
|
|
v-model="firstFormData.address"
|
|
v-model="firstFormData.address"
|
|
:props="locationProps"
|
|
:props="locationProps"
|
|
@@ -40,6 +40,16 @@
|
|
placeholder="请选择客户地址"
|
|
placeholder="请选择客户地址"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="所属国家" prop="Nation" v-else>
|
|
|
|
+ <el-select v-model="firstFormData.Nation" placeholder="请选择所属国家" filterable style="width: 360px;">
|
|
|
|
+ <el-option :label="item.cnName" :value="item.cnName" v-for="item in countryData" :key="item.code" >
|
|
|
|
+ <div style="display: flex;justify-content: space-between;">
|
|
|
|
+ <span>{{ item.cnName }}</span>
|
|
|
|
+ <span style="color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</div>
|
|
</div>
|
|
<div class="form-line">
|
|
<div class="form-line">
|
|
<el-form-item label="社会信用码" prop="CreditCode">
|
|
<el-form-item label="社会信用码" prop="CreditCode">
|
|
@@ -95,6 +105,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<div class="second-step-form-wrap" v-show="step===2">
|
|
<div class="second-step-form-wrap" v-show="step===2">
|
|
|
|
+ <el-button type="primary" @click="addRenewalHandle" style="margin-top: 15px;">添加续约</el-button>
|
|
<el-table :data="recordData" border>
|
|
<el-table :data="recordData" border>
|
|
<el-table-column
|
|
<el-table-column
|
|
v-for="item in tableColOpts"
|
|
v-for="item in tableColOpts"
|
|
@@ -104,8 +115,14 @@
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span class="editsty" @click="editRenewal(scope.row)" style="padding: 0 3px;">编辑</span>
|
|
|
|
+ <span class="deletesty" @click="deleteRenewal(scope.row)" style="padding: 0 3px;">删除</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <el-button type="text" @click="showRenewal=true">添加续约</el-button>
|
|
|
|
|
|
+ <!-- <el-button type="text" @click="showRenewal=true">添加续约</el-button> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="business-other">
|
|
<div class="business-other">
|
|
@@ -133,7 +150,7 @@
|
|
|
|
|
|
<!-- 添加续约 -->
|
|
<!-- 添加续约 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
- title="添加续约"
|
|
|
|
|
|
+ :title="renewalDiaTitle"
|
|
:visible.sync="showRenewal"
|
|
:visible.sync="showRenewal"
|
|
:modal-append-to-body="false"
|
|
:modal-append-to-body="false"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
@@ -142,7 +159,8 @@
|
|
>
|
|
>
|
|
<AddRenewal
|
|
<AddRenewal
|
|
@addRenewal="handleAddRenewal"
|
|
@addRenewal="handleAddRenewal"
|
|
- @close="showRenewal=false"/>
|
|
|
|
|
|
+ @close="showRenewal=false"
|
|
|
|
+ :renewalForm="renewalForm"/>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -152,9 +170,11 @@ import { customInterence , businessCustomInterence} from '@/api/api.js'
|
|
import Steps from "./components/Steps.vue";
|
|
import Steps from "./components/Steps.vue";
|
|
import AddRenewal from "./components/AddRenewal";
|
|
import AddRenewal from "./components/AddRenewal";
|
|
import {locationOptions} from "@/views/custom_manage/customList/location"
|
|
import {locationOptions} from "@/views/custom_manage/customList/location"
|
|
|
|
+import country from "@/utils/countryData"
|
|
export default {
|
|
export default {
|
|
components: {Steps,AddRenewal},
|
|
components: {Steps,AddRenewal},
|
|
data() {
|
|
data() {
|
|
|
|
+ this.countryData = country
|
|
return {
|
|
return {
|
|
locationOptions,
|
|
locationOptions,
|
|
locationProps:{
|
|
locationProps:{
|
|
@@ -184,6 +204,7 @@ export default {
|
|
BusinessName:'',
|
|
BusinessName:'',
|
|
CreditCode:'',
|
|
CreditCode:'',
|
|
Address:'',
|
|
Address:'',
|
|
|
|
+ Nation:'',
|
|
Leader:'',
|
|
Leader:'',
|
|
ResearchTeamSize:'',
|
|
ResearchTeamSize:'',
|
|
CapitalScale:'',
|
|
CapitalScale:'',
|
|
@@ -194,6 +215,7 @@ export default {
|
|
City:''
|
|
City:''
|
|
},
|
|
},
|
|
rules:{
|
|
rules:{
|
|
|
|
+ Nation:[{ required: true, message: '请选择所属国家', trigger: 'change' },],
|
|
address:[{ required: true, message: '请选择商家地址', trigger: 'change' },],
|
|
address:[{ required: true, message: '请选择商家地址', trigger: 'change' },],
|
|
decisionMaker:[{required: true, message: '请输入决策人', trigger: 'blur' },],
|
|
decisionMaker:[{required: true, message: '请输入决策人', trigger: 'blur' },],
|
|
teamSize:[{required: true, message: '请选择研究团队规模', trigger: 'change' },],
|
|
teamSize:[{required: true, message: '请选择研究团队规模', trigger: 'change' },],
|
|
@@ -204,7 +226,7 @@ export default {
|
|
recordData:[],
|
|
recordData:[],
|
|
tableColOpts:[
|
|
tableColOpts:[
|
|
{
|
|
{
|
|
- label:'签约时间',
|
|
|
|
|
|
+ label:'运维时间',
|
|
key:'SigningTime'
|
|
key:'SigningTime'
|
|
},{
|
|
},{
|
|
label:'到期时间',
|
|
label:'到期时间',
|
|
@@ -216,6 +238,8 @@ export default {
|
|
],
|
|
],
|
|
activities:[],
|
|
activities:[],
|
|
showRenewal:false,
|
|
showRenewal:false,
|
|
|
|
+ renewalDiaTitle:"添加续约",
|
|
|
|
+ renewalForm:{}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -277,13 +301,13 @@ export default {
|
|
// 保存商家
|
|
// 保存商家
|
|
handleSaveDetail(){
|
|
handleSaveDetail(){
|
|
const {EtaBusinessId,CapitalScale,
|
|
const {EtaBusinessId,CapitalScale,
|
|
- address,Leader,IndustryId,
|
|
|
|
|
|
+ address,Leader,IndustryId,Nation,
|
|
ResearchTeamSize,UserMax} = this.firstFormData
|
|
ResearchTeamSize,UserMax} = this.firstFormData
|
|
const IndustryName = this.tradeArr.find(item=>item.IndustryId===IndustryId).IndustryName
|
|
const IndustryName = this.tradeArr.find(item=>item.IndustryId===IndustryId).IndustryName
|
|
businessCustomInterence.editBusiness({
|
|
businessCustomInterence.editBusiness({
|
|
EtaBusinessId,Leader,
|
|
EtaBusinessId,Leader,
|
|
IndustryName,CapitalScale,
|
|
IndustryName,CapitalScale,
|
|
- ResearchTeamSize,
|
|
|
|
|
|
+ ResearchTeamSize,Nation,
|
|
IndustryId:Number(IndustryId),
|
|
IndustryId:Number(IndustryId),
|
|
UserMax:Number(UserMax),
|
|
UserMax:Number(UserMax),
|
|
Province:address[0],
|
|
Province:address[0],
|
|
@@ -294,15 +318,49 @@ export default {
|
|
this.getBusinessDetail()
|
|
this.getBusinessDetail()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- //添加续约
|
|
|
|
- handleAddRenewal({signDate,expirationDate}){
|
|
|
|
- businessCustomInterence.addNewContract({
|
|
|
|
|
|
+ // 添加续约
|
|
|
|
+ addRenewalHandle(){
|
|
|
|
+ this.renewalForm={}
|
|
|
|
+ this.renewalDiaTitle="添加续约"
|
|
|
|
+ this.showRenewal=true
|
|
|
|
+ },
|
|
|
|
+ // 编辑续约
|
|
|
|
+ editRenewal(row){
|
|
|
|
+ this.renewalDiaTitle="编辑续约"
|
|
|
|
+ this.renewalForm={
|
|
|
|
+ id:row.EtaBusinessContractId,
|
|
|
|
+ signDate:row.SigningTime,
|
|
|
|
+ expirationDate:row.ExpiredTime
|
|
|
|
+ }
|
|
|
|
+ this.showRenewal=true
|
|
|
|
+ },
|
|
|
|
+ deleteRenewal(row){
|
|
|
|
+ this.$confirm("是否确认删除该签约信息?", "提示", {
|
|
|
|
+ type: "warning"
|
|
|
|
+ }).then(() => {
|
|
|
|
+ businessCustomInterence.
|
|
|
|
+ removeContract({EtaBusinessContractId:row.EtaBusinessContractId})
|
|
|
|
+ .then(res=>{
|
|
|
|
+ if(res.Ret == 200){
|
|
|
|
+ this.$message.success("删除成功")
|
|
|
|
+ this.getTableData(Number(this.$route.query.id))
|
|
|
|
+ this.getTimeLineData(Number(this.$route.query.id))
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {});
|
|
|
|
+ },
|
|
|
|
+ //添加续约-保存
|
|
|
|
+ handleAddRenewal({signDate,expirationDate,id}){
|
|
|
|
+ // id-商家合约ID
|
|
|
|
+ let api = Number(id) ? 'editContract' : 'addNewContract'
|
|
|
|
+ businessCustomInterence[api]({
|
|
EtaBusinessId:Number(this.$route.query.id),
|
|
EtaBusinessId:Number(this.$route.query.id),
|
|
|
|
+ EtaBusinessContractId:Number(id),
|
|
SigningTime:signDate,
|
|
SigningTime:signDate,
|
|
ExpiredTime:expirationDate
|
|
ExpiredTime:expirationDate
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.Ret!==200) return
|
|
if(res.Ret!==200) return
|
|
- this.$message.success('添加续约成功')
|
|
|
|
|
|
+ this.$message.success(this.renewalDiaTitle+'成功')
|
|
this.showRenewal=false
|
|
this.showRenewal=false
|
|
this.getTableData(Number(this.$route.query.id))
|
|
this.getTableData(Number(this.$route.query.id))
|
|
this.getTimeLineData(Number(this.$route.query.id))
|
|
this.getTimeLineData(Number(this.$route.query.id))
|
|
@@ -345,7 +403,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.el-table{
|
|
.el-table{
|
|
- margin-top: 30px;
|
|
|
|
|
|
+ margin-top: 15px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.business-other{
|
|
.business-other{
|