diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts index 37f4b2b33..a381d0664 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts @@ -5,7 +5,10 @@ import { } from '../moldAllocation/customerStatement/customerStatementMain.data' import * as CustomerStatementMainApi from '@/api/wms/customerStatementMain' import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' +import { DICT_TYPE, getDictOptions } from '@/utils/dict' const { t } = useI18n() // 国际化 +const invoiceType = [{label:'全部',value:''},...getDictOptions(DICT_TYPE.INVOICE_TYPE)] +console.log(888, invoiceType) let custormList = [] try { @@ -255,31 +258,22 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ { label: '开票种类', field: 'invoiceType', - dictType: DICT_TYPE.INVOICE_TYPE, + // dictType: DICT_TYPE.INVOICE_TYPE, dictClass: 'string', table: { width: 150 }, - // form: { - // component: 'Select', - // value:[''], - // componentProps: { - // showAll: true,// 备用做全选 - // multiple: true, - // // emptyValues:[null, undefined], - // valueOnClear: null, - // options: [{ - // label: '全部', - // value: '' - // }, { - // label: '号口品', - // value: '号口品' - // }, { - // label: '补给品', - // value: '补给品' - // }] - // } - // }, + form: { + component: 'Select', + value:[''], + componentProps: { + // showAll: true,// 备用做全选 + multiple: true, + // emptyValues:[null, undefined], + valueOnClear: null, + options: invoiceType + } + }, }, { label: '创建时间', @@ -455,7 +449,8 @@ form:{ width: 150 }, tableForm: { - disabled:true + disabled: true, + type:'Select', } }, {