|
@@ -203,7 +203,7 @@ export default {
|
|
|
.find(item => item.id == val)
|
|
|
row[column.columnAttributes.propName] = data?.goodsName
|
|
|
this.getGoodsDetl(data, res => {
|
|
|
- if (this.formDialogType == 0) {
|
|
|
+ if (!!~[0,1].indexOf(this.formDialogType)) {
|
|
|
row['specsName'] = res?.specsName
|
|
|
row['unit'] = res?.unit
|
|
|
row['stockQty'] = res?.stockQty
|
|
@@ -311,7 +311,7 @@ export default {
|
|
|
)
|
|
|
.find(item => item.id == row.goodsMaterialId),
|
|
|
res => {
|
|
|
- if (this.formDialogType == 0) {
|
|
|
+ if (!!~[0,1].indexOf(this.formDialogType)) {
|
|
|
row['insideQty'] =
|
|
|
res.items
|
|
|
.filter(item => item.type === 'INSIDE')
|