Browse Source

itemcodes

hella_online_20240829
wangyufei 5 months ago
parent
commit
84dcab8f2b
  1. 6
      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

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

@ -162,9 +162,11 @@ 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)
})

10
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)
})

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

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

Loading…
Cancel
Save