| | |
| | | @selection-change="selectionChange"> |
| | | |
| | | <template #menu-left> |
| | | <!-- <el-button type="primary" plain @click="exportWebSite">导出回传涉密网</el-button> --> |
| | | |
| | | |
| | | </template> |
| | | <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'" |
| | | @click.stop="handleApproveTable(scope.row, scope.index)">审批表打印 |
| | | @click.stop="handleApproveTable(scope.row, scope.index)">审批表 |
| | | </el-button> |
| | | |
| | | <el-button type="primary" text size="default" v-if="scope.row.processDefinitionKey === 'program-cure'" |
| | | @click.stop="handleConfirmTable(scope.row, scope.index)">确认表 |
| | | </el-button> |
| | | --> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="指派" append-to-body v-model="reassignBox" width="30%"> |
| | |
| | | // tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | selection: false, |
| | | menuWidth: 80, |
| | | // menu: false, |
| | | labelWidth: 90, |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: '工艺版次', |
| | | label: '批次号', |
| | | prop: 'variables.craftEdition', |
| | | width: 80, |
| | | render: ({ row }) => { |
| | |
| | | }, |
| | | { |
| | | label: '过程卡号', |
| | | prop: 'empty', |
| | | prop: '', |
| | | width: 80, |
| | | render: ({ row }) => { |
| | | return h('p', |
| | | { |
| | | attrs: {}, |
| | | class: {}, |
| | | style: {}, |
| | | }, row?.variables?.processCard) |
| | | }, |
| | | }, |
| | | { |
| | | label: '图号', |
| | |
| | | }, |
| | | |
| | | { |
| | | label: '工艺版次', |
| | | label: '批次号', |
| | | prop: 'variables.craftEdition', |
| | | render: ({ row }) => { |
| | | return h('p',{'class': 'margin0'}, row?.variables?.craftEdition || ''); |
| | |
| | | }, |
| | | { |
| | | label: '过程卡号', |
| | | prop: 'empty', |
| | | prop: '', |
| | | render: ({ row }) => { |
| | | return h('p',{'class': 'margin0'}, row?.variables?.empty || ''); |
| | | return h('p',{'class': 'margin0'}, row?.variables?.processCard || ''); |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: '偏离单号', |
| | | label: '临时更改单号', |
| | | prop: '', |
| | | render: ({ row }) => { |
| | | return h('p',{'class': 'margin0'}, row?.variables?.deviation || ''); |
| | |
| | | }, |
| | | handleApproveTable(row, index,) { |
| | | //审批表下载 |
| | | |
| | | this.$confirm('是否导出审批表?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | |
| | | |
| | | }, |
| | | handleConfirmTable(row, index,) { |
| | | //确认表下载 |
| | | this.$confirm('是否导出确认表?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }).then(() => { |
| | | console.log(this.selection) |
| | | NProgress.start(); |
| | | exportBlobPost( |
| | | `/blade-mdm/flow/mgr/export-confirm-table`, |
| | | { processInstanceId: row.processInstanceId } |
| | | ).then(res => { |
| | | let name = res.headers['content-disposition'].split('filename=')[1] |
| | | console.log(res.headers['content-disposition'].split('filename=')[1]); |
| | | name = decodeURI(name) |
| | | downloadFile(res.data, `${name}`); |
| | | NProgress.done(); |
| | | }); |
| | | }); |
| | | |
| | | |
| | | }, |
| | | |
| | | selectionChange(list) { |
| | | console.log('selectionChange', list); |
| | | this.selectedList = list; |