Commit 794625c5 by cwq0219

商品

1 parent 723f869d
......@@ -144,6 +144,10 @@
z-index: 3000 !important;
}
.marketing .txt-red {
color: red;
}
.one-line-ellipsis {
display: -webkit-box;
overflow: hidden;
......
......@@ -125,7 +125,7 @@
<tr>
<td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
<td :style="{ width: specsWidth }">零售价(元)</td>
<td :style="{ width: specsWidth }">库存</td>
<td :style="{ width: specsWidth }">库存(件)</td>
</tr>
</tbody>
</table>
......@@ -134,9 +134,14 @@
<tr style="border-bottom: 1px solid rgb(235, 235, 235);" v-for="(subItem, subIndex) in nameToValSpecsList" :key="subIndex">
<td :style="{ width: specsWidth }" v-for="(n, idx) in subItem.specsValueList" :key="idx">{{ n }}</td>
<td :style="{ width: specsWidth }">
<el-input placeholder="零售价" v-model="subItem.retailPrice" ng-blur="handleBlur()"></el-input>
<!-- <p ng-show="(parentData.groupOrStore == 1) && (+formData.supplyPrice > +item.retailPrice) && submitted"
class="text-danger form-text">零售价要大于供货价</p> -->
<div v-if="routeInfo.groupOrStore == 1">
<el-input :class="{ 'border-red': (+editForm.supplyPrice > +subItem.retailPrice) && submitted }" placeholder="零售价" v-model="subItem.retailPrice" ng-blur="handleBlur()">
<el-tooltip v-show="(+editForm.supplyPrice > +subItem.retailPrice) && submitted" slot="suffix" class="item" effect="dark" content="零售价要大于供货价" placement="top">
<i class="el-icon-warning color-red"></i>
</el-tooltip>
</el-input>
</div>
<el-input v-else placeholder="零售价" v-model="subItem.retailPrice" ng-blur="handleBlur()"></el-input>
</td>
<td :style="{ width: specsWidth }">
<el-input placeholder="库存" v-model="subItem.stock"></el-input></td>
......@@ -220,6 +225,7 @@ export default {
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
submitted: false,
routeInfo: {
// 1-新增;2-编辑;3-查看
addOrEdit: 1,
......@@ -917,6 +923,7 @@ export default {
// 图片-描述-end
handleConfirm() {
var isJump = false
this.submitted = true
for (var i = 0; i < this.externalFormList.length; i++) {
if (isJump) {
return true
......@@ -1068,4 +1075,11 @@ export default {
width: 90px;
vertical-align: bottom;
}
.edit-pro .table-spesc .el-input--small.border-red .el-input__inner {
border: 1px solid #EB4E4E;
}
.color-red {
color: #EB4E4E;
cursor: pointer;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!