Browse Source

全选

master_hella_20240701
wangyufei 4 months ago
parent
commit
889dbbcef8
  1. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  2. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

2
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -18,7 +18,7 @@ const { t } = useI18n() // 国际化
let planerList = await DemandforecastingMainApi.queryUserPlanerList()
if(planerList.length>0){
planerList.unshift({
planerId:'',
planerId:'ALL',
planerNickname:'全选',
planerUsername:'全选'
})

6
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -155,14 +155,14 @@ const seachRef = ref()
const onSearchChange = (field, value)=>{
if(field=='planerId'){
if(value.length>0){
if(value[value.length-1]==''){
if(value[value.length-1]=='ALL'){
//
seachRef.value.setFormValues({
planerId:['']
planerId:['ALL']
})
}else{
seachRef.value.setFormValues({
planerId:value.filter(item=>item!='')
planerId:value.filter(item=>item!='ALL')
})
}
}

Loading…
Cancel
Save