Browse Source

完善客户查询--推送财务数据

master
yunuo970428 3 years ago
parent
commit
0e6266784e
  1. 12
      anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmcustomer.js
  2. 24
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue

12
anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/crmcustomer.js

@ -69,6 +69,18 @@ export function deleteBySids(data) {
})
}
// 推送财务数据
export function sendFinCustomer(data) {
return request({
url: '/crm/v1/crmcustomertemp/sendFinCustomer',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// Pc端分页查询中介单位(经销商)
export function getPcDistributorList(data) {
return request({

24
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue

@ -106,7 +106,7 @@
</template>
<script>
import { listPageByOrgPathSid } from '@/api/jichuxinxi/crmcustomer'
import { listPageByOrgPathSid, sendFinCustomer } from '@/api/jichuxinxi/crmcustomer'
import { typeValues } from '@/api/dictcommons/shujuzidian'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
@ -129,6 +129,13 @@ export default {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toPush',
btnLabel: '推送财务数据'
},
{
type: 'info',
size: 'small',
@ -178,6 +185,9 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toPush':
this.toPush()
break
case 'doClose':
this.doClose()
break
@ -261,6 +271,7 @@ export default {
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
},
//
handleCheck(row) {
@ -288,6 +299,17 @@ export default {
}
})
},
toPush() {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行推送财务数据的操作' })
} else {
sendFinCustomer(this.sids).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '推送成功' })
}
})
}
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)

Loading…
Cancel
Save