| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <!-- 搜索表单 -->
- <template>
- <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
- </template>
- <script>
- import { reviewStatusSelect, requirementSourceType } from '@/enum/dict';
- export default {
- data() {
- return {};
- },
- computed: {
- // 表格列配置
- seekList() {
- return [
- {
- label: '关键字:',
- value: 'searchName',
- type: 'input',
- placeholder: '采购计划单编码/采购计划单名称'
- },
- // {
- // label: '采购计划单编码:',
- // value: 'planCode',
- // type: 'input',
- // placeholder: '请输入'
- // },
- // {
- // label: '计划进度:',
- // value: 'progress',
- // type: 'input',
- // placeholder: '请输入',
- // },
- // {
- // label: '采购计划单名称:',
- // value: 'planName',
- // labelWidth:120,
- // width: 340,
- // type: 'input',
- // placeholder: '请输入',
- // },
- {
- label: '采购需求单名称:',
- value: 'requirementName',
- labelWidth: 150,
- // width: 240,
- type: 'input',
- placeholder: '请输入'
- },
- {
- label: '产品名称',
- value: 'productName',
- // width: 240,
- type: 'input',
- placeholder: '请输入'
- },
- {
- label: '需求类型:',
- value: 'sourceType',
- width: 380,
- type: 'select',
- placeholder: '请选择需求类型',
- planList: requirementSourceType
- },
- {
- label: '需求部门:',
- value: 'requireDeptName',
- width: 380,
- type: 'input',
- placeholder: '请输入'
- },
- {
- label: '需求人:',
- value: 'requireUserName',
- width: 380,
- type: 'input',
- placeholder: '请输入'
- },
- // {
- // label: '负责人:',
- // value: 'responsibleName',
- // width: 380,
- // type: 'input',
- // placeholder: '请输入'
- // },
- {
- label: '状态:',
- value: 'status',
- width: 380,
- type: 'select',
- placeholder: '请选择状态',
- planList: reviewStatusSelect
- },
- {
- label: '是否已生成过订单:',
- value: 'isGeneratedOrder',
- width: 330,
- labelWidth: 110,
- type: 'select',
- placeholder: '请选择是否已生成过订单',
- planList: [
- {
- label: '是',
- value: 1
- },
- {
- label: '否',
- value: 0
- }
- ]
- },
- {
- label: '创建时间:',
- value: 'createTime',
- type: 'date',
- dateType: 'datetimerange',
- placeholder: '',
- width: 380,
- valueAr: ['createTimeStart', 'createTimeEnd']
- }
- ];
- }
- },
- methods: {
- /* 搜索 */
- search(e) {
- this.$emit('search', {
- ...e
- });
- }
- }
- };
- </script>
|