zhengyiming
7 天以前 307e714ec9f85bae11ed892cb90e199a341b6be3
src/views/FlexJobManage/FlexJobManage.vue
@@ -100,6 +100,9 @@
        :operationBtns="operationBtns"
        show-column-check
        ref="proTable"
        :table-props="{
          rowKey: 'id',
        }"
      >
      </ProTableV2>
    </AppContainer>
@@ -108,6 +111,7 @@
      v-bind="dialogBatchImportProps"
      @onDownloadTemplate="handleDownloadTemplate"
    />
    <SendShotMessageDialog v-bind="dialogShotMessageProps" />
  </LoadingLayout>
</template>
@@ -134,6 +138,7 @@
import { convertApi2FormUrlOnlyOne, downloadFileByUrl } from '@/utils';
import StaffInfoDialog from './components/StaffInfoDialog.vue';
import BatchImportDialog from './components/BatchImportDialog.vue';
import SendShotMessageDialog from './components/SendShotMessageDialog.vue';
defineOptions({
  name: 'EnterpriseManageList',
@@ -326,12 +331,44 @@
async function handleBatchImport() {}
const {
  dialogProps: dialogShotMessageProps,
  handleAdd: handleShotMessageAdd,
  editForm: editShotMessageForm,
} = useFormDialog({
  onConfirm: sendMessageForSign,
  defaultFormParams: {
    ids: [] as string[],
    customerId: '',
    name: '',
  },
});
async function handleSendShotMessage() {
  try {
    const selectionRows = getSelectionRows();
    if (selectionRows) {
      if (selectionRows.some((x) => x.status === 10)) {
        await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?');
      }
      handleShotMessageAdd({
        ids: selectionRows.map((x) => x.id),
        name: '人员签约通道短信',
      });
    }
  } catch (error) {}
}
async function sendMessageForSign() {
  try {
  } catch (error) {}
}
function handleDownloadTemplate() {
  downloadFileByUrl('', '批量导入模板');
}
function handleBatchUnSign() {}
function handleSendShotMessage() {}
function handleSign(row) {}
function handleBatchSign() {}