CRM订单上状态字段在UI的显示逻辑
2023-09-14 09:03:07 时间
(1) WebUI上的One order header和status是1:N的关系:在WebUI上的search结果里,会把一个order当前所有的status全部连接成衣蛾string,并显示出来。
![](https://user-images.githubusercontent.com/5669954/57020114-fbde0a00-6c5a-11e9-93a5-0e8e41117b04.png)
从Component design里也能看清楚,status绑的是CONCATSTAT,
![](https://user-images.githubusercontent.com/5669954/57020117-fc76a080-6c5a-11e9-9dfa-13b0194c2e4d.png)
这个状态连接是后台完成然后返回给前台的:
![](https://user-images.githubusercontent.com/5669954/57020119-fd0f3700-6c5a-11e9-8308-d917682c7df1.png)
WebUI status render逻辑,在Search result和detail page不一样。
(1). 在Search result,显示所有的status:
![](https://user-images.githubusercontent.com/5669954/57020121-fda7cd80-6c5a-11e9-9cdb-0022b369ba08.png)
(2). 在detail page,分两种情况:
(2.1): 如果order的transaction type没有配置user status profile,就只显示system status的第一个。例如590这个order从后台查询它有两个active的 system status,但是在界面上只显示第一个 I1003:
![](https://user-images.githubusercontent.com/5669954/57020124-fe406400-6c5a-11e9-92fc-bfe6043f4941.png)
(2.2): 如果order的transaction type配置了user status profile,即这种情况order在后台表里同时具有user 和system status,此时优先显示user status,如图:
![](https://user-images.githubusercontent.com/5669954/57020126-fed8fa80-6c5a-11e9-868d-be4f73c1e13c.png)
![](https://user-images.githubusercontent.com/5669954/57020128-ff719100-6c5a-11e9-9689-60943516dc2a.png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- 陈述python中运算符的优先级_numpy逻辑运算符
- 元宇宙3D游戏开发规则丨元宇宙3D游戏链游系统开发实现技术逻辑及方案丨元宇宙3D游戏链游源码案例部署
- Python对中国电信消费者特征预测:随机森林、朴素贝叶斯、神经网络、最近邻分类、逻辑回归、支持向量回归(SVR)
- ORACLE DataGuard Logical Standby 详解之:(一)逻辑Standby的准备工作
- ORACLE DataGuard Logical Standby 详解之:(二)逻辑Standby创建时的操作步骤
- 一文详解SQL 中的三值逻辑
- “冲浪”工业互联网,浪潮的实践逻辑
- 深入剖析Oracle数据库的逻辑结构,帮你掌握核心技术!(oracle逻辑结构)
- Oracle的逻辑判断能力如何表现?(oracle逻辑判断)
- 解放双手用Oracle的IF函数捷径实现复杂逻辑(oracle使用if函数)
- 基于Redis的运行逻辑探究(redis运行逻辑)
- 深入理解Redis的运行逻辑(redis运行逻辑)