Browse Source

bom按钮接口拆分

hella_online_20240816
wangyufei 4 months ago
parent
commit
23bcc698c4
  1. 11
      src/api/wms/bomDismantle/index.ts
  2. 3
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

11
src/api/wms/bomDismantle/index.ts

@ -16,8 +16,17 @@ export const getProductscrapBomDismantlePage = async (params) => {
}
export const getProductscrapBomRecordPage = async (params) => {
export const getProductscrapBomRecordPage = async (params1) => {
console.log('getProductscrapBomRecordPage',params1)
let params = {...params1}
if(params.isRecord){
delete params.isRecord
return await request.get({ url: `/wms/productscrap-request-main/bomRecordPage`, params })
}else{
delete params.isRecord
return await request.get({ url: `/wms/productscrap-request-main/bomPage`, params })
}
}

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

@ -169,6 +169,7 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT
getListApi: BomDismantleApi.getProductscrapBomRecordPage
})
const { getList:getDetailListBom } = detatableMethodsBom
detatableDataBom.params.isRecord = false
/** bom 列表 表单 按钮 */
const ButttondataBom = ref([
defaultButtons.formSaveBtn(null), //
@ -255,6 +256,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
detatableDataBom.params.bomVersion = row.bomVersion
detailQty.value = row.qty
bomModelVisible.value = true
detatableDataBom.params.isRecord = false
await getDetailListBom()
console.log(row.fromLocationCode);
detatableDataBom.tableList.forEach(async (item) => {
@ -351,6 +353,7 @@ const tableFormButton = async (val , row) => {
}
rowId.value = row.masterId
detailQty.value = row.qty
detatableDataBom.params.isRecord = true
await getDetailListBom()
//
isShowFooterButtton.value = false

Loading…
Cancel
Save