|
@@ -28,7 +28,7 @@
|
|
|
is-type
|
|
|
:auto-expand-keys="treeAutoExpandKeys"
|
|
|
default-expand-all
|
|
|
- @nodeTap="wbsElTreeClick"
|
|
|
+ @node-tap="wbsElTreeClick"
|
|
|
/>
|
|
|
</el-scrollbar>
|
|
|
<el-scrollbar v-show="!isSearchTree" class="scroll-bar-right-16">
|
|
@@ -38,7 +38,7 @@
|
|
|
is-counts
|
|
|
is-type
|
|
|
@load="treeLoadNode"
|
|
|
- @nodeTap="wbsElTreeClick"
|
|
|
+ @node-tap="wbsElTreeClick"
|
|
|
/>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
@@ -108,6 +108,7 @@
|
|
|
<span>在线验签</span>
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
+ <el-button :disabled="tableCheckedKeys.length <= 0" :loading="signLoading" hc-btn color="#409eff" @click="signClick">re-sign</el-button>
|
|
|
</template>
|
|
|
<template #search>
|
|
|
<div class="flex items-center">
|
|
@@ -218,7 +219,7 @@
|
|
|
url="informationWriteQuery/batchTask"
|
|
|
@finish="showReportFinish"
|
|
|
@hide="showReportModal = false"
|
|
|
- @tagClose="reportTaskTagClose"
|
|
|
+ @tag-close="reportTaskTagClose"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -779,6 +780,27 @@ const onmousedown = () => {
|
|
|
document.onmouseup = null
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+//一键重签
|
|
|
+const signLoading = ref(false)
|
|
|
+const signClick = async () => {
|
|
|
+ const rows = tableCheckedKeys.value
|
|
|
+ if (rows.length <= 0) {
|
|
|
+ window.$message?.warning('请先勾选已审批的数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //判断是否满足条件
|
|
|
+ const result = rows.every(({ status }) => {
|
|
|
+ return status === 2
|
|
|
+ })
|
|
|
+ //判断状态
|
|
|
+ if (!result) {
|
|
|
+ window.$message?.warning('只能勾选已审批的数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const ids = arrToId(rows)
|
|
|
+ console.log('ids', ids)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|