|
@ -73,12 +73,18 @@ |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
nextTick(async () => { |
|
|
nextTick(async () => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
|
|
|
console.log(formField); |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
row[formField] = val[0][searchField] |
|
|
if (formField == 'itemNumber') { |
|
|
row['itemNumber'] = val[0]['itemNumber'] |
|
|
row[formField] = val[0][searchField] |
|
|
row['isRadeIn'] = val[0]['isRadeIn'] |
|
|
row['itemNumber'] = val[0]['itemNumber'] |
|
|
row['currentQty'] = val[0]['qty'] |
|
|
row['isRadeIn'] = val[0]['isInAccount'] |
|
|
row['available'] = val[0]['available'] |
|
|
row['currentQty'] = val[0]['qty'] |
|
|
|
|
|
row['available'] = val[0]['available'] |
|
|
|
|
|
} |
|
|
|
|
|
if (formField == 'deviceNumber') { |
|
|
|
|
|
row['deviceNumber'] = val[0]['number'] |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|