| | |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function productPage(query) { |
| | | return request({ |
| | | url: '/mes/stock/productPage', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | ], |
| | | materialType: [ |
| | | { required: true, message: '零件类型不能为空', trigger: 'change' } |
| | | ], |
| | | materialAttribute: [ |
| | | { required: true, message: '零件属性不能为空', trigger: 'change' } |
| | | ] |
| | | }, |
| | | ruleOptions: [], |
| | |
| | | statesList: [ |
| | | { value: '01pending', label: '待处理' }, |
| | | { value: '02processed', label: '已处理' }, |
| | | { value: '03canceled', label: '已作废' } |
| | | { value: '03canceled', label: '已作废' }, |
| | | { value: '04completed', label: '已完成' } |
| | | ], |
| | | isAuditList: [ |
| | | { |
| | |
| | | label: '标记待处理', |
| | | command: 'PENDING', |
| | | disabled: false, |
| | | permitArr: ['02processed'] |
| | | permitArr: ['01pending'] |
| | | }, |
| | | { |
| | | label: '标记已处理', |
| | | command: 'PROCESSED', |
| | | disabled: false, |
| | | permitArr: ['01pending'] |
| | | permitArr: ['02processed'] |
| | | }, |
| | | { |
| | | label: '标记已作废', |
| | | command: 'CANCELED', |
| | | disabled: false, |
| | | permitArr: ['01pending'] |
| | | permitArr: ['03canceled'] |
| | | }, |
| | | { |
| | | label: '标记已完成', |
| | | command: 'COMPLETED', |
| | | disabled: false, |
| | | permitArr: ['04completed'] |
| | | } |
| | | ], |
| | | documentTagArr: [ |
| | |
| | | eventName = '待处理' |
| | | } else if (event == 'PROCESSED') { |
| | | eventName = '已处理' |
| | | } else if (event == 'COMPLETED') { |
| | | eventName = '已完成' |
| | | } else { |
| | | eventName = '已作废' |
| | | } |
| | |
| | | <template> |
| | | <div class="mod-config"> |
| | | <basic-container> |
| | | <ttable |
| | | <div class="mod-config"> |
| | | <basic-container> |
| | | <ttable |
| | | :table="table" |
| | | :isShowHide="true" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :dataListLoading="false" |
| | | :dataListLoading="false" |
| | | ref="processconfiguration" |
| | | > |
| | | > |
| | | <template #toolbar></template> |
| | | </ttable> |
| | | </basic-container> |
| | | </div> |
| | | </ttable> |
| | | </basic-container> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import { productPage, } from '@/api/warehouse/stock' |
| | | |
| | | export default { |
| | | data(){ |
| | | return { |
| | | prelang: 'operation', |
| | | options: { |
| | | height: 300, // 默认高度-为了表头固定 |
| | | stripe: true, // 是否为斑马纹 table |
| | | highlightCurrentRow: false, // 是否要高亮当前行 |
| | | border: true, // 是否有纵向边框 |
| | | lazy: false, // 是否需要懒加载 |
| | | fit: true, // 列的宽度是否自撑开 |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isShowHide: true, // 是否显示显影按钮 |
| | | isRefresh: true, // 是否显示刷新按钮 |
| | | isSearch: true, // 高级查询按钮 |
| | | defaultOrderBy: { column: 'createTime', direction: 'desc' } |
| | | }, |
| | | table: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | data: [], |
| | | // 标题 |
| | | column: [ |
| | | { |
| | | minWidth: '140', |
| | | prop: 'material', |
| | | label: '产品名称', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'type', |
| | | label: '产品型号', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | },{ |
| | | minWidth: '140', |
| | | prop: 'oo', |
| | | label: '质量追溯号', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | },{ |
| | | minWidth: '140', |
| | | prop: 'materhhooial', |
| | | label: '合同编码', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'mateuurial', |
| | | label: '单位', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'materoiial', |
| | | label: '数量', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'matperoial', |
| | | label: '检查状态', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'materpial', |
| | | label: '检查人员', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '130', |
| | | prop: 'dealTime', |
| | | label: '装配人员', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '130', |
| | | prop: 'dealTissme', |
| | | label: '编制人', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | ], |
| | | toolbar: [], |
| | | // operator: [], |
| | | // operatorConfig: {} |
| | | }, |
| | | } |
| | | }, |
| | | medthods: {}, |
| | | computed: { |
| | | // ...mapGetters(['permissions']) |
| | | }, |
| | | components: { |
| | | data() { |
| | | return { |
| | | ajaxFun: productPage, |
| | | prelang: 'operation', |
| | | options: { |
| | | height: 300, // 默认高度-为了表头固定 |
| | | stripe: true, // 是否为斑马纹 table |
| | | highlightCurrentRow: false, // 是否要高亮当前行 |
| | | border: true, // 是否有纵向边框 |
| | | lazy: false, // 是否需要懒加载 |
| | | fit: true, // 列的宽度是否自撑开 |
| | | multiSelect: true, // |
| | | seqNo: true, |
| | | isShowHide: true, // 是否显示显影按钮 |
| | | isRefresh: true, // 是否显示刷新按钮 |
| | | isSearch: true, // 高级查询按钮 |
| | | defaultOrderBy: { column: 'id', direction: 'desc' }, |
| | | }, |
| | | table: { |
| | | total: 0, |
| | | currentPage: 1, |
| | | pageSize: 20, |
| | | data: [], |
| | | // 标题 |
| | | column: [ |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'factoryName', |
| | | label: '工厂', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'partNo', |
| | | label: '零件号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | propVal: this.$route.query.partNo, |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'partName', |
| | | label: '零件名称', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'warehouseName', |
| | | label: '仓库', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'locationNo', |
| | | label: '库位号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'locationName', |
| | | label: '库位名称', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'systemNo', |
| | | label: '系统编号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'customerOrderNo', |
| | | label: '销售订单号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'mpsNo', |
| | | label: '主生产计划号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'moNo', |
| | | label: '车间订单号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'stockQuantity', |
| | | label: '库存数量', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '120', |
| | | prop: 'availableStockQuantity', |
| | | label: '可用库存数量', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | width: '100', |
| | | minWidth: '100', |
| | | prop: 'unit', |
| | | label: '单位', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'ifsBatchNo', |
| | | label: '批次号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'sourceName', |
| | | label: '来源', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | // operator: [], |
| | | // operatorConfig: {} |
| | | }, |
| | | } |
| | | }, |
| | | medthods: {}, |
| | | components: { |
| | | ttable |
| | | }, |
| | | }, |
| | | } |
| | | </script> |