|
|
@ -245,16 +245,19 @@ |
|
|
|
</div> |
|
|
|
` |
|
|
|
let str2 = `` |
|
|
|
if(item.haveInspectionRequest==='0'){ |
|
|
|
str2 =`<div class="left-item"> |
|
|
|
if (item.haveInspectionRequest === '0') { |
|
|
|
str2 = ` |
|
|
|
<div class="left-item"> |
|
|
|
<div style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</div> |
|
|
|
</div>` |
|
|
|
}else if(item.haveInspectionRequest==='2'){ |
|
|
|
str2 =`<div class="left-item"> |
|
|
|
} else if (item.haveInspectionRequest === '2') { |
|
|
|
str2 = ` |
|
|
|
<div class="left-item"> |
|
|
|
<div style="color:#ffab01;font-weight: bold;font-size: 15px;">没有检验方案</div> |
|
|
|
</div>` |
|
|
|
}else if(item.haveInspectionRequest==='3'){ |
|
|
|
str2 =` <div class="left-item"> |
|
|
|
} else if (item.haveInspectionRequest === '3') { |
|
|
|
str2 = ` |
|
|
|
<div class="left-item"> |
|
|
|
<div style="color:#258eff;font-weight: bold;font-size: 15px;">检验阶段不存在</div> |
|
|
|
</div>` |
|
|
|
} |
|
|
@ -262,12 +265,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
str += str1 + str2+ str3 |
|
|
|
str += str1 + str2 + str3 |
|
|
|
}) |
|
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
|
"mainBody", str); //替换物品代码 |
|
|
|
console.log(333,this.newHtmlContent1) |
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
@ -347,7 +350,8 @@ |
|
|
|
number: this.number |
|
|
|
}).then(async res1 => { |
|
|
|
this.data1 = res1.data |
|
|
|
this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item => item.sampleQty >0) |
|
|
|
this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item => item.sampleQty > |
|
|
|
0) |
|
|
|
if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0) { |
|
|
|
this.tabIndex = 2 |
|
|
|
} |
|
|
@ -391,6 +395,7 @@ |
|
|
|
flex: 1; |
|
|
|
border-bottom: 1px solid #b1b1b1; |
|
|
|
} |
|
|
|
|
|
|
|
.left-item { |
|
|
|
display: flex; |
|
|
|
border-top: 1px solid #b1b1b1; |
|
|
@ -398,10 +403,12 @@ |
|
|
|
border-right: 1px solid #b1b1b1; |
|
|
|
min-height: 30px; |
|
|
|
line-height: 30px; |
|
|
|
view{ |
|
|
|
|
|
|
|
view { |
|
|
|
padding: 4px 10px; |
|
|
|
} |
|
|
|
.label{ |
|
|
|
|
|
|
|
.label { |
|
|
|
width: 100px; |
|
|
|
padding: 4px 10px; |
|
|
|
border-right: 1px solid #b1b1b1; |
|
|
@ -428,4 +435,59 @@ |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
} |
|
|
|
.mb-kw { |
|
|
|
border-bottom: 1px solid #dedede; |
|
|
|
padding: 20rpx; |
|
|
|
font-size: 30rpx; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.mb-kw view { |
|
|
|
font-weight: bold; |
|
|
|
font-size: 46rpx; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo { |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-left { |
|
|
|
flex: 1 |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-left .mb-text { |
|
|
|
padding: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-left .mb-text:nth-child(1) { |
|
|
|
border-bottom: 1px solid #dedede; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-left .mb-text view { |
|
|
|
font-weight: bold; |
|
|
|
font-size: 32rpx; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-right { |
|
|
|
padding: 20rpx; |
|
|
|
width: 260rpx; |
|
|
|
border-left: 1px solid #dedede; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-right .mb-text { |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.mb-bo .mb-right .mb-text view { |
|
|
|
font-weight: bold; |
|
|
|
font-size: 40rpx; |
|
|
|
text-align: center; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |