|
@@ -14,18 +14,6 @@
|
|
|
height="750px"
|
|
|
stripe
|
|
|
>
|
|
|
- <el-table-column
|
|
|
- label="填写用户"
|
|
|
- align="center"
|
|
|
- width="180px"
|
|
|
- prop="userId"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- label="所属客户"
|
|
|
- align="center"
|
|
|
- width="180px"
|
|
|
- prop="customerId"
|
|
|
- />
|
|
|
<el-table-column
|
|
|
label="跟进时间"
|
|
|
align="center"
|
|
@@ -42,6 +30,7 @@
|
|
|
v-model="scope.row.content"
|
|
|
type="textarea"
|
|
|
:rows="3"
|
|
|
+ disabled
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -187,13 +176,8 @@ const addProgress = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const progressEdit = (row) => {
|
|
|
- editProgressShow.value = true
|
|
|
- editProgressData.content = row.content
|
|
|
- editProgressData.followUpTime = row.followUpTime
|
|
|
-}
|
|
|
-
|
|
|
const deleteProgress = (row) => {
|
|
|
+ console.log(row)
|
|
|
ElMessageBox.confirm(
|
|
|
'确定删除此客户进度吗?',
|
|
|
'删除',
|
|
@@ -207,7 +191,7 @@ const deleteProgress = (row) => {
|
|
|
delUserProgress(row.ID).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
ElMessage.success(res.msg)
|
|
|
- customerData.getProgressList(row.ID)
|
|
|
+ customerData.getProgressList(customerData.customerId)
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -220,9 +204,17 @@ const deleteProgress = (row) => {
|
|
|
}
|
|
|
|
|
|
// 编辑进度
|
|
|
+const progressEdit = (row) => {
|
|
|
+ editProgressShow.value = true
|
|
|
+ editProgressData.id = row.ID
|
|
|
+ editProgressData.content = row.content
|
|
|
+ editProgressData.followUpTime = row.followUpTime
|
|
|
+}
|
|
|
+
|
|
|
const editProgressShow = ref(false)
|
|
|
|
|
|
const editProgressData = reactive({
|
|
|
+ id: 0,
|
|
|
content: '',
|
|
|
userId: userData.userInfo.ID,
|
|
|
customerId: customerData.customerId,
|
|
@@ -233,7 +225,7 @@ const editProgress = () => {
|
|
|
putUserProgress(editProgressData).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
editProgressShow.value = false
|
|
|
- customerData.getProgressList(userData.userInfo.ID)
|
|
|
+ customerData.getProgressList(customerData.customerId)
|
|
|
console.log(res.data)
|
|
|
}
|
|
|
})
|