|  |  | 
 |  |  |               @click.stop="handleUnsign(item)" | 
 |  |  |               >解约</nut-button | 
 |  |  |             > | 
 |  |  |             <nut-button type="primary" @click.stop="checkContract">查看合约</nut-button> | 
 |  |  |             <nut-button type="primary" @click.stop="checkContract(item)">查看合约</nut-button> | 
 |  |  |           </template> | 
 |  |  |           <nut-button | 
 |  |  |             v-else-if=" | 
 |  |  | 
 |  |  | } from '@12333/constants'; | 
 |  |  | import * as enterpriseEmployeeServices from '@12333/services/apiV2/enterpriseEmployee'; | 
 |  |  | import Taro from '@tarojs/taro'; | 
 |  |  | import { Message } from '@12333/utils'; | 
 |  |  | import { Message, openDocument, setOSSLink } from '@12333/utils'; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: 'InnerPage', | 
 |  |  | 
 |  |  |   } | 
 |  |  | ); | 
 |  |  |  | 
 |  |  | function checkContract() {} | 
 |  |  | function checkContract(item: API.GetEnterpriseEmployeesQueryResultItem) { | 
 |  |  |   if (!item.contractUrl) { | 
 |  |  |     Message.warning('协议无法查看,请稍后再试'); | 
 |  |  |     return; | 
 |  |  |   } | 
 |  |  |   openDocument(setOSSLink(item.contractUrl)); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function goDetail(item: API.GetEnterpriseEmployeesQueryResultItem) { | 
 |  |  |   Taro.navigateTo({ | 
 |  |  | 
 |  |  |   try { | 
 |  |  |     await Message.confirm({ message: '确定要解约吗?' }); | 
 |  |  |     let params: API.StopElectronSignCommand = { | 
 |  |  |       id: item.id, | 
 |  |  |       ids: [item.id], | 
 |  |  |     }; | 
 |  |  |     let res = await enterpriseEmployeeServices.stopElectronSign(params); | 
 |  |  |     if (res) { |