提交 47e82fc0 编写于 作者: shuang.zhou's avatar shuang.zhou

关联项目名称

上级 1274aebe
...@@ -1158,14 +1158,15 @@ ...@@ -1158,14 +1158,15 @@
this.formData.buyLimitDtoList = this.buyLimitDtoList; this.formData.buyLimitDtoList = this.buyLimitDtoList;
this.isgoodsImages = this.formData.goodsImages.length == 0 ? false :true; this.isgoodsImages = this.formData.goodsImages.length == 0 ? false :true;
this.isSpecification_url = this.formData.goodsDetailImages.length == 0 ? false :true; this.isSpecification_url = this.formData.goodsDetailImages.length == 0 ? false :true;
// 判断是否只选择了项目-合同名称的其中一项
const {cooperationProjectId, contractId} = this.formData3;
if (!cooperationProjectId) { if (!cooperationProjectId) {
return this.$message({ return this.$message({
message: '请关联项目名称', message: '请关联项目名称',
type: 'error' type: 'error'
}); });
} }
// 判断是否只选择了项目-合同名称的其中一项
const {cooperationProjectId, contractId} = this.formData3;
if ((cooperationProjectId && !contractId) || (!cooperationProjectId && contractId)) { if ((cooperationProjectId && !contractId) || (!cooperationProjectId && contractId)) {
return this.$message({ return this.$message({
message: '请选择项目-合同名称', message: '请选择项目-合同名称',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册