# 采购常见问题手册

来源快照：`result_data_new_260518.json`

- 来源 ID：`1182820812282339365`
- 模块：采购管理
- 目录：采购管理常见问题
- space ID：`1157959398195183695`
- 原文链接：未提供
- 产品基线：未提供

## 正文

**采购常见问题手册**

 

# **1.采购菜单修改后无效，执行下以下脚本：**

 

其中应用id如何获取（如图,随机找一个当前应用的实体表单）：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821035527577632&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

租户key获取方式:

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821035457200161&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

执行脚本：

update t_cus_app_sys_personal set delete_type=3 where tenant_key='租户key' and app_id=#应用id;

 

update t_cus_app_menu set delete_type=3 where tenant_key='租户key' and nav_id in(select id from t_cus_app_navigation where app_id=#应用id);

 

update t_cus_app_menu_custom set delete_type=3 WHERE tenant_key='租户key' and menu_id in (SELECT id FROM t_cus_app_menu where nav_id in (select id from t_cus_app_navigation where app_id=#应用id));

**执行完脚本之后，后台随便找个菜单重新点击下保存。**

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

# **2.去除采购门户上的AI悬浮按钮（如图）：**

** **

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821031215833093&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

 

操作步骤：如图

1.

进入ecode页面

2.

开启系统项目开关

3.

找到采购开发文件夹—>京桥通SRM采购管理->最下面有个entry.js文件

将其中的两行注释掉

//import "./采购需求Ai按钮/entry.js";

//import "./采购智能新建/entry32.js";

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821018414817288&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821014178570242&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821031170875413&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

 

# **3.采购门户数据源报错问题：**

问题原因：当前环境被导入过多次，导致竞价应用和招标应用的表名没有替换，按照下面文档操作。

[ _https://www.e-cology.com.cn/sp/doc/docShare/1163203841203970049?tenantKey=t7akvdnf84_](https://www.e-cology.com.cn/sp/doc/docShare/1163203841203970049?tenantKey=t7akvdnf84)

 

 

 

4.

# e10中先发询价单(公开)，供应商再注册，此时这个供应商进来看不到询价单（招标、竞价也是相同处理方式）

问题原因：询价单的归档权限0301基线之前的不支持配置条件。现在已经支持，需要新增如下配置

新增：其中5已存在，修改即可，无需新增，外部所有人权限新增下。需要重构权限。

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821026971197467&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

删除之前的配置：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821018416390146&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821022664826887&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821014113034246&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

 

5.

# e10中询价单变更日志点击后为空白

问题原因：0301基线侧滑出正常，0601基线需要改成新窗口展示。

按照下图配置即可。

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821022610694145&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821026850742282&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821018453745674&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821026892431360&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

6.

# 采购页面右侧比价助手关闭

取消页面url中配置的wea_com_page_modal = true  参数，比较助手自动消失，如下图红框部分：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821039832506371&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

** **

7.

# 采购页面右侧配置比价助手

注意：比价助手弹窗配置只支持新窗口，其它配置不支持（比如：侧滑，弹出窗口等）  
比价助手配置至建模新建页面、流程新建页面配置步骤，如下：

1、

模块页面JS代码块配置比价助手代码块内容，如下：

var iframeUrl = `/sp/ebdpage/view/1010646701549740034?caigou_pfys=true`

var popoverName = "比价助手"

var modalrName = '比价助手'

var modalrWidth = '60vw' // 宽度占比60%

var modalrHeight = '100vh' // 高度占比100%

var wlUrl = iframeUrl+"&wlmc=&wlbm=";

window.pageModalOut(wlUrl,popoverName,modalrName,modalrWidth,modalrHeight)

 

截图样例：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821022659452946&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)  
2、按钮触发页面配置比价助手标识，如下：

wea_com_page_modal = true  

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821039832506371&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

配置完成后url上能看到wea_com_page_modal = true 参数即表示配置成功，如图：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821039832506368&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

** **

注意：比价助手弹窗配置只支持新窗口，其它配置不支持（比如：侧滑，弹出窗口等）  
比价助手配置至建模新建页面、流程新建页面配置步骤，如下：

1、

模块页面JS代码块配置比价助手代码块内容，如下：

var iframeUrl = `/sp/ebdpage/view/1010646701549740034?caigou_pfys=true`

var popoverName = "比价助手"

var modalrName = '比价助手'

var modalrWidth = '60vw' // 宽度占比60%

var modalrHeight = '100vh' // 高度占比100%

var wlUrl = iframeUrl+"&wlmc=&wlbm=";

window.pageModalOut(wlUrl,popoverName,modalrName,modalrWidth,modalrHeight)

 

截图样例：

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821851618680833&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

2、按钮触发页面配置比价助手标识，如下：

wea_com_page_modal = true 

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821920237240328&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

8.

# 采购步骤条展示问题 （询价，竞价，招标步骤条异常）如下图

**问题原因：基线升级到0701基线，0801基线 后，url上的原本有的openSourceId参数消失了导致步骤条上无法取到数据id导致的异常，需要修改步骤条上取值参数。修改方式按照以下步骤操作。**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821035587870762&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)**修改范围：竞价应用，招标应用，采购管理应用三个应用中的步骤条都需要修改(如下图)**

**举例：询价步骤条**

**步骤条路径：采购管理- >页面->询价单步骤条**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821026971197456&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D) ![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821035527577638&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

** **

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821027056656393&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**这里需要先删除下显示条件配置，删除后步骤条上才会显示资格预审节点，才可以修改其中配置的自定义页面的url**

**修改url的配置后需要还原下这个条件。**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821022610694173&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821018453745668&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**右侧url中参数需改参考下图：替换{}中的openSourceId为xydid**

**4个节点中右侧自定义页面中的url都需要修改下。**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821031170875396&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**改完之后要还原下资格预审的显示条件：按照下图操作**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821026850742285&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821039923208197&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821035587870747&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**确认后需要保存下!!**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821031343235080&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**其次需要把xydid传值到url上：如下图**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821039923208201&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821031170875421&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821018414817301&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821018414817306&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821031179010064&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**注意：这个三个查询列表都需要配置这个xydid的传参**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821039923208201&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

** **

**以上配置的是询价单的步骤条异常问题，竞价和招投标步骤条异常也是相同的配置方式！！！**

**其次还有步骤条按钮上也用到了openSourceId来取值，需要改下：具体位置看以下截图**

**关闭按钮，过程控制，变更日志，比价助手**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821022610694166&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

** **

9.

# 采购寻源核价时，整单中标，会把已经中标的在未中标中也现实出来

**例如这种情况：**

**问题原因：之前正常，升级基线后导致，原本接口返回的id是小写，升级基线后返回的id变成ID大写，导致js中无法取到值了**

**按照下图找下代码块，兼容下js**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821014113034244&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1182821022610694157&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

** **
