index.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <template>
  2. <div class="service-provider-detail">
  3. <page-detail-layout :tabs="tabs" v-model:tab-active-key="tabActiveKey" :index-config="indexConfig"
  4. :title="descData.providerName" v-if="descData !== null">
  5. <template #titleRight>
  6. <!-- <img src="/@/assets/images/page-detail-layout/customer/SS_user.png" alt="" /> -->
  7. <a-tag color="blue">{{ descData.providerGrade ?? '服务商等级空' }}</a-tag>
  8. <a-tag
  9. color="blue">{{ descData.regionType && descData.regionType.length > 0 ? descData.regionType[0].valueName : '类型为空' }}</a-tag>
  10. </template>
  11. <template #toolBtn>
  12. <a-button ghost type="primary" danger size="small">服务商退库</a-button>
  13. <a-button ghost type="primary" danger size="small">服务商转移</a-button>
  14. <a-button ghost type="primary" size="small">编辑</a-button>
  15. </template>
  16. <template #titleBottom>
  17. <a-tag color="#f0f4fe" v-for="(tagItem, tagIndex) in tagList" :key="tagIndex">
  18. <div class="tag-stl">
  19. <img :src="tagItem.icon" alt="" />
  20. <span class="title-render">{{ tagItem.title }}</span>
  21. </div>
  22. </a-tag>
  23. </template>
  24. <template #basicInfo>
  25. <BasicInfo :data="descData" />
  26. </template>
  27. <template #warehouseAudit>
  28. <WarehouseAudit :id="id" />
  29. </template>
  30. <template #guaranteeSum>
  31. <GuaranteeSum :id="id" />
  32. </template>
  33. <template #progressStatus>
  34. <ProgressStatus :id="id" />
  35. </template>
  36. <template #cooperativeProject>
  37. <CooperativeProject :id="id" />
  38. </template>
  39. <template #settlementManage>
  40. <SettlementManage :id="id" />
  41. </template>
  42. <template #providerEvaluation>
  43. <ProviderEvaluation :id="id" />
  44. </template>
  45. <template #accountManage>
  46. <AccountManage :id="id" />
  47. </template>
  48. <template #documentMaterials>
  49. <DocumentMaterials :id="id" />
  50. </template>
  51. </page-detail-layout>
  52. </div>
  53. </template>
  54. <script setup>
  55. import { onMounted, ref } from 'vue';
  56. import { useRoute } from 'vue-router';
  57. import PageDetailLayout from '/@/components/business/page-detail-layout/index.vue';
  58. import selectedIcon from '/@/assets/images/page-detail-layout/selectedIcon.png';
  59. import unSelectedIcon from '/@/assets/images/page-detail-layout/unSelectedIcon.png';
  60. import BasicInfo from './components/basic-info/index.vue'
  61. import WarehouseAudit from './components/warehouse-audit/index.vue'
  62. import GuaranteeSum from './components/guarantee-sum/index.vue'
  63. import ProgressStatus from './components/progress-status/index.vue'
  64. import CooperativeProject from './components/cooperative-project/index.vue'
  65. import SettlementManage from './components/settlement-manage/index.vue'
  66. import ProviderEvaluation from './components/provider-evaluation/index.vue'
  67. import AccountManage from './components/account-manage/index.vue'
  68. import DocumentMaterials from './components/document-materials/index.vue'
  69. import { getProviderDetail } from '/@/api/market-manage/service-provider-manage';
  70. const route = useRoute()
  71. const { id } = route.query
  72. const descData = ref(null)
  73. onMounted(() => {
  74. getProviderDetail(id).then((res) => {
  75. descData.value = res.data
  76. // descData.value.countryRegion = '02'
  77. indexConfig.value = {
  78. sourceData: [
  79. {
  80. label: '合同数量',
  81. value: '',
  82. },
  83. {
  84. label: '累计合同额',
  85. value: '',
  86. },
  87. {
  88. label: '联系人',
  89. value: descData.value['contactPeople'],
  90. },
  91. {
  92. label: '联系电话',
  93. value: descData.value['contactPhone'],
  94. },
  95. {
  96. label: '归属营销人员',
  97. value: '',
  98. },
  99. ],
  100. labelKey: 'label',
  101. valueKey: 'value',
  102. }
  103. tagList.value = [
  104. {
  105. title: descData.value.providerType&&descData.value.providerType.length>0?descData.value.providerType[0].valueName:'类型为空',
  106. // icon: getImgUrl('icon-tianyancha'),
  107. },
  108. {
  109. title: descData.value.id??'',
  110. // icon: getImgUrl('icon-xiansuodengji'),
  111. },
  112. {
  113. title: descData.value.address??'地址未填',
  114. // icon: getImgUrl('icon-biaoqianguanli'),
  115. },
  116. ]
  117. })
  118. })
  119. const tabActiveKey = ref('0');
  120. const tabs = ref([
  121. {
  122. title: '基本信息',
  123. key: '0',
  124. slotName: 'basicInfo',
  125. selectedIcon: selectedIcon,
  126. unSelectedIcon: unSelectedIcon,
  127. },
  128. {
  129. title: '入库审核',
  130. key: '1',
  131. slotName: 'warehouseAudit',
  132. selectedIcon: selectedIcon,
  133. unSelectedIcon: unSelectedIcon,
  134. },
  135. {
  136. title: '保证金&开票',
  137. key: '2',
  138. slotName: 'guaranteeSum',
  139. selectedIcon: selectedIcon,
  140. unSelectedIcon: unSelectedIcon,
  141. },
  142. {
  143. title: '跟进情况',
  144. key: '3',
  145. slotName: 'progressStatus',
  146. selectedIcon: selectedIcon,
  147. unSelectedIcon: unSelectedIcon,
  148. },
  149. {
  150. title: '合作项目',
  151. key: '4',
  152. slotName: 'cooperativeProject',
  153. selectedIcon: selectedIcon,
  154. unSelectedIcon: unSelectedIcon,
  155. },
  156. {
  157. title: '结算管理',
  158. key: '5',
  159. slotName: 'settlementManage',
  160. selectedIcon: selectedIcon,
  161. unSelectedIcon: unSelectedIcon,
  162. },
  163. {
  164. title: '服务商评价',
  165. key: '6',
  166. slotName: 'providerEvaluation',
  167. selectedIcon: selectedIcon,
  168. unSelectedIcon: unSelectedIcon,
  169. },
  170. {
  171. title: '账号/IP管理',
  172. key: '7',
  173. slotName: 'accountManage',
  174. selectedIcon: selectedIcon,
  175. unSelectedIcon: unSelectedIcon,
  176. },
  177. {
  178. title: '文件资料',
  179. key: '8',
  180. slotName: 'documentMaterials',
  181. selectedIcon: selectedIcon,
  182. unSelectedIcon: unSelectedIcon,
  183. },
  184. ]);
  185. const tagList = ref([
  186. {
  187. title: '企业单位',
  188. // icon: getImgUrl('icon-tianyancha'),
  189. },
  190. {
  191. title: '',
  192. // icon: getImgUrl('icon-xiansuodengji'),
  193. },
  194. {
  195. title: '地址',
  196. // icon: getImgUrl('icon-biaoqianguanli'),
  197. },
  198. ])
  199. const indexConfig = ref({
  200. sourceData: [
  201. {
  202. label: '合同数量',
  203. value: '',
  204. },
  205. {
  206. label: '累计合同额',
  207. value: '',
  208. },
  209. {
  210. label: '联系人',
  211. value: '',
  212. },
  213. {
  214. label: '联系电话',
  215. value: '',
  216. },
  217. {
  218. label: '归属营销人员',
  219. value: '',
  220. },
  221. ],
  222. labelKey: 'label',
  223. valueKey: 'value',
  224. })
  225. </script>
  226. <style lang="scss" scoped>
  227. .service-provider-detail {
  228. width: 100%;
  229. .tag-stl {
  230. display: flex;
  231. gap: 5px;
  232. align-items: center;
  233. .title-render {
  234. color: #999999;
  235. font-size: 14px;
  236. }
  237. }
  238. }
  239. </style>