| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <!-- 搜索表单 -->
- <template>
- <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
- </template>
- <script>
- import { reviewStatusSelect, saleOrderProgressStatusEnum } from '@/enum/dict';
- export default {
- data() {
- return {};
- },
- computed: {
- // 表格列配置
- seekList() {
- return [
- {
- label: '关键字:',
- value: 'searchName',
- type: 'input',
- placeholder: '订单编码/客户名称/合同编号/产品名称'
- },
- {
- label: '订单编码:',
- value: 'orderNo',
- type: 'input',
- placeholder: ''
- },
- {
- label: '客户名称:',
- value: 'partaName',
- type: 'input',
- placeholder: ''
- },
- {
- label: '销售类型',
- value: 'saleType',
- width: 380,
- type: 'DictSelection',
- dictName: '销售类型'
- },
- {
- label: '库存状态',
- value: 'hasStock',
- width: 380,
- type: 'select',
- planList: [
- {
- label: '有库存',
- value: 1
- },
- { label: '无库存', value: 0 }
- ]
- },
- {
- label: '合同编号:',
- value: 'contractNumber',
- width: 380,
- type: 'input',
- placeholder: ''
- },
- {
- label: '项目名称:',
- value: 'projectName',
- width: 380,
- type: 'input',
- placeholder: ''
- },
- {
- label: '产品名称:',
- value: 'productName',
- width: 380,
- type: 'input',
- placeholder: ''
- },
- {
- label: '编码',
- value: 'productCode',
- width: 380,
- type: 'input',
- placeholder: '请输入'
- },
- {
- label: '生产编号',
- value: 'productionCodes',
- width: 380,
- type: 'input',
- placeholder: ''
- },
- // {
- // label: '项目名称:',
- // value: 'productCode',
- // width: 380,
- // type: 'input',
- // width: 380,
- // placeholder: ''
- // },
- {
- label: '订单类型',
- value: 'needProduce',
- width: 380,
- type: 'select',
- planList: [
- {
- label: '生产性订单',
- value: '1'
- },
- { label: '无客户生产性订单', value: '2' },
- { label: '库存式订单', value: '0' },
- { label: '不定向订单', value: '4' }
- ],
- width: 380,
- placeholder: ''
- },
- {
- label: '审核状态',
- value: 'orderStatus',
- type: 'select',
- planList: reviewStatusSelect,
- width: 380,
- placeholder: ''
- },
- {
- label: '订单进度',
- value: 'progress',
- type: 'select',
- planList: saleOrderProgressStatusEnum,
- width: 380,
- placeholder: ''
- },
- {
- label: '创建人:',
- value: 'createUserName',
- width: 380,
- type: 'input',
- placeholder: '请输入'
- },
- {
- label: '创建时间:',
- value: 'createTime',
- type: 'date',
- dateType: 'datetimerange',
- placeholder: '',
- width: 380,
- valueAr: ['createTimeStart', 'createTimeEnd']
- }
- ];
- }
- },
- methods: {
- /* 搜索 */
- search(e) {
- this.$emit('search', {
- ...e
- });
- }
- }
- };
- </script>
|