CRM源码-客户关系管理系统源码搭建(小程序+APP+H5) - stringify(v)}
客户关系管理 (CRM) 是一项用于管理公司与客户和潜在客户的所有关系和互动的技术。目标很简单:改善业务关系以发展您的业务。CRM 系统可帮助公司与客户保持联系、简化流程并提高盈利能力。 CRM 解决方案可帮助您在整个生命周期中专注于组织与个人(包括客户、服务用户、同事或供应商)的关系,包括寻找新客户、赢得他们的业务以及在整个关系中提供支持和附加服务。 源码获取:c.xsymz.icu 部分源码展示:demo.js
const demoEntityName = 'Account'
const demoFieldName = 'AccountName'
let _List, _Form, _View
FrontJS.ready(() => {
_List = FrontJS.DataList
_Form = FrontJS.Form
_View = FrontJS.View
demoAddButton()
demoForList()
demoForForm()
_Form.onOpen(() => {
_Form.setTopAlert('表单顶部显示提示')
})
setTimeout(() => {
console.log(FrontJS.getPageToken())
console.log(FrontJS.getRecord(rb.currentUser))
console.log(FrontJS.checkPermission(rb.currentUser, 'D'))
})
})
function demoAddButton() {
_List.onOpen(() => {
_List.addButtonGroup({
text: 'FrontJS!',
items: [
{
text: '获取第一选中',
onClick: () => {
alert(_List.getSelectedId())
},
},
{
text: '获取全部选中',
onClick: () => {
alert(_List.getSelectedIds())
},
},
],
})
})
_Form.onOpen(() => {
_Form.addButton({
text: 'FrontJS!',
onClick: () => {
alert(_Form.getCurrentId())
},
})
})
_View.onOpen(() => {
_Form.addButton({
text: 'FrontJS!',
onClick: () => {
alert(_Form.getCurrentId())
},
})
})
}
function demoForList() {
const fieldKey = `${demoEntityName}.${demoFieldName}`
_List.regCellRender(fieldKey, function (v) {
return{JSON.stringify(v)}
})
_List.onOpen(() => {
_List.addButton({
text: 'LiteForm',
onClick: () => {
const id = _List.getSelectedId()
if (!id) {
alert('请选择一条记录')
return
}
FrontJS.openLiteForm(id, [{ field: demoFieldName, tip: '提示', readonly: true, nullable: true }])
},
}) 拼多多帮助力入口
})
}
function demoForForm() {
const lookFieldKey = `${demoEntityName}.${demoFieldName}`
_Form.onFieldValueChange(function (fieldKey, fieldValue, recordId) {
if (lookFieldKey === fieldKey) {
RbHighbar.create(`记录: ${recordId || ''} 的新值 : ${fieldValue || ''}`)
}
})
_Form.onOpen(() => {
const fieldComp = _Form.getFieldComp(demoFieldName)
fieldComp.setNullable(false)
fieldComp.setTip('非清洁')
fieldComp.setTip(非清洁)
_Form.onFieldValueChange(function (fieldKey, fieldValue) {
if (lookFieldKey === fieldKey) {
if (fieldValue === 'hide') {
fieldComp.setHidden(true)
setTimeout(() => fieldComp.setHidden(false), 3000)
}
}
})
})
}
好文阅读