| 
					
				 | 
			
			
				@@ -3,42 +3,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-table size="small" :dataSource="dataSource" :columns="columns" :scroll="{ y: 620 }" :pagination="pagination" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @change="pageChange"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <template #actionSp="{ record }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a class="table-action-link" @click="handleTo(record)">提交</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a class="table-action-link" @click="handleSpDetail(record)">审批详情</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a class="table-action-link" @click="handleSpRevoke(record)">撤回</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <template #actionWj="{ record }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a class="table-action-link" @click="handleEdit(record)">编辑</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a class="table-action-link" @click="handleDownLoad(record)">下载</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <!-- <a-popconfirm title="确定删除?" @confirm="handleDelete(record)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <a class="table-action-link">删除</a> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                </a-popconfirm> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <!-- 审批-提交弹窗 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <a-modal v-model:visible="visibleTj" centered :width="600" title="提交文件" @ok="handleTjOk" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @cancel="handleTjCancel"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-form :model="formStateTj" labelAlign="right" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <a-form-item label="选择审批" :rules="[{ required: true, message: '请选择是否提交' }]"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <a-select v-model:value="formStateTj.file" style="width: 260px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <a-select-option v-for="file in fileList " :key="file.label" :value="file.value">{{ file.label 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            }}</a-select-option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    </a-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </a-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </a-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 审批详情弹窗 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-modal v-model:visible="visibleSp" width="1000px" :footer="null" :title="titleSp" centered destroyOnClose> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <HistorySp :historySpList="historySpList" :imgSrc="imgSrc" :isShow="isShow" :spInfo="spInfo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 @spClose="spClose"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </HistorySp> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <!-- 审批-撤销申请弹窗 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <a-modal v-model:visible="visibleCx" centered :width="600" title="撤销申请" @ok="handleCxOk" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @cancel="handleCxCancel"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-textarea v-model:value="revokeDes" placeholder="请输入撤回原因..." :rows="4" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                style="width:96%;margin:10px;background-color: transparent;color: #fff;" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </a-modal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <DeviceModal :editID="editID" :fileType="fileType" @register="registerDeviceModal" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <CADModal @register="registerCADModal" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -50,9 +27,8 @@ import HistorySp from '../comment/HistorySp.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import DeviceModal from '../comment/DeviceModal.vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import CADModal from '../comment/CADModal.vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { columns } from './approvalPend.data' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { getNowUserAgencyData, downLoad, listData, commit } from '../fileDetail/fileDetail.api'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { historicFlowNew, getHighlightImgNew, getTodoTask, getCancelNew } from '../comment/comment.api' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { message } from 'ant-design-vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getNowUserAgencyData, downLoad, } from '../fileDetail/fileDetail.api'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { historicFlowNew, getHighlightImgNew, getTodoTask, } from '../comment/comment.api' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useModal } from '/@/components/Modal'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let props = defineProps({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -86,24 +62,11 @@ let imgSrc = ref('') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let isShow = ref(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //审批通过/驳回参数信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let spInfo = reactive({}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//审批-撤销 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-let visibleCx = ref(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-let revokeDes = ref('') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-let cxInfo = reactive({}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const isUpdate = ref(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const record = reactive<Record<string, any>>({}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 provide('formData', record); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let fileType = ref(''); //文件类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let editID = ref(0); //文件ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//是否显示文件审批弹窗 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-let visibleTj = ref(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//文件审批-弹窗参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-let formStateTj = reactive({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    file: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    id: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//文件审批-提交信息弹窗下拉选项数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-let fileList = reactive<any[]>([]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // CAD预览相关的逻辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let [registerCADModal, { openModal: openCADModal }] = useModal(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let [registerDeviceModal, { openModal, closeModal }] = useModal(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -122,42 +85,6 @@ function pageChange(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getNowUserAgencyDataList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 审批提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-async function handleTo(data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    visibleTj.value = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    let res = await listData({ zx: true, column: 'createTime', order: 'desc', status: 1 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (res.length != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fileList.length = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        res.forEach(el => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            fileList.push({ label: el.name, value: el.id }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formStateTj.id = data.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//确认提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-async function handleTjOk() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (formStateTj.file) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        let res = await commit({ procDefId: formStateTj.file, tableId: formStateTj.id, firstGateway: true }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (res == '提交成功') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            message.success(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            visibleTj.value = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            pagination.current = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            getNowUserAgencyDataList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            message.warning(res.message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        message.warning('请先选择要提交的文件!'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//取消提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function handleTjCancel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    formStateTj.file = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    visibleTj.value = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //审批通过/驳回弹窗关闭 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function spClose() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     visibleSp.value = false 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -197,29 +124,6 @@ async function getHighlightImgNewList(params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     let imageUrl = window.URL.createObjectURL(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     imgSrc.value = imageUrl 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//审批-撤回提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function handleSpRevoke(data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    visibleCx.value = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    cxInfo = Object.assign({}, data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//审批-撤销-确定 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-async function handleCxOk() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    let res = await getCancelNew({ reason: revokeDes.value, tableId: cxInfo.id, tableName: cxInfo.tableName }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (res == '操作成功') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        message.success(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        message.warning(res.message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    visibleCx.value = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    revokeDes.value = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    pagination.current = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getNowUserAgencyDataList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//审批-撤销-取消 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function handleCxCancel() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    revokeDes.value = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    visibleCx.value = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 编辑事件 
			 |