|
@@ -172,14 +172,7 @@
|
|
|
/>
|
|
|
<el-table
|
|
|
ref="goodsTable"
|
|
|
- :data="
|
|
|
- goodsList.filter(
|
|
|
- data =>
|
|
|
- !searchGoods ||
|
|
|
- data.goodsName.toLowerCase().includes(searchGoods.toLowerCase()) ||
|
|
|
- data.goodsSpecification.toLowerCase().includes(searchGoods.toLowerCase())
|
|
|
- )
|
|
|
- "
|
|
|
+ :data="showgoodsList"
|
|
|
:row-key="getRowKeys"
|
|
|
height="400"
|
|
|
size="mini"
|
|
@@ -262,6 +255,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ showgoodsList() {
|
|
|
+ return (
|
|
|
+ this?.goodsList?.filter(
|
|
|
+ data =>
|
|
|
+ !this.searchGoods ||
|
|
|
+ !!~data.goodsName.indexOf(this.searchGoods) ||
|
|
|
+ !!~data.goodsSpecification.indexOf(this.searchGoods)
|
|
|
+ ) || []
|
|
|
+ )
|
|
|
+ },
|
|
|
formDisabled() {
|
|
|
return this.inputParam.openType === 'view' || this.dataForm.purchaseId !== ''
|
|
|
},
|