zhengyiming
2 天以前 b626d79c65da6f5e269fdc2af9c71dcd1823bac1
apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue
@@ -44,7 +44,7 @@
              @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="
@@ -72,7 +72,7 @@
} 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',
@@ -103,7 +103,13 @@
  }
);
function checkContract() {}
function checkContract(item: API.GetEnterpriseEmployeesQueryResultItem) {
  if (!item.contractUrl) {
    Message.warning('协议无法查看,请稍后再试');
    return;
  }
  openDocument(setOSSLink(item.contractUrl));
}
function goDetail(item: API.GetEnterpriseEmployeesQueryResultItem) {
  Taro.navigateTo({
@@ -115,7 +121,7 @@
  try {
    await Message.confirm({ message: '确定要解约吗?' });
    let params: API.StopElectronSignCommand = {
      id: item.id,
      ids: [item.id],
    };
    let res = await enterpriseEmployeeServices.stopElectronSign(params);
    if (res) {