change_list-detail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header @back="goBack" content="详情"> </el-page-header>
  5. </div>
  6. <br />
  7. <br />
  8. <span>返利互转单</span>
  9. <el-divider></el-divider>
  10. <!-- 筛选条件 -->
  11. <div>
  12. <el-form label-width="100px" size="small" label-position="left">
  13. <el-row :gutter="20">
  14. <el-col :xs="24" :sm="12" :lg="6">
  15. <el-form-item label="返利互转单号" prop="">
  16. <el-input disabled v-model="detailList.id" placeholder=""></el-input>
  17. </el-form-item>
  18. </el-col>
  19. <el-col :xs="24" :sm="12" :lg="6">
  20. <el-form-item label="单据日期" prop="">
  21. <el-input disabled v-model="detailList.theTime" placeholder=""></el-input>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :xs="24" :sm="12" :lg="6">
  25. <el-form-item label="单据状态" prop="">
  26. <el-input v-if="detailList.examineStatus == 'SAVE'" disabled placeholder="保存"></el-input>
  27. <el-input v-if="detailList.examineStatus == 'WAIT'" disabled placeholder="待审核"></el-input>
  28. <el-input v-if="detailList.examineStatus == 'OK_ONE'" disabled placeholder="初审通过"></el-input>
  29. <el-input v-if="detailList.examineStatus == 'FAIL_ONE'" disabled placeholder="初审不通过"></el-input>
  30. <el-input v-if="detailList.examineStatus == 'OK'" disabled placeholder="复核通过"></el-input>
  31. <el-input v-if="detailList.examineStatus == 'FALL'" disabled placeholder="复核不通过"></el-input>
  32. <el-input v-if="detailList.examineStatus == 'CLOSE'" disabled placeholder="已关闭"></el-input>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :xs="24" :sm="12" :lg="6">
  36. <el-form-item label="制单人" prop="">
  37. <el-input v-model="detailList.createBy" disabled placeholder=""></el-input>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :xs="24" :sm="12" :lg="6">
  41. <el-form-item label="经销商编号" prop="">
  42. <el-input disabled v-model="detailList.customerNumber" placeholder=""></el-input>
  43. </el-form-item>
  44. </el-col>
  45. <el-col :xs="24" :sm="12" :lg="6">
  46. <el-form-item label="经销商名称" prop="">
  47. <el-input disabled v-model="detailList.customerName" placeholder=""></el-input>
  48. </el-form-item>
  49. </el-col>
  50. <el-col :xs="24" :sm="12" :lg="6">
  51. <el-form-item label="备注信息" prop="">
  52. <el-input disabled v-model="detailList.remark" placeholder=""></el-input>
  53. </el-form-item>
  54. </el-col>
  55. <el-col v-if="detailList.examineBy" :xs="24" :sm="12" :lg="6">
  56. <el-form-item label="审核人" prop="">
  57. <el-input disabled v-model="detailList.examineBy" placeholder=""></el-input>
  58. </el-form-item>
  59. </el-col>
  60. <el-col v-if="detailList.examineBy" :xs="24" :sm="12" :lg="6">
  61. <el-form-item label="审核日期" prop="">
  62. <el-input disabled v-model="detailList.examineTime" placeholder=""></el-input>
  63. </el-form-item>
  64. </el-col>
  65. <!-- <el-col :xs="24" :sm="12" :lg="6">
  66. <el-form-item label="关闭人" prop="">
  67. <el-input disabled placeholder="请输入"></el-input>
  68. </el-form-item>
  69. </el-col>
  70. <el-col :xs="24" :sm="12" :lg="6">
  71. <el-form-item label="关闭日期" prop="">
  72. <el-input disabled placeholder="请输入"></el-input>
  73. </el-form-item>
  74. </el-col> -->
  75. </el-row>
  76. </el-form>
  77. </div>
  78. <!-- 列表 -->
  79. <div class="mymain-container">
  80. <div class="table">
  81. <el-table
  82. v-loading="listLoading"
  83. :data="dataList"
  84. element-loading-text="Loading"
  85. border
  86. fit
  87. highlight-current-row
  88. stripe
  89. >
  90. <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
  91. <el-table-column
  92. align="left"
  93. label="返利类型"
  94. prop="customerWalletName"
  95. min-width="160"
  96. show-overflow-tooltip
  97. ></el-table-column>
  98. <el-table-column
  99. align="left"
  100. label="返利金额"
  101. prop="amount"
  102. min-width="160"
  103. show-overflow-tooltip
  104. ></el-table-column>
  105. <el-table-column
  106. align="left"
  107. label="折让金额"
  108. prop="allowanceAmount"
  109. min-width="160"
  110. show-overflow-tooltip
  111. ></el-table-column>
  112. <el-table-column
  113. align="left"
  114. label="发起方经销商名称"
  115. prop="customerName"
  116. min-width="260"
  117. show-overflow-tooltip
  118. >
  119. <template slot-scope="scope">
  120. <CopyButton :copyText="scope.row.customerName" />
  121. <span>{{ scope.row.customerName }}</span>
  122. </template>
  123. </el-table-column>
  124. <el-table-column
  125. align="left"
  126. label="接收方经销商名称"
  127. prop="receiverCustomerName"
  128. min-width="260"
  129. show-overflow-tooltip
  130. >
  131. <template slot-scope="scope">
  132. <CopyButton :copyText="scope.row.receiverCustomerName" />
  133. <span>{{ scope.row.receiverCustomerName }}</span>
  134. </template>
  135. </el-table-column>
  136. <el-table-column
  137. align="left"
  138. label="备注"
  139. prop="remark"
  140. min-width="160"
  141. show-overflow-tooltip
  142. ></el-table-column>
  143. </el-table>
  144. </div>
  145. </div>
  146. </div>
  147. </template>
  148. <script>
  149. export default {
  150. props: {
  151. detailList: {
  152. type: Object,
  153. required: true
  154. }
  155. },
  156. data() {
  157. return {
  158. dataList: [], // 列表数据
  159. searchForm: {}, //搜索表单
  160. listLoading: false // 列表加载loading
  161. }
  162. },
  163. created() {
  164. this.dataList = [
  165. {
  166. customerWalletName: this.detailList.initiatorCustomerWalletName,
  167. customerName:this.detailList.customerName,
  168. receiverCustomerName:this.detailList.receiverCustomerName,
  169. remark: this.detailList.initiatorRemark,
  170. amount: -this.detailList.initiatorAmount
  171. },
  172. {
  173. customerWalletName: this.detailList.receiverCustomerWalletName,
  174. customerName:this.detailList.customerName,
  175. receiverCustomerName:this.detailList.receiverCustomerName,
  176. remark: this.detailList.receiverRemark,
  177. amount: this.detailList.amount,
  178. allowanceAmount: this.detailList.allowanceAmount
  179. }
  180. ]
  181. },
  182. methods: {
  183. goBack() {
  184. this.$parent.showPage = 1
  185. }
  186. }
  187. }
  188. </script>
  189. <style></style>