MES本地审批共用钉钉审批等配置
This commit is contained in:
@@ -19,6 +19,16 @@
|
||||
onClick: handleDetail.bind(null, record),
|
||||
auth: 'xslmes:mes_xsl_approval_record:list',
|
||||
},
|
||||
{
|
||||
label: '补发IM卡片',
|
||||
color: 'warning',
|
||||
ifShow: record.status === '0' && record.channel === 'MES' && !!record.externalInstanceId,
|
||||
popConfirm: {
|
||||
title: '向当前处理人重新发送 IM 审批卡片?',
|
||||
confirm: handleResendCard.bind(null, record),
|
||||
},
|
||||
auth: 'xslmes:mes_xsl_approval_record:list',
|
||||
},
|
||||
]"
|
||||
/>
|
||||
</template>
|
||||
@@ -34,7 +44,10 @@
|
||||
import MesXslApprovalRecordDetailModal from './components/MesXslApprovalRecordDetailModal.vue';
|
||||
import { columns, searchFormSchema } from './MesXslApprovalRecord.data';
|
||||
import { list, getExportUrl } from './MesXslApprovalRecord.api';
|
||||
import { resendApprovalCard } from '/@/views/approval/flow/approvalHandle.api';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
|
||||
const { createMessage } = useMessage();
|
||||
const [registerModal, { openModal }] = useModal();
|
||||
|
||||
const { tableContext, onExportXls } = useListPage({
|
||||
@@ -50,7 +63,7 @@
|
||||
showAdvancedButton: true,
|
||||
},
|
||||
actionColumn: {
|
||||
width: 100,
|
||||
width: 180,
|
||||
fixed: 'right',
|
||||
},
|
||||
},
|
||||
@@ -65,4 +78,13 @@
|
||||
function handleDetail(record: Recordable) {
|
||||
openModal(true, { record });
|
||||
}
|
||||
|
||||
async function handleResendCard(record: Recordable) {
|
||||
try {
|
||||
const msg = await resendApprovalCard({ instanceId: record.externalInstanceId });
|
||||
createMessage.success(msg || '补发成功');
|
||||
} catch (e: any) {
|
||||
createMessage.error(e?.message || '补发失败');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user