Browse Source

itemcodes

hella_online_20240829
wangyufei 5 months ago
parent
commit
84dcab8f2b
  1. 8
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  2. 10
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  3. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

8
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -162,10 +162,12 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['itemCode'] = val[0]['itemCode'] setV['itemCode'] = val[0]['itemCode']
setV['uom'] = val[0]['uom'] 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 => { StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => {
setV['singlePrice'] = res.price if(res&&res.length>0){
}) setV['singlePrice'] = res[0].price
}
})
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

10
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -310,11 +310,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['bomVersion'] = '' row['bomVersion'] = ''
row['childList'] = [] row['childList'] = []
// //
let param = {'itemCode':val[0]['itemCode'] as string} let param = {'itemCodes':val[0]['itemCode'] as string}
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => {
console.log(res) console.log(res)
row['uom'] = res.uom if(res&&res.length>0){
row['singlePrice'] = res.price row['uom'] = res[0].uom
row['singlePrice'] = res[0].price
}
}) })
// BOM // BOM
const param1 = { const param1 = {
@ -359,7 +361,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['bomVersion'] = '' setV['bomVersion'] = ''
setV['childList'] = [] setV['childList'] = []
// //
let param = {'itemCode':val[0]['itemCode'] as string} let param = {'itemCodes':val[0]['itemCode'] as string}
StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => { StdcostpriceApi.queryStdcostpriceByItemCode(param).then(res => {
console.log(res) console.log(res)
}) })

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -1281,6 +1281,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
form: { form: {
component: 'InputNumber',
componentProps: { componentProps: {
disabled: true, disabled: true,
min: 0, min: 0,
@ -1288,6 +1289,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
tableForm:{ tableForm:{
type: 'InputNumber',
disabled: true, disabled: true,
min: 0, min: 0,
precision: 2, precision: 2,

Loading…
Cancel
Save