refactor(渲染器): 移除产品编码和原材料编码的显示并优化线圈号显示逻辑
- 注释掉产品信息和原材料信息中的编码显示字段 - 将线圈号显示逻辑优化为优先使用当前线圈号
This commit is contained in:
@@ -28,11 +28,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-tag type="info" size="small" slot="reference">{{ coilNo }}</el-tag>
|
||||
<el-tag type="info" size="small" slot="reference">{{ currentCoilNo }}</el-tag>
|
||||
</el-popover>
|
||||
|
||||
<!-- 无coilId时仅显示标签 -->
|
||||
<el-tag v-else type="info" size="small">{{ coilNo }}</el-tag>
|
||||
<el-tag v-else type="info" size="small">{{ currentCoilNo }}</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -71,6 +71,9 @@ export default {
|
||||
manufacturer() {
|
||||
return this.coilInfo.product?.manufacturer || this.coilInfo.rawMaterial?.manufacturer || '-'
|
||||
},
|
||||
currentCoilNo() {
|
||||
return this.coilNo || this.coilInfo?.currentCoilNo || '-'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getCoilInfo() {
|
||||
|
||||
Reference in New Issue
Block a user