Browse Source

HL-5149制品子件报废申请,点击Bom后,可以删除不需要报废的Bom记录,可以修改Bom数量,其它字段不允许修改,生成的制品子件报废记录中保存修改后的Bom结果

hella_online_20240816
wangyufei 3 months ago
parent
commit
3a8bf33547
  1. 17
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  2. 2
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

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

@ -93,11 +93,13 @@
:isShowButton="false"
:isShowReduceButton="false"
:isShowFooterButtton="true"
:isShowReduceButtonSelection="true"
@handleDeleteTable="handleDeleteTableBom"
@tableSelectionDelete="tableSelectionDeleteBom"
:Butttondata="ButttondataBom"
@searchTableSuccess="searchTableBomSuccess"
:footButttondata="footButttondata"
@footButtonClick="buttonBaseClickBom"
@inputNumberChange="inputNumberChange"
/>
@ -283,6 +285,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
item.qty = item.bomQty * row.qty
// }
const obj = await banchBomPage(row.fromLocationCode, item)
console.log('obj',obj)
item.batch = obj.batch
})
if(isSave){
@ -291,6 +294,18 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
detailBomRef.value.open('create', row, null,'viewDetail')//
}
}
//
const handleDeleteTableBom = (item, index) => {
let itemIndex = detatableDataBom.tableList.indexOf(item)
if (itemIndex > -1) {
detatableDataBom.tableList.splice(itemIndex, 1)
}
}
const tableSelectionDeleteBom = (selection) => {
detatableDataBom.tableList = detatableDataBom.tableList.filter(item => !selection.includes(item))
}
//
const searchTableBomSuccess = (formField, searchField, val, formRef, type, row ) => {

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

@ -1349,7 +1349,7 @@ export const ProdcutscrapBomScrap = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量',
field: 'qty',
tableForm: {
disabled:true,
disabled:false,
type: 'InputNumber',
min: 0,
precision: 6

Loading…
Cancel
Save