|
@@ -108,7 +108,7 @@
|
|
<span>在线验签</span>
|
|
<span>在线验签</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" :loading="signLoading" hc-btn type="primary" @click="signClick">re-sign</el-button>
|
|
|
|
|
|
+ <el-button :disabled="tableCheckedKeys.length <= 0" :loading="signLoading" hc-btn type="primary" @click="resignClick">re-sign</el-button>
|
|
</template>
|
|
</template>
|
|
<template #search>
|
|
<template #search>
|
|
<div class="flex items-center">
|
|
<div class="flex items-center">
|
|
@@ -246,6 +246,16 @@
|
|
</hc-body>
|
|
</hc-body>
|
|
</hc-new-card>
|
|
</hc-new-card>
|
|
</hc-new-drawer>
|
|
</hc-new-drawer>
|
|
|
|
+ <!-- 一键重签弹窗 -->
|
|
|
|
+ <hc-new-dialog v-model="resignModal" title="一键重签" widths="38rem" :loading="signLoading" @close="cancelresign" @save="signClick">
|
|
|
|
+ <div>
|
|
|
|
+ 是否重新生成pdf:
|
|
|
|
+ <el-radio-group v-model="resignModalRadio">
|
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </div>
|
|
|
|
+ </hc-new-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -845,7 +855,9 @@ const allElementsNotEmpty = (str)=> {
|
|
}
|
|
}
|
|
//一键重签
|
|
//一键重签
|
|
const signLoading = ref(false)
|
|
const signLoading = ref(false)
|
|
-const signClick = async () => {
|
|
|
|
|
|
+const resignModal = ref(false)
|
|
|
|
+const resignModalRadio = ref(0)
|
|
|
|
+const resignClick = async ()=>{
|
|
const rows = tableCheckedKeys.value
|
|
const rows = tableCheckedKeys.value
|
|
if (rows.length <= 0) {
|
|
if (rows.length <= 0) {
|
|
window.$message?.warning('请先勾选已审批的数据')
|
|
window.$message?.warning('请先勾选已审批的数据')
|
|
@@ -860,6 +872,25 @@ const signClick = async () => {
|
|
window.$message?.warning('只能勾选已审批的数据')
|
|
window.$message?.warning('只能勾选已审批的数据')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ resignModal.value = true
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+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
|
|
|
|
+ // }
|
|
//获取任务id
|
|
//获取任务id
|
|
const taskIds = arrToKey(rows, 'taskId')
|
|
const taskIds = arrToKey(rows, 'taskId')
|
|
const idsArr = taskIds.split(',')
|
|
const idsArr = taskIds.split(',')
|
|
@@ -876,6 +907,7 @@ const signClick = async () => {
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
taskIds: taskIds,
|
|
taskIds: taskIds,
|
|
classifyType: contractTypeTabKey.value,
|
|
classifyType: contractTypeTabKey.value,
|
|
|
|
+ type:resignModalRadio.value,
|
|
})
|
|
})
|
|
//处理数据
|
|
//处理数据
|
|
signLoading.value = false
|
|
signLoading.value = false
|