index.vue 5.8 KB

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