imeik-bizui 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="item-view" :class="{ 'disabled-color': disabled }">
3
3
  <div>
4
- <el-tag>{{ customData.belongCompanyName }}</el-tag>
4
+ <el-tag color="#E7F8FB" style="border-color: #B7EDFC; color: #01A0E2;">{{ customData.belongCompanyName }}</el-tag>
5
5
  <el-tag v-if="showAuthorization" effect="plain" style="margin-left: 12px">授权发货</el-tag>
6
6
  <el-tag v-if="showDealer" effect="plain" style="margin-left: 12px">经销商</el-tag>
7
7
  <el-tag v-if="showMedical" effect="plain" style="margin-left: 12px">医疗机构</el-tag>
@@ -14,8 +14,8 @@
14
14
  <div v-if="!showSelect" class="customerDetails">
15
15
  <CustomShow v-if="selectedItem && selectedItem.accountUid" :custom-data="selectedItem" :detail-show="true" :show-list="showList"></CustomShow>
16
16
  <div v-else>-</div>
17
- <div v-if="!isView" class="button">
18
- <el-button type="text" @click="clearInfo">
17
+ <div v-if="!isView" class="button-view">
18
+ <el-button type="text" style="padding: 0; margin: 0" @click="clearInfo">
19
19
  <img src="https://udstatic.imeik.com/pcUploads/1738999803093/delete%402x.png" class="delect-img" @click="clearInfo" />
20
20
  </el-button>
21
21
  </div>
@@ -161,13 +161,20 @@ export default {
161
161
  background: #f2f5fa;
162
162
  padding: 3px 16px;
163
163
  border-radius: 3px;
164
- .button {
165
- width: 40px;
164
+ .button-view {
165
+ width: 24px;
166
+ height: 24px;
166
167
  text-align: center;
167
168
  position: absolute;
168
169
  right: 0;
169
170
  top: 0;
171
+ background: rgba(50,133,246,0.08);
172
+ border-radius: 0px 4px 0px 8px;
173
+ display: flex;
174
+ align-items: center;
175
+ justify-content: center;
170
176
  }
177
+
171
178
  }
172
179
  .text-xs {
173
180
  font-size: 12px;
@@ -614,7 +614,7 @@ export default {
614
614
  },
615
615
  // 检查木方案超不超
616
616
  checkQuantity(row) {
617
- if (!row.materialQuantity || !row.materialSchemeRemainingQuantity) {
617
+ if (!row.materialQuantity || [null, undefined].includes(row.materialSchemeRemainingQuantity)) {
618
618
  this.$set(row, 'overSchemeFlag', '0')
619
619
  this.$set(row, 'overSchemeExplain', '')
620
620
  return false
@@ -134,6 +134,7 @@ export default {
134
134
  this.onUpdate()
135
135
  },
136
136
  handleValidate() {
137
+ let showMessage = true
137
138
  this.tableData.forEach((item) => {
138
139
  let res = true
139
140
  if (item.materialQuantity) {
@@ -145,19 +146,20 @@ export default {
145
146
  }
146
147
  }
147
148
  if (!item.materialQuantity) {
148
- res && this.$message.warning('请检查物料数量')
149
+ (res && showMessage) && this.$message.warning('请检查物料数量')
149
150
  res = false
150
151
  } else if (this.tableItemArr.includes('materialBatchInfo') && !this.attrs.approvalInputBatch && item.materialIsSpecifiedBatch === '1' && !item.materialBatch) {
151
- res && this.$message.warning('请检查批次号信息')
152
+ (res && showMessage) && this.$message.warning('请检查批次号信息')
152
153
  res = false
153
154
  } else if (!item.materialReceivingContact || !item.materialReceivingContactNumber || !item.materialReceivingAddress) {
154
- res && this.$message.warning('请检查地址信息')
155
+ (res && showMessage) && this.$message.warning('请检查地址信息')
155
156
  res = false
156
157
  } else if (item.overSchemeFlag === '1' && !item.overSchemeExplain) {
157
- res && this.$message.warning('请检查超母方案说明')
158
+ (res && showMessage) && this.$message.warning('请检查超母方案说明')
158
159
  res = false
159
160
  }
160
161
  item.valid = res
162
+ showMessage = res
161
163
  })
162
164
  this.onUpdate()
163
165
  },