index.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <!-- 审核客户资料-->
  3. <a-modal class="commonModal custom_info_btn_check"
  4. title="审核客户资料"
  5. v-model:visible="visible"
  6. @cancel="cancel"
  7. centered
  8. width="890px">
  9. <template #footer>
  10. <a-button key="submit"
  11. class="cancelBtn"
  12. @click="cancel">取消
  13. </a-button>
  14. <a-button key="submit"
  15. type="primary"
  16. :loading="loading"
  17. @click="submit">审核通过
  18. </a-button>
  19. <a-button key="submit"
  20. type="primary"
  21. :loading="loading"
  22. @click="refuseSubmit">审核拒绝
  23. </a-button>
  24. </template>
  25. <a-form class="inlineForm"
  26. :form="form"
  27. @submit="handleSearch">
  28. <a-row :gutter="24">
  29. <a-col :span="12">
  30. <a-form-item label="客户类型">
  31. <span class="white">{{ selectedRow.userinfotype === '2' ? '企业' : '个人' }}</span>
  32. </a-form-item>
  33. </a-col>
  34. <a-col :span="12">
  35. <a-form-item label="企业名称">
  36. <span class="white">{{ formatValue(selectedRow.customername) }}</span>
  37. </a-form-item>
  38. </a-col>
  39. </a-row>
  40. <a-row :gutter="24">
  41. <a-col :span="12">
  42. <a-form-item label="企业简称">
  43. <span class="white">{{ formatValue(selectedRow.nickname) }}</span>
  44. </a-form-item>
  45. </a-col>
  46. <a-col :span="12">
  47. <a-form-item label="证件类型">
  48. <span class="white">{{ getCardTypeEnumItemName(selectedRow.cardtype) }}</span>
  49. </a-form-item>
  50. </a-col>
  51. </a-row>
  52. <a-row :gutter="24">
  53. <a-col :span="12">
  54. <a-form-item label="法定代表人">
  55. <span class="white">{{ formatValue(selectedRow.legalpersonname) }}</span>
  56. </a-form-item>
  57. </a-col>
  58. <a-col :span="12">
  59. <a-form-item label="证件号码">
  60. <span class="white">{{ formatValue(selectedRow.cardnum) }}</span>
  61. </a-form-item>
  62. </a-col>
  63. </a-row>
  64. <a-row :gutter="24">
  65. <a-col :span="12">
  66. <a-form-item label="纳税人识别号">
  67. <span class="white">{{ formatValue(selectedRow.taxpayernum) }}</span>
  68. </a-form-item>
  69. </a-col>
  70. <a-col :span="12">
  71. <a-form-item label="营业执照">
  72. <div class="upload">
  73. <div class="look">查看附件</div>
  74. </div>
  75. </a-form-item>
  76. </a-col>
  77. </a-row>
  78. <a-row :gutter="24">
  79. <a-col :span="12">
  80. <a-form-item label="联系人">
  81. <span class="white">{{ formatValue(selectedRow.contactname) }}</span>
  82. </a-form-item>
  83. </a-col>
  84. <a-col :span="12">
  85. <a-form-item label="联系人手机号">
  86. <span class="white">{{ formatValue(selectedRow.mobile) }}</span>
  87. </a-form-item>
  88. </a-col>
  89. </a-row>
  90. <a-row :gutter="24">
  91. <a-col :span="12">
  92. <a-form-item label="联系电话">
  93. <span class="white">{{ formatValue(selectedRow.telphone) }}</span>
  94. </a-form-item>
  95. </a-col>
  96. <a-col :span="12">
  97. <a-form-item label="状态">
  98. <span class="green">{{ formatValue(getStatusName(selectedRow.status)) }}</span>
  99. </a-form-item>
  100. </a-col>
  101. </a-row>
  102. <a-row :gutter="24">
  103. <a-col :span="24">
  104. <a-form-item label="通讯地址">
  105. <span class="white">{{ formatValue(selectedRow.address) }}</span>
  106. </a-form-item>
  107. </a-col>
  108. </a-row>
  109. <a-row :gutter="24">
  110. <a-col :span="24">
  111. <a-form-item label="备注">
  112. <span class="white">{{ formatValue(selectedRow.remark) }}</span>
  113. </a-form-item>
  114. </a-col>
  115. </a-row>
  116. </a-form>
  117. </a-modal>
  118. </template>
  119. <script lang="ts">
  120. import {defineComponent, PropType, ref} from 'vue';
  121. import {closeModal} from '@/common/setup/modal/index';
  122. import {QueryCustomInfoType} from '@/services/go/ermcp/customInfo/interface';
  123. import {formatValue} from '@/common/methods';
  124. import {getStatusName} from '@/common/constants/enumsName';
  125. import {UserInfoCheckMangeReq} from '@/services/proto/accountinfo/interface';
  126. import {getUserId} from '@/services/bus/account';
  127. import {Modal} from 'ant-design-vue';
  128. import {getCardTypeEnumItemName} from '@/common/constants/enumsName';
  129. import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
  130. import {userInfoCheck} from "@/services/proto/accountinfo";
  131. export default defineComponent({
  132. name: 'custom_info_btn_check',
  133. components: {},
  134. props: {
  135. selectedRow: {
  136. type: Object as PropType<QueryCustomInfoType>,
  137. default: {},
  138. },
  139. },
  140. setup(props, context) {
  141. const loading = ref<boolean>(false);
  142. const {visible, cancel} = closeModal('custom_info_btn_check');
  143. // 审核通过
  144. function submit() {
  145. Modal.confirm({
  146. title: '是否确认审核通过',
  147. okText: '确认通过',
  148. cancelText: '取消',
  149. onOk() {
  150. console.log('OK');
  151. let reqParam: UserInfoCheckMangeReq = {
  152. audituserid: getUserId(),
  153. userid: props.selectedRow.userid,
  154. auditflag: 1,
  155. remark: '',
  156. };
  157. requestResultLoadingAndInfo(userInfoCheck, reqParam, loading, ['审核成功', '审核失败:']).then(() => {
  158. cancel();
  159. context.emit('refresh');
  160. });
  161. },
  162. onCancel() {
  163. console.log('Cancel');
  164. },
  165. });
  166. }
  167. // 审核拒绝
  168. function refuseSubmit() {
  169. Modal.confirm({
  170. title: '是否确认审核拒绝',
  171. okText: '审核拒绝',
  172. cancelText: '取消',
  173. onOk() {
  174. console.log('OK');
  175. let reqParam: UserInfoCheckMangeReq = {
  176. audituserid: getUserId(),
  177. userid: props.selectedRow.userid,
  178. auditflag: 2,
  179. remark: '',
  180. }
  181. requestResultLoadingAndInfo(userInfoCheck, reqParam, loading, ['审核拒绝成功', '审核拒绝失败:']).then(() => {
  182. cancel();
  183. context.emit('refresh');
  184. });
  185. },
  186. onCancel() {
  187. console.log('Cancel');
  188. },
  189. });
  190. }
  191. return {
  192. visible,
  193. cancel,
  194. submit,
  195. loading,
  196. refuseSubmit,
  197. formatValue,
  198. getStatusName,
  199. getCardTypeEnumItemName,
  200. };
  201. },
  202. });
  203. </script>
  204. <style lang="less">
  205. .custom_info_btn_check {
  206. .upload {
  207. .look {
  208. margin-left: 0;
  209. }
  210. }
  211. }
  212. </style
  213. >;