imeik-bizui 1.2.2 → 1.2.4
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.
- package/dist/bizui/src/FieldMaterialSelect/components/ProductList.vue +6 -2
- package/dist/bizui/src/FieldMaterialSelect/index.vue +6 -4
- package/dist/imeik-bizui.common.js +113 -104
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +113 -104
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +3 -3
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
></el-input-number>
|
|
35
35
|
<p v-show="!row.materialQuantity && row.valid === false" class="error-message">请检查物料数量</p>
|
|
36
36
|
</div>
|
|
37
|
-
<p v-else class="materialName" style="margin-top: 0
|
|
37
|
+
<p v-else class="materialName" style="margin-top: 0">{{ row.materialQuantity || '-' }}</p>
|
|
38
38
|
</div>
|
|
39
39
|
<p class="materialSubName" style="margin-top: 8px">规格型号:{{ row.materialModel || '-' }}</p>
|
|
40
40
|
<p class="materialSubName">规格代码:{{ row.materialSpecCode || '-' }}</p>
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</div>
|
|
61
61
|
</template>
|
|
62
62
|
<template slot="materialSchemeInfo" slot-scope="{ row }">
|
|
63
|
-
<el-select v-if="!isView" v-model="row.materialAssociatedMotherSchemeCode" clearable filterable placeholder="请选择" @change="(val) => handleChangeScheme(val, row)">
|
|
63
|
+
<el-select v-if="!isView" v-model="row.materialAssociatedMotherSchemeCode" clearable filterable placeholder="请选择" @change="(val) => handleChangeScheme(val, row)" @clear="(val) => clearScheme(row)">
|
|
64
64
|
<el-option
|
|
65
65
|
v-for="item in row.motherSchemeList || []"
|
|
66
66
|
:key="item.materialAssociatedMotherSchemeCode"
|
|
@@ -628,6 +628,10 @@ export default {
|
|
|
628
628
|
return false
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
|
+
clearScheme(row) {
|
|
632
|
+
row.materialSchemeRemainingQuantity = 0
|
|
633
|
+
row.materialSchemeTotalQuantity = 0
|
|
634
|
+
},
|
|
631
635
|
formatDataDeliveryMode(deliveryMode) {
|
|
632
636
|
switch (deliveryMode) {
|
|
633
637
|
case '1':
|
|
@@ -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
|
},
|