1.招标50%、比选50%、其他50%、询价45% 、竞争性谈判45%、单一来源谈判30%、内部采购30%;使用es6判断内容包含以上
时间: 2023-09-04 07:12:20 浏览: 72
你可以使用JavaScript中的字符串方法来判断内容是否包含以上的关键词。以下是一个使用ES6的例子:
```javascript
const content = "招标50%、比选50%、其他50%、询价45% 、竞争性谈判45%、单一来源谈判30%、内部采购30%";
const keywords = [
"招标50%",
"比选50%",
"其他50%",
"询价45%",
"竞争性谈判45%",
"单一来源谈判30%",
"内部采购30%"
];
const containsKeywords = keywords.some(keyword => content.includes(keyword));
console.log(containsKeywords); // true
```
在上面的例子中,我们先定义了要匹配的关键词数组`keywords`,然后使用`Array.prototype.some()`方法遍历关键词数组,判断内容`content`是否包含其中任意一个关键词。如果包含任意一个关键词,`containsKeywords`将为true,否则为false。
注意:这只是一个简单的示例,如果你的需求更复杂,可能需要更详细的匹配规则。
相关问题
统计字段机值: 需求计划,完成指标:99.11% 框架协议,完成指标:101.97% 公开采购,完成指标:100.56% 独加采购,完成指标:100% 招标采购,完成指标:78.6% 平台采购,完成指标:100% 采购资金,完成指标:140.42% 库存周转,完成指标:293.23% 根据这些信息在html中写出一个柱状图
以下是一个简单的 HTML 柱状图,其中使用了 CSS 样式来设置不同字段的颜色和高度。
```html
<!DOCTYPE html>
<html>
<head>
<title>采购完成指标柱状图</title>
<style>
.bar {
display: inline-block;
width: 50px;
height: 200px;
background-color: #4CAF50;
margin-right: 10px;
text-align: center;
color: white;
font-size: 16px;
font-weight: bold;
position: relative;
}
.bar span {
position: absolute;
bottom: -20px;
left: 0;
width: 100%;
text-align: center;
font-size: 14px;
font-weight: normal;
}
.demand-plan {
height: 198px;
background-color: #4286f4;
}
.framework-agreement {
height: 203px;
background-color: #ff9800;
}
.public-procurement {
height: 201px;
background-color: #9c27b0;
}
.single-procurement {
height: 200px;
background-color: #e91e63;
}
.tender-procurement {
height: 157px;
background-color: #f44336;
}
.platform-procurement {
height: 200px;
background-color: #00bcd4;
}
.procurement-funds {
height: 280px;
background-color: #8bc34a;
}
.inventory-turnover {
height: 586px;
background-color: #607d8b;
}
</style>
</head>
<body>
<div class="bar demand-plan">
<span>需求计划</span>
99.11%
</div>
<div class="bar framework-agreement">
<span>框架协议</span>
101.97%
</div>
<div class="bar public-procurement">
<span>公开采购</span>
100.56%
</div>
<div class="bar single-procurement">
<span>独加采购</span>
100%
</div>
<div class="bar tender-procurement">
<span>招标采购</span>
78.6%
</div>
<div class="bar platform-procurement">
<span>平台采购</span>
100%
</div>
<div class="bar procurement-funds">
<span>采购资金</span>
140.42%
</div>
<div class="bar inventory-turnover">
<span>库存周转</span>
293.23%
</div>
</body>
</html>
```
这个柱状图中每个条形都代表了一个字段的完成指标,高度表示完成率。不同字段使用了不同的颜色,并在下方显示了字段名称和完成率。你可以根据需要调整每个条形的颜色和高度。
帮我拟一篇建设工程咨询设计合同框架。其中发包人为两个: 昆明佳华广场酒店,昆明红塔大厦有限公司,项目产权比例为昆明佳华广场酒店【75.73%】,昆明红塔大厦有限公司【24.27%】,合用设计费按产权比例付。
建设工程咨询设计合同框架
一、合同双方
发包人:昆明佳华广场酒店、昆明红塔大厦有限公司
承包人:(待确定)
二、项目概况
项目名称:(待确定)
项目地点:(待确定)
项目产权比例:昆明佳华广场酒店【75.73%】,昆明红塔大厦有限公司【24.27%】
合用设计费按产权比例付。
三、合同内容
1. 项目范围
承包人应根据发包人的要求和相关法律法规,对项目进行全面的咨询设计,包括但不限于:工程可行性研究、初步设计、施工图设计、招标文件编制、施工现场监理等各个阶段的服务。
2. 设计任务书
发包人应向承包人提供详细的设计任务书,明确项目要求、技术标准、进度要求、费用等相关信息。承包人应根据任务书要求进行咨询设计,并保证设计方案符合相关法律法规和技术标准。
3. 设计文件
承包人应按照任务书要求,按时提交各个阶段的设计文件,包括但不限于初步设计报告、施工图设计、招标文件等。
4. 服务期限
承包人应按照任务书要求,保证服务期限,按时提交各个阶段的设计文件,并积极配合发包人的施工现场监理工作。
5. 费用支付
设计费用按产权比例进行支付,发包人应按时支付设计费用。
6. 合同变更
如需对合同内容进行修改,应经双方协商一致,并签署书面变更协议。
7. 合同解除
如因承包人原因导致项目无法完成或造成严重影响,发包人有权解除合同,并要求承包人承担相应经济损失。
四、合同签署
本合同一式两份,发包人和承包人各执一份,自双方签字盖章之日起生效。
发包人(盖章):昆明佳华广场酒店、昆明红塔大厦有限公司
承包人(盖章):(待确定)
签署日期:(待确定)
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)