| | |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" @click.stop="customView(scope.row, scope.index, 0)">查看 |
| | | </el-button> |
| | | <!-- |
| | | <el-button type="primary" text size="default" v-if="scope.row.processDefinitionKey === 'dispatch' || scope.row.processDefinitionKey === 'program-cure'" |
| | | @click.stop="handleApproveTable(scope.row, scope.index)">审批表 |
| | | </el-button> |
| | | </el-button>--> |
| | | <el-button type="danger" text size="default" @click.stop="handleDelete(scope.row, scope.index, 0)">删除 |
| | | </el-button> |
| | | |
| | |
| | | viewBtn: false, |
| | | columnBtn: false, |
| | | tip: false, |
| | | // simplePage: true, |
| | | searchShow: true, |
| | | searchMenuSpan: 7, |
| | | searchEnter:true, |
| | | dialogWidth: '70%', |
| | | // tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | |
| | | menuWidth: 200, |
| | | // menu: false, |
| | | selection: false, |
| | | menuWidth: 100, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | |
| | | { |
| | | label: '标题', |
| | | prop: 'variables.title', |
| | | showOverflowTooltip:true, |
| | | width: 150, |
| | | render: ({ row }) => { |
| | | return h('p', |
| | |
| | | label: '流程名称', |
| | | prop: '', |
| | | width: 85, |
| | | showOverflowTooltip:true, |
| | | render: ({ row }) => { |
| | | return h('p', |
| | | { |
| | |
| | | }, row?.variables?.myProcessName) |
| | | } |
| | | }, |
| | | |
| | | { |
| | | label: '批次号', |
| | | prop: 'variables.craftEdition', |
| | | width: 70, |
| | | label: '零组件号', |
| | | prop: 'drawingNo', |
| | | width: 82, |
| | | render: ({ row }) => { |
| | | return h('span', {}, row?.variables?.craftEdition || ''); |
| | | return h('span', {}, row?.variables?.drawingNo || ''); |
| | | } |
| | | }, |
| | | { |
| | |
| | | { |
| | | label: '工序名称', |
| | | prop: 'processName', |
| | | width: 80, |
| | | width: 82, |
| | | render: ({ row }) => { |
| | | return h('span', {}, row?.variables?.processName || ''); |
| | | } |
| | |
| | | { |
| | | label: '工序版次', |
| | | prop: 'processEdition', |
| | | width: 80, |
| | | width: 82, |
| | | render: ({ row }) => { |
| | | return h('span', {}, row?.variables?.processEdition || ''); |
| | | } |
| | | }, |
| | | { |
| | | label: '零组件号', |
| | | prop: 'drawingNo', |
| | | width: 80, |
| | | label: '批次号', |
| | | prop: 'variables.craftEdition', |
| | | width: 70, |
| | | render: ({ row }) => { |
| | | return h('span', {}, row?.variables?.drawingNo || ''); |
| | | return h('span', {}, row?.variables?.craftEdition || ''); |
| | | } |
| | | }, |
| | | { |
| | | label: '任务车间', |
| | | prop: 'workshop', |
| | | width: 80, |
| | | width: 82, |
| | | render: ({ row }) => { |
| | | return h('p',{'class': 'margin0'}, row?.variables?.workshop || ''); |
| | | } |
| | |
| | | { |
| | | label: '过程卡号', |
| | | prop: 'empty', |
| | | width: 80, |
| | | width: 82, |
| | | }, |
| | | { |
| | | label: '图号', |
| | | prop: '', |
| | | width: 100, |
| | | render: ({ row }) => { |
| | | return h('p', |
| | | { |
| | | attrs: {}, |
| | | class: {}, |
| | | style: {}, |
| | | }, row?.variables?.drawingNo) |
| | | }, |
| | | renderForm: ({ row }) => { |
| | | return h('span', { |
| | | attrs: {}, |
| | | class: {}, |
| | | style: {}, |
| | | }, row?.variables?.drawingNo || ''); |
| | | } |
| | | }, |
| | | |
| | | { |
| | | label: '产品型号', |
| | | prop: '', |
| | |
| | | { |
| | | label: '机床', |
| | | prop: '', |
| | | showOverflowTooltip:true, |
| | | render: ({ row }) => { |
| | | return h('p', |
| | | { |
| | |
| | | { |
| | | label: '创建时间', |
| | | prop: 'processCreateTime', |
| | | showOverflowTooltip:true, |
| | | width: 82, |
| | | }, |
| | | { |
| | | label: '当前节点', |
| | | prop: 'taskName', |
| | | width: 90 |
| | | showOverflowTooltip:true, |
| | | width: 110 |
| | | }, |
| | | { |
| | | label: '计划加工时间', |
| | | prop: 'planStartTime', |
| | | width: 180, |
| | | width: 110, |
| | | render: ({ row }) => { |
| | | return h('span', {}, row?.variables?.planStartTime || ''); |
| | | } |