Browse Source

BOM版本字段默认选中版本1,批次、单价、金额、来源库位字段隐藏或删除。

hella_online_20240829
zhang_li 4 months ago
parent
commit
c3502f85a0
  1. 21
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  2. 13
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

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

@ -116,6 +116,7 @@ import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDeta
import * as StdcostpriceApi from '@/api/wms/stdcostprice'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as BomDismantleApi from "@/api/wms/bomDismantle"
import * as BomApi from "@/api/wms/bom";
//
defineOptions({ name: 'ProductscrapRequestMain' })
@ -314,7 +315,25 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
console.log(res)
row['uom'] = res.uom
row['singlePrice'] = res.price
})
})
// BOM
console.log(formRef.formModel)
const param1 = {
productItemCode: val[0]['itemCode'],
available: 'TRUE',
pageSize: 20,
pageNo: 1,
sort: '',
by: 'ASC',
}
BomApi.getBomPage(param1).then(res => {
console.log(res)
if(res?.list?.length>0){
row['bomVersion'] = res.list[0].version
}
// row['singlePrice'] = res.price
})
}else if(formField == 'bomVersion'){
row['bomVersion'] = val[0]['version']
}

13
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -740,7 +740,8 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150,
},
isForm: false,
isTable:true,
isTable:false,
isTableForm:false,
},
{
label: '报废数量',
@ -802,7 +803,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
type: 'InputNumber',
min: 0,
precision: 6
}
},
isTable:false,
isTableForm:false,
},
{
label: '金额',
@ -825,6 +828,8 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
min: 0,
precision: 6,
},
isTable:false,
isTableForm:false,
},
{
label: '来源库位',
@ -840,7 +845,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled: true
}
}
},
isTable:false,
isTableForm:false,
},
{

Loading…
Cancel
Save