index.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <!-- 停用客户资料-->
  3. <a-modal class="commonModal warehouse-disable"
  4. title="停用客户资料"
  5. v-model:visible="visible"
  6. centered
  7. :maskClosable="maskClosableFlag"
  8. @cancel="cancel"
  9. width="890px">
  10. <template #footer>
  11. <a-button key="submit"
  12. class="cancelBtn"
  13. @click="cancel">取消</a-button>
  14. <a-button key="submit"
  15. type="primary"
  16. :loading="loading"
  17. @click="submit">确认停用</a-button>
  18. </template>
  19. <a-form class="inlineForm"
  20. :form="form"
  21. @submit="handleSearch">
  22. <a-row :gutter="24">
  23. <a-col :span="12">
  24. <a-form-item label="客户类型">
  25. <span class="white">{{ selectedRow.userinfotype === '2' ? '企业' : '个人' }}</span>
  26. </a-form-item>
  27. </a-col>
  28. <a-col :span="12">
  29. <a-form-item label="企业名称">
  30. <span class="white">{{ formatValue(selectedRow.customername) }}</span>
  31. </a-form-item>
  32. </a-col>
  33. </a-row>
  34. <a-row :gutter="24">
  35. <a-col :span="12">
  36. <a-form-item label="企业简称">
  37. <span class="white">{{ formatValue(selectedRow.nickname) }}</span>
  38. </a-form-item>
  39. </a-col>
  40. <a-col :span="12">
  41. <a-form-item label="证件类型">
  42. <span class="white">{{ formatValue(selectedRow.cardtypename) }}</span>
  43. </a-form-item>
  44. </a-col>
  45. </a-row>
  46. <a-row :gutter="24">
  47. <a-col :span="12">
  48. <a-form-item label="法定代表人">
  49. <span class="white">{{ formatValue(selectedRow.legalpersonname) }}</span>
  50. </a-form-item>
  51. </a-col>
  52. <a-col :span="12">
  53. <a-form-item label="证件号码">
  54. <span class="white">{{ formatValue(selectedRow.cardnum) }}</span>
  55. </a-form-item>
  56. </a-col>
  57. </a-row>
  58. <a-row :gutter="24">
  59. <a-col :span="12">
  60. <a-form-item label="纳税人识别号">
  61. <span class="white">{{ formatValue(selectedRow.taxpayernum) }}</span>
  62. </a-form-item>
  63. </a-col>
  64. <a-col :span="12">
  65. <a-form-item label="营业执照">
  66. <a class="blue">查看附件</a>
  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 { updateUserAccount } from '@/views/information/custom/compoments/setup';
  115. import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
  116. import { formatValue } from '@/common/methods';
  117. import { getStatusName } from '@/views/information/custom/setup';
  118. import { Modal } from 'ant-design-vue';
  119. export default defineComponent({
  120. name: 'custom-disable',
  121. components: {},
  122. props: {
  123. selectedRow: {
  124. type: Object as PropType<QueryCustomInfoType>,
  125. default: {},
  126. },
  127. },
  128. setup(props) {
  129. const { visible, cancel } = closeModal('goods_info_spot_normal_disable');
  130. const maskClosableFlag = ref<boolean>(false);
  131. const { loading, ModifyUserInfo } = updateUserAccount();
  132. function submit() {
  133. Modal.confirm({
  134. title: '是否确认停用客户资料',
  135. okText: '确认停用',
  136. cancelText: '取消',
  137. onOk() {
  138. ModifyUserInfo(props.selectedRow.userid, 6);
  139. },
  140. onCancel() {
  141. console.log('Cancel');
  142. },
  143. });
  144. }
  145. return {
  146. visible,
  147. cancel,
  148. submit,
  149. loading,
  150. maskClosableFlag,
  151. formatValue,
  152. getStatusName,
  153. };
  154. },
  155. });
  156. </script>
  157. <style lang="less">
  158. .warehouse-disable {
  159. }
  160. </style>