| | |
| | | item.separation = JSON.parse(item.separation) |
| | | }) |
| | | productTotal.value = res.data.title |
| | | productGlassTypeStore.GlassType =[res.data.title.typeId.substring(0,2),res.data.title.typeId] |
| | | if(res.data.title.typeId.length===2){ |
| | | productGlassTypeStore.GlassType =[res.data.title.typeId.substring(0,2)] |
| | | }else{ |
| | | productGlassTypeStore.GlassType =[res.data.title.typeId.substring(0,2),res.data.title.typeId] |
| | | } |
| | | |
| | | //BasicData.value = res.data |
| | | }else{ |
| | | ElMessage.warning(res.msg) |
| | |
| | | ElMessage.warning(t('product.msg.glassType')) |
| | | return |
| | | } |
| | | productTotal.value.typeId = productGlassTypeStore.GlassType[1] |
| | | if(productGlassTypeStore.GlassType[1]!==undefined){ |
| | | productTotal.value.typeId = productGlassTypeStore.GlassType[1] |
| | | }else{ |
| | | productTotal.value.typeId = productGlassTypeStore.GlassType[0] |
| | | } |
| | | |
| | | |
| | | let productName = "" |
| | | productDetailList.value.forEach(item =>{ |