Browse Source

HL-5738采购收货记录导出,无法分辨是否是M型订单,客户希望仅过滤出原材料和外购件

hella_online_20240911
yufei_wang 3 months ago
parent
commit
e296d63bde
  1. 14
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  2. 16
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

14
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -1,7 +1,7 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="[...PurchasereceiptRecordMain.allSchemas.searchSchema,...PurchasereceiptRecordDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" />
<Search :schema="[...PurchasereceiptRecordMain.allSchemas.searchSchema,...PurchasereceiptRecordDetail.allSchemas.searchSchema]" @search="searchList" @reset="searchList" />
</ContentWrap>
<!-- 列表头部 -->
@ -207,6 +207,18 @@ const buttonTableClick = async (val, row) => {
handlePrint(row)
}
}
const searchList = (model)=>{
let params = {...model}
if(Array.isArray(params.itemType)&&params.itemType.length>0){
params.itemTypes = params.itemType.join(',')
params.itemType = ''
}else{
params.itemTypes = ''
params.itemType = ''
}
setSearchParams(params)
}
//
const reportHeight = ref(window.innerHeight - 120)
const showQualityReport = ref(false)

16
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -696,6 +696,22 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
},
isSearch: true,
},
{
label: '物料类型',
field: 'itemType',
sort: 'custom',
dictType: DICT_TYPE.ITEM_TYPE,
dictClass: 'string',
isSearch: true,
isTable:false,
isDetail:false,
search:{
componentProps:{
multiple:true,
}
}
},
{
label: '物料名称',
field: 'itemName',

Loading…
Cancel
Save