|
@@ -66,23 +66,23 @@
|
|
}}</el-button>
|
|
}}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="clueSourceId" label="客户名称" width="180"></el-table-column>
|
|
|
|
- <el-table-column prop="phone" label="联系人" width="180">
|
|
|
|
|
|
+ <el-table-column prop="customerName" label="客户名称" width="180"></el-table-column>
|
|
|
|
+ <el-table-column prop="contactsName" label="联系人" width="180">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button link type="primary" size="large">{{
|
|
<el-button link type="primary" size="large">{{
|
|
- scope.row.phone
|
|
|
|
|
|
+ scope.row.contactsName
|
|
}}</el-button>
|
|
}}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="email" label="商机金额" width="180"></el-table-column>
|
|
|
|
- <el-table-column prop="customerIndustryId" label="商机阶段" width="180"></el-table-column>
|
|
|
|
- <el-table-column prop="customerLevelId" label="预计成交" width="180"></el-table-column>
|
|
|
|
- <el-table-column prop="inchargerId" label="负责人" width="180"></el-table-column>
|
|
|
|
- <el-table-column prop="createName" label="创建人" width="180"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="amountOfMoney" label="商机金额" width="180"></el-table-column>
|
|
|
|
+ <el-table-column prop="stageValue" label="商机阶段" width="180"></el-table-column>
|
|
|
|
+ <el-table-column prop="expectedTransactionDate" label="预计成交" width="180"></el-table-column>
|
|
|
|
+ <el-table-column prop="inchargerName" label="负责人" width="180"></el-table-column>
|
|
|
|
+ <el-table-column prop="creatorName" label="创建人" width="180"></el-table-column>
|
|
<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
|
|
<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button link type="primary" size="large">编辑</el-button>
|
|
|
|
|
|
+ <el-button link type="primary" size="large" @click="editShowVisible('newBusinessisible', scope.row)">编辑</el-button>
|
|
<el-button link type="primary" size="large">新建任务</el-button>
|
|
<el-button link type="primary" size="large">新建任务</el-button>
|
|
<el-button link type="danger" size="large">删除</el-button>
|
|
<el-button link type="danger" size="large">删除</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -179,7 +179,7 @@ function editBusiness(visibles: boolean) {
|
|
let newForm = {
|
|
let newForm = {
|
|
...res,
|
|
...res,
|
|
expectedTransactionDate: res.expectedTransactionDate ? formatDate(new Date(res.expectedTransactionDate)) : '',
|
|
expectedTransactionDate: res.expectedTransactionDate ? formatDate(new Date(res.expectedTransactionDate)) : '',
|
|
- businessItemProductList: productTableListData ? JSON.stringify(productTableListData) : []
|
|
|
|
|
|
+ // businessItemProductList: productTableListData ? JSON.stringify(productTableListData) : []
|
|
}
|
|
}
|
|
allLoading.businessSaveLading = true
|
|
allLoading.businessSaveLading = true
|
|
post(UPDATEINSET, { ...newForm }).then((_res) => {
|
|
post(UPDATEINSET, { ...newForm }).then((_res) => {
|
|
@@ -195,6 +195,11 @@ function editBusiness(visibles: boolean) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function editShowVisible(type: keyof typeof allVisible, item: any) {
|
|
|
|
+ console.log(item, '选择数据')
|
|
|
|
+ showVisible(type)
|
|
|
|
+}
|
|
|
|
+
|
|
function showVisible(type: keyof typeof allVisible) { // 显示弹窗
|
|
function showVisible(type: keyof typeof allVisible) { // 显示弹窗
|
|
allVisible[type] = true
|
|
allVisible[type] = true
|
|
}
|
|
}
|
|
@@ -211,7 +216,12 @@ function getBusinessTableList() {
|
|
const formValue = getFromValue(businessOpportunityForm)
|
|
const formValue = getFromValue(businessOpportunityForm)
|
|
post(GETBUSINESSLIST, { ...formValue }).then((res) => {
|
|
post(GETBUSINESSLIST, { ...formValue }).then((res) => {
|
|
const { data, total } = res.data
|
|
const { data, total } = res.data
|
|
- businessTable.value = data
|
|
|
|
|
|
+ businessTable.value = data.map((item: any) => {
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ expectedTransactionDate: formatDate(new Date(item.expectedTransactionDate))
|
|
|
|
+ }
|
|
|
|
+ })
|
|
businessTotalTable.value = total
|
|
businessTotalTable.value = total
|
|
})
|
|
})
|
|
}
|
|
}
|