Commit 03abbf0f by 王志慧

commit

1 parent fd046764
...@@ -6,9 +6,14 @@ ...@@ -6,9 +6,14 @@
<p class="edit-title">基础信息</p> <p class="edit-title">基础信息</p>
<el-form label-width="120px" :inline="true" class="context-wrap"> <el-form label-width="120px" :inline="true" class="context-wrap">
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> <el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item"> <span v-for="(subItem, subIndex) in item.rowList" :key="subIndex">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.isNum ? '0' + (subItem.suffix || '') : '-' }}</span> <template v-if="detailForm[subItem.name] != '-'">
</el-form-item> <el-form-item :label="subItem.label + ':'" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.isNum ? '0' + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</template>
</span>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
...@@ -153,7 +158,7 @@ export default { ...@@ -153,7 +158,7 @@ export default {
} }
if (this.detailForm.goodsCodeName != '太阳膜') { if (this.detailForm.goodsCodeName != '太阳膜') {
this.detailForm.warrantyPeriod = '-' this.detailForm.warrantyPeriod = '-'
this.detailForm.giftCost = '-' this.detailForm.giftCost = '-'
} else { } else {
this.detailForm.warrantyPeriod = (this.detailForm.warrantyPeriod || 0) + '年' this.detailForm.warrantyPeriod = (this.detailForm.warrantyPeriod || 0) + '年'
} }
...@@ -198,17 +203,17 @@ export default { ...@@ -198,17 +203,17 @@ export default {
margin-top: 10px; margin-top: 10px;
margin-right: 20px; margin-right: 20px;
} }
.edit-title{ .edit-title {
height: 56px; height: 56px;
background: #FFFFFF; background: #ffffff;
line-height: 56px; line-height: 56px;
border-bottom:1px solid #F0F1F7; border-bottom: 1px solid #f0f1f7;
padding-left:20px; padding-left: 20px;
} }
.bgf{ .bgf {
background: #FFFFFF; background: #ffffff;
} }
.context-wrap{ .context-wrap {
padding:20px; padding: 20px;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!