提交 5349b118 编写于 作者: shuang.zhou's avatar shuang.zhou

Merge branch 'feature/med-goods-zs' into 'testing/3.29.0'

项目名称改为必填项

See merge request com.pica.cloud.education.frontend/pica.cloud.web-education-admin!453
......@@ -45,6 +45,13 @@
color: #f56c6c;
margin-right: 4px;
}
.project-req {
.el-form-item__label::before {
content: "*";
color: #f56c6c;
margin-right: 4px;
}
}
.choice-goods {
.el-form-item__label::before {
content: "*";
......
......@@ -34,7 +34,7 @@
@change="searchCategoryChange"
/>
</el-form-item>
<el-form-item label="项目-合同名称" prop="cooperationProjectId">
<el-form-item label="项目-合同名称" prop="cooperationProjectId" class="project-req">
<el-select
v-model="formData3.cooperationProjectId"
placeholder="请选择"
......@@ -1158,6 +1158,12 @@
this.formData.buyLimitDtoList = this.buyLimitDtoList;
this.isgoodsImages = this.formData.goodsImages.length == 0 ? false :true;
this.isSpecification_url = this.formData.goodsDetailImages.length == 0 ? false :true;
if (!cooperationProjectId) {
return this.$message({
message: '请关联项目名称',
type: 'error'
});
}
// 判断是否只选择了项目-合同名称的其中一项
const {cooperationProjectId, contractId} = this.formData3;
if ((cooperationProjectId && !contractId) || (!cooperationProjectId && contractId)) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册