|
|
@ -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) |
|
|
|