|
|
@ -128,17 +128,19 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
//row['uom'] = val[0]['uom'] |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
SupplieritemApi.getSupplieritemPage({ |
|
|
|
supplierCode: val[0]['supplierCode'], |
|
|
|
itemCode: val[0]['itemCode'] |
|
|
|
}).then(res => { |
|
|
|
if(res?.list[0]?.settlementType == 'ONLINE'){ |
|
|
|
setV['issueRecordNumber'] = val[0]['number'] |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
// SupplieritemApi.getSupplieritemPage({ |
|
|
|
// supplierCode: val[0]['supplierCode'], |
|
|
|
// itemCode: val[0]['itemCode'] |
|
|
|
// }).then(res => { |
|
|
|
// if(res?.list[0]?.settlementType == 'ONLINE'){ |
|
|
|
// setV['issueRecordNumber'] = val[0]['number'] |
|
|
|
// formRef.setValues(setV) |
|
|
|
// } else{ |
|
|
|
// message.error('找不到对应的结算方式') |
|
|
|
// } |
|
|
|
// }) |
|
|
|
formRef.setValues(setV) |
|
|
|
} else{ |
|
|
|
message.error('找不到对应的结算方式') |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|