Browse Source

字体颜色加深

价格梯度新增无梯度按钮
master
qiankanghui 3 days ago
parent
commit
3475978431
  1. 6
      src/views/modules/npcIqc/com_npcIqcDetail.vue
  2. 2
      src/views/modules/order/com_poOrderDetail.vue
  3. 8
      src/views/modules/quality/com_qualityIssueDetail.vue
  4. 8
      src/views/modules/srmPart/com_part_BasicInfo.vue
  5. 26
      src/views/modules/supplier/supplierPartMoqPrice.vue

6
src/views/modules/npcIqc/com_npcIqcDetail.vue

@ -276,11 +276,11 @@ export default {
}
/* disabled */
::v-deep .el-input.is-disabled .el-input__inner,
::v-deep .el-textarea.is-disabled .el-textarea__inner {
/deep/ .el-input.is-disabled .el-input__inner,
/deep/ .el-textarea.is-disabled .el-textarea__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #606266;
color: #303133;
}
/* ===== 问题描述区域 ===== */

2
src/views/modules/order/com_poOrderDetail.vue

@ -384,7 +384,7 @@ export default {
/deep/ .el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #c0c4cc;
color: #303133;
cursor: not-allowed;
}

8
src/views/modules/quality/com_qualityIssueDetail.vue

@ -358,9 +358,9 @@ export default {
/* =======================
Disabled
======================= */
::v-deep .el-input.is-disabled .el-input__inner {
/deep/ .el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
color: #909399;
color: #303133;
border-color: #e4e7ed;
}
@ -410,9 +410,9 @@ export default {
margin-bottom: 0;
}
::v-deep .el-textarea.is-disabled .el-textarea__inner {
/deep/ .el-textarea.is-disabled .el-textarea__inner {
background-color: #f5f7fa;
color: #606266;
color: #303133;
}
/deep/ .el-textarea {
display: block;

8
src/views/modules/srmPart/com_part_BasicInfo.vue

@ -294,4 +294,12 @@ export default {
.part-form {
width: 100%;
}
// disabled 状态样式 - 文字加深便于阅读,与验货基本信息一致
/deep/ .el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #303133;
cursor: not-allowed;
}
</style>

26
src/views/modules/supplier/supplierPartMoqPrice.vue

@ -364,6 +364,7 @@
<el-form-item label=" ">
<div class="tier-action-buttons">
<el-button type="primary" class="customer-bun-min" @click="addTierRow">新增梯度</el-button>
<el-button type="primary" class="customer-bun-min" @click="setNoTier">无梯度</el-button>
<el-upload
ref="tierUpload"
action="#"
@ -1085,7 +1086,30 @@ export default {
this.tierDialogVisible = true
},
addTierRow () {
this.tierForm.tierPriceList.push(this.buildEmptyTierRow())
const rows = this.tierForm.tierPriceList
// 新增梯度前需判断上一条结束数量不等于 0:未填写有效结束数量时阻止新增
if (rows.length) {
const lastQtyEnd = this.normalizeNumberValue(rows[rows.length - 1].qtyEnd, 0)
if (lastQtyEnd === 0) {
this.$message.warning('请先填写上一条梯度的结束数量')
return
}
// 新梯度的开始数量 = 上一条结束数量 + 1
const newRow = this.buildEmptyTierRow()
newRow.qtyStart = lastQtyEnd + 1
rows.push(newRow)
} else {
rows.push(this.buildEmptyTierRow())
}
},
setNoTier () {
const rows = this.tierForm.tierPriceList || []
// 无梯度:仅允许存在一条价格梯度,将其结束数量置为上不封顶(1000000)
if (rows.length !== 1) {
this.$message.warning('当前产品有价格梯度,请删除多余价格信息')
return
}
rows[0].qtyEnd = 1000000
},
removeTierRow (index) {
this.tierForm.tierPriceList.splice(index, 1)

Loading…
Cancel
Save