Browse Source

配合竟松换接口

hella_online_20240816
wangyufei 3 months ago
parent
commit
24cd6eb304
  1. 7
      src/api/wms/bomDismantle/index.ts
  2. 24
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

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

@ -15,6 +15,13 @@ export const getProductscrapBomDismantlePage = async (params) => {
return await request.get({ url: `/wms/productscrap-request-main/bomPage`, params }) return await request.get({ url: `/wms/productscrap-request-main/bomPage`, params })
} }
export const getProductscrapBomRecordPage = async (params) => {
return await request.get({ url: `/wms/productscrap-request-main/bomRecordPage`, params })
}
// 查询制品报废申请子列表 // 查询制品报废申请子列表
export const getProductscrapBomDismantleRecordPage = async (params) => { export const getProductscrapBomDismantleRecordPage = async (params) => {
return await request.get({ url: `/wms/productscrap-record-main/bomPage`, params }) return await request.get({ url: `/wms/productscrap-record-main/bomPage`, params })

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

@ -92,8 +92,8 @@
:isBusiness="true" :isBusiness="true"
:isShowButton="false" :isShowButton="false"
:isShowReduceButton="false" :isShowReduceButton="false"
:isShowFooterButtton="true" :isShowFooterButtton="isShowFooterButtton"
:isShowReduceButtonSelection="true" :isShowReduceButtonSelection="isShowReduceButtonSelection"
@handleDeleteTable="handleDeleteTableBom" @handleDeleteTable="handleDeleteTableBom"
@tableSelectionDelete="tableSelectionDeleteBom" @tableSelectionDelete="tableSelectionDeleteBom"
:Butttondata="ButttondataBom" :Butttondata="ButttondataBom"
@ -162,8 +162,11 @@ const footButttondata = ref([
]) ])
// //
const detailBomRef = ref() const detailBomRef = ref()
const isShowFooterButtton = ref(true)
const isShowReduceButtonSelection = ref(true)
const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({
getListApi: BomDismantleApi.getProductscrapBomDismantlePage getListApi: BomDismantleApi.getProductscrapBomRecordPage
}) })
const { getList:getDetailListBom } = detatableMethodsBom const { getList:getDetailListBom } = detatableMethodsBom
/** bom 列表 表单 按钮 */ /** bom 列表 表单 按钮 */
@ -291,6 +294,13 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
if(isSave){ if(isSave){
buttonBaseClickBom('save') buttonBaseClickBom('save')
}else{ }else{
isShowFooterButtton.value = true
isShowReduceButtonSelection.value = true
ProdcutscrapBomScrap.allSchemas.tableFormColumns.forEach(item=>{
if(item.field=='qty'){
item.tableForm.disabled = false
}
})
detailBomRef.value.open('create', row, null,'viewDetail')// detailBomRef.value.open('create', row, null,'viewDetail')//
} }
} }
@ -342,6 +352,14 @@ const tableFormButton = async (val , row) => {
rowId.value = row.masterId rowId.value = row.masterId
detailQty.value = row.qty detailQty.value = row.qty
await getDetailListBom() await getDetailListBom()
//
isShowFooterButtton.value = false
isShowReduceButtonSelection.value = false
ProdcutscrapBomScrap.allSchemas.tableFormColumns.forEach(item=>{
if(item.field=='qty'){
item.tableForm.disabled = true
}
})
detailBomRef.value.open('create', row, null,'viewDetail')// detailBomRef.value.open('create', row, null,'viewDetail')//
} }
} }

Loading…
Cancel
Save