diff --git a/src/views/xm/core/xmProduct/XmProductMng.vue b/src/views/xm/core/xmProduct/XmProductMng.vue index 926ee360..b4182276 100644 --- a/src/views/xm/core/xmProduct/XmProductMng.vue +++ b/src/views/xm/core/xmProduct/XmProductMng.vue @@ -607,7 +607,11 @@ import XmProductSelect from './XmProductSelect.vue'; this.xmProductCopy.isTpl=row.isTpl; this.copyToVisible=true; }, - onCopyToConfirm(){ + onCopyToConfirm(){ + if(!this.xmProductCopy.code){ + this.$notify({showClose: true, message: '产品代号不能为空', type: 'error' }); + return; + } this.load.add=true; copyTo(this.xmProductCopy).then(res=>{ this.load.add=false; diff --git a/src/views/xm/core/xmProduct/XmProductTplMng.vue b/src/views/xm/core/xmProduct/XmProductTplMng.vue index c535f7fc..e604d980 100644 --- a/src/views/xm/core/xmProduct/XmProductTplMng.vue +++ b/src/views/xm/core/xmProduct/XmProductTplMng.vue @@ -436,6 +436,11 @@ this.copyToVisible=true; }, onCopyToConfirm(){ + if(!this.xmProductCopy.code){ + this.$notify({showClose: true, message: '产品代号不能为空', type: 'error' }); + return; + } + this.load.add=true; copyTo(this.xmProductCopy).then(res=>{ this.load.add=false; diff --git a/src/views/xm/core/xmProject/XmProjectMng.vue b/src/views/xm/core/xmProject/XmProjectMng.vue index 5f830ac8..199ad89f 100644 --- a/src/views/xm/core/xmProject/XmProjectMng.vue +++ b/src/views/xm/core/xmProject/XmProjectMng.vue @@ -215,7 +215,7 @@ - +