meeting-detail-attend.vue 34 KB

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