| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- export default {
- height: 'auto',
- calcHeight: 30,
- tip: false,
- searchShow: true,
- searchMenuSpan: 6,
- border: true,
- index: true,
- selection: true,
- searchLabelWidth: 140,
- labelWidth: 100,
- menuWidth: 140,
- dialogClickModal: false,
- dialogWidth: 500,
- dialogType: "drawer",
- showSummary: true,
- sumColumnList: [
- {
- name: 'useQuantity',
- type: 'sum',
- },
- {
- name: 'amount',
- type: 'sum'
- }
- ],
- column: [
- {
- label: '日期',
- prop: 'useDate',
- type: 'date',
- valueFormat: 'yyyy-MM-dd',
- span: 24,
- width: 100,
- align: 'center',
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: '请选择日期',
- trigger: 'blur',
- },
- ],
- },
- {
- label: '研发项目编号',
- prop: 'xmbh',
- type: 'input',
- span: 24,
- search: true,
- width: 100,
- align: 'center',
- showOverflowTooltip: true,
- display: false,
- },
- {
- label: '研发项目名称',
- prop: 'xmId',
- type: 'select',
- span: 24,
- minWidth: 160,
- search: true,
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: '请选择研发项目名称',
- trigger: 'blur',
- },
- ],
- },
- {
- label: '类型',
- prop: 'type',
- type: 'select',
- span: 24,
- width: 60,
- align: 'center',
- search: true,
- dicUrl: '/api/kd-system/dict-biz/dictionary?code=wuzi_lx',
- props: {
- label: 'dictValue',
- value: 'dictKey',
- },
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: '请选择类型',
- trigger: 'blur',
- },
- ],
- },
- {
- label: '物资编号',
- prop: 'code',
- type: 'input',
- span: 24,
- search: true,
- width: 100,
- align: 'center',
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: '请输入物资编号',
- trigger: 'blur',
- },
- ],
- },
- {
- label: '物资名称',
- prop: 'name',
- type: 'input',
- span: 24,
- search: true,
- minWidth: 160,
- showOverflowTooltip: true,
- rules: [
- {
- required: true,
- message: '请输入物资名称',
- trigger: 'blur',
- },
- ],
- },
- {
- label: '型号规格',
- prop: 'model',
- type: 'input',
- span: 24,
- search: true,
- minWidth: 100,
- align: 'center',
- showOverflowTooltip: true,
- },
- {
- label: '单位',
- prop: 'unit',
- type: 'input',
- span: 24,
- width: 80,
- align: 'center',
- showOverflowTooltip: true,
- },
- {
- label: '单价(元)',
- prop: 'unitPrice',
- type: 'number',
- span: 24,
- width: 100,
- align: 'center',
- min: 0,
- precision: 2,
- showOverflowTooltip: true,
- },
- {
- label: '领取数量',
- prop: 'useQuantity',
- type: 'number',
- span: 24,
- width: 80,
- align: 'center',
- min: 0,
- precision: 0,
- showOverflowTooltip: true,
- },
- {
- label: '金额(元)',
- prop: 'amount',
- type: 'number',
- span: 24,
- width: 100,
- align: 'center',
- min: 0,
- precision: 2,
- showOverflowTooltip: true,
- display: false
- },
- ],
- };
|