Browse Source

no message

master
xpz2018 6 months ago
parent
commit
dc4f3a5852
3 changed files with 29 additions and 10 deletions
  1. 3
      src/api/clue/index.ts
  2. 34
      src/views/invite/inviteInfo/index.vue
  3. 2
      src/views/invite/myList/index.vue

3
src/api/clue/index.ts

@ -148,3 +148,6 @@ export const getFlowStatic = (params: any) => defHttp.get<any>({ url: '/dating-c
export const getFlowData = (params: any) => defHttp.get<any>({ url: '/dating-clue-service/user/count/dating-clue-data-item/by-team', params})
export const intendedCustomer = (params: any) => defHttp.post({ url: '/dating-clue-service/user/mark/dating-clue/intended-customer', params })
export const getNextClueInfo = (params: any) => defHttp.get<any>({ url: '/dating-clue-service/user/get/own-next-dating-clue/by/telephone-invitation-team', params})

34
src/views/invite/inviteInfo/index.vue

@ -77,9 +77,9 @@
<span style="color: #666;">跟进人</span>
<span style="color: #333;">{{details.followName || '--'}}</span>
</div>
<!-- <div class="flex-row-center-end" style="flex:1;padding-right: 32px;">
<Button size="small" type="primary">查看下一个客户</Button>
</div> -->
<div class="flex-row-center-end" style="flex:1;padding-right: 24px;" v-if="clueType == 1">
<Button size="small" type="primary" @click="nextData()">查看下一个客户</Button>
</div>
</div>
</div>
</div>
@ -297,19 +297,23 @@
import { useModal } from '/@/components/Modal'
import AppointmentModal from './modal.vue'
import { demandMarriageMoreData, demandMarriageSchema } from '/@/views/clue/components/data'
import { getClueInfo, editClueRecord, recordClueing, getClueRecord, getAppointmentList, getClueContractList, intendedCustomer } from '/@/api/clue'
import { getClueInfo, editClueRecord, recordClueing, getClueRecord, getAppointmentList, getClueContractList, intendedCustomer, getNextClueInfo } from '/@/api/clue'
import { genderList, channelList, clueStatusList, followTypeList, followStageList } from '/@/enums/customerEnum'
const details = ref<any>()
const clueId = ref<any>()
const clueType = ref<any>()
const uploadList = ref<any>([])
onMounted(() => {
initFetch()
const { query } = useRoute()
const { id, type } = query || {}
clueId.value = id
clueType.value = Number(type)
initFetch(id)
})
async function initFetch() {
async function initFetch(id) {
demandMarriageMoreData.value = {}
const { query } = useRoute()
const { id } = query || {}
if (!id) return
details.value = await getClueInfo(`${id}`)
@ -526,7 +530,7 @@
function handleSuccess() {
closeModal()
reloadTable()
initFetch()
initFetch(clueId.value)
}
const [registerContractTable, { setTableData: setContractData }] = useTable({
bordered: true,
@ -551,6 +555,18 @@
details.value.markIntendedCustomer = status
}
async function nextData(){
const result = await getNextClueInfo({id: clueId.value})
if(clueId.value == result){
clueType.value = 0
createMessage.success('暂无下一个客户')
return
}
clueId.value = result
createMessage.success(`加载中...`)
initFetch(clueId.value)
}
</script>
<style scoped lang="less">
::v-deep .ant-input-number {

2
src/views/invite/myList/index.vue

@ -116,7 +116,7 @@
function toDetail(record: any) {
const { id } = record
router.push({
query: { id },
query: { id, type: 1 },
path: '/invite/inviteInfo',
})
}

Loading…
Cancel
Save