Browse Source

修改物料筛选

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
256236f05b
  1. 26
      src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts

26
src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts

@ -1,18 +1,21 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as LocationApi from '@/api/wms/location'
import { Location } from './../../factoryModeling/location/location.data'
import * as ProductionLineCodeApi from '@/api/wms/productionline' import * as ProductionLineCodeApi from '@/api/wms/productionline'
import { Productionline } from './../../factoryModeling/productionline/productionline.data' import { Productionline } from './../../factoryModeling/productionline/productionline.data'
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from './../itembasic/itembasic.data' import { Itembasic } from './../itembasic/itembasic.data'
import * as getBusinesstypeApi from '@/api/wms/businesstype/index'
import { ElButton, ElInput } from 'element-plus'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
const queryParams = {
pageSize:10,
pageNo:1,
code:'Productionlineitem'
}
const data = await getBusinesstypeApi.getBusinesstypePage(queryParams)
const businesstypeData =data?.list[0]||{}
/** /**
* @returns {Array} 线 * @returns {Array} 线
*/ */
@ -112,15 +115,8 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
key:'type', key:'type',
value:'OTS', value:businesstypeData.itemTypes,
action: '!=', action: 'notin',
isSearch: true,
isMainValue: false
},
{
key:'type',
value:'RAW',
action: '!=',
isSearch: true, isSearch: true,
isMainValue: false isMainValue: false
}, },

Loading…
Cancel
Save