|
@@ -30,7 +30,7 @@
|
|
|
<span>新增</span>
|
|
<span>新增</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</hc-tooltip>
|
|
</hc-tooltip>
|
|
|
-
|
|
|
|
|
|
|
+ <el-button :disabled="tableCheckedKeys.length <= 0" :loading="signLoading" hc-btn type="primary" @click="resignClick">re-sign</el-button>
|
|
|
|
|
|
|
|
<hc-tooltip keys="tentative_detect_commission_repeal">
|
|
<hc-tooltip keys="tentative_detect_commission_repeal">
|
|
|
<el-button hc-btn type="danger" :disabled="tableCheckedKeys.length <= 0" @click="repealFormData">
|
|
<el-button hc-btn type="danger" :disabled="tableCheckedKeys.length <= 0" @click="repealFormData">
|
|
@@ -180,6 +180,17 @@
|
|
|
@hide="hideReport"
|
|
@hide="hideReport"
|
|
|
/>
|
|
/>
|
|
|
</hc-body>
|
|
</hc-body>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 一键重签弹窗 -->
|
|
|
|
|
+ <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 :value="2">否</el-radio>
|
|
|
|
|
+ <el-radio :value="1">是</el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </hc-new-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -187,7 +198,7 @@ import { onActivated, onMounted, ref } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
-import { arrToId, deepClone, formValidate, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
|
|
|
|
|
+import { arrToId, arrToKey, deepClone, formValidate, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
|
import { getErtractInfo } from '~api/other'
|
|
import { getErtractInfo } from '~api/other'
|
|
@@ -641,6 +652,54 @@ const repealFormData = async ()=>{
|
|
|
window.$message.error(msg || '删除失败')
|
|
window.$message.error(msg || '删除失败')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+//一键重签
|
|
|
|
|
+//一键重签
|
|
|
|
|
+const signLoading = ref(false)
|
|
|
|
|
+const resignModal = ref(false)
|
|
|
|
|
+const resignModalRadio = ref(1)
|
|
|
|
|
+const resignClick = async ()=>{
|
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
|
|
|
+ if (rows.length <= 0) {
|
|
|
|
|
+ window.$message?.warning('请先勾选已审批的数据')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ resignModal.value = true
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+const signClick = async () => {
|
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
|
|
|
+ //获取任务id
|
|
|
|
|
+ const taskIds = arrToKey(rows, 'taskid')
|
|
|
|
|
+ const entrustIds = arrToKey(rows, 'id')
|
|
|
|
|
+
|
|
|
|
|
+ const { primaryKeyId } = nodeDataInfo.value
|
|
|
|
|
+ //发起请求
|
|
|
|
|
+ signLoading.value = true
|
|
|
|
|
+ const { error, code, msg } = await mainApi.reSigningEntrust({
|
|
|
|
|
+ nodeId:primaryKeyId,
|
|
|
|
|
+ contractId: contractId.value,
|
|
|
|
|
+ taskIds: taskIds,
|
|
|
|
|
+ entrustId:entrustIds,
|
|
|
|
|
+ type:resignModalRadio.value,
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ //处理数据
|
|
|
|
|
+ signLoading.value = false
|
|
|
|
|
+
|
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
|
+ window.$message?.success(msg ?? '提交成功,请请耐心等待重签,可继续操作其它的功能。')
|
|
|
|
|
+ getTableData().then()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ window.$message?.error(msg ?? '操作失败')
|
|
|
|
|
+ }
|
|
|
|
|
+ resignModal.value = false
|
|
|
|
|
+}
|
|
|
|
|
+const cancelresign = ()=>{
|
|
|
|
|
+ resignModalRadio.value = 0
|
|
|
|
|
+ resignModal.value = false
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|