diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue index 29df5e05e..62613ab63 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue @@ -162,10 +162,12 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { setV['itemCode'] = val[0]['itemCode'] setV['uom'] = val[0]['uom'] // 查询标准价格 - let param = {'itemCode':val[0]['itemCode'] as string} + let param = {'itemCodes':val[0]['itemCode'] as string} StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { - setV['singlePrice'] = res.price - }) + if(res&&res.length>0){ + setV['singlePrice'] = res[0].price + } + }) formRef.setValues(setV) }) } diff --git a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue index af5f92bc1..7258d22f8 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue @@ -310,11 +310,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['bomVersion'] = '' row['childList'] = [] // 查询标准价格 - let param = {'itemCode':val[0]['itemCode'] as string} + let param = {'itemCodes':val[0]['itemCode'] as string} StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { console.log(res) - row['uom'] = res.uom - row['singlePrice'] = res.price + if(res&&res.length>0){ + row['uom'] = res[0].uom + row['singlePrice'] = res[0].price + } }) // 查看BOM版本 const param1 = { @@ -359,7 +361,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { setV['bomVersion'] = '' setV['childList'] = [] // 查询标准价格 - let param = {'itemCode':val[0]['itemCode'] as string} + let param = {'itemCodes':val[0]['itemCode'] as string} StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { console.log(res) }) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts index 7c37b8505..fb8172e03 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts @@ -1281,6 +1281,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive