| | |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" > |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" @click.stop="handleView(scope.row, scope.index)">查看</el-button> |
| | | <el-button type="primary" text size="default" @click.stop="handleWithdraw(scope.row, scope.index)">撤回</el-button> |
| | | <el-button type="primary" :disabled="scope.row.processIsFinished==='true'" v-if="permission.withdraw_button" text size="default" @click.stop="handleWithdraw(scope.row, scope.index)">撤回</el-button> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: '工艺版次', |
| | | label: '批次号', |
| | | prop: 'variables.craftEdition', |
| | | render: ({ row }) => { |
| | | return h('p',{'class': 'margin0'}, row?.variables?.craftEdition || ''); |
| | |
| | | type: 'datetime', |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | sortable:true, |
| | | search: false, |
| | | searchRange: true, |
| | | searchSpan: 8, |
| | |
| | | this.dialogVisible = true; |
| | | }, |
| | | handleWithdraw(row) { |
| | | console.log(row,row.processInstanceId) |
| | | //console.log(row,row.processInstanceId) |
| | | this.$confirm('确认要撤回吗?', '', { |
| | | confirmButtonText: this.$t('submitText'), |
| | | cancelButtonText: this.$t('cancelText'), |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | at1(){ |
| | | console.log('computed') |
| | | } |
| | | |
| | | }, |
| | | computed: { |
| | | |
| | | ...mapGetters(['userInfo', 'permission']), |
| | | } |
| | | } |
| | | </script> |