index.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <!-- 删除客户资料-->
  3. <a-modal class="recover-custom"
  4. title="删除客户资料"
  5. v-model:visible="visible"
  6. @cancel="cancel"
  7. width="890px">
  8. <template #footer>
  9. <a-button key="submit"
  10. type="primary"
  11. :loading="loading"
  12. @click="submit">删除客户资料</a-button>
  13. </template>
  14. <a-form class="inlineForm"
  15. :form="form"
  16. @submit="handleSearch">
  17. <a-row :gutter="24">
  18. <a-col :span="12">
  19. <a-form-item label="客户类型">
  20. <span class="white">{{ selectedRow.userinfotype === '2' ? '企业' : '个人' }}</span>
  21. </a-form-item>
  22. </a-col>
  23. <a-col :span="12">
  24. <a-form-item label="企业名称">
  25. <span class="white">{{ formatValue(selectedRow.customername) }}</span>
  26. </a-form-item>
  27. </a-col>
  28. </a-row>
  29. <a-row :gutter="24">
  30. <a-col :span="12">
  31. <a-form-item label="企业简称">
  32. <span class="white">{{ formatValue(selectedRow.nickname) }}</span>
  33. </a-form-item>
  34. </a-col>
  35. <a-col :span="12">
  36. <a-form-item label="证件类型">
  37. <span class="white">{{ formatValue(selectedRow.cardtypename) }}</span>
  38. </a-form-item>
  39. </a-col>
  40. </a-row>
  41. <a-row :gutter="24">
  42. <a-col :span="12">
  43. <a-form-item label="法定代表人">
  44. <span class="white">{{ formatValue(selectedRow.legalpersonname) }}</span>
  45. </a-form-item>
  46. </a-col>
  47. <a-col :span="12">
  48. <a-form-item label="证件号码">
  49. <span class="white">{{ formatValue(selectedRow.cardnum) }}</span>
  50. </a-form-item>
  51. </a-col>
  52. </a-row>
  53. <a-row :gutter="24">
  54. <a-col :span="12">
  55. <a-form-item label="纳税人识别号">
  56. <span class="white">{{ formatValue(selectedRow.taxpayernum) }}</span>
  57. </a-form-item>
  58. </a-col>
  59. <a-col :span="12">
  60. <a-form-item label="营业执照">
  61. <a class="blue">查看附件</a>
  62. </a-form-item>
  63. </a-col>
  64. </a-row>
  65. <a-row :gutter="24">
  66. <a-col :span="12">
  67. <a-form-item label="联系人">
  68. <span class="white">{{ formatValue(selectedRow.contactname) }}</span>
  69. </a-form-item>
  70. </a-col>
  71. <a-col :span="12">
  72. <a-form-item label="联系人手机号">
  73. <span class="white">{{ formatValue(selectedRow.mobile) }}</span>
  74. </a-form-item>
  75. </a-col>
  76. </a-row>
  77. <a-row :gutter="24">
  78. <a-col :span="12">
  79. <a-form-item label="联系电话">
  80. <span class="white">{{ formatValue(selectedRow.telphone) }}</span>
  81. </a-form-item>
  82. </a-col>
  83. <a-col :span="12">
  84. <a-form-item label="状态">
  85. <span class="green">{{ formatValue(getStatusName(selectedRow.status)) }}</span>
  86. </a-form-item>
  87. </a-col>
  88. </a-row>
  89. <a-row :gutter="24">
  90. <a-col :span="24">
  91. <a-form-item label="通讯地址">
  92. <span class="white">{{ formatValue(selectedRow.address) }}</span>
  93. </a-form-item>
  94. </a-col>
  95. </a-row>
  96. <a-row :gutter="24">
  97. <a-col :span="24">
  98. <a-form-item label="备注">
  99. <span class="white">{{ formatValue(selectedRow.remark) }}</span>
  100. </a-form-item>
  101. </a-col>
  102. </a-row>
  103. </a-form>
  104. </a-modal>
  105. </template>
  106. <script lang="ts">
  107. import {defineComponent, PropType, ref} from 'vue';
  108. import { closeModal } from '@/common/setup/modal/index';
  109. import {deleteUserInfo} from "@/views/information/custom/compoments/setup";
  110. import {QueryCustomInfoType} from "@/services/go/ermcp/customInfo/interface";
  111. import {formatValue} from "@/common/methods";
  112. import {getStatusName} from "@/views/information/custom/setup";
  113. import {Modal} from "ant-design-vue";
  114. export default defineComponent({
  115. name: 'recover-custom',
  116. components: {},
  117. props: {
  118. selectedRow: {
  119. type: Object as PropType<QueryCustomInfoType>,
  120. default: {},
  121. },
  122. },
  123. setup(props) {
  124. const { visible, cancel } = closeModal('custom_info_btn_delete');
  125. const {loading, deleteCustomerInfo} = deleteUserInfo();
  126. function submit(){
  127. Modal.confirm({
  128. title: '是否确认删除客户资料',
  129. okText: '确认删除',
  130. cancelText: '取消',
  131. onOk() {
  132. deleteCustomerInfo(props.selectedRow.userid, cancel)
  133. },
  134. onCancel() {
  135. console.log('Cancel');
  136. },
  137. });
  138. }
  139. return {
  140. visible,
  141. cancel,
  142. submit,
  143. loading,
  144. formatValue,
  145. getStatusName,
  146. };
  147. },
  148. });
  149. </script>
  150. <style lang="less">
  151. .recover-custom {
  152. }
  153. </style
  154. >;