RemotePayDetail.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <template>
  2. <div style="padding-bottom:20px;">
  3. <el-row :gutter="15">
  4. <el-col :span="8">
  5. <el-card class="box-card">
  6. <div slot="header" class="clearfix">
  7. <el-row :gutter="10" style="font-size:20px;font-weight:bold">
  8. <el-col :span="8">
  9. <span style="float:right">服务编号:</span>
  10. </el-col>
  11. <el-col :span="16">
  12. <span>{{customerCard.remoteCode}}</span>
  13. </el-col>
  14. </el-row>
  15. </div>
  16. <div>
  17. <el-row :gutter="10" class="cust-card-row">
  18. <el-col :span="8">
  19. <span class="cust-card-tt">服务状态:</span>
  20. </el-col>
  21. <el-col :span="16">
  22. <span class="cust-card-ct">{{customerCard.statusName}}</span>
  23. </el-col>
  24. </el-row>
  25. <el-row :gutter="10" class="cust-card-row">
  26. <el-col :span="8">
  27. <span class="cust-card-tt">客户名称:</span>
  28. </el-col>
  29. <el-col :span="16">
  30. <span class="cust-card-ct">{{customerCard.customerName}}</span>
  31. </el-col>
  32. </el-row>
  33. <el-row :gutter="10" class="cust-card-row">
  34. <el-col :span="8">
  35. <span class="cust-card-tt">所属集团:</span>
  36. </el-col>
  37. <el-col :span="16">
  38. <span class="cust-card-ct">{{customerCard.groupName}}</span>
  39. </el-col>
  40. </el-row>
  41. <el-row :gutter="10" class="cust-card-row">
  42. <el-col :span="8">
  43. <span class="cust-card-tt">客户对接人:</span>
  44. </el-col>
  45. <el-col :span="16">
  46. <span class="cust-card-ct">{{customerCard.receiverName}}</span>
  47. </el-col>
  48. </el-row>
  49. <el-row :gutter="10" class="cust-card-row">
  50. <el-col :span="8">
  51. <span class="cust-card-tt">服务开始时间:</span>
  52. </el-col>
  53. <el-col :span="16">
  54. <span class="cust-card-ct">{{customerCard.remoteBeginDate }}</span>
  55. </el-col>
  56. </el-row>
  57. <el-row :gutter="10" class="cust-card-row">
  58. <el-col :span="8">
  59. <span class="cust-card-tt">服务完成时间:</span>
  60. </el-col>
  61. <el-col :span="16">
  62. <span class="cust-card-ct">{{customerCard.remoteEndDate }}</span>
  63. </el-col>
  64. </el-row>
  65. <el-row :gutter="10" class="cust-card-row">
  66. <el-col :span="8">
  67. <span class="cust-card-tt">技术人员:</span>
  68. </el-col>
  69. <el-col :span="16">
  70. <span class="cust-card-ct">{{customerCard.employeeName }}</span>
  71. </el-col>
  72. </el-row>
  73. <el-row :gutter="10" class="cust-card-row">
  74. <el-col :span="8">
  75. <span class="cust-card-tt">拜访关联记录:</span>
  76. </el-col>
  77. <el-col :span="16">
  78. <span class="cust-card-ct">{{customerCard.visitCode }}</span>
  79. </el-col>
  80. </el-row>
  81. <el-row :gutter="10" class="cust-card-row">
  82. <el-col :span="8">
  83. <span class="cust-card-tt">回访关联记录:</span>
  84. </el-col>
  85. <el-col :span="16">
  86. <span class="cust-card-ct">{{customerCard.telvisitCode }}</span>
  87. </el-col>
  88. </el-row>
  89. <el-row :gutter="10" class="cust-card-row">
  90. <el-col :span="8">
  91. <span class="cust-card-tt">服务内容:</span>
  92. </el-col>
  93. <el-col :span="16">
  94. <span class="cust-card-ct">{{customerCard.content }}</span>
  95. </el-col>
  96. </el-row>
  97. <el-row :gutter="10" class="cust-card-row">
  98. <el-col :span="8">
  99. <span class="cust-card-tt">备注:</span>
  100. </el-col>
  101. <el-col :span="16">
  102. <span class="cust-card-ct">{{customerCard.remark }}</span>
  103. </el-col>
  104. </el-row>
  105. <el-divider></el-divider>
  106. <el-row :gutter="10" class="cust-card-row">
  107. <el-col :span="8">
  108. <span class="cust-card-tt">款项状态:</span>
  109. </el-col>
  110. <el-col :span="16">
  111. <span class="cust-card-ct">{{customerCard.costStatus }}</span>
  112. </el-col>
  113. </el-row>
  114. <el-row :gutter="10" class="cust-card-row">
  115. <el-col :span="8">
  116. <span class="cust-card-tt">服务费用:</span>
  117. </el-col>
  118. <el-col :span="16">
  119. <span class="cust-card-ct">{{customerCard.remoteCost }}</span>
  120. </el-col>
  121. </el-row>
  122. </div>
  123. <!-- <div v-for="o in 4" :key="o" class="text item">
  124. {{'列表内容 ' + o }}
  125. </div> -->
  126. </el-card>
  127. </el-col>
  128. <el-col :span="16">
  129. <h3>反馈记录</h3>
  130. <el-row >
  131. <div v-for="(item) in feedRecordList" >
  132. <div>
  133. <span> {{item.sort }} . </span>
  134. <span>{{item.remark }}</span>
  135. </div>
  136. <el-row type="flex" justify="end">
  137. <el-col :span="6">
  138. {{item.createDate }}
  139. </el-col>
  140. <el-col :span="6">
  141. 反馈人:{{item.employeeName}}
  142. </el-col>
  143. </el-row>
  144. <el-divider></el-divider>
  145. </div>
  146. </el-row>
  147. </el-col>
  148. </el-row>
  149. </div>
  150. </template>
  151. <script>
  152. import { GetDataByName, PostDataByName, failproccess, ExecDataByConfig, GetDataByNames, checkButtons, calculativeWidth } from '@/api/common'
  153. import Cookies from 'js-cookie'
  154. import { parseTime } from '@/utils/index.js'
  155. import Pagination from '@/components/Pagination'
  156. import { MessageBox } from 'element-ui'
  157. import { getToken } from '@/utils/auth'
  158. export default {
  159. name: 'RemotePayDetail',
  160. props: {
  161. remoteData: {
  162. type: Object,
  163. required: true
  164. }
  165. },
  166. data() {
  167. return {
  168. customerCard: {
  169. // "address":"1","createrId":"3072707379235128328","createrName":"管理员","createtime":"2022-05-11","customeLevelName":"2级","customeStatusName":"欠款客户","customerName":"测试12","directorId":24,"directorName":"康亮","enable":1,"groupId":207,"groupName":"星连星牧业","id":1425,"province":"1","rangeName":"西北区域","remark":"","scode":"123456789012345678"
  170. },
  171. //反馈记录
  172. feedRecordList:[
  173. // {id:1, num: 1, txt: '主板缺失零件,疫情关系,无法采购,延期1天', director:'epans', date:"2022-12-01"},
  174. // {id:1, num: 1, txt: '主板缺失零件,疫情关系,无法采购,延期1天', director:'epans', date:"2022-12-01"},
  175. // {id:1, num: 1, txt: '主板缺失零件,疫情关系,无法采购,延期1天', director:'epans', date:"2022-12-01"},
  176. ],
  177. }
  178. },
  179. watch: {
  180. remoteData: {
  181. deep: true,
  182. handler: function (item) {
  183. console.log("父组件:", item)
  184. this.get_card_list()
  185. this.get_feedRecord()
  186. }
  187. },
  188. },
  189. mounted() {
  190. },
  191. created() {
  192. this.get_card_list()
  193. this.get_feedRecord()
  194. },
  195. beforeDestroy() {
  196. },
  197. methods: {
  198. //AJAX事件 - 获取服务款项详情
  199. get_card_list() {
  200. var send_data = {
  201. name: 'getRemoteCostById',
  202. parammaps: {
  203. id:this.remoteData.id,
  204. }
  205. }
  206. GetDataByName(send_data).then(response => {
  207. console.log('卡片服务款项详情数据', response )
  208. if (response.data.list !== null) {
  209. this.customerCard = response.data.list[0]
  210. } else {
  211. this.customerCard = {}
  212. }
  213. })
  214. },
  215. // 查看中的反馈记录
  216. get_feedRecord() {
  217. var send_data3 = {
  218. name: 'getRemoteFeedbackById',
  219. parammaps: {
  220. id:this.remoteData.id,
  221. }
  222. }
  223. GetDataByName(send_data3).then(response => {
  224. console.log("查看中的反馈记录", response.data.list)
  225. if (response.data.list !== null) {
  226. this.feedRecordList = response.data.list
  227. } else {
  228. this.feedRecordList = []
  229. }
  230. })
  231. }
  232. }
  233. }
  234. </script>