|
@@ -252,7 +252,7 @@ export default {
|
|
|
}
|
|
|
this.$nextTick(this.jiaoyan)
|
|
|
}}>
|
|
|
- {this.materialNormList.map((item, index_) => <el-option key={index_} label={item.goodsName} value={item.goodsId}></el-option>)}
|
|
|
+ {this.materialNormList.filter((item) => !~[...this.formData.items.map(val => val.goodsId).filter(val => val != row.goodsId)].indexOf(item.goodsId)).map((item, index_) => <el-option key={index_} label={item.goodsName} value={item.goodsId}></el-option>)}
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -301,7 +301,7 @@ export default {
|
|
|
}
|
|
|
this.$nextTick(this.jiaoyan)
|
|
|
}}>
|
|
|
- {this.peijianList.map((item, index_) => <el-option key={index_} label={item.goodsName} value={item.goodsId}></el-option>)}
|
|
|
+ {this.peijianList.filter((item) => !~[...this.formData.items.map(val => val.goodsId).filter(val => val != row.goodsId)].indexOf(item.goodsId)).map((item, index_) => <el-option key={index_} label={item.goodsName} value={item.goodsId}></el-option>)}
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -656,7 +656,7 @@ export default {
|
|
|
if (data) {
|
|
|
websitPurchaseInDetail({ purchaseId: data.purchaseId }).then(res => {
|
|
|
Object.assign(this.formData, {
|
|
|
- items: res.data.items.map((item,index) => ({
|
|
|
+ items: res.data.items.map((item, index) => ({
|
|
|
...item,
|
|
|
retQty: "",
|
|
|
retValue: "",
|