meeting-detail-attend.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. <template>
  2. <div class="pd-16" style="overflow: auto;">
  3. <div class="d-flexflex-cln">
  4. <div class="info-title mb-10">可参会单位类型</div>
  5. <div class="bg-#fafafa pd-16 mb-20">
  6. <template v-for="item, index in form?.conditions?.typeCheck" :key="index">
  7. <span class="pr-5" v-if="item.check == '1'">
  8. {{ selectDictLabel(dm_check_join_type, item?.vipLevel)}}
  9. </span>
  10. </template>
  11. </div>
  12. <div class="info-title mb-10">报名限制条件</div>
  13. <div class="bg-#fafafa pd-16 mb-20" v-if="form?.conditions?.totalCheck == '0' || !form?.conditions?.totalCheck">无</div>
  14. <div class="bg-#fafafa pd-16 d-flex flex-cln" v-else>
  15. <div class="pd-5 pb-15" v-if="form?.conditions?.total">报名总人数 : {{ form?.conditions?.total }}人</div>
  16. <div class="d-flex">
  17. <div>
  18. <template v-for="(item, index) in form?.conditions?.levelCheck" :key="index">
  19. <div class="d-flex a-c pd-5" v-if="+item.check">
  20. <span>
  21. 所有
  22. <span class="f-w-6">
  23. {{ selectDictLabels(dm_check_join_type, item.vipLevel, ',') }}
  24. </span>
  25. 参会人数 ≤{{ item.total }}
  26. </span>
  27. </div>
  28. </template>
  29. </div>
  30. <div>
  31. <template v-for="(item, index) in form?.conditions?.cpyCheck" :key="index">
  32. <div class="d-flex a-c pd-5" v-if="+item.check">
  33. <span>
  34. <span class="f-w-6">{{ selectDictLabels(dm_check_join_type, item.vipLevel, ',') }}</span>
  35. 限制每家单位人数≤{{ item.total }}
  36. </span>
  37. </div>
  38. </template>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="info-title mb-10">参会费用</div>
  43. <div class="bg-#fafafa pd-16 d-flex flex-cln">
  44. <div class="pd-5 pb-15">是否收取费用 : {{ form?.meetingCharge?.hasFee == '1' ? '是' : '否' }}</div>
  45. <div class="pd-5 pb-15" v-if="form?.meetingCharge?.hasFee == '1'">收费标准 : {{ form?.meetingCharge?.pricing }}元/每人</div>
  46. <div class="pd-5 pb-15" v-if="form?.meetingCharge?.hasFee == '1'&& form?.meetingCharge?.hasFlatFee =='0'">所有人统一收取标准费用</div>
  47. <div class="pd-5 pb-15" v-if="form?.meetingCharge?.hasFee == '1' && form?.meetingCharge?.hasFlatFee =='1'">按报名人员类型收取,不同人员收取不同费用</div>
  48. <div class="d-flex flex-cln" v-if="form?.meetingCharge?.hasFee == '1' && form?.meetingCharge?.hasFlatFee =='1'">
  49. <template v-for="(item, index) in form?.meetingCharge?.typeCharge" :key="index">
  50. <view v-if="+item?.check" class="pd-5">
  51. <span class="f-w-6">
  52. {{ selectDictLabels(dm_check_join_type, item?.vipLevel, ',') }}
  53. </span>
  54. <span v-if="!+item?.certType">不收取费用</span>
  55. <span v-if="+item?.certType">
  56. <span v-if="item?.vipLevel !== 'P'">每个单位</span>
  57. 免除费用{{ item?.total }}人,其余报名人员每人收取费用{{ item?.cost }}元
  58. </span>
  59. </view>
  60. <div class="pd-5" v-if="!+item?.check && +form?.conditions?.typeCheck?.find(items => items?.vipLevel ==item?.vipLevel)?.check">
  61. <span class="f-w-6">
  62. {{ selectDictLabels(dm_check_join_type, item?.vipLevel, ',') }}
  63. </span>
  64. <span v-if="item?.vipLevel !== 'P'">每个单位</span>
  65. <span>每人收取费用{{ form?.meetingCharge?.pricing }}元</span>
  66. </div>
  67. </template>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="d-flex mb-16 ">
  72. <div class="info-title">
  73. <span>参会人员信息</span>
  74. <span class="f-s-14 c-666">(提交报名:{{ form?.submitCount || 0 }}人 | 已缴费:{{ form?.payCount || 0 }} 人 | 待审核:{{ form?.resWaitingCount || 0 }}人 | 审核通过:{{ form?.joinCount || 0 }}人 | 签到:{{ form?.signCount || 0 }}人 | 领取证书:{{ form?.certCount || 0 }}人)</span>
  75. </div>
  76. </div>
  77. <div class="d-flex j-sb">
  78. <!-- <div>
  79. <searchTabs v-if="form?.conditions?.totalCheck == '1'" v-model="queryParams.res" @change="handleQuery" :list="tabs" key-label="name" key-count="num" key-value="type"></searchTabs>
  80. </div> -->
  81. <span style="width: 1px;"></span>
  82. <el-form :model="queryParams" ref="queryFormRef" :inline="true" label-width="auto">
  83. <el-form-item label="企业名称:" prop="company">
  84. <el-input v-model="queryParams.company" placeholder="请输入企业名称" clearable style="width: 180px" />
  85. </el-form-item>
  86. <el-form-item label="姓名:" prop="name">
  87. <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable style="width: 180px" />
  88. </el-form-item>
  89. <el-form-item label="参会状态:" prop="signupStatus">
  90. <el-select v-model="queryParams.signupStatus" placeholder="请选择参会状态" clearable style="width: 180px">
  91. <el-option v-for="item in lm_signup_status_app_query" :key="item.value" :label="item.label" :value="item.value" />
  92. </el-select>
  93. </el-form-item>
  94. <el-form-item label="报名方式:" prop="tempJoin">
  95. <el-select v-model="queryParams.tempJoin" placeholder="请选择报名方式" clearable style="width: 180px">
  96. <el-option v-for="item in temp_join_type" :key="item.value" :label="item.label" :value="item.value" />
  97. </el-select>
  98. </el-form-item>
  99. <el-form-item label="审核状态:" prop="res">
  100. <el-select v-model="queryParams.res" placeholder="请选择审核状态" clearable style="width: 180px">
  101. <el-option v-for="item in cpy_res_status" :key="item.value" :label="item.label" :value="item.value" />
  102. </el-select>
  103. </el-form-item>
  104. <el-form-item label="支付状态:" prop="payStatus">
  105. <el-select v-model="queryParams.payStatus" placeholder="请选择支付状态" clearable style="width: 180px">
  106. <el-option v-for="item in dm_pay_status" :key="item.value" :label="item.label" :value="item.value" />
  107. </el-select>
  108. </el-form-item>
  109. <el-form-item label="支付方式:" prop="payType">
  110. <el-select v-model="queryParams.payType" placeholder="请选择支付方式" clearable style="width: 180px">
  111. <el-option v-for="item in [{value:'1',label:'微信支付'},{value:'2',label:'对公转账'}]" :key="item.value" :label="item.label" :value="item.value" />
  112. </el-select>
  113. </el-form-item>
  114. <el-form-item label="是否需要开票:" prop="hasInvoice">
  115. <el-select v-model="queryParams.hasInvoice" placeholder="请选择" clearable style="width: 180px">
  116. <el-option v-for="item in [{value:'0',label:'不需要'},{value:'1',label:'需要'}]" :key="item.value" :label="item.label" :value="item.value" />
  117. </el-select>
  118. </el-form-item>
  119. <el-form-item label="所在地区" label-width="70" prop="adcode">
  120. <AreaCascader v-model="queryParams.adcode" :zlevel="2" checkStrictly @change="handleQuery"></AreaCascader>
  121. </el-form-item>
  122. <el-form-item>
  123. <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
  124. <el-button icon="Refresh" @click="resetQuery">重置</el-button>
  125. <el-button icon="Download" @click="exportSearch">导出参会人员信息</el-button>
  126. </el-form-item>
  127. </el-form>
  128. </div>
  129. <vxe-table v-if="form" :loading="loading" border :data="list" min-height="0">
  130. <!-- 序号 -->
  131. <vxe-column type="seq" width="60" title="序号" align="center" />
  132. <vxe-column title="企业名称" field="company" min-width="100" :formatter="colNoData" />
  133. <vxe-column title="所在地区" field="adcodeName" min-width="100" :formatter="colNoData" />
  134. <vxe-column title="单位类型" field="vipLevel" min-width="100" :formatter="colNoData" align="center">
  135. <template #default="{ row }">
  136. <div class="d-flex a-c j-c">
  137. <DictTag :options="dm_check_join_type" :value="row?.vipLevel"></DictTag>
  138. </div>
  139. </template>
  140. </vxe-column>
  141. <vxe-column title="姓名" field="name" min-width="100" :formatter="colNoData">
  142. <template #default="{ row }">
  143. <div class="f-w-5">{{ row?.name }}</div>
  144. <div v-if="row?.extendInfo?.tags" class="d-flex flex-cln">
  145. <el-tag class="mb-5" type="warning" v-for="(item,index) in row?.extendInfo?.tags.split(',')" :key="index">{{ item }}</el-tag>
  146. </div>
  147. </template>
  148. </vxe-column>
  149. <!-- <vxe-column title="职务" field="position" min-width="100" :formatter="colNoData" /> -->
  150. <vxe-column title="联系方式" field="contact" min-width="100" :formatter="colNoData" />
  151. <vxe-column title="备注" field="remark" min-width="100" :formatter="colNoData" />
  152. <vxe-column title="参会费用" field="joinFee" min-width="100" :formatter="colNoData" v-if="form?.meetingCharge?.hasFee =='1'">
  153. <template #default="{ row }">
  154. <div class="f-w-5">{{ row?.joinFee }}</div>
  155. </template>
  156. </vxe-column>
  157. <vxe-column title="支付方式" field="payType" min-width="100" :formatter="colNoData" v-if="form?.meetingCharge?.hasFee =='1'">
  158. <template #default="{ row }">
  159. <div v-if="row.payType === '1'" class="f-w-5">微信支付</div>
  160. <div v-if="row.payType === '2'" class="f-w-5">对公转账</div>
  161. <div v-if="row?.payType !=='1'&& row?.payType !=='2'">-</div>
  162. </template>
  163. </vxe-column>
  164. <vxe-column title="开票信息" field="remark" min-width="100" :formatter="colNoData" v-if="form?.meetingCharge?.hasFee =='1'">
  165. <template #default="{ row }">
  166. <div v-if="row.payStatus == '1'&& !+row?.invoiceStatus && +row?.hasInvoice" @click="checkInvoiceData(row?.invoiceInfo)" class="pointer">查看</div>
  167. <div v-if="row.payStatus == '1' && +row?.invoiceStatus && +row?.hasInvoice" @click="openPDF(row?.invoiceUrl?.url)" class="pointer" style="color: red;">已开票,点击查看</div>
  168. <div v-if="row?.payStatus == '0'">{{ '-' }}</div>
  169. <div v-if="row?.payStatus !== '0' &&!+row?.hasInvoice">{{ '不需要' }}</div>
  170. </template>
  171. </vxe-column>
  172. <vxe-column title="报名时间" align="center" field="createTime" min-width="100" :formatter="colNoData" />
  173. <vxe-column title="特殊说明" min-width="100" field="tempJoin">
  174. <template #default="{ row }">
  175. {{ +row?.tempJoin?'通过临时报名通道报名':'-' }}
  176. </template>
  177. </vxe-column>
  178. <vxe-column title="支付状态" field="payStatus" min-width="100" :formatter="colNoData" v-if="form?.meetingCharge?.hasFee =='1'" fixed="right">
  179. <template #default="{ row }">
  180. <div class="f-w-5">{{ selectDictLabel(dm_pay_status, row?.payStatus)}}</div>
  181. <el-tooltip :content="`系统单号${row?.outTradeNo}`" placement="top" effect="light">
  182. <el-icon v-if="row.payStatus == '1'"><QuestionFilled /></el-icon>
  183. </el-tooltip>
  184. </template>
  185. </vxe-column>
  186. <vxe-column title="报名信息" min-width="80" fixed="right">
  187. <template #default="{ row }">
  188. <div class="c-s-p"><u @click="checkRegostrationInfo(row)">查看报名信息</u></div>
  189. </template>
  190. </vxe-column>
  191. <vxe-column title="参会状态" min-width="100" fixed="right">
  192. <template #default="{ row }">
  193. <DictTag v-if="row?.signupStatusForPc" :options="lm_signup_status_app_show" :value="row?.signupStatusForPc"></DictTag>
  194. <div v-else>-</div>
  195. </template>
  196. </vxe-column>
  197. <vxe-column v-if="form?.conditions?.totalCheck == '1'" title="审核状态" min-width="100" fixed="right">
  198. <template #default="{ row }">
  199. <div v-if="row?.res == '3'||row?.res == '4'||row?.res == '5'">{{ '-' }}</div>
  200. <div v-else class="d-flex a-c">
  201. <DictTag :class="{ 'c-red': row?.res === '0' }" :options="cpy_res_status" :value="row?.res" />
  202. <el-tooltip class="box-item" effect="dark" :content="row?.msg" placement="top">
  203. <el-icon v-show="row?.res == '2'">
  204. <QuestionFilled />
  205. </el-icon>
  206. </el-tooltip>
  207. </div>
  208. </template>
  209. </vxe-column>
  210. <vxe-column v-if="form?.conditions?.totalCheck == '1' || form?.meetingCharge?.hasFee == '1'" title="操作" width="140" align="center" fixed="right">
  211. <template #default="{ row }">
  212. <div class="d-flex flex-cln">
  213. <el-button class="mb-10" type="danger" size="small" v-if="row?.res !== '0' && row?.signInFlag !=='1' && form?.conditions?.totalCheck == '1'&& row?.payStatus == '1' && form?.meetingCharge?.hasFee !== '1'" @click="openDialog(row)" style="color: white">重审</el-button>
  214. <span></span>
  215. <el-button class="mb-10" size="small" color="#33aeeb" @click="openDialog(row)" style="color: white" v-if="row?.res == '0' && form?.conditions?.totalCheck == '1' &&form?.trainingStatus !== '2'">审核</el-button>
  216. <span></span>
  217. <el-button class="mb-10" v-if="row.res=='3' || row.res== '5'" size="small" color="#e99d42" style="color: white;" @click="openModification(row)">修改费用金额</el-button>
  218. <span></span>
  219. <el-button class="mb-10" v-if="row.res== '5' && row?.payType=='2'" size="small" color="#81b337" style="color: white;" @click="openTransfer(row)">确认收到款项</el-button>
  220. <span></span>
  221. <div v-if="row.payStatus == '1' && (row?.res == '0'|| row?.res == '2') && form?.trainingStatus == '2' && +row?.joinFee && row.payStatus !== '10'">用户报名未成功,请至微信商户号进行退款</div>
  222. <div v-if="row.payStatus === '10'">该报名已退款</div>
  223. <el-upload v-if="form?.trainingStatus == '2' && +row.joinFee && +row?.hasInvoice && !+row?.invoiceStatus && row.payStatus == '1' &&form?.meetingCharge?.hasFee =='1' && row?.res !== '0' && row?.res !== '2'" class="upload-demo" :action="uploadFileUrl" multiple :limit="1" :on-success="handleSuccess" :headers="headers" :show-file-list="false" accept=".pdf,.PDF">
  224. <el-button class="mb-10" size="small" color="#33aeeb" style="color: white" @click=" invoiceId = row.id">上传发票</el-button>
  225. </el-upload>
  226. <span></span>
  227. <el-upload v-if="form?.trainingStatus == '2' && +row.joinFee && +row?.hasInvoice && +row?.invoiceStatus && row.payStatus == '1' &&form?.meetingCharge?.hasFee =='1'&& row?.res !== '0' && row?.res !== '2'" class="upload-demo" :action="uploadFileUrl" multiple :limit="1" :on-success="handleSuccess" :headers="headers" :show-file-list="false" accept=".pdf,.PDF">
  228. <el-button size="small" class="mb-10" type="primary" color="#33aeeb" style="color: white" @click=" invoiceId = row.id">重新上传</el-button>
  229. </el-upload>
  230. <el-button size="small" class="mb-10" @click="openPersonnelLabel(row?.id)">设置人员标签</el-button>
  231. <span></span>
  232. <el-button size="small" class="mb-10" @click="opencontactPerson(row?.id,row)" v-if="!+row?.extendInfo?.contactInfo?.specifyConcatTel">设置联系人</el-button>
  233. <el-button size="small" class="mb-10" @click="opencontactPerson(row?.id,row)" v-else>查看联系人</el-button>
  234. </div>
  235. </template>
  236. </vxe-column>
  237. </vxe-table>
  238. <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" :pageSizes="[50, 100, 150, 500, 1000]" v-model:limit="queryParams.pageSize" @pagination="getList" />
  239. </div>
  240. <el-dialog v-model="dialogVisible" title="审核信息" width="500" center>
  241. <el-form ref="formRef" :model="fromvalue" :rules="rules" label-width="80px">
  242. <el-form-item label="审核结果" prop="res">
  243. <el-radio-group v-model="fromvalue.res">
  244. <el-radio value="1" border>通过</el-radio>
  245. <el-radio value="2" border :class="{ 'reject-radio': fromvalue.res === '2' }">不通过</el-radio>
  246. </el-radio-group>
  247. </el-form-item>
  248. <el-form-item label="理由" prop="msg" :rules="fromvalue.res === '2' ? rules.msgRequired : rules.msgOptional">
  249. <el-input v-model="fromvalue.msg" type="textarea" :rows="4" placeholder="请填写不通过的理由" maxlength="50" show-word-limit />
  250. </el-form-item>
  251. </el-form>
  252. <template #footer>
  253. <div class="dialog-footer">
  254. <el-button @click="dialogVisible = false">取消</el-button>
  255. <el-button type="primary" @click="signupApprovals()">确认</el-button>
  256. </div>
  257. </template>
  258. </el-dialog>
  259. <el-dialog v-model="modiFication" title="修改费用金额" width="300" center>
  260. <div class="d-flex a-c">
  261. <span class="flex1" style="white-space: nowrap;">参会费用:</span>
  262. <el-input v-model="(participationFee)" placeholder="请填写费用金额" type="number" />
  263. </div>
  264. <template #footer>
  265. <div class="dialog-footer">
  266. <el-button @click="modiFication = false">我再看看</el-button>
  267. <el-button type="primary" @click="changeEditPrice">确认修改</el-button>
  268. </div>
  269. </template>
  270. </el-dialog>
  271. <el-dialog v-model="showTransfer" title="系统提示" width="760" center>
  272. <template #header="{ titleId, titleClass }">
  273. <div :id="titleId" :class="titleClass" class="titleClass">系统提示</div>
  274. </template>
  275. <div class="d-flex a-c flex-cln" style="align-items: flex-start;">
  276. <div class="f-s-26" style="margin-bottom: 40px;margin-top: 20px;">请选择具体的收款人方式:</div>
  277. <!-- <el-form-item label="" prop="res">
  278. <el-radio-group v-model="collectiontype">
  279. <el-radio size="large" value="3" border :class="{ 'orange-radio': collectiontype === '4' }" style="height: 100px;width: 300px;">对公转账收款</el-radio>
  280. <el-radio size="large" value="4" border style="height: 100px;width: 300px;">现场支付</el-radio>
  281. </el-radio-group>
  282. </el-form-item> -->
  283. <div class="d-flex">
  284. <div class="orange-button" :class="{'orange-active': collectiontype === '4'}" @click="collectiontype = '4'">对公转账收款</div>
  285. <div class="green-button" :class="{'green-active': collectiontype === '3'}" @click="collectiontype = '3'">现场收款</div>
  286. </div>
  287. <div class="f-s-24">确认收款后将直接改为已支付状态,并进入报名审核流程,操作无法撤回请慎重操作。</div>
  288. </div>
  289. <template #footer>
  290. <div class="dialog-footer">
  291. <el-button @click="showTransfer = false" size="large" class="mr-20">我再看看</el-button>
  292. <el-button type="primary" @click="confirmTransfer" size="large">确认收款</el-button>
  293. </div>
  294. </template>
  295. </el-dialog>
  296. <el-dialog v-model="invoicingInformation" title="开票信息" width="600" center>
  297. <div class="d-flex a-c j-sb pt-10 pb-10 f-s-16">
  298. <div>名称:</div>
  299. <div>{{ invoiceData?.headTitle || '-' }}</div>
  300. </div>
  301. <div class="d-flex a-c j-sb pt-10 pb-10 f-s-16">
  302. <div>税号:</div>
  303. <div>{{ invoiceData?.taxSn || '-'}}</div>
  304. </div>
  305. <div class="d-flex a-c j-sb pt-10 pb-10 f-s-16">
  306. <div>单位地址:</div>
  307. <div>{{ invoiceData?.address || '-'}}</div>
  308. </div>
  309. <div class="d-flex a-c j-sb pt-10 pb-10 f-s-16">
  310. <div>电话号码:</div>
  311. <div>{{ invoiceData?.contactPhone || '-'}}</div>
  312. </div>
  313. <div class="d-flex a-c j-sb pt-10 pb-10 f-s-16">
  314. <div>开户银行:</div>
  315. <div>{{ invoiceData?.bankName || '-'}}</div>
  316. </div>
  317. <div class="d-flex a-c j-sb pt-10 pb-10 f-s-16">
  318. <div>银行账户:</div>
  319. <div>{{ invoiceData?.bankAccount || '-'}}</div>
  320. </div>
  321. </el-dialog>
  322. <el-dialog v-model="personnelLabel" title="设置人员标签" width="600" center>
  323. <el-checkbox-group v-model="radioLabel">
  324. <el-checkbox v-for="(item,index) in signup_tags_type" :key="index" :label="item?.label" :value="item.value" />
  325. </el-checkbox-group>
  326. <template #footer>
  327. <div class="dialog-footer">
  328. <el-button @click="personnelLabel = false">取消</el-button>
  329. <el-button type="primary" @click="confirmPersonnelLabel()">确认添加</el-button>
  330. </div>
  331. </template>
  332. </el-dialog>
  333. <el-dialog v-model="contactPerson" title="设置1对1联系人" width="600" center>
  334. <template #header="{titleId }">
  335. <div class="my-header">
  336. <div :id="titleId" class="f-s-20">为{{contactData?.name}}({{ contactData?.contact}})设置1对1联系人</div>
  337. </div>
  338. </template>
  339. <el-form :model="contactPersonData">
  340. <el-form-item prop="contactName" :rules="[{ required: true, message: '请填写指定联系人名称' }]">
  341. <div class="d-flex a-c">
  342. <div class="pr-20">指定联系人名称</div>
  343. <el-input v-model="contactPersonData.contactName" style="width: 300px;"></el-input>
  344. </div>
  345. </el-form-item>
  346. <el-form-item prop="contactTel" :rules="[{ required: true, message: '请填写指定联系人电话' }]">
  347. <div class="d-flex pt-20 a-c">
  348. <div class="pr-20">指定联系人电话</div>
  349. <el-input v-model.number="contactPersonData.contactTel" style="width: 300px;"></el-input>
  350. </div>
  351. </el-form-item>
  352. </el-form>
  353. <template #footer>
  354. <div class="dialog-footer">
  355. <el-button @click="contactPerson = false">取消</el-button>
  356. <el-button type="primary" @click="confirmContactPerson()" v-if="!+contactData?.extendInfo?.contactInfo?.specifyConcatTel">确认添加</el-button>
  357. <el-button type="primary" @click="confirmContactPerson()" v-else>确认修改</el-button>
  358. </div>
  359. </template>
  360. </el-dialog>
  361. <registrationInfo v-if="showTemporary" v-model:show="showTemporary" :info="temporaryRegistration"></registrationInfo>
  362. </template>
  363. <script setup name="MeetingDetailInfo" lang="ts">
  364. import { exportTrainingMembers, signupApproval, signupCount, trainingMembers,editPrice,confirmSigPublicPay,uploadInvoice,markTags,signupContact} from '@/api/training';
  365. import { colNoData } from '@/utils/noData';
  366. import { searchTabs } from '@/views/models';
  367. import { debounce } from 'lodash';
  368. import { onMounted, reactive, ref ,ComponentPublicInstance} from 'vue';
  369. import registrationInfo from './registration-info.vue';
  370. import { AreaCascader } from '@/views/components';
  371. import { globalHeaders } from '@/utils/request';
  372. const { proxy } = getCurrentInstance() as ComponentInternalInstance;
  373. const { cpy_res_status, lm_signup_status_app_show, dm_check_join_type,temp_join_type,dm_pay_status,lm_signup_status_app_query,signup_tags_type} = toRefs<any>(proxy?.useDict('cpy_res_status', 'lm_signup_status_app_show', 'dm_check_join_type','temp_join_type','dm_pay_status',"lm_signup_status_app_query","signup_tags_type"));
  374. // 获取详情
  375. const props = defineProps({
  376. form: {
  377. type: Object,
  378. default: () => ({})
  379. }
  380. });
  381. const baseUrl = import.meta.env.VITE_APP_BASE_API;
  382. const uploadFileUrl = ref(baseUrl + '/resource/oss/upload'); // 上传文件服务器地址
  383. const rules = reactive({
  384. res: [
  385. { required: true, message: '请选择审核结果', trigger: 'blur' }
  386. ],
  387. msgRequired: [ // For "不通过" (value="2")
  388. { required: true, message: '请填写不通过的理由', trigger: 'blur' }
  389. ],
  390. msgOptional: [ // For "通过" (value="1")
  391. { required: false, trigger: 'blur' }
  392. ]
  393. })
  394. const showTemporary = ref(false);
  395. const dialogVisible = ref(false);
  396. const temporaryRegistration = ref();
  397. const modiFication=ref<any>(false)
  398. const showTransfer = ref(false)
  399. const participationFee = ref()
  400. const editPricedata = ref()
  401. const invoicingInformation = ref(false)
  402. const invoiceData = ref()
  403. const invoiceId = ref()
  404. const headers = ref(globalHeaders());
  405. const fromvalue = ref<any>({
  406. targetId: '',
  407. msg: ''
  408. })
  409. const collectiontype =ref()
  410. const personnelLabel = ref(false)
  411. const radioLabel = ref()
  412. const radioLabelId = ref()
  413. const contactPerson = ref(false)
  414. const contactId = ref()
  415. const contactData = ref()
  416. const contactPersonData = ref({
  417. contactName:'',
  418. contactTel:''
  419. })
  420. const openPersonnelLabel = (id)=>{
  421. radioLabel.value = []
  422. personnelLabel.value = true
  423. radioLabelId.value = id
  424. }
  425. const confirmPersonnelLabel = async()=>{
  426. personnelLabel.value = false
  427. await markTags({id:radioLabelId.value,tags:radioLabel.value.join(',')})
  428. radioLabel.value = []
  429. getList()
  430. }
  431. const opencontactPerson = (id,data)=>{
  432. contactId.value = id
  433. contactData.value= data
  434. contactPerson.value = true
  435. if(data?.extendInfo?.contactInfo?.specifyContact && data?.extendInfo?.contactInfo?.specifyConcatTel){
  436. contactPersonData.value.contactName = data.extendInfo.contactInfo.specifyContact
  437. contactPersonData.value.contactTel = data.extendInfo.contactInfo.specifyConcatTel
  438. }else{
  439. contactPersonData.value.contactName = ''
  440. contactPersonData.value.contactTel = ''
  441. }
  442. }
  443. const confirmContactPerson = async()=>{
  444. await signupContact({id:contactId.value,contactInfo:{specifyConcatTel:contactPersonData.value?.contactTel,specifyContact:contactPersonData.value?.contactName}})
  445. contactPerson.value = false
  446. }
  447. const checkInvoiceData = (row)=>{
  448. invoicingInformation.value = true
  449. invoiceData.value = row
  450. }
  451. const checkRegostrationInfo = (row) => {
  452. temporaryRegistration.value = row;
  453. showTemporary.value = true;
  454. };
  455. const openDialog = (row) => {
  456. fromvalue.value.targetId = row.id; // 保存当前行数据
  457. fromvalue.value.msg = ''
  458. dialogVisible.value = true;
  459. };
  460. const query = useRoute().query;
  461. const queryParams = ref<any>({
  462. pageNum: 1,
  463. pageSize: 50,
  464. trainingId: query?.id || '',
  465. payStatus:'',
  466. payType:'',
  467. invoiceStatus:''
  468. });
  469. const loading = ref(false);
  470. const total = ref(0);
  471. const list = ref<any>([]);
  472. const tabs = ref([]);
  473. const formRef = ref()
  474. const getExpertPersonCount = async () => {
  475. const res = await signupCount(query?.id);
  476. if (res?.code === 200) {
  477. tabs.value = res.data;
  478. }
  479. };
  480. const getList = async () => {
  481. loading.value = true;
  482. const res = await trainingMembers(queryParams.value);
  483. if (!res || res.code !== 200) return;
  484. list.value = res.rows;
  485. total.value = res.total;
  486. loading.value = false;
  487. };
  488. const signupApprovals = async () => {
  489. await formRef.value.validate()
  490. const res = await signupApproval(fromvalue.value);
  491. dialogVisible.value = false;
  492. handleQuery();
  493. };
  494. const handleQuery = () => {
  495. queryParams.value.pageNum = 1;
  496. getList();
  497. getExpertPersonCount()
  498. };
  499. const queryFormRef = ref<ElFormInstance>();
  500. const resetQuery = () => {
  501. queryFormRef.value?.resetFields();
  502. handleQuery();
  503. };
  504. const exportSearch = debounce(() => {
  505. const params = {
  506. ...queryParams.value
  507. };
  508. delete params.pageNum;
  509. delete params.pageSize;
  510. exportTrainingMembers(params);
  511. }, 500);
  512. // 打开修改金额的按钮
  513. const openModification = (row)=>{
  514. modiFication.value = true;
  515. participationFee.value = row.joinFee
  516. editPricedata.value = row
  517. }
  518. const openTransfer = (row)=>{
  519. showTransfer.value = true
  520. editPricedata.value = row
  521. }
  522. const confirmTransfer = async()=>{
  523. await confirmSigPublicPay(editPricedata.value?.id,collectiontype)
  524. showTransfer.value = false
  525. getList();
  526. }
  527. const changeEditPrice = async ()=>{
  528. await editPrice({
  529. id:editPricedata.value?.id,
  530. price:participationFee.value
  531. });
  532. modiFication.value = false
  533. getList();
  534. }
  535. const handleSuccess = async(res,uploadFile)=>{
  536. await uploadInvoice({
  537. id:invoiceId.value,
  538. invoiceUrl:{
  539. fileName:res.data.fileName,
  540. url:res.data.url,
  541. fileSize:uploadFile.raw.size
  542. }
  543. })
  544. getList();
  545. }
  546. const openPDF = (url)=>{
  547. window.open(url)
  548. }
  549. onMounted(() => {
  550. getList();
  551. getExpertPersonCount();
  552. });
  553. </script>
  554. <style scoped lang="scss">
  555. .tabs-item {
  556. margin-right: 20px;
  557. padding: 8px 20px;
  558. font-size: 14px;
  559. border-color: #d7d7d7;
  560. border-style: solid;
  561. border-width: 1px 1px 0 1px;
  562. cursor: pointer;
  563. user-select: none;
  564. &.checked {
  565. color: #fff;
  566. border-color: var(--el-color-primary);
  567. background-color: var(--el-color-primary);
  568. }
  569. }
  570. .border-botttom {
  571. border-bottom: 1px solid #d7d7d7;
  572. }
  573. .reject-radio :deep(.el-radio__label) {
  574. color: #F56C6C;
  575. }
  576. .orange-radio :deep(.el-radio__label) {
  577. color: orange;
  578. }
  579. .reject-radio :deep(.el-radio__inner) {
  580. border-color: #F56C6C;
  581. background: #F56C6C;
  582. }
  583. .reject-radio :deep(.el-radio__border) {
  584. border-color: #F56C6C;
  585. }
  586. :deep(.reject-radio.el-radio.is-bordered.is-checked) {
  587. border-color: #F56C6C !important;
  588. }
  589. .single{
  590. position: absolute;
  591. top: -20px;
  592. right: 30px;
  593. width: 200px;
  594. left: 70px;
  595. }
  596. .orange-button{
  597. border:1px solid #d7d7d7;
  598. height: 100px;
  599. width: 300px;
  600. display: flex;
  601. align-items: center;
  602. justify-content: center;
  603. cursor: pointer;
  604. font-size: 36px;
  605. margin-right: 40px;
  606. margin-bottom: 40px;
  607. font-weight: 600;
  608. }
  609. .orange-button:hover{
  610. color: white;
  611. background-color: orange;
  612. border: 1px solid orange;
  613. opacity: 0.5;
  614. }
  615. .green-button:hover{
  616. color: white;
  617. background-color: green;
  618. border: 1px solid green;
  619. opacity: 0.5;
  620. }
  621. .green-button{
  622. border:1px solid #d7d7d7;
  623. height: 100px;
  624. width: 300px;
  625. display: flex;
  626. align-items: center;
  627. justify-content: center;
  628. cursor: pointer;
  629. font-size: 36px;
  630. margin-right: 40px;
  631. margin-bottom: 40px;
  632. font-weight: 600;
  633. }
  634. .orange-active{
  635. color: white;
  636. background-color: orange;
  637. border: 1px solid orange;
  638. }
  639. .green-active{
  640. color: white;
  641. background-color: green;
  642. border: 1px solid green;
  643. }
  644. .titleClass{
  645. font-size: 30px !important;
  646. }
  647. </style>