| | |
| | | productTotal.value.creator !== userInfo.user.userName |
| | | & company.notChangeProduct |
| | | ){ |
| | | ElMessage.warning('创建人是:'+productTotal.value.creator+' 无法操作!') |
| | | ElMessage.warning(t('product.msg.msg1')+productTotal.value.creator+t('product.msg.msg2')) |
| | | return; |
| | | } |
| | | |
| | |
| | | //审核产品状态 |
| | | const updateProductState = (state) => { |
| | | if(productTotal.value.id!==null && productTotal.value.creator!==userInfo.user.userName && company.notChangeProduct){ |
| | | ElMessage.warning('创建人是:'+productTotal.value.creator+' 无法操作!') |
| | | ElMessage.warning(t('product.msg.msg1')+productTotal.value.creator+t('product.msg.msg2')) |
| | | return; |
| | | } |
| | | request.post(`/product/updateProductStateById/${productTotal.value.id}/${state}/${userInfo.user.userName}`).then((res) =>{ |